@zsviczian/excalidraw 0.10.0-obsidian-25 → 0.10.0-obsidian-26
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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { RoughCanvas } from "roughjs/bin/canvas";
|
|
3
3
|
import { ActionManager } from "../actions/manager";
|
|
4
|
-
import { ExcalidrawElement } from "../element/types";
|
|
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";
|
|
7
8
|
export declare const useIsMobile: () => boolean;
|
|
8
9
|
export declare const useExcalidrawContainer: () => {
|
|
9
10
|
container: HTMLDivElement | null;
|
|
@@ -33,7 +34,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
33
34
|
render(): JSX.Element;
|
|
34
35
|
focusContainer: AppClassProperties["focusContainer"];
|
|
35
36
|
getSceneElementsIncludingDeleted: () => readonly ExcalidrawElement[];
|
|
36
|
-
getSceneElements: () => readonly
|
|
37
|
+
getSceneElements: () => readonly NonDeletedExcalidrawElement[];
|
|
37
38
|
private syncActionResult;
|
|
38
39
|
private onBlur;
|
|
39
40
|
private onUnload;
|
|
@@ -71,6 +72,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
71
72
|
toggleStats: () => void;
|
|
72
73
|
scrollToContent: (target?: ExcalidrawElement | readonly ExcalidrawElement[]) => void;
|
|
73
74
|
zoomToFit: (target?: readonly ExcalidrawElement[], maxZoom?: number, margin?: number) => void;
|
|
75
|
+
resizeSingleElement: (stateAtResizeStart: NonDeletedExcalidrawElement, shouldMaintainAspectRatio: boolean, element: NonDeletedExcalidrawElement, transformHandleDirection: TransformHandleDirection, shouldResizeFromCenter: boolean, pointerX: number, pointerY: number) => void;
|
|
74
76
|
clearToast: () => void;
|
|
75
77
|
setToastMessage: (toastMessage: string) => void;
|
|
76
78
|
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 } from "./element/transformHandles";
|
|
14
|
+
import { MaybeTransformHandleType, TransformHandleDirection } 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,6 +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
|
+
resizeSingleElement: (stateAtResizeStart: NonDeletedExcalidrawElement, shouldMaintainAspectRatio: boolean, element: NonDeletedExcalidrawElement, transformHandleDirection: TransformHandleDirection, shouldResizeFromCenter: boolean, pointerX: number, pointerY: number) => void;
|
|
329
330
|
readyPromise: ResolvablePromise<ExcalidrawImperativeAPI>;
|
|
330
331
|
ready: true;
|
|
331
332
|
id: string;
|