mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: make device breakpoints more specific (#7243)
This commit is contained in:
parent
18a7b97515
commit
b1037b342d
28 changed files with 164 additions and 121 deletions
12
src/types.ts
12
src/types.ts
|
@ -667,11 +667,15 @@ export type ExcalidrawImperativeAPI = {
|
|||
};
|
||||
|
||||
export type Device = Readonly<{
|
||||
isSmScreen: boolean;
|
||||
isMobile: boolean;
|
||||
viewport: {
|
||||
isMobile: boolean;
|
||||
isLandscape: boolean;
|
||||
};
|
||||
editor: {
|
||||
isMobile: boolean;
|
||||
canFitSidebar: boolean;
|
||||
};
|
||||
isTouchScreen: boolean;
|
||||
canDeviceFitSidebar: boolean;
|
||||
isLandscape: boolean;
|
||||
}>;
|
||||
|
||||
type FrameNameBounds = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue