decord/source/6557_TransitionIOSSpec.js

57 lines
2.1 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6557
// Function ID: 6558
2026-07-20 16:05:17 +00:00
// Name: TransitionIOSSpec
2026-07-29 08:29:29 +00:00
// Dependencies: [17]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 6557 (TransitionIOSSpec)
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const Easing = get_ActivityIndicator.Easing;
2026-07-29 08:29:29 +00:00
let obj = { animation: "timing", config: null };
2026-07-20 16:05:17 +00:00
obj = { duration: 350, easing: Easing.out(require("module_5")) };
2026-07-29 08:29:29 +00:00
obj[1] = obj;
2026-08-24 06:08:38 +00:00
obj = { animation: "timing", config: { duration: 150, easing: Easing.in(Easing.linear) } };
2026-07-29 08:29:29 +00:00
const obj2 = { animation: "timing", config: null };
2026-07-20 16:05:17 +00:00
const obj1 = { duration: 150, easing: Easing.in(Easing.linear) };
2026-08-06 08:05:19 +00:00
obj2[1] = { duration: 425, easing: Easing.bezier(0.20833, 0.82, 0.25, 1) };
2026-07-29 08:29:29 +00:00
const obj4 = { animation: "timing", config: null };
2026-08-06 08:05:19 +00:00
const obj3 = { duration: 425, easing: Easing.bezier(0.20833, 0.82, 0.25, 1) };
obj4[1] = { duration: 400, easing: Easing.bezier(0.20833, 0.82, 0.25, 1) };
const obj6 = { animation: "timing", config: null };
const obj5 = { duration: 400, easing: Easing.bezier(0.20833, 0.82, 0.25, 1) };
obj6[1] = { duration: 450, easing: Easing.bezier(0.20833, 0.82, 0.25, 1) };
const obj8 = { animation: "timing", config: null };
const obj7 = { duration: 450, easing: Easing.bezier(0.20833, 0.82, 0.25, 1) };
obj8[1] = { duration: 450, easing: Easing.bezier(0.20833, 0.82, 0.25, 1) };
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
export const TransitionIOSSpec = { animation: "spring", config: { stiffness: 1000, damping: 500, mass: 3, overshootClamping: true, restDisplacementThreshold: 10, restSpeedThreshold: 10 } };
2026-07-20 16:05:17 +00:00
export const FadeInFromBottomAndroidSpec = obj;
export const FadeOutToBottomAndroidSpec = obj;
export const RevealFromBottomAndroidSpec = obj2;
export const ScaleFromCenterAndroidSpec = obj4;
2026-08-06 08:05:19 +00:00
export const FadeInFromRightAndroidSpec = obj6;
export const FadeOutToLeftAndroidSpec = obj8;
2026-07-20 16:05:17 +00:00
export const BottomSheetSlideInSpec = {
animation: "timing",
config: {
duration: 250,
easing(arg0) {
return Math.cos((arg0 + 1) * Math.PI) / 2 + 0.5;
}
}
};
export const BottomSheetSlideOutSpec = {
animation: "timing",
config: {
duration: 200,
2026-07-29 08:29:29 +00:00
easing(sum) {
2026-07-20 16:05:17 +00:00
let num = 1;
2026-07-29 08:29:29 +00:00
if (1 !== sum) {
2026-07-20 16:05:17 +00:00
const _Math = Math;
2026-07-29 08:29:29 +00:00
num = Math.pow(sum, 2);
2026-07-20 16:05:17 +00:00
}
return num;
}
}
};