Tldraw/packages/tldraw/src/lib/ui/constants.ts

16 wiersze
379 B
TypeScript

// Breakpoints for portrait, keep in sync with PORTRAIT_BREAKPOINT enum below!
export const PORTRAIT_BREAKPOINTS = [0, 390, 428, 468, 580, 640, 840, 1023]
// Mapping for above array -- needs to be kept in sync!
/** @public */
export enum PORTRAIT_BREAKPOINT {
ZERO = 0,
MOBILE_XXS = 1,
MOBILE_XS = 2,
MOBILE_SM = 3,
MOBILE = 4,
TABLET_SM = 5,
TABLET = 6,
DESKTOP = 7,
}