@excalidraw/common 0.18.0-b7aac689a → 0.18.0-c141960
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 +329 -46
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- 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 +2 -6
- 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 +1 -1
|
@@ -4,7 +4,7 @@ export declare const actionAddToLibrary: {
|
|
|
4
4
|
trackEvent: {
|
|
5
5
|
category: "element";
|
|
6
6
|
};
|
|
7
|
-
perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _:
|
|
7
|
+
perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
8
8
|
captureUpdate: "EVENTUALLY";
|
|
9
9
|
appState: {
|
|
10
10
|
toast: {
|
|
@@ -28,7 +28,7 @@ export declare const actionAddToLibrary: {
|
|
|
28
28
|
selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
30
|
startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
|
|
31
|
-
|
|
31
|
+
suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
|
|
32
32
|
frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
|
|
33
33
|
frameRendering: {
|
|
34
34
|
enabled: boolean;
|
|
@@ -39,12 +39,15 @@ export declare const actionAddToLibrary: {
|
|
|
39
39
|
editingFrame: string | null;
|
|
40
40
|
elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
|
|
41
41
|
editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
42
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
43
42
|
activeTool: {
|
|
44
43
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
44
|
locked: boolean;
|
|
46
45
|
fromSelection: boolean;
|
|
47
46
|
} & import("../types").ActiveTool;
|
|
47
|
+
preferredSelectionTool: {
|
|
48
|
+
type: "selection" | "lasso";
|
|
49
|
+
initialized: boolean;
|
|
50
|
+
};
|
|
48
51
|
penMode: boolean;
|
|
49
52
|
penDetected: boolean;
|
|
50
53
|
exportBackground: boolean;
|
|
@@ -77,8 +80,8 @@ export declare const actionAddToLibrary: {
|
|
|
77
80
|
zoom: Readonly<{
|
|
78
81
|
value: import("../types").NormalizedZoomValue;
|
|
79
82
|
}>;
|
|
80
|
-
openMenu: "canvas" |
|
|
81
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
83
|
+
openMenu: "canvas" | null;
|
|
84
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
82
85
|
openSidebar: {
|
|
83
86
|
name: string;
|
|
84
87
|
tab?: string | undefined;
|
|
@@ -90,6 +93,8 @@ export declare const actionAddToLibrary: {
|
|
|
90
93
|
tab: "mermaid" | "text-to-diagram";
|
|
91
94
|
} | {
|
|
92
95
|
name: "commandPalette";
|
|
96
|
+
} | {
|
|
97
|
+
name: "settings";
|
|
93
98
|
} | {
|
|
94
99
|
name: "elementLinkSelector";
|
|
95
100
|
sourceElementId: string;
|
|
@@ -154,7 +159,7 @@ export declare const actionAddToLibrary: {
|
|
|
154
159
|
shown: true;
|
|
155
160
|
data: import("../charts").Spreadsheet;
|
|
156
161
|
};
|
|
157
|
-
showHyperlinkPopup: false | "
|
|
162
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
158
163
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
159
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
160
165
|
originSnapOffset: {
|
|
@@ -174,6 +179,7 @@ export declare const actionAddToLibrary: {
|
|
|
174
179
|
lockedMultiSelections: {
|
|
175
180
|
[groupId: string]: true;
|
|
176
181
|
};
|
|
182
|
+
bindMode: import("../../element/src/types").BindMode;
|
|
177
183
|
};
|
|
178
184
|
} | {
|
|
179
185
|
captureUpdate: "EVENTUALLY";
|
|
@@ -196,7 +202,7 @@ export declare const actionAddToLibrary: {
|
|
|
196
202
|
selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
197
203
|
isBindingEnabled: boolean;
|
|
198
204
|
startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
|
|
199
|
-
|
|
205
|
+
suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
|
|
200
206
|
frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
|
|
201
207
|
frameRendering: {
|
|
202
208
|
enabled: boolean;
|
|
@@ -207,12 +213,15 @@ export declare const actionAddToLibrary: {
|
|
|
207
213
|
editingFrame: string | null;
|
|
208
214
|
elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
|
|
209
215
|
editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
210
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
211
216
|
activeTool: {
|
|
212
217
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
213
218
|
locked: boolean;
|
|
214
219
|
fromSelection: boolean;
|
|
215
220
|
} & import("../types").ActiveTool;
|
|
221
|
+
preferredSelectionTool: {
|
|
222
|
+
type: "selection" | "lasso";
|
|
223
|
+
initialized: boolean;
|
|
224
|
+
};
|
|
216
225
|
penMode: boolean;
|
|
217
226
|
penDetected: boolean;
|
|
218
227
|
exportBackground: boolean;
|
|
@@ -245,8 +254,8 @@ export declare const actionAddToLibrary: {
|
|
|
245
254
|
zoom: Readonly<{
|
|
246
255
|
value: import("../types").NormalizedZoomValue;
|
|
247
256
|
}>;
|
|
248
|
-
openMenu: "canvas" |
|
|
249
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
257
|
+
openMenu: "canvas" | null;
|
|
258
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
250
259
|
openSidebar: {
|
|
251
260
|
name: string;
|
|
252
261
|
tab?: string | undefined;
|
|
@@ -258,6 +267,8 @@ export declare const actionAddToLibrary: {
|
|
|
258
267
|
tab: "mermaid" | "text-to-diagram";
|
|
259
268
|
} | {
|
|
260
269
|
name: "commandPalette";
|
|
270
|
+
} | {
|
|
271
|
+
name: "settings";
|
|
261
272
|
} | {
|
|
262
273
|
name: "elementLinkSelector";
|
|
263
274
|
sourceElementId: string;
|
|
@@ -327,7 +338,7 @@ export declare const actionAddToLibrary: {
|
|
|
327
338
|
shown: true;
|
|
328
339
|
data: import("../charts").Spreadsheet;
|
|
329
340
|
};
|
|
330
|
-
showHyperlinkPopup: false | "
|
|
341
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
331
342
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
332
343
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
333
344
|
originSnapOffset: {
|
|
@@ -347,6 +358,7 @@ export declare const actionAddToLibrary: {
|
|
|
347
358
|
lockedMultiSelections: {
|
|
348
359
|
[groupId: string]: true;
|
|
349
360
|
};
|
|
361
|
+
bindMode: import("../../element/src/types").BindMode;
|
|
350
362
|
};
|
|
351
363
|
}> | {
|
|
352
364
|
captureUpdate: "EVENTUALLY";
|
|
@@ -369,7 +381,7 @@ export declare const actionAddToLibrary: {
|
|
|
369
381
|
selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
370
382
|
isBindingEnabled: boolean;
|
|
371
383
|
startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
|
|
372
|
-
|
|
384
|
+
suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
|
|
373
385
|
frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
|
|
374
386
|
frameRendering: {
|
|
375
387
|
enabled: boolean;
|
|
@@ -380,12 +392,15 @@ export declare const actionAddToLibrary: {
|
|
|
380
392
|
editingFrame: string | null;
|
|
381
393
|
elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
|
|
382
394
|
editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
383
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
384
395
|
activeTool: {
|
|
385
396
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
386
397
|
locked: boolean;
|
|
387
398
|
fromSelection: boolean;
|
|
388
399
|
} & import("../types").ActiveTool;
|
|
400
|
+
preferredSelectionTool: {
|
|
401
|
+
type: "selection" | "lasso";
|
|
402
|
+
initialized: boolean;
|
|
403
|
+
};
|
|
389
404
|
penMode: boolean;
|
|
390
405
|
penDetected: boolean;
|
|
391
406
|
exportBackground: boolean;
|
|
@@ -418,8 +433,8 @@ export declare const actionAddToLibrary: {
|
|
|
418
433
|
zoom: Readonly<{
|
|
419
434
|
value: import("../types").NormalizedZoomValue;
|
|
420
435
|
}>;
|
|
421
|
-
openMenu: "canvas" |
|
|
422
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
436
|
+
openMenu: "canvas" | null;
|
|
437
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
423
438
|
openSidebar: {
|
|
424
439
|
name: string;
|
|
425
440
|
tab?: string | undefined;
|
|
@@ -431,6 +446,8 @@ export declare const actionAddToLibrary: {
|
|
|
431
446
|
tab: "mermaid" | "text-to-diagram";
|
|
432
447
|
} | {
|
|
433
448
|
name: "commandPalette";
|
|
449
|
+
} | {
|
|
450
|
+
name: "settings";
|
|
434
451
|
} | {
|
|
435
452
|
name: "elementLinkSelector";
|
|
436
453
|
sourceElementId: string;
|
|
@@ -500,7 +517,7 @@ export declare const actionAddToLibrary: {
|
|
|
500
517
|
shown: true;
|
|
501
518
|
data: import("../charts").Spreadsheet;
|
|
502
519
|
};
|
|
503
|
-
showHyperlinkPopup: false | "
|
|
520
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
504
521
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
505
522
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
506
523
|
originSnapOffset: {
|
|
@@ -520,6 +537,7 @@ export declare const actionAddToLibrary: {
|
|
|
520
537
|
lockedMultiSelections: {
|
|
521
538
|
[groupId: string]: true;
|
|
522
539
|
};
|
|
540
|
+
bindMode: import("../../element/src/types").BindMode;
|
|
523
541
|
};
|
|
524
542
|
};
|
|
525
543
|
label: string;
|
|
@@ -10,7 +10,7 @@ export declare const actionAlignTop: {
|
|
|
10
10
|
category: "element";
|
|
11
11
|
};
|
|
12
12
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
13
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
13
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
15
|
elements: ExcalidrawElement[];
|
|
16
16
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -28,7 +28,7 @@ export declare const actionAlignBottom: {
|
|
|
28
28
|
category: "element";
|
|
29
29
|
};
|
|
30
30
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
31
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
31
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
32
32
|
appState: Readonly<AppState>;
|
|
33
33
|
elements: ExcalidrawElement[];
|
|
34
34
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -46,7 +46,7 @@ export declare const actionAlignLeft: {
|
|
|
46
46
|
category: "element";
|
|
47
47
|
};
|
|
48
48
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
49
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
49
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
50
50
|
appState: Readonly<AppState>;
|
|
51
51
|
elements: ExcalidrawElement[];
|
|
52
52
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -64,7 +64,7 @@ export declare const actionAlignRight: {
|
|
|
64
64
|
category: "element";
|
|
65
65
|
};
|
|
66
66
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
67
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
67
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
68
68
|
appState: Readonly<AppState>;
|
|
69
69
|
elements: ExcalidrawElement[];
|
|
70
70
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -82,7 +82,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
82
82
|
category: "element";
|
|
83
83
|
};
|
|
84
84
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
85
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
85
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
86
86
|
appState: Readonly<AppState>;
|
|
87
87
|
elements: ExcalidrawElement[];
|
|
88
88
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -99,7 +99,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
99
99
|
category: "element";
|
|
100
100
|
};
|
|
101
101
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
102
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
102
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
103
103
|
appState: Readonly<AppState>;
|
|
104
104
|
elements: ExcalidrawElement[];
|
|
105
105
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -9,7 +9,7 @@ export declare const actionUnbindText: {
|
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
11
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
12
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
12
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
13
13
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
15
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -24,7 +24,7 @@ export declare const actionBindText: {
|
|
|
24
24
|
category: "element";
|
|
25
25
|
};
|
|
26
26
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
27
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
27
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
appState: {
|
|
30
30
|
selectedElementIds: {
|
|
@@ -48,7 +48,7 @@ export declare const actionBindText: {
|
|
|
48
48
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
49
|
isBindingEnabled: boolean;
|
|
50
50
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
51
|
-
|
|
51
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
52
52
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
53
53
|
frameRendering: {
|
|
54
54
|
enabled: boolean;
|
|
@@ -59,12 +59,15 @@ export declare const actionBindText: {
|
|
|
59
59
|
editingFrame: string | null;
|
|
60
60
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
61
61
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
63
62
|
activeTool: {
|
|
64
63
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
65
64
|
locked: boolean;
|
|
66
65
|
fromSelection: boolean;
|
|
67
66
|
} & import("../types").ActiveTool;
|
|
67
|
+
preferredSelectionTool: {
|
|
68
|
+
type: "selection" | "lasso";
|
|
69
|
+
initialized: boolean;
|
|
70
|
+
};
|
|
68
71
|
penMode: boolean;
|
|
69
72
|
penDetected: boolean;
|
|
70
73
|
exportBackground: boolean;
|
|
@@ -97,8 +100,8 @@ export declare const actionBindText: {
|
|
|
97
100
|
zoom: Readonly<{
|
|
98
101
|
value: import("../types").NormalizedZoomValue;
|
|
99
102
|
}>;
|
|
100
|
-
openMenu: "canvas" |
|
|
101
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
103
|
+
openMenu: "canvas" | null;
|
|
104
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
102
105
|
openSidebar: {
|
|
103
106
|
name: string;
|
|
104
107
|
tab?: string | undefined;
|
|
@@ -110,6 +113,8 @@ export declare const actionBindText: {
|
|
|
110
113
|
tab: "mermaid" | "text-to-diagram";
|
|
111
114
|
} | {
|
|
112
115
|
name: "commandPalette";
|
|
116
|
+
} | {
|
|
117
|
+
name: "settings";
|
|
113
118
|
} | {
|
|
114
119
|
name: "elementLinkSelector";
|
|
115
120
|
sourceElementId: string;
|
|
@@ -176,7 +181,7 @@ export declare const actionBindText: {
|
|
|
176
181
|
shown: true;
|
|
177
182
|
data: import("../charts").Spreadsheet;
|
|
178
183
|
};
|
|
179
|
-
showHyperlinkPopup: false | "
|
|
184
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
180
185
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
181
186
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
182
187
|
originSnapOffset: {
|
|
@@ -196,6 +201,7 @@ export declare const actionBindText: {
|
|
|
196
201
|
lockedMultiSelections: {
|
|
197
202
|
[groupId: string]: true;
|
|
198
203
|
};
|
|
204
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
199
205
|
};
|
|
200
206
|
captureUpdate: "IMMEDIATELY";
|
|
201
207
|
};
|
|
@@ -209,7 +215,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
209
215
|
category: "element";
|
|
210
216
|
};
|
|
211
217
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
212
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
218
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
213
219
|
elements: readonly ExcalidrawElement[];
|
|
214
220
|
appState: {
|
|
215
221
|
selectedElementIds: Mutable<Readonly<{
|
|
@@ -233,7 +239,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
233
239
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
234
240
|
isBindingEnabled: boolean;
|
|
235
241
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
236
|
-
|
|
242
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
237
243
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
238
244
|
frameRendering: {
|
|
239
245
|
enabled: boolean;
|
|
@@ -244,12 +250,15 @@ export declare const actionWrapTextInContainer: {
|
|
|
244
250
|
editingFrame: string | null;
|
|
245
251
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
246
252
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
247
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
248
253
|
activeTool: {
|
|
249
254
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
250
255
|
locked: boolean;
|
|
251
256
|
fromSelection: boolean;
|
|
252
257
|
} & import("../types").ActiveTool;
|
|
258
|
+
preferredSelectionTool: {
|
|
259
|
+
type: "selection" | "lasso";
|
|
260
|
+
initialized: boolean;
|
|
261
|
+
};
|
|
253
262
|
penMode: boolean;
|
|
254
263
|
penDetected: boolean;
|
|
255
264
|
exportBackground: boolean;
|
|
@@ -282,8 +291,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
282
291
|
zoom: Readonly<{
|
|
283
292
|
value: import("../types").NormalizedZoomValue;
|
|
284
293
|
}>;
|
|
285
|
-
openMenu: "canvas" |
|
|
286
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
294
|
+
openMenu: "canvas" | null;
|
|
295
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
287
296
|
openSidebar: {
|
|
288
297
|
name: string;
|
|
289
298
|
tab?: string | undefined;
|
|
@@ -295,6 +304,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
295
304
|
tab: "mermaid" | "text-to-diagram";
|
|
296
305
|
} | {
|
|
297
306
|
name: "commandPalette";
|
|
307
|
+
} | {
|
|
308
|
+
name: "settings";
|
|
298
309
|
} | {
|
|
299
310
|
name: "elementLinkSelector";
|
|
300
311
|
sourceElementId: string;
|
|
@@ -361,7 +372,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
361
372
|
shown: true;
|
|
362
373
|
data: import("../charts").Spreadsheet;
|
|
363
374
|
};
|
|
364
|
-
showHyperlinkPopup: false | "
|
|
375
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
365
376
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
366
377
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
367
378
|
originSnapOffset: {
|
|
@@ -381,6 +392,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
381
392
|
lockedMultiSelections: {
|
|
382
393
|
[groupId: string]: true;
|
|
383
394
|
};
|
|
395
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
384
396
|
};
|
|
385
397
|
captureUpdate: "IMMEDIATELY";
|
|
386
398
|
};
|