42 lines
1.7 KiB
TypeScript
42 lines
1.7 KiB
TypeScript
// Module ID: 10659
|
|
// Function ID: 10660
|
|
// Name: LaunchPadConstants
|
|
// Dependencies: [17, 1382, 5068, 2]
|
|
|
|
// Module 10659 (LaunchPadConstants)
|
|
import react_native from "react-native" /* 17 */;
|
|
import DeviceUtils from "DeviceUtils" /* 5068 */;
|
|
import PlatformUtils from "PlatformUtils" /* 1382 */;
|
|
import size_mod from "module_2" /* 2 */;
|
|
|
|
const Dimensions = react_native.Dimensions;
|
|
let size = Dimensions.get("screen");
|
|
let num = 24;
|
|
if (!PlatformUtils.isAndroid()) {
|
|
const _module1 = DeviceUtils;
|
|
let num2 = 13;
|
|
if (!_module1.isIpadOS()) {
|
|
const _Math = Math;
|
|
num2 = 0.09 * Math.min(size.width, size.height);
|
|
}
|
|
num = num2;
|
|
}
|
|
size = size_mod;
|
|
const result = size.fileFinishedImporting("modules/launchpad/native/LaunchPadConstants.tsx");
|
|
|
|
export const LAUNCH_PAD_SPRING_CONFIG = { damping: 20, stiffness: 280, mass: 0.5, restSpeedThreshold: 0.001, restDisplacementThreshold: 0.001 };
|
|
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" };
|