@dwelle/excalidraw 0.5.0-ef89e88 → 0.5.0-efddbb7
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/CHANGELOG.md +81 -0
- package/README.md +111 -14
- package/dist/dev/{chunk-UPL5GSGP.js → chunk-AVAC6BVM.js} +11 -2
- package/dist/dev/chunk-AVAC6BVM.js.map +7 -0
- package/dist/dev/{chunk-VLJRILK3.js → chunk-OKDHCI5V.js} +1844 -1440
- package/dist/dev/chunk-OKDHCI5V.js.map +7 -0
- package/dist/dev/{chunk-H5SL5I5R.js → chunk-UEBEBUE2.js} +2 -2
- package/dist/dev/components/TTDDialog/{CodeMirrorEditor-65RQRK4A.js → CodeMirrorEditor-2YIEAZU7.js} +2 -2
- package/dist/dev/data/{image-JR54FB4B.js → image-O7OJXMIJ.js} +3 -3
- package/dist/dev/index.css +85 -43
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +2939 -2010
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-IZ5JJCQN.js → en-XVKSJYG2.js} +4 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-5EYFVTC7.js +34 -0
- package/dist/prod/{chunk-MYTKOPOQ.js → chunk-T6UH5ZKV.js} +5 -5
- package/dist/prod/{chunk-B47HEJUH.js → chunk-Y6NXDCR7.js} +1 -1
- package/dist/prod/components/TTDDialog/{CodeMirrorEditor-B64TEOC3.js → CodeMirrorEditor-JV2LT6ZS.js} +1 -1
- package/dist/prod/data/image-XRO5552B.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +28 -28
- package/dist/prod/locales/en-BNQNBQ43.js +1 -0
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/index.d.ts +2 -0
- package/dist/types/common/src/utils.d.ts +1 -3
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +5 -3
- package/dist/types/element/src/bounds.d.ts +4 -2
- package/dist/types/element/src/duplicate.d.ts +1 -0
- package/dist/types/element/src/frame.d.ts +7 -6
- package/dist/types/element/src/linearElementEditor.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +2 -2
- package/dist/types/element/src/shape.d.ts +1 -1
- package/dist/types/element/src/typeChecks.d.ts +1 -0
- package/dist/types/element/src/utils.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +30 -30
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +9 -9
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionExport.d.ts +48 -323
- package/dist/types/excalidraw/actions/actionFrame.d.ts +12 -12
- package/dist/types/excalidraw/actions/actionGroup.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionLink.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionMenu.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionProperties.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionStyles.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +3 -3
- package/dist/types/excalidraw/actions/index.d.ts +1 -0
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +1 -0
- package/dist/types/excalidraw/clipboard.d.ts +2 -3
- package/dist/types/excalidraw/components/App.d.ts +41 -10
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +1 -1
- package/dist/types/excalidraw/components/Toast.d.ts +8 -4
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -0
- package/dist/types/excalidraw/components/shapes.d.ts +7 -0
- package/dist/types/excalidraw/data/blob.d.ts +13 -14
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +2 -3
- package/dist/types/excalidraw/data/json.d.ts +21 -13
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/index.d.ts +23 -3
- package/dist/types/excalidraw/scene/Renderer.d.ts +425 -19
- package/dist/types/excalidraw/types.d.ts +76 -5
- package/dist/types/fractional-indexing/src/index.d.ts +29 -0
- package/dist/types/math/src/constants.d.ts +0 -1
- package/dist/types/math/src/curve.d.ts +4 -1
- package/package.json +4 -5
- package/dist/dev/chunk-UPL5GSGP.js.map +0 -7
- package/dist/dev/chunk-VLJRILK3.js.map +0 -7
- package/dist/prod/chunk-ZTGTHG3M.js +0 -34
- package/dist/prod/data/image-I4FBW6ZT.js +0 -1
- package/dist/prod/locales/en-4R6EP6SP.js +0 -1
- package/dist/types/utils/src/index.d.ts +0 -4
- /package/dist/dev/{chunk-H5SL5I5R.js.map → chunk-UEBEBUE2.js.map} +0 -0
- /package/dist/dev/components/TTDDialog/{CodeMirrorEditor-65RQRK4A.js.map → CodeMirrorEditor-2YIEAZU7.js.map} +0 -0
- /package/dist/dev/data/{image-JR54FB4B.js.map → image-O7OJXMIJ.js.map} +0 -0
- /package/dist/dev/locales/{en-IZ5JJCQN.js.map → en-XVKSJYG2.js.map} +0 -0
|
@@ -39,9 +39,9 @@ export declare const actionToggleElementLock: {
|
|
|
39
39
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
42
43
|
bindingPreference: "enabled" | "disabled";
|
|
43
44
|
isMidpointSnappingEnabled: boolean;
|
|
44
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
45
45
|
suggestedBinding: {
|
|
46
46
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
47
47
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -129,7 +129,7 @@ export declare const actionToggleElementLock: {
|
|
|
129
129
|
selectedElementsAreBeingDragged: boolean;
|
|
130
130
|
shouldCacheIgnoreZoom: boolean;
|
|
131
131
|
toast: {
|
|
132
|
-
message:
|
|
132
|
+
message: React.ReactNode;
|
|
133
133
|
closable?: boolean;
|
|
134
134
|
duration?: number;
|
|
135
135
|
} | null;
|
|
@@ -144,7 +144,7 @@ export declare const actionToggleElementLock: {
|
|
|
144
144
|
height: number;
|
|
145
145
|
offsetTop: number;
|
|
146
146
|
offsetLeft: number;
|
|
147
|
-
fileHandle:
|
|
147
|
+
fileHandle: FileSystemFileHandle | null;
|
|
148
148
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
149
149
|
stats: {
|
|
150
150
|
open: boolean;
|
|
@@ -210,9 +210,9 @@ export declare const actionUnlockAllElements: {
|
|
|
210
210
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
211
211
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
212
212
|
isBindingEnabled: boolean;
|
|
213
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
213
214
|
bindingPreference: "enabled" | "disabled";
|
|
214
215
|
isMidpointSnappingEnabled: boolean;
|
|
215
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
216
216
|
suggestedBinding: {
|
|
217
217
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
218
218
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -300,7 +300,7 @@ export declare const actionUnlockAllElements: {
|
|
|
300
300
|
selectedElementsAreBeingDragged: boolean;
|
|
301
301
|
shouldCacheIgnoreZoom: boolean;
|
|
302
302
|
toast: {
|
|
303
|
-
message:
|
|
303
|
+
message: React.ReactNode;
|
|
304
304
|
closable?: boolean;
|
|
305
305
|
duration?: number;
|
|
306
306
|
} | null;
|
|
@@ -315,7 +315,7 @@ export declare const actionUnlockAllElements: {
|
|
|
315
315
|
height: number;
|
|
316
316
|
offsetTop: number;
|
|
317
317
|
offsetLeft: number;
|
|
318
|
-
fileHandle:
|
|
318
|
+
fileHandle: FileSystemFileHandle | null;
|
|
319
319
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
320
320
|
stats: {
|
|
321
321
|
open: boolean;
|
|
@@ -30,9 +30,9 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
30
30
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
31
31
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
32
|
isBindingEnabled: boolean;
|
|
33
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
33
34
|
bindingPreference: "enabled" | "disabled";
|
|
34
35
|
isMidpointSnappingEnabled: boolean;
|
|
35
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
36
36
|
suggestedBinding: {
|
|
37
37
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
38
38
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -118,7 +118,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
118
118
|
selectedElementsAreBeingDragged: boolean;
|
|
119
119
|
shouldCacheIgnoreZoom: boolean;
|
|
120
120
|
toast: {
|
|
121
|
-
message:
|
|
121
|
+
message: React.ReactNode;
|
|
122
122
|
closable?: boolean;
|
|
123
123
|
duration?: number;
|
|
124
124
|
} | null;
|
|
@@ -136,7 +136,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
136
136
|
height: number;
|
|
137
137
|
offsetTop: number;
|
|
138
138
|
offsetLeft: number;
|
|
139
|
-
fileHandle:
|
|
139
|
+
fileHandle: FileSystemFileHandle | null;
|
|
140
140
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
141
141
|
stats: {
|
|
142
142
|
open: boolean;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { NonDeletedExcalidrawElement, Theme } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, NonDeletedExcalidrawElement, Theme } from "@excalidraw/element/types";
|
|
2
2
|
import "../components/ToolIcon.scss";
|
|
3
|
-
import type { AppState } from "../types";
|
|
3
|
+
import type { AppClassProperties, AppState, BinaryFiles, ExcalidrawProps } from "../types";
|
|
4
4
|
export declare const actionChangeProjectName: import("./types").Action<string | null> & {
|
|
5
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
5
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
6
6
|
};
|
|
7
7
|
export declare const actionChangeExportScale: import("./types").Action<number> & {
|
|
8
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
8
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
9
9
|
};
|
|
10
10
|
export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
|
|
11
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
11
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
12
12
|
};
|
|
13
13
|
export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
|
|
14
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
14
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
15
15
|
};
|
|
16
16
|
export declare const actionSaveToActiveFile: {
|
|
17
17
|
name: "saveToActiveFile";
|
|
@@ -20,168 +20,22 @@ export declare const actionSaveToActiveFile: {
|
|
|
20
20
|
trackEvent: {
|
|
21
21
|
category: "export";
|
|
22
22
|
};
|
|
23
|
-
predicate: (elements: readonly
|
|
24
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app:
|
|
25
|
-
captureUpdate: "
|
|
23
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
24
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
|
|
25
|
+
captureUpdate: "NEVER";
|
|
26
26
|
appState: {
|
|
27
|
-
fileHandle:
|
|
27
|
+
fileHandle: FileSystemFileHandle | null;
|
|
28
28
|
toast: {
|
|
29
29
|
message: string;
|
|
30
|
-
|
|
31
|
-
contextMenu: {
|
|
32
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
33
|
-
top: number;
|
|
34
|
-
left: number;
|
|
35
|
-
} | null;
|
|
36
|
-
showWelcomeScreen: boolean;
|
|
37
|
-
isLoading: boolean;
|
|
38
|
-
errorMessage: React.ReactNode;
|
|
39
|
-
activeEmbeddable: {
|
|
40
|
-
element: NonDeletedExcalidrawElement;
|
|
41
|
-
state: "hover" | "active";
|
|
42
|
-
} | null;
|
|
43
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
44
|
-
resizingElement: NonDeletedExcalidrawElement | null;
|
|
45
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
46
|
-
selectionElement: NonDeletedExcalidrawElement | null;
|
|
47
|
-
isBindingEnabled: boolean;
|
|
48
|
-
bindingPreference: "enabled" | "disabled";
|
|
49
|
-
isMidpointSnappingEnabled: boolean;
|
|
50
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
51
|
-
suggestedBinding: {
|
|
52
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
53
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
54
|
-
} | null;
|
|
55
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
56
|
-
frameRendering: {
|
|
57
|
-
enabled: boolean;
|
|
58
|
-
name: boolean;
|
|
59
|
-
outline: boolean;
|
|
60
|
-
clip: boolean;
|
|
61
|
-
};
|
|
62
|
-
editingFrame: string | null;
|
|
63
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
64
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
65
|
-
activeTool: {
|
|
66
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
67
|
-
locked: boolean;
|
|
68
|
-
fromSelection: boolean;
|
|
69
|
-
} & import("../types").ActiveTool;
|
|
70
|
-
preferredSelectionTool: {
|
|
71
|
-
type: "selection" | "lasso";
|
|
72
|
-
initialized: boolean;
|
|
73
|
-
};
|
|
74
|
-
penMode: boolean;
|
|
75
|
-
penDetected: boolean;
|
|
76
|
-
exportBackground: boolean;
|
|
77
|
-
exportEmbedScene: boolean;
|
|
78
|
-
exportWithDarkMode: boolean;
|
|
79
|
-
exportScale: number;
|
|
80
|
-
currentItemStrokeColor: string;
|
|
81
|
-
currentItemBackgroundColor: string;
|
|
82
|
-
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
83
|
-
currentItemStrokeWidth: number;
|
|
84
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
85
|
-
currentItemRoughness: number;
|
|
86
|
-
currentItemOpacity: number;
|
|
87
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
88
|
-
currentItemFontSize: number;
|
|
89
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
90
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
91
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
92
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
93
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
94
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
95
|
-
viewBackgroundColor: string;
|
|
96
|
-
scrollX: number;
|
|
97
|
-
scrollY: number;
|
|
98
|
-
cursorButton: "up" | "down";
|
|
99
|
-
scrolledOutside: boolean;
|
|
100
|
-
name: string | null;
|
|
101
|
-
isResizing: boolean;
|
|
102
|
-
isRotating: boolean;
|
|
103
|
-
zoom: import("../types").Zoom;
|
|
104
|
-
openMenu: "canvas" | null;
|
|
105
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
106
|
-
openSidebar: {
|
|
107
|
-
name: import("../types").SidebarName;
|
|
108
|
-
tab?: import("../types").SidebarTabName;
|
|
109
|
-
} | null;
|
|
110
|
-
openDialog: null | {
|
|
111
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
112
|
-
} | {
|
|
113
|
-
name: "ttd";
|
|
114
|
-
tab: "text-to-diagram" | "mermaid";
|
|
115
|
-
} | {
|
|
116
|
-
name: "commandPalette";
|
|
117
|
-
} | {
|
|
118
|
-
name: "settings";
|
|
119
|
-
} | {
|
|
120
|
-
name: "elementLinkSelector";
|
|
121
|
-
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
122
|
-
} | {
|
|
123
|
-
name: "charts";
|
|
124
|
-
data: import("../charts").Spreadsheet;
|
|
125
|
-
rawText: string;
|
|
126
|
-
};
|
|
127
|
-
defaultSidebarDockedPreference: boolean;
|
|
128
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
129
|
-
selectedElementIds: Readonly<{
|
|
130
|
-
[id: string]: true;
|
|
131
|
-
}>;
|
|
132
|
-
hoveredElementIds: Readonly<{
|
|
133
|
-
[id: string]: true;
|
|
134
|
-
}>;
|
|
135
|
-
previousSelectedElementIds: {
|
|
136
|
-
[id: string]: true;
|
|
137
|
-
};
|
|
138
|
-
selectedElementsAreBeingDragged: boolean;
|
|
139
|
-
shouldCacheIgnoreZoom: boolean;
|
|
140
|
-
zenModeEnabled: boolean;
|
|
141
|
-
theme: Theme;
|
|
142
|
-
gridSize: number;
|
|
143
|
-
gridStep: number;
|
|
144
|
-
gridModeEnabled: boolean;
|
|
145
|
-
viewModeEnabled: boolean;
|
|
146
|
-
selectedGroupIds: {
|
|
147
|
-
[groupId: string]: boolean;
|
|
148
|
-
};
|
|
149
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
150
|
-
width: number;
|
|
151
|
-
height: number;
|
|
152
|
-
offsetTop: number;
|
|
153
|
-
offsetLeft: number;
|
|
154
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
155
|
-
stats: {
|
|
156
|
-
open: boolean;
|
|
157
|
-
panels: number;
|
|
158
|
-
};
|
|
159
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
160
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
161
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
162
|
-
originSnapOffset: {
|
|
163
|
-
x: number;
|
|
164
|
-
y: number;
|
|
165
|
-
} | null;
|
|
166
|
-
objectsSnapModeEnabled: boolean;
|
|
167
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
168
|
-
followedBy: Set<import("../types").SocketId>;
|
|
169
|
-
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
170
|
-
isCropping: boolean;
|
|
171
|
-
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
172
|
-
searchMatches: Readonly<{
|
|
173
|
-
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
174
|
-
matches: readonly import("../types").SearchMatch[];
|
|
175
|
-
}> | null;
|
|
176
|
-
activeLockedId: string | null;
|
|
177
|
-
lockedMultiSelections: {
|
|
178
|
-
[groupId: string]: true;
|
|
30
|
+
duration: number;
|
|
179
31
|
};
|
|
180
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
181
32
|
};
|
|
182
33
|
} | {
|
|
183
|
-
captureUpdate: "
|
|
184
|
-
appState
|
|
34
|
+
captureUpdate: "NEVER";
|
|
35
|
+
appState: {
|
|
36
|
+
toast: null;
|
|
37
|
+
fileHandle?: undefined;
|
|
38
|
+
};
|
|
185
39
|
}>;
|
|
186
40
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
187
41
|
} & {
|
|
@@ -195,152 +49,23 @@ export declare const actionSaveFileToDisk: {
|
|
|
195
49
|
trackEvent: {
|
|
196
50
|
category: "export";
|
|
197
51
|
};
|
|
198
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app:
|
|
199
|
-
captureUpdate: "
|
|
52
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
|
|
53
|
+
captureUpdate: "NEVER";
|
|
200
54
|
appState: {
|
|
201
55
|
openDialog: null;
|
|
202
|
-
fileHandle:
|
|
56
|
+
fileHandle: FileSystemFileHandle | null;
|
|
203
57
|
toast: {
|
|
204
58
|
message: string;
|
|
205
59
|
duration: number;
|
|
206
60
|
};
|
|
207
|
-
contextMenu: {
|
|
208
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
209
|
-
top: number;
|
|
210
|
-
left: number;
|
|
211
|
-
} | null;
|
|
212
|
-
showWelcomeScreen: boolean;
|
|
213
|
-
isLoading: boolean;
|
|
214
|
-
errorMessage: React.ReactNode;
|
|
215
|
-
activeEmbeddable: {
|
|
216
|
-
element: NonDeletedExcalidrawElement;
|
|
217
|
-
state: "hover" | "active";
|
|
218
|
-
} | null;
|
|
219
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
220
|
-
resizingElement: NonDeletedExcalidrawElement | null;
|
|
221
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
222
|
-
selectionElement: NonDeletedExcalidrawElement | null;
|
|
223
|
-
isBindingEnabled: boolean;
|
|
224
|
-
bindingPreference: "enabled" | "disabled";
|
|
225
|
-
isMidpointSnappingEnabled: boolean;
|
|
226
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
227
|
-
suggestedBinding: {
|
|
228
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
229
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
230
|
-
} | null;
|
|
231
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
232
|
-
frameRendering: {
|
|
233
|
-
enabled: boolean;
|
|
234
|
-
name: boolean;
|
|
235
|
-
outline: boolean;
|
|
236
|
-
clip: boolean;
|
|
237
|
-
};
|
|
238
|
-
editingFrame: string | null;
|
|
239
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
240
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
241
|
-
activeTool: {
|
|
242
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
243
|
-
locked: boolean;
|
|
244
|
-
fromSelection: boolean;
|
|
245
|
-
} & import("../types").ActiveTool;
|
|
246
|
-
preferredSelectionTool: {
|
|
247
|
-
type: "selection" | "lasso";
|
|
248
|
-
initialized: boolean;
|
|
249
|
-
};
|
|
250
|
-
penMode: boolean;
|
|
251
|
-
penDetected: boolean;
|
|
252
|
-
exportBackground: boolean;
|
|
253
|
-
exportEmbedScene: boolean;
|
|
254
|
-
exportWithDarkMode: boolean;
|
|
255
|
-
exportScale: number;
|
|
256
|
-
currentItemStrokeColor: string;
|
|
257
|
-
currentItemBackgroundColor: string;
|
|
258
|
-
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
259
|
-
currentItemStrokeWidth: number;
|
|
260
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
261
|
-
currentItemRoughness: number;
|
|
262
|
-
currentItemOpacity: number;
|
|
263
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
264
|
-
currentItemFontSize: number;
|
|
265
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
266
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
267
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
268
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
269
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
270
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
271
|
-
viewBackgroundColor: string;
|
|
272
|
-
scrollX: number;
|
|
273
|
-
scrollY: number;
|
|
274
|
-
cursorButton: "up" | "down";
|
|
275
|
-
scrolledOutside: boolean;
|
|
276
|
-
name: string | null;
|
|
277
|
-
isResizing: boolean;
|
|
278
|
-
isRotating: boolean;
|
|
279
|
-
zoom: import("../types").Zoom;
|
|
280
|
-
openMenu: "canvas" | null;
|
|
281
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
282
|
-
openSidebar: {
|
|
283
|
-
name: import("../types").SidebarName;
|
|
284
|
-
tab?: import("../types").SidebarTabName;
|
|
285
|
-
} | null;
|
|
286
|
-
defaultSidebarDockedPreference: boolean;
|
|
287
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
288
|
-
selectedElementIds: Readonly<{
|
|
289
|
-
[id: string]: true;
|
|
290
|
-
}>;
|
|
291
|
-
hoveredElementIds: Readonly<{
|
|
292
|
-
[id: string]: true;
|
|
293
|
-
}>;
|
|
294
|
-
previousSelectedElementIds: {
|
|
295
|
-
[id: string]: true;
|
|
296
|
-
};
|
|
297
|
-
selectedElementsAreBeingDragged: boolean;
|
|
298
|
-
shouldCacheIgnoreZoom: boolean;
|
|
299
|
-
zenModeEnabled: boolean;
|
|
300
|
-
theme: Theme;
|
|
301
|
-
gridSize: number;
|
|
302
|
-
gridStep: number;
|
|
303
|
-
gridModeEnabled: boolean;
|
|
304
|
-
viewModeEnabled: boolean;
|
|
305
|
-
selectedGroupIds: {
|
|
306
|
-
[groupId: string]: boolean;
|
|
307
|
-
};
|
|
308
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
309
|
-
width: number;
|
|
310
|
-
height: number;
|
|
311
|
-
offsetTop: number;
|
|
312
|
-
offsetLeft: number;
|
|
313
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
314
|
-
stats: {
|
|
315
|
-
open: boolean;
|
|
316
|
-
panels: number;
|
|
317
|
-
};
|
|
318
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
319
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
320
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
321
|
-
originSnapOffset: {
|
|
322
|
-
x: number;
|
|
323
|
-
y: number;
|
|
324
|
-
} | null;
|
|
325
|
-
objectsSnapModeEnabled: boolean;
|
|
326
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
327
|
-
followedBy: Set<import("../types").SocketId>;
|
|
328
|
-
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
329
|
-
isCropping: boolean;
|
|
330
|
-
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
331
|
-
searchMatches: Readonly<{
|
|
332
|
-
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
333
|
-
matches: readonly import("../types").SearchMatch[];
|
|
334
|
-
}> | null;
|
|
335
|
-
activeLockedId: string | null;
|
|
336
|
-
lockedMultiSelections: {
|
|
337
|
-
[groupId: string]: true;
|
|
338
|
-
};
|
|
339
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
340
61
|
};
|
|
341
62
|
} | {
|
|
342
|
-
captureUpdate: "
|
|
343
|
-
appState
|
|
63
|
+
captureUpdate: "NEVER";
|
|
64
|
+
appState: {
|
|
65
|
+
toast: null;
|
|
66
|
+
openDialog?: undefined;
|
|
67
|
+
fileHandle?: undefined;
|
|
68
|
+
};
|
|
344
69
|
}>;
|
|
345
70
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
346
71
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -353,8 +78,8 @@ export declare const actionLoadScene: {
|
|
|
353
78
|
trackEvent: {
|
|
354
79
|
category: "export";
|
|
355
80
|
};
|
|
356
|
-
predicate: (elements: readonly
|
|
357
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app:
|
|
81
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
82
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => Promise<false | {
|
|
358
83
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
359
84
|
appState: {
|
|
360
85
|
theme: Theme;
|
|
@@ -385,16 +110,16 @@ export declare const actionLoadScene: {
|
|
|
385
110
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
386
111
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
387
112
|
isBindingEnabled: boolean;
|
|
113
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
388
114
|
bindingPreference: "enabled" | "disabled";
|
|
389
115
|
isMidpointSnappingEnabled: boolean;
|
|
390
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
391
116
|
suggestedBinding: {
|
|
392
117
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
393
118
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
394
119
|
} | null;
|
|
395
120
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
396
121
|
editingFrame: string | null;
|
|
397
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
122
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
398
123
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
399
124
|
activeTool: {
|
|
400
125
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -413,9 +138,9 @@ export declare const actionLoadScene: {
|
|
|
413
138
|
exportScale: number;
|
|
414
139
|
currentItemStrokeColor: string;
|
|
415
140
|
currentItemBackgroundColor: string;
|
|
416
|
-
currentItemFillStyle:
|
|
141
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
417
142
|
currentItemStrokeWidth: number;
|
|
418
|
-
currentItemStrokeStyle:
|
|
143
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
419
144
|
currentItemRoughness: number;
|
|
420
145
|
currentItemOpacity: number;
|
|
421
146
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
@@ -448,7 +173,7 @@ export declare const actionLoadScene: {
|
|
|
448
173
|
name: "settings";
|
|
449
174
|
} | {
|
|
450
175
|
name: "elementLinkSelector";
|
|
451
|
-
sourceElementId:
|
|
176
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
452
177
|
} | {
|
|
453
178
|
name: "charts";
|
|
454
179
|
data: import("../charts").Spreadsheet;
|
|
@@ -468,7 +193,7 @@ export declare const actionLoadScene: {
|
|
|
468
193
|
selectedElementsAreBeingDragged: boolean;
|
|
469
194
|
shouldCacheIgnoreZoom: boolean;
|
|
470
195
|
toast: {
|
|
471
|
-
message:
|
|
196
|
+
message: React.ReactNode;
|
|
472
197
|
closable?: boolean;
|
|
473
198
|
duration?: number;
|
|
474
199
|
} | null;
|
|
@@ -481,7 +206,7 @@ export declare const actionLoadScene: {
|
|
|
481
206
|
[groupId: string]: boolean;
|
|
482
207
|
};
|
|
483
208
|
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
484
|
-
fileHandle:
|
|
209
|
+
fileHandle: FileSystemFileHandle | null;
|
|
485
210
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
486
211
|
stats: {
|
|
487
212
|
open: boolean;
|
|
@@ -498,9 +223,9 @@ export declare const actionLoadScene: {
|
|
|
498
223
|
userToFollow: import("../types").UserToFollow | null;
|
|
499
224
|
followedBy: Set<import("../types").SocketId>;
|
|
500
225
|
isCropping: boolean;
|
|
501
|
-
croppingElementId:
|
|
226
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
502
227
|
searchMatches: Readonly<{
|
|
503
|
-
focusedId:
|
|
228
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
504
229
|
matches: readonly import("../types").SearchMatch[];
|
|
505
230
|
}> | null;
|
|
506
231
|
activeLockedId: string | null;
|
|
@@ -509,7 +234,7 @@ export declare const actionLoadScene: {
|
|
|
509
234
|
};
|
|
510
235
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
511
236
|
};
|
|
512
|
-
files:
|
|
237
|
+
files: BinaryFiles;
|
|
513
238
|
captureUpdate: "IMMEDIATELY";
|
|
514
239
|
} | {
|
|
515
240
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
@@ -531,9 +256,9 @@ export declare const actionLoadScene: {
|
|
|
531
256
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
532
257
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
533
258
|
isBindingEnabled: boolean;
|
|
259
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
534
260
|
bindingPreference: "enabled" | "disabled";
|
|
535
261
|
isMidpointSnappingEnabled: boolean;
|
|
536
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
537
262
|
suggestedBinding: {
|
|
538
263
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
539
264
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -546,7 +271,7 @@ export declare const actionLoadScene: {
|
|
|
546
271
|
clip: boolean;
|
|
547
272
|
};
|
|
548
273
|
editingFrame: string | null;
|
|
549
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
274
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
550
275
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
551
276
|
activeTool: {
|
|
552
277
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -565,9 +290,9 @@ export declare const actionLoadScene: {
|
|
|
565
290
|
exportScale: number;
|
|
566
291
|
currentItemStrokeColor: string;
|
|
567
292
|
currentItemBackgroundColor: string;
|
|
568
|
-
currentItemFillStyle:
|
|
293
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
569
294
|
currentItemStrokeWidth: number;
|
|
570
|
-
currentItemStrokeStyle:
|
|
295
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
571
296
|
currentItemRoughness: number;
|
|
572
297
|
currentItemOpacity: number;
|
|
573
298
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
@@ -604,7 +329,7 @@ export declare const actionLoadScene: {
|
|
|
604
329
|
name: "settings";
|
|
605
330
|
} | {
|
|
606
331
|
name: "elementLinkSelector";
|
|
607
|
-
sourceElementId:
|
|
332
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
608
333
|
} | {
|
|
609
334
|
name: "charts";
|
|
610
335
|
data: import("../charts").Spreadsheet;
|
|
@@ -624,7 +349,7 @@ export declare const actionLoadScene: {
|
|
|
624
349
|
selectedElementsAreBeingDragged: boolean;
|
|
625
350
|
shouldCacheIgnoreZoom: boolean;
|
|
626
351
|
toast: {
|
|
627
|
-
message:
|
|
352
|
+
message: React.ReactNode;
|
|
628
353
|
closable?: boolean;
|
|
629
354
|
duration?: number;
|
|
630
355
|
} | null;
|
|
@@ -642,7 +367,7 @@ export declare const actionLoadScene: {
|
|
|
642
367
|
height: number;
|
|
643
368
|
offsetTop: number;
|
|
644
369
|
offsetLeft: number;
|
|
645
|
-
fileHandle:
|
|
370
|
+
fileHandle: FileSystemFileHandle | null;
|
|
646
371
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
647
372
|
stats: {
|
|
648
373
|
open: boolean;
|
|
@@ -660,9 +385,9 @@ export declare const actionLoadScene: {
|
|
|
660
385
|
followedBy: Set<import("../types").SocketId>;
|
|
661
386
|
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
662
387
|
isCropping: boolean;
|
|
663
|
-
croppingElementId:
|
|
388
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
664
389
|
searchMatches: Readonly<{
|
|
665
|
-
focusedId:
|
|
390
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
666
391
|
matches: readonly import("../types").SearchMatch[];
|
|
667
392
|
}> | null;
|
|
668
393
|
activeLockedId: string | null;
|
|
@@ -671,7 +396,7 @@ export declare const actionLoadScene: {
|
|
|
671
396
|
};
|
|
672
397
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
673
398
|
};
|
|
674
|
-
files:
|
|
399
|
+
files: BinaryFiles;
|
|
675
400
|
captureUpdate: "EVENTUALLY";
|
|
676
401
|
}>;
|
|
677
402
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -679,5 +404,5 @@ export declare const actionLoadScene: {
|
|
|
679
404
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
680
405
|
};
|
|
681
406
|
export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
|
|
682
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
407
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
683
408
|
};
|