47 lines
1.9 KiB
JavaScript
47 lines
1.9 KiB
JavaScript
// Module ID: 1812
|
|
// Function ID: 1813
|
|
// Name: scrollToFabric
|
|
// Dependencies: [1809, 1638, 1637]
|
|
|
|
// Module 1812 (scrollToFabric)
|
|
import isJest from "isJest";
|
|
import isJest from "isJest";
|
|
|
|
function scrollToFabric(arg0, arg1, arg2, arg3) {
|
|
const items = [arg1, arg2, arg3];
|
|
require(1809) /* dispatchCommandFabric */.dispatchCommand(arg0, "scrollTo", items);
|
|
}
|
|
scrollToFabric.__closure = { dispatchCommand: require("dispatchCommandFabric").dispatchCommand };
|
|
scrollToFabric.__workletHash = 5331784934384;
|
|
scrollToFabric.__initData = { code: "function scrollToFabric_Pnpm_scrollToTs1(animatedRef,x,y,animated){const{dispatchCommand}=this.__closure;dispatchCommand(animatedRef,'scrollTo',[x,y,animated]);}" };
|
|
function scrollToPaper(arg0, arg1, arg2, arg3) {
|
|
if (globalThis._WORKLET) {
|
|
global._scrollToPaper(arg0(), arg1, arg2, arg3);
|
|
}
|
|
}
|
|
scrollToPaper.__closure = {};
|
|
scrollToPaper.__workletHash = 10376977850779;
|
|
scrollToPaper.__initData = { code: "function scrollToPaper_Pnpm_scrollToTs2(animatedRef,x,y,animated){if(!_WORKLET){return;}const viewTag=animatedRef();global._scrollToPaper(viewTag,x,y,animated);}" };
|
|
isJest = isJest.shouldBeUseWeb();
|
|
if (isJest) {
|
|
if (isJest.isJest()) {
|
|
function scrollToJest() {
|
|
const logger = require(1638) /* addLogBoxLog */.logger;
|
|
logger.warn("scrollTo() is not supported with Jest.");
|
|
}
|
|
} else {
|
|
const _module2 = require("isJest");
|
|
scrollToJest = _module2.isChromeDebugger() ? (function scrollToChromeDebugger() {
|
|
const logger = require(1638) /* addLogBoxLog */.logger;
|
|
logger.warn("scrollTo() is not supported with Chrome Debugger.");
|
|
}) : (function scrollToDefault() {
|
|
const logger = require(1638) /* addLogBoxLog */.logger;
|
|
logger.warn("scrollTo() is not supported on this configuration.");
|
|
});
|
|
}
|
|
} else {
|
|
if (isJest.isFabric()) {
|
|
scrollToPaper = scrollToFabric;
|
|
}
|
|
exports.scrollTo = scrollToPaper;
|
|
}
|