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

40 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10415
// Function ID: 80504
2026-07-20 16:05:17 +00:00
// Name: LAUNCH_PAD_SPRING_CONFIG
2026-07-25 08:10:48 +00:00
// Dependencies: [27, 477, 4111, 2]
2026-07-23 10:11:24 +00:00
2026-07-27 11:26:19 +00:00
// Module 10415 (LAUNCH_PAD_SPRING_CONFIG)
2026-07-23 10:11:24 +00:00
import { Dimensions } from "get ActivityIndicator";
import set from "set";
import set from "getSystemVersion";
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()) {
const _module1 = require("getSystemVersion");
2026-07-20 16:05:17 +00:00
let num3 = 13;
if (!_module1.isIpadOS()) {
const _Math = Math;
num3 = 0.09 * Math.min(size.width, size.height);
}
num = num3;
}
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" };