@excalidraw/element 0.18.0-4e471c107 → 0.18.0-51ad895
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/index.js +2991 -2061
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +17 -17
- package/dist/types/common/src/constants.d.ts +21 -15
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/index.d.ts +2 -0
- package/dist/types/common/src/utils.d.ts +9 -3
- package/dist/types/common/src/visualdebug.d.ts +41 -0
- package/dist/types/element/src/Scene.d.ts +6 -2
- package/dist/types/element/src/align.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +55 -43
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/collision.d.ts +6 -2
- package/dist/types/element/src/delta.d.ts +16 -4
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +1 -3
- package/dist/types/element/src/linearElementEditor.d.ts +17 -19
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +5 -2
- package/dist/types/element/src/resizeTest.d.ts +5 -4
- package/dist/types/element/src/store.d.ts +6 -1
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +5 -4
- package/dist/types/element/src/typeChecks.d.ts +2 -3
- package/dist/types/element/src/types.d.ts +7 -11
- package/dist/types/element/src/utils.d.ts +2 -1
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +34 -16
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +25 -13
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +153 -275
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +45 -777
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +45 -29
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +11 -7
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +23 -11
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionExport.d.ts +68 -952
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +50 -28
- package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -12
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +47 -14
- package/dist/types/excalidraw/actions/actionLink.d.ts +9 -3
- package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -374
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +21 -361
- package/dist/types/excalidraw/actions/actionProperties.d.ts +87 -2418
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -7
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -6
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/index.d.ts +2 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/register.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +4 -4
- package/dist/types/excalidraw/appState.d.ts +9 -4
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +20 -7
- package/dist/types/excalidraw/components/App.d.ts +35 -25
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +10 -0
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +3 -7
- package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
- package/dist/types/excalidraw/data/restore.d.ts +7 -2
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +4 -4
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +1 -5
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/scene/types.d.ts +15 -3
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +37 -24
- package/dist/types/math/src/segment.d.ts +1 -0
- package/package.json +3 -3
|
@@ -7,7 +7,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "canvas";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
11
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
12
|
appState: {
|
|
13
13
|
selectedElementIds: Record<string, true>;
|
|
@@ -29,7 +29,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
29
29
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
31
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
-
|
|
32
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
33
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
@@ -40,12 +40,15 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
40
40
|
editingFrame: string | null;
|
|
41
41
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
42
42
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
44
43
|
activeTool: {
|
|
45
44
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
45
|
locked: boolean;
|
|
47
46
|
fromSelection: boolean;
|
|
48
47
|
} & import("../types").ActiveTool;
|
|
48
|
+
preferredSelectionTool: {
|
|
49
|
+
type: "selection" | "lasso";
|
|
50
|
+
initialized: boolean;
|
|
51
|
+
};
|
|
49
52
|
penMode: boolean;
|
|
50
53
|
penDetected: boolean;
|
|
51
54
|
exportBackground: boolean;
|
|
@@ -78,8 +81,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
78
81
|
zoom: Readonly<{
|
|
79
82
|
value: import("../types").NormalizedZoomValue;
|
|
80
83
|
}>;
|
|
81
|
-
openMenu: "canvas" |
|
|
82
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
|
+
openMenu: "canvas" | null;
|
|
85
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
83
86
|
openSidebar: {
|
|
84
87
|
name: string;
|
|
85
88
|
tab?: string | undefined;
|
|
@@ -91,6 +94,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
91
94
|
tab: "mermaid" | "text-to-diagram";
|
|
92
95
|
} | {
|
|
93
96
|
name: "commandPalette";
|
|
97
|
+
} | {
|
|
98
|
+
name: "settings";
|
|
94
99
|
} | {
|
|
95
100
|
name: "elementLinkSelector";
|
|
96
101
|
sourceElementId: string;
|
|
@@ -157,7 +162,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
157
162
|
shown: true;
|
|
158
163
|
data: import("../charts").Spreadsheet;
|
|
159
164
|
};
|
|
160
|
-
showHyperlinkPopup: false | "
|
|
165
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
161
166
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
162
167
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
168
|
originSnapOffset: {
|
|
@@ -177,6 +182,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
177
182
|
lockedMultiSelections: {
|
|
178
183
|
[groupId: string]: true;
|
|
179
184
|
};
|
|
185
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
180
186
|
};
|
|
181
187
|
captureUpdate: "IMMEDIATELY";
|
|
182
188
|
} | {
|
|
@@ -194,7 +200,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
194
200
|
trackEvent: {
|
|
195
201
|
category: "history";
|
|
196
202
|
};
|
|
197
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
203
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
198
204
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
199
205
|
appState: {
|
|
200
206
|
selectedElementIds: {
|
|
@@ -218,7 +224,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
218
224
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
219
225
|
isBindingEnabled: boolean;
|
|
220
226
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
221
|
-
|
|
227
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
222
228
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
223
229
|
frameRendering: {
|
|
224
230
|
enabled: boolean;
|
|
@@ -229,12 +235,15 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
229
235
|
editingFrame: string | null;
|
|
230
236
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
231
237
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
232
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
233
238
|
activeTool: {
|
|
234
239
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
235
240
|
locked: boolean;
|
|
236
241
|
fromSelection: boolean;
|
|
237
242
|
} & import("../types").ActiveTool;
|
|
243
|
+
preferredSelectionTool: {
|
|
244
|
+
type: "selection" | "lasso";
|
|
245
|
+
initialized: boolean;
|
|
246
|
+
};
|
|
238
247
|
penMode: boolean;
|
|
239
248
|
penDetected: boolean;
|
|
240
249
|
exportBackground: boolean;
|
|
@@ -267,8 +276,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
267
276
|
zoom: Readonly<{
|
|
268
277
|
value: import("../types").NormalizedZoomValue;
|
|
269
278
|
}>;
|
|
270
|
-
openMenu: "canvas" |
|
|
271
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
279
|
+
openMenu: "canvas" | null;
|
|
280
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
272
281
|
openSidebar: {
|
|
273
282
|
name: string;
|
|
274
283
|
tab?: string | undefined;
|
|
@@ -280,6 +289,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
280
289
|
tab: "mermaid" | "text-to-diagram";
|
|
281
290
|
} | {
|
|
282
291
|
name: "commandPalette";
|
|
292
|
+
} | {
|
|
293
|
+
name: "settings";
|
|
283
294
|
} | {
|
|
284
295
|
name: "elementLinkSelector";
|
|
285
296
|
sourceElementId: string;
|
|
@@ -346,7 +357,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
346
357
|
shown: true;
|
|
347
358
|
data: import("../charts").Spreadsheet;
|
|
348
359
|
};
|
|
349
|
-
showHyperlinkPopup: false | "
|
|
360
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
350
361
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
351
362
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
352
363
|
originSnapOffset: {
|
|
@@ -366,6 +377,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
366
377
|
lockedMultiSelections: {
|
|
367
378
|
[groupId: string]: true;
|
|
368
379
|
};
|
|
380
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
369
381
|
};
|
|
370
382
|
captureUpdate: "IMMEDIATELY";
|
|
371
383
|
} | {
|
|
@@ -411,17 +423,20 @@ export declare const actionupdateFrameRendering: {
|
|
|
411
423
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
412
424
|
isBindingEnabled: boolean;
|
|
413
425
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
414
|
-
|
|
426
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
415
427
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
416
428
|
editingFrame: string | null;
|
|
417
429
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
418
430
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
419
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
420
431
|
activeTool: {
|
|
421
432
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
422
433
|
locked: boolean;
|
|
423
434
|
fromSelection: boolean;
|
|
424
435
|
} & import("../types").ActiveTool;
|
|
436
|
+
preferredSelectionTool: {
|
|
437
|
+
type: "selection" | "lasso";
|
|
438
|
+
initialized: boolean;
|
|
439
|
+
};
|
|
425
440
|
penMode: boolean;
|
|
426
441
|
penDetected: boolean;
|
|
427
442
|
exportBackground: boolean;
|
|
@@ -454,8 +469,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
454
469
|
zoom: Readonly<{
|
|
455
470
|
value: import("../types").NormalizedZoomValue;
|
|
456
471
|
}>;
|
|
457
|
-
openMenu: "canvas" |
|
|
458
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
472
|
+
openMenu: "canvas" | null;
|
|
473
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
459
474
|
openSidebar: {
|
|
460
475
|
name: string;
|
|
461
476
|
tab?: string | undefined;
|
|
@@ -467,6 +482,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
467
482
|
tab: "mermaid" | "text-to-diagram";
|
|
468
483
|
} | {
|
|
469
484
|
name: "commandPalette";
|
|
485
|
+
} | {
|
|
486
|
+
name: "settings";
|
|
470
487
|
} | {
|
|
471
488
|
name: "elementLinkSelector";
|
|
472
489
|
sourceElementId: string;
|
|
@@ -536,7 +553,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
536
553
|
shown: true;
|
|
537
554
|
data: import("../charts").Spreadsheet;
|
|
538
555
|
};
|
|
539
|
-
showHyperlinkPopup: false | "
|
|
556
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
540
557
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
541
558
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
542
559
|
originSnapOffset: {
|
|
@@ -556,6 +573,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
556
573
|
lockedMultiSelections: {
|
|
557
574
|
[groupId: string]: true;
|
|
558
575
|
};
|
|
576
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
559
577
|
};
|
|
560
578
|
captureUpdate: "EVENTUALLY";
|
|
561
579
|
};
|
|
@@ -571,7 +589,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
571
589
|
};
|
|
572
590
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
573
591
|
viewMode: false;
|
|
574
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
592
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
575
593
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
576
594
|
appState: {
|
|
577
595
|
activeTool: {
|
|
@@ -597,7 +615,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
597
615
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
598
616
|
isBindingEnabled: boolean;
|
|
599
617
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
600
|
-
|
|
618
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
601
619
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
602
620
|
frameRendering: {
|
|
603
621
|
enabled: boolean;
|
|
@@ -608,7 +626,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
608
626
|
editingFrame: string | null;
|
|
609
627
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
610
628
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
611
|
-
|
|
629
|
+
preferredSelectionTool: {
|
|
630
|
+
type: "selection" | "lasso";
|
|
631
|
+
initialized: boolean;
|
|
632
|
+
};
|
|
612
633
|
penMode: boolean;
|
|
613
634
|
penDetected: boolean;
|
|
614
635
|
exportBackground: boolean;
|
|
@@ -641,8 +662,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
641
662
|
zoom: Readonly<{
|
|
642
663
|
value: import("../types").NormalizedZoomValue;
|
|
643
664
|
}>;
|
|
644
|
-
openMenu: "canvas" |
|
|
645
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
665
|
+
openMenu: "canvas" | null;
|
|
666
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
646
667
|
openSidebar: {
|
|
647
668
|
name: string;
|
|
648
669
|
tab?: string | undefined;
|
|
@@ -654,6 +675,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
654
675
|
tab: "mermaid" | "text-to-diagram";
|
|
655
676
|
} | {
|
|
656
677
|
name: "commandPalette";
|
|
678
|
+
} | {
|
|
679
|
+
name: "settings";
|
|
657
680
|
} | {
|
|
658
681
|
name: "elementLinkSelector";
|
|
659
682
|
sourceElementId: string;
|
|
@@ -723,7 +746,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
723
746
|
shown: true;
|
|
724
747
|
data: import("../charts").Spreadsheet;
|
|
725
748
|
};
|
|
726
|
-
showHyperlinkPopup: false | "
|
|
749
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
727
750
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
728
751
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
729
752
|
originSnapOffset: {
|
|
@@ -743,6 +766,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
743
766
|
lockedMultiSelections: {
|
|
744
767
|
[groupId: string]: true;
|
|
745
768
|
};
|
|
769
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
746
770
|
};
|
|
747
771
|
captureUpdate: "EVENTUALLY";
|
|
748
772
|
};
|
|
@@ -757,7 +781,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
757
781
|
category: "element";
|
|
758
782
|
};
|
|
759
783
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
760
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
784
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
761
785
|
elements: ((Readonly<{
|
|
762
786
|
id: string;
|
|
763
787
|
x: number;
|
|
@@ -794,9 +818,8 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
794
818
|
}> & Readonly<{
|
|
795
819
|
type: "line" | "arrow";
|
|
796
820
|
points: readonly import("../../math/src").LocalPoint[];
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
821
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
822
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
800
823
|
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
801
824
|
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
802
825
|
}> & {
|
|
@@ -1229,7 +1252,6 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1229
1252
|
points: readonly import("../../math/src").LocalPoint[];
|
|
1230
1253
|
pressures: readonly number[];
|
|
1231
1254
|
simulatePressure: boolean;
|
|
1232
|
-
lastCommittedPoint: import("../../math/src").LocalPoint | null;
|
|
1233
1255
|
}> & {
|
|
1234
1256
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1235
1257
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|
|
@@ -8,7 +8,7 @@ export declare const actionGroup: {
|
|
|
8
8
|
trackEvent: {
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
11
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
12
12
|
appState: Readonly<AppState>;
|
|
13
13
|
elements: readonly OrderedExcalidrawElement[];
|
|
14
14
|
captureUpdate: "EVENTUALLY";
|
|
@@ -39,7 +39,7 @@ export declare const actionGroup: {
|
|
|
39
39
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
40
|
isBindingEnabled: boolean;
|
|
41
41
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
42
|
-
|
|
42
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
43
43
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
44
44
|
frameRendering: {
|
|
45
45
|
enabled: boolean;
|
|
@@ -50,12 +50,15 @@ export declare const actionGroup: {
|
|
|
50
50
|
editingFrame: string | null;
|
|
51
51
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
52
52
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
53
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
54
53
|
activeTool: {
|
|
55
54
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
56
55
|
locked: boolean;
|
|
57
56
|
fromSelection: boolean;
|
|
58
57
|
} & import("../types").ActiveTool;
|
|
58
|
+
preferredSelectionTool: {
|
|
59
|
+
type: "selection" | "lasso";
|
|
60
|
+
initialized: boolean;
|
|
61
|
+
};
|
|
59
62
|
penMode: boolean;
|
|
60
63
|
penDetected: boolean;
|
|
61
64
|
exportBackground: boolean;
|
|
@@ -88,8 +91,8 @@ export declare const actionGroup: {
|
|
|
88
91
|
zoom: Readonly<{
|
|
89
92
|
value: import("../types").NormalizedZoomValue;
|
|
90
93
|
}>;
|
|
91
|
-
openMenu: "canvas" |
|
|
92
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
94
|
+
openMenu: "canvas" | null;
|
|
95
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
93
96
|
openSidebar: {
|
|
94
97
|
name: string;
|
|
95
98
|
tab?: string | undefined;
|
|
@@ -101,6 +104,8 @@ export declare const actionGroup: {
|
|
|
101
104
|
tab: "mermaid" | "text-to-diagram";
|
|
102
105
|
} | {
|
|
103
106
|
name: "commandPalette";
|
|
107
|
+
} | {
|
|
108
|
+
name: "settings";
|
|
104
109
|
} | {
|
|
105
110
|
name: "elementLinkSelector";
|
|
106
111
|
sourceElementId: string;
|
|
@@ -163,7 +168,7 @@ export declare const actionGroup: {
|
|
|
163
168
|
shown: true;
|
|
164
169
|
data: import("../charts").Spreadsheet;
|
|
165
170
|
};
|
|
166
|
-
showHyperlinkPopup: false | "
|
|
171
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
167
172
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
168
173
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
169
174
|
originSnapOffset: {
|
|
@@ -183,6 +188,7 @@ export declare const actionGroup: {
|
|
|
183
188
|
lockedMultiSelections: {
|
|
184
189
|
[groupId: string]: true;
|
|
185
190
|
};
|
|
191
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
186
192
|
};
|
|
187
193
|
elements: OrderedExcalidrawElement[];
|
|
188
194
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -200,7 +206,7 @@ export declare const actionUngroup: {
|
|
|
200
206
|
trackEvent: {
|
|
201
207
|
category: "element";
|
|
202
208
|
};
|
|
203
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
209
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
204
210
|
appState: Readonly<AppState>;
|
|
205
211
|
elements: readonly OrderedExcalidrawElement[];
|
|
206
212
|
captureUpdate: "EVENTUALLY";
|
|
@@ -231,7 +237,7 @@ export declare const actionUngroup: {
|
|
|
231
237
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
232
238
|
isBindingEnabled: boolean;
|
|
233
239
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
234
|
-
|
|
240
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
235
241
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
236
242
|
frameRendering: {
|
|
237
243
|
enabled: boolean;
|
|
@@ -242,12 +248,15 @@ export declare const actionUngroup: {
|
|
|
242
248
|
editingFrame: string | null;
|
|
243
249
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
244
250
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
245
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
246
251
|
activeTool: {
|
|
247
252
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
248
253
|
locked: boolean;
|
|
249
254
|
fromSelection: boolean;
|
|
250
255
|
} & import("../types").ActiveTool;
|
|
256
|
+
preferredSelectionTool: {
|
|
257
|
+
type: "selection" | "lasso";
|
|
258
|
+
initialized: boolean;
|
|
259
|
+
};
|
|
251
260
|
penMode: boolean;
|
|
252
261
|
penDetected: boolean;
|
|
253
262
|
exportBackground: boolean;
|
|
@@ -280,8 +289,8 @@ export declare const actionUngroup: {
|
|
|
280
289
|
zoom: Readonly<{
|
|
281
290
|
value: import("../types").NormalizedZoomValue;
|
|
282
291
|
}>;
|
|
283
|
-
openMenu: "canvas" |
|
|
284
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
292
|
+
openMenu: "canvas" | null;
|
|
293
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
285
294
|
openSidebar: {
|
|
286
295
|
name: string;
|
|
287
296
|
tab?: string | undefined;
|
|
@@ -293,6 +302,8 @@ export declare const actionUngroup: {
|
|
|
293
302
|
tab: "mermaid" | "text-to-diagram";
|
|
294
303
|
} | {
|
|
295
304
|
name: "commandPalette";
|
|
305
|
+
} | {
|
|
306
|
+
name: "settings";
|
|
296
307
|
} | {
|
|
297
308
|
name: "elementLinkSelector";
|
|
298
309
|
sourceElementId: string;
|
|
@@ -355,7 +366,7 @@ export declare const actionUngroup: {
|
|
|
355
366
|
shown: true;
|
|
356
367
|
data: import("../charts").Spreadsheet;
|
|
357
368
|
};
|
|
358
|
-
showHyperlinkPopup: false | "
|
|
369
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
359
370
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
360
371
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
361
372
|
originSnapOffset: {
|
|
@@ -375,6 +386,7 @@ export declare const actionUngroup: {
|
|
|
375
386
|
lockedMultiSelections: {
|
|
376
387
|
[groupId: string]: true;
|
|
377
388
|
};
|
|
389
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
378
390
|
};
|
|
379
391
|
elements: OrderedExcalidrawElement[];
|
|
380
392
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
2
|
import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
4
3
|
export declare const actionToggleLinearEditor: {
|
|
5
4
|
name: "toggleLinearEditor";
|
|
@@ -10,9 +9,39 @@ export declare const actionToggleLinearEditor: {
|
|
|
10
9
|
category: "element";
|
|
11
10
|
};
|
|
12
11
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
13
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
12
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
|
|
14
13
|
appState: {
|
|
15
|
-
|
|
14
|
+
selectedLinearElement: {
|
|
15
|
+
isEditing: boolean;
|
|
16
|
+
elementId: string & {
|
|
17
|
+
_brand: "excalidrawLinearElementId";
|
|
18
|
+
};
|
|
19
|
+
selectedPointsIndices: readonly number[] | null;
|
|
20
|
+
initialState: Readonly<{
|
|
21
|
+
prevSelectedPointsIndices: readonly number[] | null;
|
|
22
|
+
lastClickedPoint: number;
|
|
23
|
+
origin: Readonly<import("../../math/src").GlobalPoint> | null;
|
|
24
|
+
segmentMidpoint: {
|
|
25
|
+
value: import("../../math/src").GlobalPoint | null;
|
|
26
|
+
index: number | null;
|
|
27
|
+
added: boolean;
|
|
28
|
+
};
|
|
29
|
+
arrowStartIsInside: boolean;
|
|
30
|
+
altFocusPoint: Readonly<import("../../math/src").GlobalPoint> | null;
|
|
31
|
+
}>;
|
|
32
|
+
isDragging: boolean;
|
|
33
|
+
lastUncommittedPoint: import("../../math/src").LocalPoint | null;
|
|
34
|
+
lastCommittedPoint: import("../../math/src").LocalPoint | null;
|
|
35
|
+
pointerOffset: Readonly<{
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
}>;
|
|
39
|
+
hoverPointIndex: number;
|
|
40
|
+
segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
|
|
41
|
+
elbowed: boolean;
|
|
42
|
+
customLineAngle: number | null;
|
|
43
|
+
pointerDownState: never;
|
|
44
|
+
};
|
|
16
45
|
contextMenu: {
|
|
17
46
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
18
47
|
top: number;
|
|
@@ -31,7 +60,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
31
60
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
61
|
isBindingEnabled: boolean;
|
|
33
62
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
|
-
|
|
63
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
64
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
36
65
|
frameRendering: {
|
|
37
66
|
enabled: boolean;
|
|
@@ -47,6 +76,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
47
76
|
locked: boolean;
|
|
48
77
|
fromSelection: boolean;
|
|
49
78
|
} & import("../types").ActiveTool;
|
|
79
|
+
preferredSelectionTool: {
|
|
80
|
+
type: "selection" | "lasso";
|
|
81
|
+
initialized: boolean;
|
|
82
|
+
};
|
|
50
83
|
penMode: boolean;
|
|
51
84
|
penDetected: boolean;
|
|
52
85
|
exportBackground: boolean;
|
|
@@ -79,8 +112,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
79
112
|
zoom: Readonly<{
|
|
80
113
|
value: import("../types").NormalizedZoomValue;
|
|
81
114
|
}>;
|
|
82
|
-
openMenu: "canvas" |
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
115
|
+
openMenu: "canvas" | null;
|
|
116
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
117
|
openSidebar: {
|
|
85
118
|
name: string;
|
|
86
119
|
tab?: string | undefined;
|
|
@@ -92,6 +125,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
92
125
|
tab: "mermaid" | "text-to-diagram";
|
|
93
126
|
} | {
|
|
94
127
|
name: "commandPalette";
|
|
128
|
+
} | {
|
|
129
|
+
name: "settings";
|
|
95
130
|
} | {
|
|
96
131
|
name: "elementLinkSelector";
|
|
97
132
|
sourceElementId: string;
|
|
@@ -161,8 +196,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
161
196
|
shown: true;
|
|
162
197
|
data: import("../charts").Spreadsheet;
|
|
163
198
|
};
|
|
164
|
-
showHyperlinkPopup: false | "
|
|
165
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
199
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
166
200
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
201
|
originSnapOffset: {
|
|
168
202
|
x: number;
|
|
@@ -181,10 +215,11 @@ export declare const actionToggleLinearEditor: {
|
|
|
181
215
|
lockedMultiSelections: {
|
|
182
216
|
[groupId: string]: true;
|
|
183
217
|
};
|
|
218
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
184
219
|
};
|
|
185
220
|
captureUpdate: "IMMEDIATELY";
|
|
186
221
|
};
|
|
187
|
-
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
222
|
+
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
188
223
|
} & {
|
|
189
224
|
keyTest?: undefined;
|
|
190
225
|
};
|
|
@@ -198,7 +233,7 @@ export declare const actionTogglePolygon: {
|
|
|
198
233
|
category: "element";
|
|
199
234
|
};
|
|
200
235
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
201
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
236
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
|
|
202
237
|
elements: ((Readonly<{
|
|
203
238
|
id: string;
|
|
204
239
|
x: number;
|
|
@@ -235,9 +270,8 @@ export declare const actionTogglePolygon: {
|
|
|
235
270
|
}> & Readonly<{
|
|
236
271
|
type: "line" | "arrow";
|
|
237
272
|
points: readonly import("../../math/src").LocalPoint[];
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
273
|
+
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
274
|
+
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
241
275
|
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
242
276
|
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
243
277
|
}> & {
|
|
@@ -670,7 +704,6 @@ export declare const actionTogglePolygon: {
|
|
|
670
704
|
points: readonly import("../../math/src").LocalPoint[];
|
|
671
705
|
pressures: readonly number[];
|
|
672
706
|
simulatePressure: boolean;
|
|
673
|
-
lastCommittedPoint: import("../../math/src").LocalPoint | null;
|
|
674
707
|
}> & {
|
|
675
708
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
676
709
|
}))[];
|
|
@@ -26,7 +26,7 @@ export declare const actionLink: {
|
|
|
26
26
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
27
|
isBindingEnabled: boolean;
|
|
28
28
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
29
|
-
|
|
29
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
30
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
31
31
|
frameRendering: {
|
|
32
32
|
enabled: boolean;
|
|
@@ -37,12 +37,15 @@ export declare const actionLink: {
|
|
|
37
37
|
editingFrame: string | null;
|
|
38
38
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
39
39
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
41
40
|
activeTool: {
|
|
42
41
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
42
|
locked: boolean;
|
|
44
43
|
fromSelection: boolean;
|
|
45
44
|
} & import("../types").ActiveTool;
|
|
45
|
+
preferredSelectionTool: {
|
|
46
|
+
type: "selection" | "lasso";
|
|
47
|
+
initialized: boolean;
|
|
48
|
+
};
|
|
46
49
|
penMode: boolean;
|
|
47
50
|
penDetected: boolean;
|
|
48
51
|
exportBackground: boolean;
|
|
@@ -75,7 +78,7 @@ export declare const actionLink: {
|
|
|
75
78
|
zoom: Readonly<{
|
|
76
79
|
value: import("../types").NormalizedZoomValue;
|
|
77
80
|
}>;
|
|
78
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
79
82
|
openSidebar: {
|
|
80
83
|
name: string;
|
|
81
84
|
tab?: string | undefined;
|
|
@@ -87,6 +90,8 @@ export declare const actionLink: {
|
|
|
87
90
|
tab: "mermaid" | "text-to-diagram";
|
|
88
91
|
} | {
|
|
89
92
|
name: "commandPalette";
|
|
93
|
+
} | {
|
|
94
|
+
name: "settings";
|
|
90
95
|
} | {
|
|
91
96
|
name: "elementLinkSelector";
|
|
92
97
|
sourceElementId: string;
|
|
@@ -175,6 +180,7 @@ export declare const actionLink: {
|
|
|
175
180
|
lockedMultiSelections: {
|
|
176
181
|
[groupId: string]: true;
|
|
177
182
|
};
|
|
183
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
178
184
|
};
|
|
179
185
|
captureUpdate: "IMMEDIATELY";
|
|
180
186
|
};
|