Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
316 lines
21 KiB
TypeScript
316 lines
21 KiB
TypeScript
// Module ID: 17080
|
|
// Function ID: 17081
|
|
// Name: useLaunchPadGesture
|
|
// Dependencies: [19, 11601, 4494, 1611, 6756, 1363, 12166, 11491, 4373, 4604, 2]
|
|
// Exports: default
|
|
|
|
// Module 17080 (useLaunchPadGesture)
|
|
import PlatformUtils from "PlatformUtils" /* 1363 */;
|
|
import ReanimatedRexport from "ReanimatedRexport" /* 4373 */;
|
|
import HapticUtils from "HapticUtils" /* 4604 */;
|
|
import LegacyBaseButton from "LegacyBaseButton" /* 6756 */;
|
|
import updateSharedValueIfChangedDefault from "updateSharedValueIfChanged" /* 11491 */;
|
|
import useWindowDimensionsSharedValue from "useWindowDimensionsSharedValue" /* 12166 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const LaunchPadConstants = fn(11601);
|
|
({ LAUNCH_PAD_EDGE_GESTURE_AFFORDANCE: closure_4, LAUNCH_PAD_END_TRANSLATION_THRESHOLD: hasOwnProperty, LAUNCH_PAD_END_VELOCITY_THRESHOLD: metroRequire, LAUNCH_PAD_PULL_TAB_HEIGHT: closure_7, LAUNCH_PAD_PULL_TAB_HIT_SLOP: closure_8, LAUNCH_PAD_PULL_TAB_SCALE_FACTOR: closure_9, LAUNCH_PAD_PULL_TAB_WIDTH: c10, LaunchPadTypes: closure_11 } = LaunchPadConstants);
|
|
let closure_12 = { code: "function useLaunchPadGestureTsx1(){const{updateSharedValueIfChanged,gestureState,updaters}=this.__closure;updateSharedValueIfChanged(gestureState,{active:false,initialLaunchPadPosition:0,initialPullTabPosition:0,initialTouchX:0,initialTouchY:0,positionOffsetX:0,positionOffsetY:0,startTime:-1});updaters.setLaunchPadPullTabScale(1.0);}" };
|
|
let closure_13 = { code: "function useLaunchPadGestureTsx2(){const{gestureState,updaters,updateSharedValueIfChanged}=this.__closure;const{initialLaunchPadPosition:initialLaunchPadPosition,active:active}=gestureState.get();if(active){if(initialLaunchPadPosition===1){updaters.setLaunchPadPosition(1);}else{updaters.setLaunchPadPosition(0);}}updateSharedValueIfChanged(gestureState,{active:false,initialLaunchPadPosition:0,initialPullTabPosition:0,initialTouchX:0,initialTouchY:0,positionOffsetX:0,positionOffsetY:0,startTime:-1});}" };
|
|
let closure_14 = { code: "function useLaunchPadGestureTsx3({velocityX:velocityX,velocityY:velocityY,translationX:translationX,translationY:translationY}){const{gestureState,launchPadType,LaunchPadTypes,LAUNCH_PAD_END_TRANSLATION_THRESHOLD,LAUNCH_PAD_END_VELOCITY_THRESHOLD,updaters,launchPadSharedState}=this.__closure;const{requiresPop:requiresPop,startShown:startShown}=gestureState.get();if(requiresPop){if(!startShown){const isPullTabTapComplete=launchPadType===LaunchPadTypes.PULL_TAB&&Math.abs(translationX)<=LAUNCH_PAD_END_TRANSLATION_THRESHOLD&&Math.abs(translationY)<=LAUNCH_PAD_END_TRANSLATION_THRESHOLD&&Math.abs(velocityX)<=LAUNCH_PAD_END_VELOCITY_THRESHOLD&&Math.abs(velocityY)<=LAUNCH_PAD_END_VELOCITY_THRESHOLD;if(isPullTabTapComplete){updaters.setLaunchPadPosition(1);}else{updaters.setLaunchPadPosition(0);}}else{updaters.setLaunchPadPosition(1);}}else if(Math.abs(velocityX)<LAUNCH_PAD_END_VELOCITY_THRESHOLD){if(launchPadSharedState.get()>=0.5){updaters.setLaunchPadPosition(1);}else{updaters.setLaunchPadPosition(0);}}else if(velocityX>0){updaters.setLaunchPadPosition(0);}else{updaters.setLaunchPadPosition(1);}}" };
|
|
let closure_15 = { code: "function useLaunchPadGestureTsx4({translationX:translationX,translationY:translationY,absoluteX:absoluteX}){const{gestureState,getWindowDimensionsWorklet,POP_RESISTANCE,launchPadType,LaunchPadTypes,PIP_POP_DISTANCE,updaters,updateSharedValueIfChanged,runOnJS,triggerHapticFeedback,HapticFeedbackTypes}=this.__closure;if(!gestureState.get().active)return;const{initialTouchX:initialTouchX,requiresPop:requiresPop}=gestureState.get();const{width:windowWidth}=getWindowDimensionsWorklet();const newXOffset=absoluteX-initialTouchX;const distance=Math.max(newXOffset*-1,0);const resistance=distance*POP_RESISTANCE;const positionOffsetX=absoluteX-gestureState.get().initialTouchX;const launchPadPosition=1-(gestureState.get().initialTouchX+translationX-(launchPadType!==LaunchPadTypes.PULL_TAB?40:0))/windowWidth;if(requiresPop&&distance<=PIP_POP_DISTANCE){if(launchPadType!==LaunchPadTypes.PULL_TAB){const a=(distance-resistance)/windowWidth;updaters.setLaunchPadPosition(a);}else{updaters.setLaunchPadPullTabTranslation(translationY);}updateSharedValueIfChanged(gestureState,{positionOffsetX:positionOffsetX});}else{if(requiresPop){updateSharedValueIfChanged(gestureState,{requiresPop:false,positionOffsetX:positionOffsetX});runOnJS(triggerHapticFeedback)(HapticFeedbackTypes.IMPACT_MEDIUM);}else{updateSharedValueIfChanged(gestureState,{positionOffsetX:positionOffsetX});}updaters.setLaunchPadPosition(launchPadPosition);}}" };
|
|
let closure_16 = { code: "function useLaunchPadGestureTsx5(event,manager){const{gestureState,State,getWindowDimensionsWorklet,launchPadType,LaunchPadTypes,LAUNCH_PAD_EDGE_GESTURE_AFFORDANCE,LAUNCH_PAD_PULL_TAB_WIDTH,LAUNCH_PAD_PULL_TAB_HIT_SLOP,launchPadPullTabState,LAUNCH_PAD_PULL_TAB_HEIGHT,updaters,LAUNCH_PAD_PULL_TAB_SCALE_FACTOR,launchPadSharedState,MANUAL_ACTIVATION_THRESHOLD}=this.__closure;const{active:active,initialLaunchPadPosition:initialLaunchPadPosition,initialTouchX:initialTouchX,initialTouchY:initialTouchY}=gestureState.get();if(event.state!==State.BEGAN||active)return;const currentTouch=event.changedTouches[0];if(currentTouch==null){manager.fail();return;}const{x:x,y:y}=currentTouch;const{width:windowWidth}=getWindowDimensionsWorklet();switch(launchPadType){case LaunchPadTypes.DISABLED:manager.fail();return;case LaunchPadTypes.GESTURE_EDGE:if(initialLaunchPadPosition===0&&initialTouchX<windowWidth-LAUNCH_PAD_EDGE_GESTURE_AFFORDANCE){manager.fail();return;}break;case LaunchPadTypes.PULL_TAB:{if(initialLaunchPadPosition>0)break;const inPullTabX=x>windowWidth-LAUNCH_PAD_PULL_TAB_WIDTH-LAUNCH_PAD_PULL_TAB_HIT_SLOP&&x<windowWidth;const inPullTabY=y>launchPadPullTabState.get().position-LAUNCH_PAD_PULL_TAB_HIT_SLOP&&y<launchPadPullTabState.get().position+LAUNCH_PAD_PULL_TAB_HEIGHT+LAUNCH_PAD_PULL_TAB_HIT_SLOP;if(!inPullTabX||!inPullTabY){manager.fail();return;}gestureState.set({...gestureState.get(),initialPullTabPosition:launchPadPullTabState.get().position,active:true});updaters.setLaunchPadPullTabScale(LAUNCH_PAD_PULL_TAB_SCALE_FACTOR);updaters.setLaunchPadShown(true);manager.activate();return;}case LaunchPadTypes.GESTURE_FULL:break;default:launchPadType;manager.fail();return;}const horizontalDistance=x-initialTouchX;const verticalDistance=Math.abs(y-initialTouchY);const hasMovedCorrectDirection=launchPadSharedState.get()>0&&horizontalDistance>0||launchPadSharedState.get()<=0&&horizontalDistance<0;if(hasMovedCorrectDirection&&Math.abs(horizontalDistance)>verticalDistance){if(Math.abs(horizontalDistance)<MANUAL_ACTIVATION_THRESHOLD){return;}gestureState.set({...gestureState.get(),active:true});updaters.setLaunchPadShown(true);manager.activate();return;}manager.fail();}" };
|
|
let closure_17 = { code: "function useLaunchPadGestureTsx6(event){const{gestureState,launchPadSharedState}=this.__closure;const{x:x,y:y}=event.changedTouches[0];gestureState.set({active:false,initialLaunchPadPosition:launchPadSharedState.get(),initialPullTabPosition:0,initialTouchX:x,initialTouchY:y,positionOffsetX:0,positionOffsetY:0,startTime:Date.now(),requiresPop:launchPadSharedState.get()===0,startShown:!(launchPadSharedState.get()===0)});}" };
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/launchpad/native/useLaunchPadGesture.tsx");
|
|
|
|
export default function useLaunchPadGesture(launchPadType) {
|
|
launchPadType = launchPadType.launchPadType;
|
|
const launchPadSharedState = launchPadType.launchPadSharedState;
|
|
const launchPadPullTabState = launchPadType.launchPadPullTabState;
|
|
const gestureState = launchPadType.gestureState;
|
|
const updaters = launchPadType.updaters;
|
|
const isModalOpen = launchPadType(launchPadPullTabState[2]).useIsModalOpen();
|
|
const tmp2 = launchPadSharedState(launchPadPullTabState[3])();
|
|
closure_6 = tmp2;
|
|
const ref = gestureState.useRef(undefined);
|
|
let obj2 = { gesture: null, gestureRef: ref };
|
|
const items = [gestureState, tmp2, isModalOpen, launchPadPullTabState, launchPadSharedState, launchPadType, updaters];
|
|
obj2.gesture = gestureState.useMemo(() => {
|
|
let num = 0;
|
|
if (launchPadType === constants.GESTURE_FULL) {
|
|
num = -1 * LAUNCH_PAD_EDGE_GESTURE_AFFORDANCE;
|
|
}
|
|
const Gesture = LegacyBaseButton.Gesture;
|
|
let tmp6 = !isModalOpen;
|
|
if (!isModalOpen) {
|
|
tmp6 = tmp !== tmp2.DISABLED;
|
|
}
|
|
const PanResult = Gesture.Pan();
|
|
const enabledResult = Gesture.Pan().enabled(tmp6);
|
|
const withRefResult = Gesture.Pan().enabled(tmp6).withRef(ref);
|
|
const minDistanceResult = Gesture.Pan().enabled(tmp6).withRef(ref).minDistance(0);
|
|
const maxPointersResult = Gesture.Pan().enabled(tmp6).withRef(ref).minDistance(0).maxPointers(1);
|
|
const tmp4Result = PlatformUtils;
|
|
const rect = { top: -1 * closure_6.top, left: 0, bottom: -1 * closure_6.bottom, right: num };
|
|
const manualActivationResult = maxPointersResult.manualActivation(PlatformUtils.isAndroid());
|
|
const fn = function w(arg0) {
|
|
({ x, y } = arg0.changedTouches[0]);
|
|
const result = gestureState.set({ active: false, initialLaunchPadPosition: launchPadSharedState.get(), initialPullTabPosition: 0, initialTouchX: x, initialTouchY: y, positionOffsetX: 0, positionOffsetY: 0, startTime: Date.now(), requiresPop: 0 === launchPadSharedState.get(), startShown: 0 !== launchPadSharedState.get() });
|
|
};
|
|
fn.__closure = { gestureState, launchPadSharedState };
|
|
fn.__workletHash = 14359599806316;
|
|
fn.__initData = __initData6;
|
|
const hitSlopResult = maxPointersResult.manualActivation(PlatformUtils.isAndroid()).hitSlop(rect);
|
|
const obj = { gestureState, launchPadSharedState };
|
|
class X {
|
|
constructor(arg0, arg1) {
|
|
obj = closure_1_3;
|
|
value = closure_1_3.get();
|
|
({ initialLaunchPadPosition, initialTouchX } = value);
|
|
({ active, initialTouchY } = value);
|
|
tmp2 = launchPadType;
|
|
tmp3 = launchPadPullTabState;
|
|
if (arg0.state === launchPadType(launchPadPullTabState[4]).State.BEGAN) {
|
|
if (!active) {
|
|
tmp4 = arg1;
|
|
first = arg0.changedTouches[0];
|
|
tmp6 = null;
|
|
if (null != first) {
|
|
({ x, y } = first);
|
|
tmp2Result = tmp2(tmp3[6]);
|
|
width = tmp2Result.getWindowDimensionsWorklet().width;
|
|
tmp8 = closure_1_0;
|
|
tmp9 = closure_2_11;
|
|
if (closure_2_11.DISABLED === closure_1_0) {
|
|
failResult = arg1.fail();
|
|
return;
|
|
} else {
|
|
if (tmp9.GESTURE_EDGE === tmp8) {
|
|
num2 = 0;
|
|
if (0 === initialLaunchPadPosition) {
|
|
tmp23 = updaters;
|
|
if (initialTouchX < width - updaters) {
|
|
failResult1 = arg1.fail();
|
|
return;
|
|
}
|
|
}
|
|
} else if (tmp9.PULL_TAB === tmp8) {
|
|
num = 0;
|
|
if (initialLaunchPadPosition <= 0) {
|
|
obj6 = closure_1_2;
|
|
tmp37 = closure_2_8;
|
|
tmp11 = y > closure_1_2.get().position - closure_2_8;
|
|
if (tmp11) {
|
|
tmp10 = closure_7;
|
|
tmp11 = y < obj6.get().position + closure_7 + tmp37;
|
|
}
|
|
tmp12 = closure_2_10;
|
|
if (x > width - closure_2_10 - tmp37) {
|
|
if (x < width) {
|
|
if (tmp11) {
|
|
obj1 = {};
|
|
tmp15 = obj1;
|
|
merged = Object.assign(obj.get());
|
|
obj1.initialPullTabPosition = obj6.get().position;
|
|
flag = true;
|
|
obj1.active = true;
|
|
result = obj.set(obj1);
|
|
tmp18 = closure_1_4;
|
|
tmp19 = closure_2_9;
|
|
result1 = closure_1_4.setLaunchPadPullTabScale(closure_2_9);
|
|
setLaunchPadShownResult = closure_1_4.setLaunchPadShown(true);
|
|
activateResult = arg1.activate();
|
|
}
|
|
return tmp14;
|
|
}
|
|
}
|
|
failResult2 = arg1.fail();
|
|
}
|
|
} else if (tmp9.GESTURE_FULL !== tmp8) {
|
|
failResult3 = arg1.fail();
|
|
return;
|
|
}
|
|
diff = x - initialTouchX;
|
|
tmp25 = globalThis;
|
|
_Math = Math;
|
|
obj4 = closure_1_1;
|
|
absolute = Math.abs(y - initialTouchY);
|
|
num3 = 0;
|
|
if (closure_1_1.get() <= 0) {
|
|
if (obj4.get() <= 0) {
|
|
}
|
|
failResult4 = arg1.fail();
|
|
}
|
|
_Math2 = Math;
|
|
if (Math.abs(diff) > absolute) {
|
|
_Math3 = Math;
|
|
num4 = 3;
|
|
if (Math.abs(diff) < 3) {
|
|
return;
|
|
} else {
|
|
obj7 = {};
|
|
tmp28 = obj7;
|
|
merged1 = Object.assign(obj.get());
|
|
flag2 = true;
|
|
obj7.active = true;
|
|
result2 = obj.set(obj7);
|
|
tmp31 = closure_1_4;
|
|
setLaunchPadShownResult1 = closure_1_4.setLaunchPadShown(true);
|
|
activateResult1 = arg1.activate();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
failResult5 = arg1.fail();
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
const onTouchesDownResult = maxPointersResult.manualActivation(PlatformUtils.isAndroid()).hitSlop(rect).onTouchesDown(fn);
|
|
X.__closure = { gestureState, State: LegacyBaseButton.State, getWindowDimensionsWorklet: useWindowDimensionsSharedValue.getWindowDimensionsWorklet, launchPadType, LaunchPadTypes: constants, LAUNCH_PAD_EDGE_GESTURE_AFFORDANCE, LAUNCH_PAD_PULL_TAB_WIDTH, LAUNCH_PAD_PULL_TAB_HIT_SLOP, launchPadPullTabState, LAUNCH_PAD_PULL_TAB_HEIGHT, updaters, LAUNCH_PAD_PULL_TAB_SCALE_FACTOR, launchPadSharedState, MANUAL_ACTIVATION_THRESHOLD: 3 };
|
|
X.__workletHash = 17469318427529;
|
|
X.__initData = __initData5;
|
|
let obj2 = { gestureState, State: LegacyBaseButton.State, getWindowDimensionsWorklet: useWindowDimensionsSharedValue.getWindowDimensionsWorklet, launchPadType, LaunchPadTypes: constants, LAUNCH_PAD_EDGE_GESTURE_AFFORDANCE, LAUNCH_PAD_PULL_TAB_WIDTH, LAUNCH_PAD_PULL_TAB_HIT_SLOP, launchPadPullTabState, LAUNCH_PAD_PULL_TAB_HEIGHT, updaters, LAUNCH_PAD_PULL_TAB_SCALE_FACTOR, launchPadSharedState, MANUAL_ACTIVATION_THRESHOLD: 3 };
|
|
class I {
|
|
constructor(arg0) {
|
|
absoluteX = arg0.absoluteX;
|
|
obj = closure_1_3;
|
|
({ translationX, translationY } = arg0);
|
|
if (closure_1_3.get().active) {
|
|
value = obj.get();
|
|
requiresPop = value.requiresPop;
|
|
tmp2 = launchPadType;
|
|
tmp3 = launchPadPullTabState;
|
|
obj2 = launchPadType(launchPadPullTabState[6]);
|
|
width = obj2.getWindowDimensionsWorklet().width;
|
|
tmp4 = globalThis;
|
|
_Math = Math;
|
|
num = -1;
|
|
num2 = 0;
|
|
bound = Math.max(-1 * (absoluteX - value.initialTouchX), 0);
|
|
diff = absoluteX - obj.get().initialTouchX;
|
|
sum = obj.get().initialTouchX + translationX;
|
|
tmp8 = closure_1_0;
|
|
tmp9 = closure_2_11;
|
|
if (closure_1_0 !== closure_2_11.PULL_TAB) {
|
|
num2 = 40;
|
|
}
|
|
result = (sum - num2) / width;
|
|
if (requiresPop) {
|
|
num3 = 70;
|
|
if (bound <= 70) {
|
|
if (tmp8 !== tmp9.PULL_TAB) {
|
|
tmp21 = closure_1_4;
|
|
num5 = 0.5;
|
|
setLaunchPadPositionResult = closure_1_4.setLaunchPadPosition((bound - 0.5 * bound) / width);
|
|
} else {
|
|
tmp19 = closure_1_4;
|
|
result1 = closure_1_4.setLaunchPadPullTabTranslation(translationY);
|
|
}
|
|
tmp23 = launchPadSharedState;
|
|
obj1 = { positionOffsetX: null };
|
|
obj1.positionOffsetX = diff;
|
|
tmp3 = launchPadSharedState(tmp3[7])(obj, obj1);
|
|
}
|
|
}
|
|
tmp11 = launchPadSharedState;
|
|
tmp12 = launchPadSharedState(tmp3[7]);
|
|
if (requiresPop) {
|
|
obj7 = { requiresPop: false, positionOffsetX: null };
|
|
obj7.positionOffsetX = diff;
|
|
tmp12Result = tmp12(obj, obj7);
|
|
tmp2Result = tmp2(tmp3[8]);
|
|
runOnJSResult = tmp2Result.runOnJS(tmp2(tmp3[9]).triggerHapticFeedback);
|
|
tmp15Result = runOnJSResult(tmp2(tmp3[9]).HapticFeedbackTypes.IMPACT_MEDIUM);
|
|
} else {
|
|
obj8 = { positionOffsetX: null };
|
|
obj8.positionOffsetX = diff;
|
|
tmp12Result1 = tmp12(obj, obj8);
|
|
}
|
|
num4 = 1;
|
|
tmp17 = closure_1_4;
|
|
setLaunchPadPositionResult1 = closure_1_4.setLaunchPadPosition(1 - result);
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
const onTouchesMoveResult = onTouchesDownResult.onTouchesMove(X);
|
|
I.__closure = { gestureState, getWindowDimensionsWorklet: useWindowDimensionsSharedValue.getWindowDimensionsWorklet, POP_RESISTANCE: 0.5, launchPadType, LaunchPadTypes: constants, PIP_POP_DISTANCE: 70, updaters, updateSharedValueIfChanged: updateSharedValueIfChangedDefault, runOnJS: ReanimatedRexport.runOnJS, triggerHapticFeedback: HapticUtils.triggerHapticFeedback, HapticFeedbackTypes: HapticUtils.HapticFeedbackTypes };
|
|
I.__workletHash = 8073380735713;
|
|
I.__initData = __initData4;
|
|
let obj3 = { gestureState, getWindowDimensionsWorklet: useWindowDimensionsSharedValue.getWindowDimensionsWorklet, POP_RESISTANCE: 0.5, launchPadType, LaunchPadTypes: constants, PIP_POP_DISTANCE: 70, updaters, updateSharedValueIfChanged: updateSharedValueIfChangedDefault, runOnJS: ReanimatedRexport.runOnJS, triggerHapticFeedback: HapticUtils.triggerHapticFeedback, HapticFeedbackTypes: HapticUtils.HapticFeedbackTypes };
|
|
const fn2 = function v(velocityX) {
|
|
velocityX = velocityX.velocityX;
|
|
({ velocityY, translationX, translationY } = velocityX);
|
|
value = gestureState.get();
|
|
if (value.requiresPop) {
|
|
if (value.startShown) {
|
|
uiStore.setLaunchPadPosition(1);
|
|
} else {
|
|
if (launchPadType === constants.PULL_TAB) {
|
|
const _Math2 = Math;
|
|
if (Math.abs(translationX) <= isModalOpen) {
|
|
const _Math3 = Math;
|
|
if (Math.abs(translationY) <= tmp16) {
|
|
const _Math4 = Math;
|
|
if (Math.abs(velocityX) <= closure_6) {
|
|
const _Math5 = Math;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
uiStore.setLaunchPadPosition(0);
|
|
}
|
|
} else {
|
|
const _Math = Math;
|
|
if (Math.abs(velocityX) < closure_6) {
|
|
if (launchPadSharedState.get() >= 0.5) {
|
|
uiStore.setLaunchPadPosition(1);
|
|
} else {
|
|
uiStore.setLaunchPadPosition(0);
|
|
}
|
|
} else if (velocityX > 0) {
|
|
uiStore.setLaunchPadPosition(0);
|
|
} else {
|
|
uiStore.setLaunchPadPosition(1);
|
|
}
|
|
}
|
|
};
|
|
fn2.__closure = { gestureState, launchPadType, LaunchPadTypes: constants, LAUNCH_PAD_END_TRANSLATION_THRESHOLD, LAUNCH_PAD_END_VELOCITY_THRESHOLD, updaters, launchPadSharedState };
|
|
fn2.__workletHash = 13108163303108;
|
|
fn2.__initData = __initData3;
|
|
let obj4 = { gestureState, launchPadType, LaunchPadTypes: constants, LAUNCH_PAD_END_TRANSLATION_THRESHOLD, LAUNCH_PAD_END_VELOCITY_THRESHOLD, updaters, launchPadSharedState };
|
|
const onChangeResult = onTouchesMoveResult.onChange(I);
|
|
const fn3 = function b() {
|
|
value = gestureState.get();
|
|
if (value.active) {
|
|
if (1 === tmp3) {
|
|
uiStore.setLaunchPadPosition(1);
|
|
} else {
|
|
uiStore.setLaunchPadPosition(0);
|
|
}
|
|
}
|
|
launchPadSharedState(launchPadPullTabState[7])(gestureState, { active: false, initialLaunchPadPosition: 0, initialPullTabPosition: 0, initialTouchX: 0, initialTouchY: 0, positionOffsetX: 0, positionOffsetY: 0, startTime: -1 });
|
|
};
|
|
const onEndResult = onTouchesMoveResult.onChange(I).onEnd(fn2);
|
|
fn3.__closure = { gestureState, updaters, updateSharedValueIfChanged: updateSharedValueIfChangedDefault };
|
|
fn3.__workletHash = 11677880944102;
|
|
fn3.__initData = __initData2;
|
|
let obj5 = { gestureState, updaters, updateSharedValueIfChanged: updateSharedValueIfChangedDefault };
|
|
const fn4 = function t() {
|
|
launchPadSharedState(launchPadPullTabState[7])(gestureState, { active: false, initialLaunchPadPosition: 0, initialPullTabPosition: 0, initialTouchX: 0, initialTouchY: 0, positionOffsetX: 0, positionOffsetY: 0, startTime: -1 });
|
|
const result = uiStore.setLaunchPadPullTabScale(1);
|
|
};
|
|
const onTouchesCancelledResult = onEndResult.onTouchesCancelled(fn3);
|
|
fn4.__closure = { updateSharedValueIfChanged: updateSharedValueIfChangedDefault, gestureState, updaters };
|
|
fn4.__workletHash = 14463491499289;
|
|
fn4.__initData = __initData;
|
|
return onTouchesCancelledResult.onFinalize(fn4);
|
|
}, items);
|
|
return obj2;
|
|
};
|