* Placed eraser into shape switcher (top toolbar). Redesigned top toolbar. * Redesigned zoom and undo-redo buttons. * Started redesigning left toolbar. * Redesigned help dialog. * Colour picker now somewhat in line with new design * [WIP] Changed a bunch of icons. TODO: organise new icons. * [WIP] Organised a bunch of icons. Still some to do * [WIP] Started working on hamburger menu. * Fixed some bugs with hamburger menu. * Menu and left toolbar positioning. * Added some more items to hamburger menu. * Changed some icons. * Modal/dialog styling & bunch of fixes. * Some more dialog improvements & fixes. * Mobile menu changes. * Menu can now be closed with outside click. * Collab avatars and button changes. * Icon sizing. Left toolbar positioning. * Implemented welcome screen rendering logic. * [WIP] Welcome screen content + design. * Some more welcome screen content and design. * Merge fixes. * Tweaked icon set. * Welcome screen darkmode fix. * Content updates. * Various small fixes & adjustments. Moved language selection into menu. Fixed some problematic icons. Slightly moved encryption icon. * Sidebar header redesign. * Libraries content rendering logic + some styling. * Somem more library sidebar styling. * Publish library dialog styling. * scroll-back-to-content btn styling * ColorPicker positioning. * Library button styling. * ColorPicker positioning "fix". * Misc adjustments. * PenMode button changes. * Trying to make mobile somewhat usable. * Added a couple of icons. * Added some shortcuts. * Prevent welcome screen flickering. Fix issue with welcome screen interactivity. Don't show sidebar button when docked. * Icon sizing on smaller screens. * Sidebar styling changes. * Alignment button... well... alignments. * Fix inconsistent padding in left toolbar. * HintViewer changes. * Hamburger menu changes. * Move encryption badge back to its original pos. * Arrowhead changes. Active state, colours + stronger shadow. * Added new custom font. * Fixed bug with library button not rendering. * Fixed issue with lang selection colours. * Add tooltips for undo, redo. * Address some dark mode contrast issues. * (Re)introduce counter for selectedItems in sidebar * [WIP] Tweaked bounding box colour & padding. * Dashed bounding box for remote clients. * Some more bounding box tweaks. * Removed docking animation for now... * Address some RTL issues. * Welcome screen responsiveness. * use lighter selection color in dark mode & align naming * use rounded corners for transform handles * use lighter gray for welcomeScreen text in dark mode * disable selection on dialog buttons * change selection button icon * fix library item width being flexible * library: visually align spinner with first section heading * lint * fix scrollbar color in dark mode & make thinner * adapt properties panel max-height * add shrotcut label to save-to-current-file * fix unrelated `useOutsideClick` firing for active modal * add promo color to e+ menu item * fix type * lowered button size * fix transform handles raidus not accounting for zoom * attempt fix for excal logo on safari * final fix for excal logo on safari * fixing fhd resolution button sized * remove TODO shortcut * Collab related styling changes. Expanding avatar list no longer offsets top toolbar. Added active state & collaborator count badge for collab button. * Tweaked collab button active colours. * Added active style to collab btn in hamburger menu * Remove unnecessary comment. * Added back promo link for non (signed in) E+ users * Go to E+ button added for signed in E+ users. * Close menu & dropdown on modal close. * tweak icons & fix rendering on smaller sizes [part one] * align welcomeScreen icons with other UI * switch icon resize mq to `device-width` * disable welcomeScreen items `:hover` when selecting on canvas * change selection box color and style * reduce selection padding and fix group selection styling * improve collab cursor styling - make name borders round - hide status when "active" - remove black/gray colors * add Twitter to hamburger menu * align collab button * add shortcut for image export dialog * revert yarn.lock * fix more tabler icons * slightly better-looking penMode button * change penMode button & tooltip * revert hamburger menu icon * align padding on lang picker & canvas bg * updated robot txt to allow twitter bot and fb bot * added new OG and tweaked the OG state * add tooltip to collab button * align style for scroll-to-content button * fix pointer-events around toolbar * fix decor arrow positioning and RTL * fix welcomeScreen-item active state in dark mode * change `load` button copy * prevent shadow anim when opening a docked sidebar * update E+ links ga params * show redirect-to-eplus welcomeScreen subheading for signed-in users * make more generic * add ga for eplus redirect button * change copy and icons for hamburger export buttons * update snaps * trim the username to account for trailing spaces * tweaks around decor breakpoints * fix linear element editor test * remove .env change * remove `it.only` Co-authored-by: dwelle <luzar.david@gmail.com> Co-authored-by: Maielo <maielo.mv@gmail.com> Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
499 lines
15 KiB
TypeScript
499 lines
15 KiB
TypeScript
import {
|
|
PointerType,
|
|
ExcalidrawLinearElement,
|
|
NonDeletedExcalidrawElement,
|
|
NonDeleted,
|
|
TextAlign,
|
|
ExcalidrawElement,
|
|
GroupId,
|
|
ExcalidrawBindableElement,
|
|
Arrowhead,
|
|
ChartType,
|
|
FontFamilyValues,
|
|
FileId,
|
|
ExcalidrawImageElement,
|
|
Theme,
|
|
} from "./element/types";
|
|
import { SHAPES } from "./shapes";
|
|
import { Point as RoughPoint } from "roughjs/bin/geometry";
|
|
import { LinearElementEditor } from "./element/linearElementEditor";
|
|
import { SuggestedBinding } from "./element/binding";
|
|
import { ImportedDataState } from "./data/types";
|
|
import type App from "./components/App";
|
|
import type { ResolvablePromise, throttleRAF } from "./utils";
|
|
import { Spreadsheet } from "./charts";
|
|
import { Language } from "./i18n";
|
|
import { ClipboardData } from "./clipboard";
|
|
import { isOverScrollBars } from "./scene";
|
|
import { MaybeTransformHandleType } from "./element/transformHandles";
|
|
import Library from "./data/library";
|
|
import type { FileSystemHandle } from "./data/filesystem";
|
|
import type { ALLOWED_IMAGE_MIME_TYPES, MIME_TYPES } from "./constants";
|
|
|
|
export type Point = Readonly<RoughPoint>;
|
|
|
|
export type Collaborator = {
|
|
pointer?: {
|
|
x: number;
|
|
y: number;
|
|
};
|
|
button?: "up" | "down";
|
|
selectedElementIds?: AppState["selectedElementIds"];
|
|
username?: string | null;
|
|
userState?: UserIdleState;
|
|
color?: {
|
|
background: string;
|
|
stroke: string;
|
|
};
|
|
// The url of the collaborator's avatar, defaults to username intials
|
|
// if not present
|
|
avatarUrl?: string;
|
|
// user id. If supplied, we'll filter out duplicates when rendering user avatars.
|
|
id?: string;
|
|
};
|
|
|
|
export type DataURL = string & { _brand: "DataURL" };
|
|
|
|
export type BinaryFileData = {
|
|
mimeType:
|
|
| typeof ALLOWED_IMAGE_MIME_TYPES[number]
|
|
// future user or unknown file type
|
|
| typeof MIME_TYPES.binary;
|
|
id: FileId;
|
|
dataURL: DataURL;
|
|
created: number;
|
|
};
|
|
|
|
export type BinaryFileMetadata = Omit<BinaryFileData, "dataURL">;
|
|
|
|
export type BinaryFiles = Record<ExcalidrawElement["id"], BinaryFileData>;
|
|
|
|
export type LastActiveToolBeforeEraser =
|
|
| {
|
|
type: typeof SHAPES[number]["value"] | "eraser";
|
|
customType: null;
|
|
}
|
|
| {
|
|
type: "custom";
|
|
customType: string;
|
|
}
|
|
| null;
|
|
|
|
export type AppState = {
|
|
showWelcomeScreen: boolean;
|
|
isLoading: boolean;
|
|
errorMessage: string | null;
|
|
draggingElement: NonDeletedExcalidrawElement | null;
|
|
resizingElement: NonDeletedExcalidrawElement | null;
|
|
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
isBindingEnabled: boolean;
|
|
startBoundElement: NonDeleted<ExcalidrawBindableElement> | null;
|
|
suggestedBindings: SuggestedBinding[];
|
|
// element being edited, but not necessarily added to elements array yet
|
|
// (e.g. text element when typing into the input)
|
|
editingElement: NonDeletedExcalidrawElement | null;
|
|
editingLinearElement: LinearElementEditor | null;
|
|
activeTool:
|
|
| {
|
|
type: typeof SHAPES[number]["value"] | "eraser";
|
|
lastActiveToolBeforeEraser: LastActiveToolBeforeEraser;
|
|
locked: boolean;
|
|
customType: null;
|
|
}
|
|
| {
|
|
type: "custom";
|
|
customType: string;
|
|
lastActiveToolBeforeEraser: LastActiveToolBeforeEraser;
|
|
locked: boolean;
|
|
};
|
|
penMode: boolean;
|
|
penDetected: boolean;
|
|
exportBackground: boolean;
|
|
exportEmbedScene: boolean;
|
|
exportWithDarkMode: boolean;
|
|
exportScale: number;
|
|
currentItemStrokeColor: string;
|
|
currentItemBackgroundColor: string;
|
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
currentItemStrokeWidth: number;
|
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
currentItemRoughness: number;
|
|
currentItemOpacity: number;
|
|
currentItemFontFamily: FontFamilyValues;
|
|
currentItemFontSize: number;
|
|
currentItemTextAlign: TextAlign;
|
|
currentItemStrokeSharpness: ExcalidrawElement["strokeSharpness"];
|
|
currentItemStartArrowhead: Arrowhead | null;
|
|
currentItemEndArrowhead: Arrowhead | null;
|
|
currentItemLinearStrokeSharpness: ExcalidrawElement["strokeSharpness"];
|
|
viewBackgroundColor: string;
|
|
scrollX: number;
|
|
scrollY: number;
|
|
cursorButton: "up" | "down";
|
|
scrolledOutside: boolean;
|
|
name: string;
|
|
isResizing: boolean;
|
|
isRotating: boolean;
|
|
zoom: Zoom;
|
|
openMenu: "canvas" | "shape" | null;
|
|
openPopup:
|
|
| "canvasColorPicker"
|
|
| "backgroundColorPicker"
|
|
| "strokeColorPicker"
|
|
| null;
|
|
openSidebar: "library" | "customSidebar" | null;
|
|
openDialog: "imageExport" | "help" | null;
|
|
isSidebarDocked: boolean;
|
|
|
|
lastPointerDownWith: PointerType;
|
|
selectedElementIds: { [id: string]: boolean };
|
|
previousSelectedElementIds: { [id: string]: boolean };
|
|
shouldCacheIgnoreZoom: boolean;
|
|
toast: { message: string; closable?: boolean; duration?: number } | null;
|
|
zenModeEnabled: boolean;
|
|
theme: Theme;
|
|
gridSize: number | null;
|
|
viewModeEnabled: boolean;
|
|
|
|
/** top-most selected groups (i.e. does not include nested groups) */
|
|
selectedGroupIds: { [groupId: string]: boolean };
|
|
/** group being edited when you drill down to its constituent element
|
|
(e.g. when you double-click on a group's element) */
|
|
editingGroupId: GroupId | null;
|
|
width: number;
|
|
height: number;
|
|
offsetTop: number;
|
|
offsetLeft: number;
|
|
|
|
fileHandle: FileSystemHandle | null;
|
|
collaborators: Map<string, Collaborator>;
|
|
showStats: boolean;
|
|
currentChartType: ChartType;
|
|
pasteDialog:
|
|
| {
|
|
shown: false;
|
|
data: null;
|
|
}
|
|
| {
|
|
shown: true;
|
|
data: Spreadsheet;
|
|
};
|
|
/** imageElement waiting to be placed on canvas */
|
|
pendingImageElementId: ExcalidrawImageElement["id"] | null;
|
|
showHyperlinkPopup: false | "info" | "editor";
|
|
selectedLinearElement: LinearElementEditor | null;
|
|
};
|
|
|
|
export type NormalizedZoomValue = number & { _brand: "normalizedZoom" };
|
|
|
|
export type Zoom = Readonly<{
|
|
value: NormalizedZoomValue;
|
|
}>;
|
|
|
|
export type PointerCoords = Readonly<{
|
|
x: number;
|
|
y: number;
|
|
}>;
|
|
|
|
export type Gesture = {
|
|
pointers: Map<number, PointerCoords>;
|
|
lastCenter: { x: number; y: number } | null;
|
|
initialDistance: number | null;
|
|
initialScale: number | null;
|
|
};
|
|
|
|
export declare class GestureEvent extends UIEvent {
|
|
readonly rotation: number;
|
|
readonly scale: number;
|
|
}
|
|
|
|
// libraries
|
|
// -----------------------------------------------------------------------------
|
|
/** @deprecated legacy: do not use outside of migration paths */
|
|
export type LibraryItem_v1 = readonly NonDeleted<ExcalidrawElement>[];
|
|
/** @deprecated legacy: do not use outside of migration paths */
|
|
type LibraryItems_v1 = readonly LibraryItem_v1[];
|
|
|
|
/** v2 library item */
|
|
export type LibraryItem = {
|
|
id: string;
|
|
status: "published" | "unpublished";
|
|
elements: readonly NonDeleted<ExcalidrawElement>[];
|
|
/** timestamp in epoch (ms) */
|
|
created: number;
|
|
name?: string;
|
|
error?: string;
|
|
};
|
|
export type LibraryItems = readonly LibraryItem[];
|
|
export type LibraryItems_anyVersion = LibraryItems | LibraryItems_v1;
|
|
|
|
export type LibraryItemsSource =
|
|
| ((
|
|
currentLibraryItems: LibraryItems,
|
|
) =>
|
|
| Blob
|
|
| LibraryItems_anyVersion
|
|
| Promise<LibraryItems_anyVersion | Blob>)
|
|
| Blob
|
|
| LibraryItems_anyVersion
|
|
| Promise<LibraryItems_anyVersion | Blob>;
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// NOTE ready/readyPromise props are optional for host apps' sake (our own
|
|
// implem guarantees existence)
|
|
export type ExcalidrawAPIRefValue =
|
|
| ExcalidrawImperativeAPI
|
|
| {
|
|
readyPromise?: ResolvablePromise<ExcalidrawImperativeAPI>;
|
|
ready?: false;
|
|
};
|
|
|
|
export type ExcalidrawInitialDataState = Merge<
|
|
ImportedDataState,
|
|
{
|
|
libraryItems?:
|
|
| Required<ImportedDataState>["libraryItems"]
|
|
| Promise<Required<ImportedDataState>["libraryItems"]>;
|
|
}
|
|
>;
|
|
|
|
export interface ExcalidrawProps {
|
|
onChange?: (
|
|
elements: readonly ExcalidrawElement[],
|
|
appState: AppState,
|
|
files: BinaryFiles,
|
|
) => void;
|
|
initialData?:
|
|
| ExcalidrawInitialDataState
|
|
| null
|
|
| Promise<ExcalidrawInitialDataState | null>;
|
|
excalidrawRef?: ForwardRef<ExcalidrawAPIRefValue>;
|
|
onCollabButtonClick?: () => void;
|
|
isCollaborating?: boolean;
|
|
onPointerUpdate?: (payload: {
|
|
pointer: { x: number; y: number };
|
|
button: "down" | "up";
|
|
pointersMap: Gesture["pointers"];
|
|
}) => void;
|
|
onPaste?: (
|
|
data: ClipboardData,
|
|
event: ClipboardEvent | null,
|
|
) => Promise<boolean> | boolean;
|
|
renderTopRightUI?: (
|
|
isMobile: boolean,
|
|
appState: AppState,
|
|
) => JSX.Element | null;
|
|
renderFooter?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
|
|
langCode?: Language["code"];
|
|
viewModeEnabled?: boolean;
|
|
zenModeEnabled?: boolean;
|
|
gridModeEnabled?: boolean;
|
|
libraryReturnUrl?: string;
|
|
theme?: Theme;
|
|
name?: string;
|
|
renderCustomStats?: (
|
|
elements: readonly NonDeletedExcalidrawElement[],
|
|
appState: AppState,
|
|
) => JSX.Element;
|
|
UIOptions?: {
|
|
dockedSidebarBreakpoint?: number;
|
|
canvasActions?: CanvasActions;
|
|
};
|
|
detectScroll?: boolean;
|
|
handleKeyboardGlobally?: boolean;
|
|
onLibraryChange?: (libraryItems: LibraryItems) => void | Promise<any>;
|
|
autoFocus?: boolean;
|
|
generateIdForFile?: (file: File) => string | Promise<string>;
|
|
onLinkOpen?: (
|
|
element: NonDeletedExcalidrawElement,
|
|
event: CustomEvent<{
|
|
nativeEvent: MouseEvent | React.PointerEvent<HTMLCanvasElement>;
|
|
}>,
|
|
) => void;
|
|
onPointerDown?: (
|
|
activeTool: AppState["activeTool"],
|
|
pointerDownState: PointerDownState,
|
|
) => void;
|
|
onScrollChange?: (scrollX: number, scrollY: number) => void;
|
|
/**
|
|
* Render function that renders custom <Sidebar /> component.
|
|
*/
|
|
renderSidebar?: () => JSX.Element | null;
|
|
}
|
|
|
|
export type SceneData = {
|
|
elements?: ImportedDataState["elements"];
|
|
appState?: ImportedDataState["appState"];
|
|
collaborators?: Map<string, Collaborator>;
|
|
commitToHistory?: boolean;
|
|
};
|
|
|
|
export enum UserIdleState {
|
|
ACTIVE = "active",
|
|
AWAY = "away",
|
|
IDLE = "idle",
|
|
}
|
|
|
|
export type ExportOpts = {
|
|
saveFileToDisk?: boolean;
|
|
onExportToBackend?: (
|
|
exportedElements: readonly NonDeletedExcalidrawElement[],
|
|
appState: AppState,
|
|
files: BinaryFiles,
|
|
canvas: HTMLCanvasElement | null,
|
|
) => void;
|
|
renderCustomUI?: (
|
|
exportedElements: readonly NonDeletedExcalidrawElement[],
|
|
appState: AppState,
|
|
files: BinaryFiles,
|
|
canvas: HTMLCanvasElement | null,
|
|
) => JSX.Element;
|
|
};
|
|
|
|
// NOTE at the moment, if action name coressponds to canvasAction prop, its
|
|
// truthiness value will determine whether the action is rendered or not
|
|
// (see manager renderAction). We also override canvasAction values in
|
|
// excalidraw package index.tsx.
|
|
type CanvasActions = {
|
|
changeViewBackgroundColor?: boolean;
|
|
clearCanvas?: boolean;
|
|
export?: false | ExportOpts;
|
|
loadScene?: boolean;
|
|
saveToActiveFile?: boolean;
|
|
toggleTheme?: boolean | null;
|
|
saveAsImage?: boolean;
|
|
};
|
|
|
|
export type AppProps = Merge<
|
|
ExcalidrawProps,
|
|
{
|
|
UIOptions: {
|
|
canvasActions: Required<CanvasActions> & { export: ExportOpts };
|
|
dockedSidebarBreakpoint?: number;
|
|
};
|
|
detectScroll: boolean;
|
|
handleKeyboardGlobally: boolean;
|
|
isCollaborating: boolean;
|
|
children?: React.ReactNode;
|
|
}
|
|
>;
|
|
|
|
/** A subset of App class properties that we need to use elsewhere
|
|
* in the app, eg Manager. Factored out into a separate type to keep DRY. */
|
|
export type AppClassProperties = {
|
|
props: AppProps;
|
|
canvas: HTMLCanvasElement | null;
|
|
focusContainer(): void;
|
|
library: Library;
|
|
imageCache: Map<
|
|
FileId,
|
|
{
|
|
image: HTMLImageElement | Promise<HTMLImageElement>;
|
|
mimeType: typeof ALLOWED_IMAGE_MIME_TYPES[number];
|
|
}
|
|
>;
|
|
files: BinaryFiles;
|
|
device: App["device"];
|
|
scene: App["scene"];
|
|
};
|
|
|
|
export type PointerDownState = Readonly<{
|
|
// The first position at which pointerDown happened
|
|
origin: Readonly<{ x: number; y: number }>;
|
|
// Same as "origin" but snapped to the grid, if grid is on
|
|
originInGrid: Readonly<{ x: number; y: number }>;
|
|
// Scrollbar checks
|
|
scrollbars: ReturnType<typeof isOverScrollBars>;
|
|
// The previous pointer position
|
|
lastCoords: { x: number; y: number };
|
|
// map of original elements data
|
|
originalElements: Map<string, NonDeleted<ExcalidrawElement>>;
|
|
resize: {
|
|
// Handle when resizing, might change during the pointer interaction
|
|
handleType: MaybeTransformHandleType;
|
|
// This is determined on the initial pointer down event
|
|
isResizing: boolean;
|
|
// This is determined on the initial pointer down event
|
|
offset: { x: number; y: number };
|
|
// This is determined on the initial pointer down event
|
|
arrowDirection: "origin" | "end";
|
|
// This is a center point of selected elements determined on the initial pointer down event (for rotation only)
|
|
center: { x: number; y: number };
|
|
};
|
|
hit: {
|
|
// The element the pointer is "hitting", is determined on the initial
|
|
// pointer down event
|
|
element: NonDeleted<ExcalidrawElement> | null;
|
|
// The elements the pointer is "hitting", is determined on the initial
|
|
// pointer down event
|
|
allHitElements: NonDeleted<ExcalidrawElement>[];
|
|
// This is determined on the initial pointer down event
|
|
wasAddedToSelection: boolean;
|
|
// Whether selected element(s) were duplicated, might change during the
|
|
// pointer interaction
|
|
hasBeenDuplicated: boolean;
|
|
hasHitCommonBoundingBoxOfSelectedElements: boolean;
|
|
};
|
|
withCmdOrCtrl: boolean;
|
|
drag: {
|
|
// Might change during the pointer interaction
|
|
hasOccurred: boolean;
|
|
// Might change during the pointer interaction
|
|
offset: { x: number; y: number } | null;
|
|
};
|
|
// We need to have these in the state so that we can unsubscribe them
|
|
eventListeners: {
|
|
// It's defined on the initial pointer down event
|
|
onMove: null | ReturnType<typeof throttleRAF>;
|
|
// It's defined on the initial pointer down event
|
|
onUp: null | ((event: PointerEvent) => void);
|
|
// It's defined on the initial pointer down event
|
|
onKeyDown: null | ((event: KeyboardEvent) => void);
|
|
// It's defined on the initial pointer down event
|
|
onKeyUp: null | ((event: KeyboardEvent) => void);
|
|
};
|
|
boxSelection: {
|
|
hasOccurred: boolean;
|
|
};
|
|
elementIdsToErase: {
|
|
[key: ExcalidrawElement["id"]]: {
|
|
opacity: ExcalidrawElement["opacity"];
|
|
erase: boolean;
|
|
};
|
|
};
|
|
}>;
|
|
|
|
export type ExcalidrawImperativeAPI = {
|
|
updateScene: InstanceType<typeof App>["updateScene"];
|
|
updateLibrary: InstanceType<typeof Library>["updateLibrary"];
|
|
resetScene: InstanceType<typeof App>["resetScene"];
|
|
getSceneElementsIncludingDeleted: InstanceType<
|
|
typeof App
|
|
>["getSceneElementsIncludingDeleted"];
|
|
history: {
|
|
clear: InstanceType<typeof App>["resetHistory"];
|
|
};
|
|
scrollToContent: InstanceType<typeof App>["scrollToContent"];
|
|
getSceneElements: InstanceType<typeof App>["getSceneElements"];
|
|
getAppState: () => InstanceType<typeof App>["state"];
|
|
getFiles: () => InstanceType<typeof App>["files"];
|
|
refresh: InstanceType<typeof App>["refresh"];
|
|
setToast: InstanceType<typeof App>["setToast"];
|
|
addFiles: (data: BinaryFileData[]) => void;
|
|
readyPromise: ResolvablePromise<ExcalidrawImperativeAPI>;
|
|
ready: true;
|
|
id: string;
|
|
setActiveTool: InstanceType<typeof App>["setActiveTool"];
|
|
setCursor: InstanceType<typeof App>["setCursor"];
|
|
resetCursor: InstanceType<typeof App>["resetCursor"];
|
|
toggleMenu: InstanceType<typeof App>["toggleMenu"];
|
|
};
|
|
|
|
export type Device = Readonly<{
|
|
isSmScreen: boolean;
|
|
isMobile: boolean;
|
|
isTouchScreen: boolean;
|
|
canDeviceFitSidebar: boolean;
|
|
}>;
|