@zsviczian/excalidraw 0.10.0-obsidian-26 → 0.10.0-obsidian-30
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
|
@@ -4,7 +4,6 @@ import { ActionManager } from "../actions/manager";
|
|
|
4
4
|
import { ExcalidrawElement, NonDeletedExcalidrawElement } from "../element/types";
|
|
5
5
|
import History from "../history";
|
|
6
6
|
import { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles, LibraryItems, SceneData } from "../types";
|
|
7
|
-
import { TransformHandleDirection } from "../element/transformHandles";
|
|
8
7
|
export declare const useIsMobile: () => boolean;
|
|
9
8
|
export declare const useExcalidrawContainer: () => {
|
|
10
9
|
container: HTMLDivElement | null;
|
|
@@ -72,7 +71,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
72
71
|
toggleStats: () => void;
|
|
73
72
|
scrollToContent: (target?: ExcalidrawElement | readonly ExcalidrawElement[]) => void;
|
|
74
73
|
zoomToFit: (target?: readonly ExcalidrawElement[], maxZoom?: number, margin?: number) => void;
|
|
75
|
-
|
|
74
|
+
updateContainerSize: (containers: NonDeletedExcalidrawElement[]) => void;
|
|
76
75
|
clearToast: () => void;
|
|
77
76
|
setToastMessage: (toastMessage: string) => void;
|
|
78
77
|
restoreFileFromShare: () => Promise<void>;
|
package/types/types.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { Spreadsheet } from "./charts";
|
|
|
11
11
|
import { Language } from "./i18n";
|
|
12
12
|
import { ClipboardData } from "./clipboard";
|
|
13
13
|
import { isOverScrollBars } from "./scene";
|
|
14
|
-
import { MaybeTransformHandleType
|
|
14
|
+
import { MaybeTransformHandleType } from "./element/transformHandles";
|
|
15
15
|
import Library from "./data/library";
|
|
16
16
|
import type { FileSystemHandle } from "./data/filesystem";
|
|
17
17
|
import type { ALLOWED_IMAGE_MIME_TYPES, MIME_TYPES } from "./constants";
|
|
@@ -326,7 +326,7 @@ export declare type ExcalidrawImperativeAPI = {
|
|
|
326
326
|
importLibrary: InstanceType<typeof App>["importLibraryFromUrl"];
|
|
327
327
|
setToastMessage: InstanceType<typeof App>["setToastMessage"];
|
|
328
328
|
addFiles: (data: BinaryFileData[]) => void;
|
|
329
|
-
|
|
329
|
+
updateContainerSize: InstanceType<typeof App>["updateContainerSize"];
|
|
330
330
|
readyPromise: ResolvablePromise<ExcalidrawImperativeAPI>;
|
|
331
331
|
ready: true;
|
|
332
332
|
id: string;
|