@zsviczian/excalidraw 0.18.0-51 → 0.18.0-52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -26,9 +26,9 @@ export declare const isChrome: boolean;
|
|
|
26
26
|
export declare const isSafari: boolean;
|
|
27
27
|
export declare const isIOS: boolean;
|
|
28
28
|
export declare const isBrave: () => boolean;
|
|
29
|
-
export declare const isMobileBreakpoint: (width: number, height: number) => boolean;
|
|
29
|
+
export declare const isMobileBreakpoint: (width: number, height: number, allowMobile: boolean) => boolean;
|
|
30
30
|
export declare const isTabletBreakpoint: (editorWidth: number, editorHeight: number) => boolean;
|
|
31
|
-
export declare const getFormFactor: (editorWidth: number, editorHeight: number) => EditorInterface["formFactor"];
|
|
31
|
+
export declare const getFormFactor: (editorWidth: number, editorHeight: number, allowMobile: boolean) => EditorInterface["formFactor"];
|
|
32
32
|
export declare const deriveStylesPanelMode: (editorInterface: EditorInterface) => StylesPanelMode;
|
|
33
33
|
export declare const createUserAgentDescriptor: (userAgentString: string) => EditorInterface["userAgent"];
|
|
34
34
|
export declare const loadDesktopUIModePreference: () => any;
|
|
@@ -401,6 +401,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
401
401
|
* NOTE if file already exists in editor state, the file data is not updated
|
|
402
402
|
* */
|
|
403
403
|
addFiles: ExcalidrawImperativeAPI["addFiles"];
|
|
404
|
+
setMobileModeAllowed: (allow: boolean) => void;
|
|
404
405
|
private debounceClearHighlightSearchResults;
|
|
405
406
|
selectElements: ExcalidrawImperativeAPI["selectElements"];
|
|
406
407
|
bringToFront: ExcalidrawImperativeAPI["bringToFront"];
|
|
@@ -709,6 +709,7 @@ export interface ExcalidrawImperativeAPI {
|
|
|
709
709
|
isTouchScreen: InstanceType<typeof App>["isTouchScreen"];
|
|
710
710
|
setTrayModeEnabled: InstanceType<typeof App>["setTrayModeEnabled"];
|
|
711
711
|
setDesktopUIMode: InstanceType<typeof App>["setDesktopUIMode"];
|
|
712
|
+
setMobileModeAllowed: InstanceType<typeof App>["setMobileModeAllowed"];
|
|
712
713
|
isTrayModeEnabled: InstanceType<typeof App>["isTrayModeEnabled"];
|
|
713
714
|
getColorAtScenePoint: InstanceType<typeof App>["getColorAtScenePoint"];
|
|
714
715
|
startLineEditor: InstanceType<typeof App>["startLineEditor"];
|