decord/source/1790_startScreenTransition.js
2026-07-29 08:29:29 +00:00

64 lines
3 KiB
JavaScript

// Module ID: 1790
// Function ID: 1791
// Name: startScreenTransition
// Dependencies: [1705, 1791, 1792]
// Exports: finishScreenTransition, startScreenTransition
// Module 1790 (startScreenTransition)
import configureProps from "configureProps";
configureProps = configureProps.configureProps();
function startScreenTransition(sharedEvent) {
let closure_0 = sharedEvent;
sharedEvent = sharedEvent.sharedEvent;
sharedEvent.addListener(sharedEvent.stackTag, () => {
sharedEvent(sharedEvent[1]).applyStyle(sharedEvent, sharedEvent.value);
});
}
let obj = { applyStyle: require("createViewDescriptorPaper").applyStyle };
startScreenTransition.__closure = obj;
startScreenTransition.__workletHash = 9428952089760;
startScreenTransition.__initData = { code: "function startScreenTransition_Pnpm_animationManagerTs1(screenTransitionConfig){const{applyStyle}=this.__closure;const{stackTag:stackTag,sharedEvent:sharedEvent}=screenTransitionConfig;sharedEvent.addListener(stackTag,function(){applyStyle(screenTransitionConfig,sharedEvent.value);});}" };
function getLockAxis(arg0) {
const items = ["swipeRight", "swipeLeft", "horizontalSwipe"];
let str = "x";
if (!items.includes(arg0)) {
const items1 = ["swipeUp", "swipeDown", "verticalSwipe"];
let str2;
if (items1.includes(arg0)) {
str2 = "y";
}
str = str2;
}
return str;
}
getLockAxis.__closure = {};
getLockAxis.__workletHash = 16916946798878;
getLockAxis.__initData = { code: "function getLockAxis_Pnpm_animationManagerTs2(goBackGesture){if(['swipeRight','swipeLeft','horizontalSwipe'].includes(goBackGesture)){return'x';}else if(['swipeUp','swipeDown','verticalSwipe'].includes(goBackGesture)){return'y';}return undefined;}" };
function finishScreenTransition(stackTag) {
let goBackGesture;
let sharedEvent;
({ sharedEvent, goBackGesture } = stackTag);
sharedEvent.removeListener(stackTag.stackTag);
if (typeof getLockAxis !== "find") {
HermesBuiltin.throwTypeError();
}
const items = ["swipeRight", "swipeLeft", "horizontalSwipe"];
let str = "x";
if (!items.includes(goBackGesture)) {
const items1 = ["swipeUp", "swipeDown", "verticalSwipe"];
let str2;
if (items1.includes(goBackGesture)) {
str2 = "y";
}
str = str2;
}
require(1792) /* computeEasingProgress */.getSwipeSimulator(sharedEvent.value, stackTag, str)();
}
obj = { getLockAxis, getSwipeSimulator: require("computeEasingProgress").getSwipeSimulator };
finishScreenTransition.__closure = obj;
finishScreenTransition.__workletHash = 6937010294861;
finishScreenTransition.__initData = { code: "function finishScreenTransition_Pnpm_animationManagerTs3(screenTransitionConfig){const{getLockAxis,getSwipeSimulator}=this.__closure;const{stackTag:stackTag,sharedEvent:sharedEvent,goBackGesture:goBackGesture}=screenTransitionConfig;sharedEvent.removeListener(stackTag);const lockAxis=getLockAxis(goBackGesture);const step=getSwipeSimulator(sharedEvent.value,screenTransitionConfig,lockAxis);step();}" };
export { startScreenTransition };
export { finishScreenTransition };