decord/source/1766_startScreenTransition.js

60 lines
2.9 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1766
2026-07-23 10:11:24 +00:00
// Function ID: 19686
2026-07-20 16:05:17 +00:00
// Name: startScreenTransition
2026-07-23 10:11:24 +00:00
// Dependencies: [1681, 1767, 1768]
2026-07-20 16:05:17 +00:00
// Module 1766 (startScreenTransition)
2026-07-23 10:11:24 +00:00
import configureProps from "configureProps";
configureProps = configureProps.configureProps();
2026-07-20 16:05:17 +00:00
let closure_2 = { code: "function startScreenTransition_Pnpm_animationManagerTs1(screenTransitionConfig){const{applyStyle}=this.__closure;const{stackTag:stackTag,sharedEvent:sharedEvent}=screenTransitionConfig;sharedEvent.addListener(stackTag,function(){applyStyle(screenTransitionConfig,sharedEvent.value);});}" };
let closure_3 = { 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;}" };
2026-07-23 10:11:24 +00:00
let closure_4 = (() => {
2026-07-20 16:05:17 +00:00
function getLockAxis(arg0) {
2026-07-23 10:11:24 +00:00
const items = ["swipeRight", "swipeLeft", "horizontalSwipe"];
2026-07-20 16:05:17 +00:00
let str = "x";
if (!items.includes(arg0)) {
2026-07-23 10:11:24 +00:00
const items1 = ["swipeUp", "swipeDown", "verticalSwipe"];
2026-07-20 16:05:17 +00:00
let str2;
if (items1.includes(arg0)) {
str2 = "y";
}
str = str2;
}
return str;
}
getLockAxis.__closure = {};
getLockAxis.__workletHash = 16916946798878;
getLockAxis.__initData = closure_3;
return getLockAxis;
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
let closure_5 = { 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();}" };
2026-07-23 10:11:24 +00:00
export const startScreenTransition = (() => {
2026-07-20 16:05:17 +00:00
function startScreenTransition(sharedEvent) {
2026-07-23 10:11:24 +00:00
let closure_0 = sharedEvent;
2026-07-20 16:05:17 +00:00
sharedEvent = sharedEvent.sharedEvent;
sharedEvent.addListener(sharedEvent.stackTag, () => {
2026-07-23 10:11:24 +00:00
outer2_0(outer2_1[1]).applyStyle(closure_0, sharedEvent.value);
2026-07-20 16:05:17 +00:00
});
}
2026-07-23 10:11:24 +00:00
startScreenTransition.__closure = { applyStyle: require(1767) /* createViewDescriptorPaper */.applyStyle };
2026-07-20 16:05:17 +00:00
startScreenTransition.__workletHash = 9428952089760;
startScreenTransition.__initData = closure_2;
return startScreenTransition;
2026-07-23 10:11:24 +00:00
})();
export const finishScreenTransition = (() => {
2026-07-20 16:05:17 +00:00
function finishScreenTransition(stackTag) {
let goBackGesture;
let sharedEvent;
({ sharedEvent, goBackGesture } = stackTag);
sharedEvent.removeListener(stackTag.stackTag);
2026-07-23 10:11:24 +00:00
const tmp2 = outer1_4(goBackGesture);
outer1_0(outer1_1[2]).getSwipeSimulator(sharedEvent.value, stackTag, tmp2)();
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
finishScreenTransition.__closure = { getLockAxis: closure_4, getSwipeSimulator: require(1768) /* computeEasingProgress */.getSwipeSimulator };
2026-07-20 16:05:17 +00:00
finishScreenTransition.__workletHash = 6937010294861;
finishScreenTransition.__initData = closure_5;
return finishScreenTransition;
2026-07-23 10:11:24 +00:00
})();