60 lines
1.4 KiB
TypeScript
60 lines
1.4 KiB
TypeScript
// Metro module 14921 (f14922).
|
|
import { STANDARD_EASING, DECELERATED_EASING } from "../../../design/void/native";
|
|
export function isTimingConfig(a0) {
|
|
return a0 != null && a0.duration != null;
|
|
}
|
|
isTimingConfig.__closure = {};
|
|
isTimingConfig.__workletHash = 14033676769786;
|
|
isTimingConfig.__initData = {
|
|
code: "function isTimingConfig_PanelsConfigTsx1(obj){return obj!=null&&obj.duration!=null;}"
|
|
};
|
|
const r20 = {
|
|
mass: 1,
|
|
stiffness: 250,
|
|
overshootClamping: true,
|
|
restSpeedThreshold: 0.001,
|
|
restDisplacementThreshold: 0.001
|
|
};
|
|
const swipeSidePanelOpen = {
|
|
damping: 30,
|
|
...r20
|
|
};
|
|
const swipeSidePanelClose = {
|
|
damping: 20,
|
|
...r20
|
|
};
|
|
const nonSwipeSidePanelOpen = {
|
|
duration: 250,
|
|
easing: STANDARD_EASING
|
|
};
|
|
const nonSwipeSidePanelClose = {
|
|
duration: 200,
|
|
easing: STANDARD_EASING
|
|
};
|
|
const r33 = {
|
|
swipeSidePanelOpen,
|
|
swipeSidePanelClose,
|
|
nonSwipeSidePanelOpen,
|
|
nonSwipeSidePanelClose,
|
|
touchSlopForPanGesture: 8,
|
|
minFlingVelocityX: 240
|
|
};
|
|
const r37 = {
|
|
swipeSidePanelOpen: {
|
|
duration: 250,
|
|
easing: DECELERATED_EASING
|
|
},
|
|
swipeSidePanelClose: {
|
|
duration: 200,
|
|
easing: DECELERATED_EASING
|
|
},
|
|
nonSwipeSidePanelOpen,
|
|
nonSwipeSidePanelClose,
|
|
touchSlopForPanGesture: 8,
|
|
minFlingVelocityX: 240
|
|
};
|
|
export const SIDE_PANEL_OPEN_DURATION_MS = 250;
|
|
export const SIDE_PANEL_CLOSE_DURATION_MS = 200;
|
|
export { r33 as DEFAULT_PANELS_ANIMATION_CONFIG };
|
|
export { r37 as ANDROID_PANELS_ANIMATION_CONFIG };
|