UNPKG

tldraw

Version:

A tiny little drawing editor.

8 lines (7 loc) 1.47 kB
{ "version": 3, "sources": ["../../../src/lib/ui/constants.ts"], "sourcesContent": ["// Breakpoints for portrait, keep in sync with PORTRAIT_BREAKPOINT enum below!\nexport const PORTRAIT_BREAKPOINTS = [0, 389, 436, 476, 580, 640, 840, 1023]\n\n// Mapping for above array -- needs to be kept in sync!\n/** @public */\nexport const PORTRAIT_BREAKPOINT = {\n\tZERO: 0,\n\tMOBILE_XXS: 1,\n\tMOBILE_XS: 2,\n\tMOBILE_SM: 3,\n\tMOBILE: 4,\n\tTABLET_SM: 5,\n\tTABLET: 6,\n\tDESKTOP: 7,\n} as const\n/** @public */\nexport type PORTRAIT_BREAKPOINT = (typeof PORTRAIT_BREAKPOINT)[keyof typeof PORTRAIT_BREAKPOINT]\n\n/** @public */\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport declare namespace PORTRAIT_BREAKPOINT {\n\texport type ZERO = typeof PORTRAIT_BREAKPOINT.ZERO\n\texport type MOBILE_XXS = typeof PORTRAIT_BREAKPOINT.MOBILE_XXS\n\texport type MOBILE_XS = typeof PORTRAIT_BREAKPOINT.MOBILE_XS\n\texport type MOBILE_SM = typeof PORTRAIT_BREAKPOINT.MOBILE_SM\n\texport type MOBILE = typeof PORTRAIT_BREAKPOINT.MOBILE\n\texport type TABLET_SM = typeof PORTRAIT_BREAKPOINT.TABLET_SM\n\texport type TABLET = typeof PORTRAIT_BREAKPOINT.TABLET\n\texport type DESKTOP = typeof PORTRAIT_BREAKPOINT.DESKTOP\n}\n"], "mappings": "AACO,MAAM,uBAAuB,CAAC,GAAG,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,IAAI;AAInE,MAAM,sBAAsB;AAAA,EAClC,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,SAAS;AACV;", "names": [] }