@dwelle/excalidraw 0.5.0-e05a141 → 0.5.0-e2a82c4d8
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/dist/dev/{chunk-JCMFCSXV.js → chunk-7M7SVUYU.js} +121 -7
- package/dist/dev/chunk-7M7SVUYU.js.map +7 -0
- package/dist/dev/{chunk-P7XQCHXR.js → chunk-HJWER26G.js} +901 -439
- package/dist/dev/chunk-HJWER26G.js.map +7 -0
- package/dist/dev/{chunk-B7UQ5W6R.js → chunk-Q5BO7QEK.js} +2 -2
- package/dist/dev/{chunk-B7UQ5W6R.js.map → chunk-Q5BO7QEK.js.map} +1 -1
- package/dist/dev/components/TTDDialog/CodeMirrorEditor-4GD6MAJW.js +259 -0
- package/dist/dev/components/TTDDialog/CodeMirrorEditor-4GD6MAJW.js.map +7 -0
- package/dist/dev/data/{image-BUI6GQJR.js → image-UQK7BQY4.js} +3 -3
- package/dist/dev/index.css +2444 -173
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +6875 -1415
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-SEGQGVZN.js → en-IHKMFGHF.js} +6 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-QHCRJDAB.js +12 -0
- package/dist/prod/chunk-R2CZDOAE.js +34 -0
- package/dist/prod/{chunk-KDBB3MAO.js → chunk-XXRJJHWR.js} +1 -1
- package/dist/prod/components/TTDDialog/CodeMirrorEditor-P2CDXXOC.js +1 -0
- package/dist/prod/data/image-WAWRV65K.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +34 -25
- package/dist/prod/locales/en-QQWGF6XN.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/utils.d.ts +5 -3
- package/dist/types/element/src/Scene.d.ts +2 -0
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/binding.d.ts +5 -4
- package/dist/types/element/src/bounds.d.ts +5 -3
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/frame.d.ts +1 -1
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/linearElementEditor.d.ts +5 -2
- package/dist/types/element/src/mutateElement.d.ts +2 -0
- package/dist/types/element/src/selection.d.ts +7 -3
- package/dist/types/element/src/shape.d.ts +1 -1
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/element/src/types.d.ts +4 -1
- package/dist/types/element/src/utils.d.ts +2 -2
- package/dist/types/excalidraw/TTA/TTAChatEmptyState.d.ts +7 -0
- package/dist/types/excalidraw/TTA/TTAChatMessage.d.ts +15 -0
- package/dist/types/excalidraw/TTA/TTAComposer.d.ts +24 -0
- package/dist/types/excalidraw/TTA/TTADialog.d.ts +19 -0
- package/dist/types/excalidraw/TTA/TTADialogPanel.d.ts +46 -0
- package/dist/types/excalidraw/TTA/TTADialogTrigger.d.ts +10 -0
- package/dist/types/excalidraw/TTA/TTAHistory.d.ts +11 -0
- package/dist/types/excalidraw/TTA/TTAWarningMessage.d.ts +5 -0
- package/dist/types/excalidraw/TTA/chatErrors.d.ts +13 -0
- package/dist/types/excalidraw/TTA/chatHelpers.d.ts +26 -0
- package/dist/types/excalidraw/TTA/client.d.ts +74 -0
- package/dist/types/excalidraw/TTA/history.d.ts +2 -0
- package/dist/types/excalidraw/TTA/insertAISkeletons.d.ts +20 -0
- package/dist/types/excalidraw/TTA/types.d.ts +167 -0
- package/dist/types/excalidraw/TTA/useAIAssistantPreview.d.ts +18 -0
- package/dist/types/excalidraw/TTA/useAIStreamingCanvasPreview.d.ts +21 -0
- package/dist/types/excalidraw/TTA/useAIStreamingLifecycle.d.ts +34 -0
- package/dist/types/excalidraw/TTA/useTTAChatHistory.d.ts +18 -0
- package/dist/types/excalidraw/TTA/utils.d.ts +14 -0
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +50 -20
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +161 -0
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +21 -8
- package/dist/types/excalidraw/actions/actionFrame.d.ts +20 -8
- package/dist/types/excalidraw/actions/actionGroup.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionMenu.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +6 -2
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +174 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +174 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/index.d.ts +3 -0
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/aiWarnings.d.ts +7 -0
- package/dist/types/excalidraw/appState.d.ts +4 -0
- package/dist/types/excalidraw/components/AI/ChatMessage.d.ts +33 -0
- package/dist/types/excalidraw/components/AI/index.d.ts +2 -0
- package/dist/types/excalidraw/components/App.d.ts +11 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDRateLimitWarningContent.d.ts +5 -0
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +5 -1
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -6
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +18 -8
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +3 -0
- package/dist/types/excalidraw/context/tunnels.d.ts +1 -0
- package/dist/types/excalidraw/data/blob.d.ts +9 -3
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -3
- package/dist/types/excalidraw/data/index.d.ts +1 -1
- package/dist/types/excalidraw/data/json.d.ts +6 -3
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/sse.d.ts +15 -0
- package/dist/types/excalidraw/index.d.ts +15 -2
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +15 -2
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
- package/dist/types/math/src/curve.d.ts +4 -1
- package/dist/types/math/src/point.d.ts +1 -1
- package/package.json +11 -5
- package/CHANGELOG.md +0 -2385
- package/dist/dev/chunk-JCMFCSXV.js.map +0 -7
- package/dist/dev/chunk-P7XQCHXR.js.map +0 -7
- package/dist/prod/chunk-FVPDTNSG.js +0 -12
- package/dist/prod/chunk-LRBVLW2I.js +0 -33
- package/dist/prod/data/image-KI7JN73E.js +0 -1
- package/dist/prod/locales/en-6237XDE7.js +0 -1
- package/dist/types/excalidraw/data/ai/types.d.ts +0 -242
- package/history.ts +0 -249
- /package/dist/dev/data/{image-BUI6GQJR.js.map → image-UQK7BQY4.js.map} +0 -0
- /package/dist/dev/locales/{en-SEGQGVZN.js.map → en-IHKMFGHF.js.map} +0 -0
|
@@ -39,6 +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;
|
|
43
|
+
bindingPreference: "enabled" | "disabled";
|
|
44
|
+
isMidpointSnappingEnabled: boolean;
|
|
42
45
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
43
46
|
suggestedBinding: {
|
|
44
47
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -53,7 +56,7 @@ export declare const actionToggleElementLock: {
|
|
|
53
56
|
};
|
|
54
57
|
editingFrame: string | null;
|
|
55
58
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
56
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
59
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
57
60
|
activeTool: {
|
|
58
61
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
59
62
|
locked: boolean;
|
|
@@ -142,7 +145,7 @@ export declare const actionToggleElementLock: {
|
|
|
142
145
|
height: number;
|
|
143
146
|
offsetTop: number;
|
|
144
147
|
offsetLeft: number;
|
|
145
|
-
fileHandle: import("
|
|
148
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
146
149
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
147
150
|
stats: {
|
|
148
151
|
open: boolean;
|
|
@@ -208,6 +211,9 @@ export declare const actionUnlockAllElements: {
|
|
|
208
211
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
209
212
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
210
213
|
isBindingEnabled: boolean;
|
|
214
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
215
|
+
bindingPreference: "enabled" | "disabled";
|
|
216
|
+
isMidpointSnappingEnabled: boolean;
|
|
211
217
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
212
218
|
suggestedBinding: {
|
|
213
219
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -222,7 +228,7 @@ export declare const actionUnlockAllElements: {
|
|
|
222
228
|
};
|
|
223
229
|
editingFrame: string | null;
|
|
224
230
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
225
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
231
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
226
232
|
activeTool: {
|
|
227
233
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
228
234
|
locked: boolean;
|
|
@@ -311,7 +317,7 @@ export declare const actionUnlockAllElements: {
|
|
|
311
317
|
height: number;
|
|
312
318
|
offsetTop: number;
|
|
313
319
|
offsetLeft: number;
|
|
314
|
-
fileHandle: import("
|
|
320
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
315
321
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
316
322
|
stats: {
|
|
317
323
|
open: boolean;
|
|
@@ -30,6 +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;
|
|
34
|
+
bindingPreference: "enabled" | "disabled";
|
|
35
|
+
isMidpointSnappingEnabled: boolean;
|
|
33
36
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
37
|
suggestedBinding: {
|
|
35
38
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -44,7 +47,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
44
47
|
};
|
|
45
48
|
editingFrame: string | null;
|
|
46
49
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
50
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
48
51
|
preferredSelectionTool: {
|
|
49
52
|
type: "selection" | "lasso";
|
|
50
53
|
initialized: boolean;
|
|
@@ -134,7 +137,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
134
137
|
height: number;
|
|
135
138
|
offsetTop: number;
|
|
136
139
|
offsetLeft: number;
|
|
137
|
-
fileHandle: import("
|
|
140
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
138
141
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
139
142
|
stats: {
|
|
140
143
|
open: boolean;
|
|
@@ -24,7 +24,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
24
24
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
25
25
|
captureUpdate: "EVENTUALLY";
|
|
26
26
|
appState: {
|
|
27
|
-
fileHandle: import("
|
|
27
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
28
28
|
toast: {
|
|
29
29
|
message: string;
|
|
30
30
|
} | null;
|
|
@@ -45,6 +45,9 @@ export declare const actionSaveToActiveFile: {
|
|
|
45
45
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
46
46
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
47
47
|
isBindingEnabled: boolean;
|
|
48
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
49
|
+
bindingPreference: "enabled" | "disabled";
|
|
50
|
+
isMidpointSnappingEnabled: boolean;
|
|
48
51
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
49
52
|
suggestedBinding: {
|
|
50
53
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -59,7 +62,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
59
62
|
};
|
|
60
63
|
editingFrame: string | null;
|
|
61
64
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
62
|
-
editingTextElement:
|
|
65
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
63
66
|
activeTool: {
|
|
64
67
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
65
68
|
locked: boolean;
|
|
@@ -197,9 +200,10 @@ export declare const actionSaveFileToDisk: {
|
|
|
197
200
|
captureUpdate: "EVENTUALLY";
|
|
198
201
|
appState: {
|
|
199
202
|
openDialog: null;
|
|
200
|
-
fileHandle:
|
|
203
|
+
fileHandle: FileSystemFileHandle | null;
|
|
201
204
|
toast: {
|
|
202
205
|
message: string;
|
|
206
|
+
duration: number;
|
|
203
207
|
};
|
|
204
208
|
contextMenu: {
|
|
205
209
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -218,6 +222,9 @@ export declare const actionSaveFileToDisk: {
|
|
|
218
222
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
219
223
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
220
224
|
isBindingEnabled: boolean;
|
|
225
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
226
|
+
bindingPreference: "enabled" | "disabled";
|
|
227
|
+
isMidpointSnappingEnabled: boolean;
|
|
221
228
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
222
229
|
suggestedBinding: {
|
|
223
230
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -232,7 +239,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
232
239
|
};
|
|
233
240
|
editingFrame: string | null;
|
|
234
241
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
235
|
-
editingTextElement:
|
|
242
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
236
243
|
activeTool: {
|
|
237
244
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
238
245
|
locked: boolean;
|
|
@@ -380,6 +387,9 @@ export declare const actionLoadScene: {
|
|
|
380
387
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
381
388
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
382
389
|
isBindingEnabled: boolean;
|
|
390
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
391
|
+
bindingPreference: "enabled" | "disabled";
|
|
392
|
+
isMidpointSnappingEnabled: boolean;
|
|
383
393
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
384
394
|
suggestedBinding: {
|
|
385
395
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -388,7 +398,7 @@ export declare const actionLoadScene: {
|
|
|
388
398
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
389
399
|
editingFrame: string | null;
|
|
390
400
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
391
|
-
editingTextElement:
|
|
401
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
392
402
|
activeTool: {
|
|
393
403
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
394
404
|
locked: boolean;
|
|
@@ -474,7 +484,7 @@ export declare const actionLoadScene: {
|
|
|
474
484
|
[groupId: string]: boolean;
|
|
475
485
|
};
|
|
476
486
|
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
477
|
-
fileHandle: import("
|
|
487
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
478
488
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
479
489
|
stats: {
|
|
480
490
|
open: boolean;
|
|
@@ -524,6 +534,9 @@ export declare const actionLoadScene: {
|
|
|
524
534
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
525
535
|
selectionElement: NonDeletedExcalidrawElement | null;
|
|
526
536
|
isBindingEnabled: boolean;
|
|
537
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
538
|
+
bindingPreference: "enabled" | "disabled";
|
|
539
|
+
isMidpointSnappingEnabled: boolean;
|
|
527
540
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
528
541
|
suggestedBinding: {
|
|
529
542
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -538,7 +551,7 @@ export declare const actionLoadScene: {
|
|
|
538
551
|
};
|
|
539
552
|
editingFrame: string | null;
|
|
540
553
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
541
|
-
editingTextElement:
|
|
554
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
542
555
|
activeTool: {
|
|
543
556
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
544
557
|
locked: boolean;
|
|
@@ -633,7 +646,7 @@ export declare const actionLoadScene: {
|
|
|
633
646
|
height: number;
|
|
634
647
|
offsetTop: number;
|
|
635
648
|
offsetLeft: number;
|
|
636
|
-
fileHandle: import("
|
|
649
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
637
650
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
638
651
|
stats: {
|
|
639
652
|
open: boolean;
|
|
@@ -27,6 +27,9 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
27
27
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
|
+
bindingPreference: "enabled" | "disabled";
|
|
32
|
+
isMidpointSnappingEnabled: boolean;
|
|
30
33
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
31
34
|
suggestedBinding: {
|
|
32
35
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -41,7 +44,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
41
44
|
};
|
|
42
45
|
editingFrame: string | null;
|
|
43
46
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
44
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
47
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
45
48
|
activeTool: {
|
|
46
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
50
|
locked: boolean;
|
|
@@ -133,7 +136,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
133
136
|
height: number;
|
|
134
137
|
offsetTop: number;
|
|
135
138
|
offsetLeft: number;
|
|
136
|
-
fileHandle: import("
|
|
139
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
137
140
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
138
141
|
stats: {
|
|
139
142
|
open: boolean;
|
|
@@ -201,6 +204,9 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
201
204
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
202
205
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
203
206
|
isBindingEnabled: boolean;
|
|
207
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
208
|
+
bindingPreference: "enabled" | "disabled";
|
|
209
|
+
isMidpointSnappingEnabled: boolean;
|
|
204
210
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
205
211
|
suggestedBinding: {
|
|
206
212
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -215,7 +221,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
215
221
|
};
|
|
216
222
|
editingFrame: string | null;
|
|
217
223
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
218
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
224
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
219
225
|
activeTool: {
|
|
220
226
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
221
227
|
locked: boolean;
|
|
@@ -307,7 +313,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
307
313
|
height: number;
|
|
308
314
|
offsetTop: number;
|
|
309
315
|
offsetLeft: number;
|
|
310
|
-
fileHandle: import("
|
|
316
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
311
317
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
312
318
|
stats: {
|
|
313
319
|
open: boolean;
|
|
@@ -379,6 +385,9 @@ export declare const actionupdateFrameRendering: {
|
|
|
379
385
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
380
386
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
381
387
|
isBindingEnabled: boolean;
|
|
388
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
389
|
+
bindingPreference: "enabled" | "disabled";
|
|
390
|
+
isMidpointSnappingEnabled: boolean;
|
|
382
391
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
383
392
|
suggestedBinding: {
|
|
384
393
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -387,7 +396,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
387
396
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
388
397
|
editingFrame: string | null;
|
|
389
398
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
390
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
399
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
391
400
|
activeTool: {
|
|
392
401
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
393
402
|
locked: boolean;
|
|
@@ -482,7 +491,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
482
491
|
height: number;
|
|
483
492
|
offsetTop: number;
|
|
484
493
|
offsetLeft: number;
|
|
485
|
-
fileHandle: import("
|
|
494
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
486
495
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
487
496
|
stats: {
|
|
488
497
|
open: boolean;
|
|
@@ -550,6 +559,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
550
559
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
551
560
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
552
561
|
isBindingEnabled: boolean;
|
|
562
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
563
|
+
bindingPreference: "enabled" | "disabled";
|
|
564
|
+
isMidpointSnappingEnabled: boolean;
|
|
553
565
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
554
566
|
suggestedBinding: {
|
|
555
567
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -564,7 +576,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
564
576
|
};
|
|
565
577
|
editingFrame: string | null;
|
|
566
578
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
567
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
579
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
568
580
|
preferredSelectionTool: {
|
|
569
581
|
type: "selection" | "lasso";
|
|
570
582
|
initialized: boolean;
|
|
@@ -654,7 +666,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
654
666
|
height: number;
|
|
655
667
|
offsetTop: number;
|
|
656
668
|
offsetLeft: number;
|
|
657
|
-
fileHandle: import("
|
|
669
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
658
670
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
659
671
|
stats: {
|
|
660
672
|
open: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const actionGroup: {
|
|
4
4
|
name: "group";
|
|
@@ -33,6 +33,9 @@ export declare const actionGroup: {
|
|
|
33
33
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
34
34
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
35
35
|
isBindingEnabled: boolean;
|
|
36
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
37
|
+
bindingPreference: "enabled" | "disabled";
|
|
38
|
+
isMidpointSnappingEnabled: boolean;
|
|
36
39
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
40
|
suggestedBinding: {
|
|
38
41
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -47,7 +50,7 @@ export declare const actionGroup: {
|
|
|
47
50
|
};
|
|
48
51
|
editingFrame: string | null;
|
|
49
52
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
50
|
-
editingTextElement:
|
|
53
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
51
54
|
activeTool: {
|
|
52
55
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
53
56
|
locked: boolean;
|
|
@@ -135,7 +138,7 @@ export declare const actionGroup: {
|
|
|
135
138
|
height: number;
|
|
136
139
|
offsetTop: number;
|
|
137
140
|
offsetLeft: number;
|
|
138
|
-
fileHandle: import("
|
|
141
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
139
142
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
140
143
|
stats: {
|
|
141
144
|
open: boolean;
|
|
@@ -206,6 +209,9 @@ export declare const actionUngroup: {
|
|
|
206
209
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
207
210
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
208
211
|
isBindingEnabled: boolean;
|
|
212
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
213
|
+
bindingPreference: "enabled" | "disabled";
|
|
214
|
+
isMidpointSnappingEnabled: boolean;
|
|
209
215
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
210
216
|
suggestedBinding: {
|
|
211
217
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -220,7 +226,7 @@ export declare const actionUngroup: {
|
|
|
220
226
|
};
|
|
221
227
|
editingFrame: string | null;
|
|
222
228
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
223
|
-
editingTextElement:
|
|
229
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
224
230
|
activeTool: {
|
|
225
231
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
226
232
|
locked: boolean;
|
|
@@ -308,7 +314,7 @@ export declare const actionUngroup: {
|
|
|
308
314
|
height: number;
|
|
309
315
|
offsetTop: number;
|
|
310
316
|
offsetLeft: number;
|
|
311
|
-
fileHandle: import("
|
|
317
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
312
318
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
313
319
|
stats: {
|
|
314
320
|
open: boolean;
|
|
@@ -60,6 +60,9 @@ export declare const actionToggleLinearEditor: {
|
|
|
60
60
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
61
61
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
62
|
isBindingEnabled: boolean;
|
|
63
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
64
|
+
bindingPreference: "enabled" | "disabled";
|
|
65
|
+
isMidpointSnappingEnabled: boolean;
|
|
63
66
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
64
67
|
suggestedBinding: {
|
|
65
68
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -74,7 +77,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
74
77
|
};
|
|
75
78
|
editingFrame: string | null;
|
|
76
79
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
77
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
80
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
78
81
|
activeTool: {
|
|
79
82
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
80
83
|
locked: boolean;
|
|
@@ -169,7 +172,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
169
172
|
height: number;
|
|
170
173
|
offsetTop: number;
|
|
171
174
|
offsetLeft: number;
|
|
172
|
-
fileHandle: import("
|
|
175
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
173
176
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
174
177
|
stats: {
|
|
175
178
|
open: boolean;
|
|
@@ -24,6 +24,9 @@ export declare const actionLink: {
|
|
|
24
24
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
25
25
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
26
|
isBindingEnabled: boolean;
|
|
27
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
28
|
+
bindingPreference: "enabled" | "disabled";
|
|
29
|
+
isMidpointSnappingEnabled: boolean;
|
|
27
30
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
28
31
|
suggestedBinding: {
|
|
29
32
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -38,7 +41,7 @@ export declare const actionLink: {
|
|
|
38
41
|
};
|
|
39
42
|
editingFrame: string | null;
|
|
40
43
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
41
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
44
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
42
45
|
activeTool: {
|
|
43
46
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
47
|
locked: boolean;
|
|
@@ -132,7 +135,7 @@ export declare const actionLink: {
|
|
|
132
135
|
height: number;
|
|
133
136
|
offsetTop: number;
|
|
134
137
|
offsetLeft: number;
|
|
135
|
-
fileHandle: import("
|
|
138
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
136
139
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
137
140
|
stats: {
|
|
138
141
|
open: boolean;
|
|
@@ -31,6 +31,9 @@ export declare const actionShortcuts: {
|
|
|
31
31
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
32
32
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
33
|
isBindingEnabled: boolean;
|
|
34
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
35
|
+
bindingPreference: "enabled" | "disabled";
|
|
36
|
+
isMidpointSnappingEnabled: boolean;
|
|
34
37
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
38
|
suggestedBinding: {
|
|
36
39
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -45,7 +48,7 @@ export declare const actionShortcuts: {
|
|
|
45
48
|
};
|
|
46
49
|
editingFrame: string | null;
|
|
47
50
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
48
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
51
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
49
52
|
activeTool: {
|
|
50
53
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
54
|
locked: boolean;
|
|
@@ -121,7 +124,7 @@ export declare const actionShortcuts: {
|
|
|
121
124
|
height: number;
|
|
122
125
|
offsetTop: number;
|
|
123
126
|
offsetLeft: number;
|
|
124
|
-
fileHandle: import("
|
|
127
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
125
128
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
126
129
|
stats: {
|
|
127
130
|
open: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
|
|
2
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
4
4
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
5
|
-
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T,
|
|
5
|
+
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
6
6
|
export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
|
|
7
7
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
8
8
|
};
|
|
@@ -53,6 +53,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
53
53
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
54
54
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
55
55
|
isBindingEnabled: boolean;
|
|
56
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
57
|
+
bindingPreference: "enabled" | "disabled";
|
|
58
|
+
isMidpointSnappingEnabled: boolean;
|
|
56
59
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
57
60
|
suggestedBinding: {
|
|
58
61
|
element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
|
|
@@ -67,7 +70,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
67
70
|
};
|
|
68
71
|
editingFrame: string | null;
|
|
69
72
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
70
|
-
editingTextElement:
|
|
73
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
71
74
|
activeTool: {
|
|
72
75
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
73
76
|
locked: boolean;
|
|
@@ -161,7 +164,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
161
164
|
height: number;
|
|
162
165
|
offsetTop: number;
|
|
163
166
|
offsetLeft: number;
|
|
164
|
-
fileHandle: import("
|
|
167
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
165
168
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
166
169
|
stats: {
|
|
167
170
|
open: boolean;
|
|
@@ -222,6 +225,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
222
225
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
223
226
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
224
227
|
isBindingEnabled: boolean;
|
|
228
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
229
|
+
bindingPreference: "enabled" | "disabled";
|
|
230
|
+
isMidpointSnappingEnabled: boolean;
|
|
225
231
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
226
232
|
suggestedBinding: {
|
|
227
233
|
element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
|
|
@@ -236,7 +242,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
236
242
|
};
|
|
237
243
|
editingFrame: string | null;
|
|
238
244
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
239
|
-
editingTextElement:
|
|
245
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
240
246
|
activeTool: {
|
|
241
247
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
242
248
|
locked: boolean;
|
|
@@ -330,7 +336,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
330
336
|
height: number;
|
|
331
337
|
offsetTop: number;
|
|
332
338
|
offsetLeft: number;
|
|
333
|
-
fileHandle: import("
|
|
339
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
334
340
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
335
341
|
stats: {
|
|
336
342
|
open: boolean;
|
|
@@ -31,6 +31,9 @@ export declare const actionSelectAll: {
|
|
|
31
31
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
32
32
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
33
|
isBindingEnabled: boolean;
|
|
34
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
35
|
+
bindingPreference: "enabled" | "disabled";
|
|
36
|
+
isMidpointSnappingEnabled: boolean;
|
|
34
37
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
38
|
suggestedBinding: {
|
|
36
39
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -45,7 +48,7 @@ export declare const actionSelectAll: {
|
|
|
45
48
|
};
|
|
46
49
|
editingFrame: string | null;
|
|
47
50
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
48
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
51
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
49
52
|
activeTool: {
|
|
50
53
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
54
|
locked: boolean;
|
|
@@ -133,7 +136,7 @@ export declare const actionSelectAll: {
|
|
|
133
136
|
height: number;
|
|
134
137
|
offsetTop: number;
|
|
135
138
|
offsetLeft: number;
|
|
136
|
-
fileHandle: import("
|
|
139
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
137
140
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
138
141
|
stats: {
|
|
139
142
|
open: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ExcalidrawTextElement } from "@excalidraw/element/types";
|
|
1
2
|
export declare let copiedStyles: string;
|
|
2
3
|
export declare const actionCopyStyles: {
|
|
3
4
|
name: "copyStyles";
|
|
@@ -28,6 +29,9 @@ export declare const actionCopyStyles: {
|
|
|
28
29
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
31
|
isBindingEnabled: boolean;
|
|
32
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
33
|
+
bindingPreference: "enabled" | "disabled";
|
|
34
|
+
isMidpointSnappingEnabled: boolean;
|
|
31
35
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
36
|
suggestedBinding: {
|
|
33
37
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -42,7 +46,7 @@ export declare const actionCopyStyles: {
|
|
|
42
46
|
};
|
|
43
47
|
editingFrame: string | null;
|
|
44
48
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
|
-
editingTextElement:
|
|
49
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
46
50
|
activeTool: {
|
|
47
51
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
48
52
|
locked: boolean;
|
|
@@ -132,7 +136,7 @@ export declare const actionCopyStyles: {
|
|
|
132
136
|
height: number;
|
|
133
137
|
offsetTop: number;
|
|
134
138
|
offsetLeft: number;
|
|
135
|
-
fileHandle: import("
|
|
139
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
136
140
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
137
141
|
stats: {
|
|
138
142
|
open: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
2
|
export declare const actionTextAutoResize: {
|
|
3
3
|
name: "autoResize";
|
|
4
4
|
label: string;
|
|
@@ -6,8 +6,8 @@ export declare const actionTextAutoResize: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
predicate: (elements: readonly
|
|
10
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>,
|
|
9
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: unknown) => boolean;
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, targetElement: unknown) => {
|
|
11
11
|
appState: Readonly<import("../types").AppState>;
|
|
12
12
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|