decord/source/modules/launchpad/native/LaunchPadConstants.tsx

41 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 10512
// Function ID: 10513
2026-07-20 16:05:17 +00:00
// Name: LAUNCH_PAD_SPRING_CONFIG
2026-08-25 06:04:03 +00:00
// Dependencies: [17, 500, 4359, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 10512 (LAUNCH_PAD_SPRING_CONFIG)
2026-08-24 06:08:38 +00:00
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import DCDDeviceManager from "DCDDeviceManager" /* 4359 */;
2026-08-24 06:08:38 +00:00
import set from "set" /* 500 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const Dimensions = get_ActivityIndicator.Dimensions;
2026-07-20 16:05:17 +00:00
const size = Dimensions.get("screen");
let num = 24;
2026-07-23 10:11:24 +00:00
if (!set.isAndroid()) {
2026-08-24 06:08:38 +00:00
const _module1 = DCDDeviceManager;
2026-07-29 08:29:29 +00:00
let num2 = 13;
2026-07-20 16:05:17 +00:00
if (!_module1.isIpadOS()) {
const _Math = Math;
2026-07-29 08:29:29 +00:00
num2 = 0.09 * Math.min(size.width, size.height);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
num = num2;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const result = set.fileFinishedImporting("modules/launchpad/native/LaunchPadConstants.tsx");
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
export const LAUNCH_PAD_SPRING_CONFIG = { damping: 20, stiffness: 280, mass: 0.5, restSpeedThreshold: 0.001, restDisplacementThreshold: 0.001 };
2026-07-20 16:05:17 +00:00
export const LAUNCH_PAD_PULL_TAB_HEIGHT = 96;
export const LAUNCH_PAD_PULL_TAB_WIDTH = 26;
export const LAUNCH_PAD_PULL_TAB_MINIMIZED_OFFSET = 18;
export const LAUNCH_PAD_PULL_TAB_BORDER_RADIUS = 13;
export const LAUNCH_PAD_PULL_TAB_SCALE_FACTOR = 1.1;
export const LAUNCH_PAD_PULL_TAB_SCALE_OFFSET = 4.800000000000004;
export const LAUNCH_PAD_PULL_TAB_POSITION_MARGIN = 32;
export const LAUNCH_PAD_PULL_TAB_MAX_POSITION = 300.8;
export const LAUNCH_PAD_PULL_TAB_INITIAL_POSITION = 150.4;
export const LAUNCH_PAD_MARGIN = 16;
export const LAUNCH_PAD_PULL_TAB_HIT_SLOP = 16;
export const LAUNCH_PAD_END_TRANSLATION_THRESHOLD = 14;
export const LAUNCH_PAD_END_VELOCITY_THRESHOLD = 100;
export const LAUNCH_PAD_EDGE_GESTURE_AFFORDANCE = num;
export const LaunchPadTypes = { GESTURE_FULL: "gesture-full", GESTURE_EDGE: "gesture-edge", PULL_TAB: "pull-tab", DISABLED: "disabled" };