decord/source/design/components/ContextMenu/native/ContextMenuConstants.native.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

25 lines
1.1 KiB
TypeScript

// Module ID: 8759
// Function ID: 8760
// Name: ContextMenuConstants
// Dependencies: [1115, 4574, 2]
// Module 8759 (ContextMenuConstants)
import HapticUtils from "HapticUtils" /* 4574 */;
import PlatformUtils_mod from "PlatformUtils" /* 1115 */;
import size from "module_2" /* 2 */;
let PlatformUtils = PlatformUtils_mod;
PlatformUtils = PlatformUtils.isIOS();
const HapticFeedbackTypes = HapticUtils.HapticFeedbackTypes;
const result = size.fileFinishedImporting("design/components/ContextMenu/native/ContextMenuConstants.native.tsx");
export const CONTEXT_MENU_LONG_PRESS_DURATION_MS = 300;
export const CONTEXT_MENU_OPEN_HAPTIC = PlatformUtils ? HapticFeedbackTypes.IMPACT_HEAVY : HapticFeedbackTypes.IMPACT_MEDIUM;
export const CONTEXT_MENU_ITEM_PADDING = 12;
export const CONTEXT_MENU_ITEM_BASE_HEIGHT = 42;
export const CONTEXT_MENU_DIVIDER_HEIGHT = 4;
export const CONTEXT_MENU_EDGE_OFFSET = 12;
export const CONTEXT_MENU_MIN_WIDTH = 220;
export const CONTEXT_MENU_OFFSET = 10;
export const CONTEXT_MENU_MIN_SCALE = 0.5;
export const CONTEXT_MENU_SPRING = { mass: 0.3, damping: 20, stiffness: 200, overshootClamping: true, restDisplacementThreshold: 0.001 };