@excalidraw/excalidraw 0.18.0-a30e1b2 → 0.18.0-a8acc82
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-6MX365WZ.js +5666 -0
- package/dist/dev/chunk-6MX365WZ.js.map +7 -0
- package/dist/dev/chunk-CP5DND7P.js +7 -0
- package/dist/dev/chunk-CP5DND7P.js.map +7 -0
- package/dist/dev/{chunk-CARD3WJZ.js → chunk-QF5FRM6O.js} +7 -2
- package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
- package/dist/dev/data/{image-AYLHSOBV.js → image-GQCFJKGM.js} +3 -3
- package/dist/dev/index.css +187 -21
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +15073 -16288
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-E3O5XSXJ.js → en-SMAPCEOQ.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-A66AFZZU.js +7 -0
- package/dist/prod/chunk-I4UNSFV6.js +12 -0
- package/dist/prod/chunk-R2M7VUMD.js +4 -0
- package/dist/prod/data/image-JWK7QZ22.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +27 -20
- package/dist/prod/locales/{en-44IKVKYT.js → en-TYY6KWIJ.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +38 -7
- package/dist/types/common/src/utils.d.ts +7 -5
- package/dist/types/element/src/Scene.d.ts +10 -6
- package/dist/types/element/src/align.d.ts +3 -2
- package/dist/types/element/src/binding.d.ts +11 -8
- package/dist/types/element/src/bounds.d.ts +12 -4
- package/dist/types/element/src/collision.d.ts +18 -12
- package/dist/types/element/src/cropElement.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +41 -9
- package/dist/types/element/src/distance.d.ts +2 -2
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/dragElements.d.ts +1 -1
- package/dist/types/element/src/flowchart.d.ts +1 -1
- package/dist/types/element/src/fractionalIndex.d.ts +8 -2
- package/dist/types/element/src/frame.d.ts +2 -2
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +42 -0
- package/dist/types/element/src/linearElementEditor.d.ts +15 -24
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +3 -2
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -1
- package/dist/types/element/src/resizeElements.d.ts +2 -1
- package/dist/types/element/src/selection.d.ts +0 -5
- package/dist/types/element/src/shape.d.ts +42 -0
- package/dist/types/element/src/sizeHelpers.d.ts +2 -1
- package/dist/types/element/src/store.d.ts +19 -9
- package/dist/types/element/src/textElement.d.ts +2 -2
- package/dist/types/element/src/transformHandles.d.ts +2 -2
- package/dist/types/element/src/typeChecks.d.ts +16 -1
- package/dist/types/element/src/types.d.ts +10 -4
- package/dist/types/element/src/utils.d.ts +16 -6
- package/dist/types/element/src/zindex.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +24 -15
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +16 -10
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +134 -94
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +53 -33
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +8 -5
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +27 -17
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +8 -5
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +31 -26
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +8 -5
- package/dist/types/excalidraw/actions/actionExport.d.ts +94 -67
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +66 -19
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +81 -69
- package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -14
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +534 -7
- package/dist/types/excalidraw/actions/actionLink.d.ts +10 -7
- package/dist/types/excalidraw/actions/actionMenu.d.ts +26 -17
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +16 -10
- package/dist/types/excalidraw/actions/actionProperties.d.ts +145 -83
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -7
- package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -9
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -7
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -7
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -7
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -7
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -7
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -7
- package/dist/types/excalidraw/actions/actionZindex.d.ts +10 -10
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +3 -2
- package/dist/types/excalidraw/appState.d.ts +20 -10
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +8 -5
- package/dist/types/excalidraw/components/App.d.ts +22 -21
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +7 -2
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +9 -0
- 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 +6 -1
- package/dist/types/excalidraw/data/transform.d.ts +1 -1
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/eraser/index.d.ts +0 -2
- package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/dist/types/excalidraw/history.d.ts +21 -5
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +11 -10
- package/dist/types/excalidraw/lasso/index.d.ts +1 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
- package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +24 -13
- package/dist/types/math/src/angle.d.ts +2 -0
- package/dist/types/math/src/constants.d.ts +3 -0
- package/dist/types/math/src/curve.d.ts +32 -0
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/point.d.ts +1 -1
- package/dist/types/math/src/rectangle.d.ts +2 -0
- package/dist/types/math/src/segment.d.ts +1 -0
- package/dist/types/math/src/vector.d.ts +4 -2
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/withinBounds.d.ts +1 -1
- package/history.ts +108 -45
- package/package.json +13 -10
- package/dist/dev/chunk-CARD3WJZ.js.map +0 -7
- package/dist/dev/chunk-ETWEPOFC.js +0 -18701
- package/dist/dev/chunk-ETWEPOFC.js.map +0 -7
- package/dist/dev/chunk-RS23HYC4.js +0 -7
- package/dist/dev/chunk-RS23HYC4.js.map +0 -7
- package/dist/prod/chunk-6BSJPDKJ.js +0 -33
- package/dist/prod/chunk-FGHASORR.js +0 -12
- package/dist/prod/chunk-SBKTMZM7.js +0 -7
- package/dist/prod/data/image-VAYKYPXV.js +0 -1
- package/dist/types/element/src/Shape.d.ts +0 -17
- package/dist/types/element/src/ShapeCache.d.ts +0 -25
- package/dist/types/element/src/shapes.d.ts +0 -23
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- package/dist/types/utils/src/collision.d.ts +0 -8
- /package/dist/dev/data/{image-AYLHSOBV.js.map → image-GQCFJKGM.js.map} +0 -0
- /package/dist/dev/locales/{en-E3O5XSXJ.js.map → en-SMAPCEOQ.js.map} +0 -0
|
@@ -27,7 +27,7 @@ export declare const actionCopy: {
|
|
|
27
27
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
isBindingEnabled: boolean;
|
|
29
29
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
30
|
-
suggestedBindings: import("@excalidraw/element
|
|
30
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
31
31
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
32
|
frameRendering: {
|
|
33
33
|
enabled: boolean;
|
|
@@ -38,7 +38,6 @@ export declare const actionCopy: {
|
|
|
38
38
|
editingFrame: string | null;
|
|
39
39
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
40
40
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
42
41
|
activeTool: {
|
|
43
42
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
43
|
locked: boolean;
|
|
@@ -77,7 +76,7 @@ export declare const actionCopy: {
|
|
|
77
76
|
value: import("../types").NormalizedZoomValue;
|
|
78
77
|
}>;
|
|
79
78
|
openMenu: "canvas" | "shape" | null;
|
|
80
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
79
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
81
80
|
openSidebar: {
|
|
82
81
|
name: string;
|
|
83
82
|
tab?: string | undefined;
|
|
@@ -158,9 +157,8 @@ export declare const actionCopy: {
|
|
|
158
157
|
shown: true;
|
|
159
158
|
data: import("../charts").Spreadsheet;
|
|
160
159
|
};
|
|
161
|
-
pendingImageElementId: string | null;
|
|
162
160
|
showHyperlinkPopup: false | "editor" | "info";
|
|
163
|
-
selectedLinearElement: import("@excalidraw/element
|
|
161
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
164
162
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
165
163
|
originSnapOffset: {
|
|
166
164
|
x: number;
|
|
@@ -175,6 +173,11 @@ export declare const actionCopy: {
|
|
|
175
173
|
focusedId: string | null;
|
|
176
174
|
matches: readonly import("../types").SearchMatch[];
|
|
177
175
|
}> | null;
|
|
176
|
+
activeLockedId: string | null;
|
|
177
|
+
lockedMultiSelections: {
|
|
178
|
+
[groupId: string]: true;
|
|
179
|
+
};
|
|
180
|
+
stylesPanelMode: "compact" | "full";
|
|
178
181
|
};
|
|
179
182
|
} | {
|
|
180
183
|
captureUpdate: "EVENTUALLY";
|
|
@@ -211,7 +214,7 @@ export declare const actionPaste: {
|
|
|
211
214
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
212
215
|
isBindingEnabled: boolean;
|
|
213
216
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
214
|
-
suggestedBindings: import("@excalidraw/element
|
|
217
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
215
218
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
216
219
|
frameRendering: {
|
|
217
220
|
enabled: boolean;
|
|
@@ -222,7 +225,6 @@ export declare const actionPaste: {
|
|
|
222
225
|
editingFrame: string | null;
|
|
223
226
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
224
227
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
225
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
226
228
|
activeTool: {
|
|
227
229
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
228
230
|
locked: boolean;
|
|
@@ -261,7 +263,7 @@ export declare const actionPaste: {
|
|
|
261
263
|
value: import("../types").NormalizedZoomValue;
|
|
262
264
|
}>;
|
|
263
265
|
openMenu: "canvas" | "shape" | null;
|
|
264
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
266
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
265
267
|
openSidebar: {
|
|
266
268
|
name: string;
|
|
267
269
|
tab?: string | undefined;
|
|
@@ -342,9 +344,8 @@ export declare const actionPaste: {
|
|
|
342
344
|
shown: true;
|
|
343
345
|
data: import("../charts").Spreadsheet;
|
|
344
346
|
};
|
|
345
|
-
pendingImageElementId: string | null;
|
|
346
347
|
showHyperlinkPopup: false | "editor" | "info";
|
|
347
|
-
selectedLinearElement: import("@excalidraw/element
|
|
348
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
348
349
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
349
350
|
originSnapOffset: {
|
|
350
351
|
x: number;
|
|
@@ -359,6 +360,11 @@ export declare const actionPaste: {
|
|
|
359
360
|
focusedId: string | null;
|
|
360
361
|
matches: readonly import("../types").SearchMatch[];
|
|
361
362
|
}> | null;
|
|
363
|
+
activeLockedId: string | null;
|
|
364
|
+
lockedMultiSelections: {
|
|
365
|
+
[groupId: string]: true;
|
|
366
|
+
};
|
|
367
|
+
stylesPanelMode: "compact" | "full";
|
|
362
368
|
};
|
|
363
369
|
} | {
|
|
364
370
|
captureUpdate: "EVENTUALLY";
|
|
@@ -378,7 +384,7 @@ export declare const actionCut: {
|
|
|
378
384
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
379
385
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
380
386
|
appState: {
|
|
381
|
-
|
|
387
|
+
selectedLinearElement: null;
|
|
382
388
|
contextMenu: {
|
|
383
389
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
384
390
|
top: number;
|
|
@@ -397,7 +403,7 @@ export declare const actionCut: {
|
|
|
397
403
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
398
404
|
isBindingEnabled: boolean;
|
|
399
405
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
400
|
-
suggestedBindings: import("@excalidraw/element
|
|
406
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
401
407
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
402
408
|
frameRendering: {
|
|
403
409
|
enabled: boolean;
|
|
@@ -446,7 +452,7 @@ export declare const actionCut: {
|
|
|
446
452
|
value: import("../types").NormalizedZoomValue;
|
|
447
453
|
}>;
|
|
448
454
|
openMenu: "canvas" | "shape" | null;
|
|
449
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
455
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
450
456
|
openSidebar: {
|
|
451
457
|
name: string;
|
|
452
458
|
tab?: string | undefined;
|
|
@@ -527,9 +533,7 @@ export declare const actionCut: {
|
|
|
527
533
|
shown: true;
|
|
528
534
|
data: import("../charts").Spreadsheet;
|
|
529
535
|
};
|
|
530
|
-
pendingImageElementId: string | null;
|
|
531
536
|
showHyperlinkPopup: false | "editor" | "info";
|
|
532
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
533
537
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
534
538
|
originSnapOffset: {
|
|
535
539
|
x: number;
|
|
@@ -544,12 +548,17 @@ export declare const actionCut: {
|
|
|
544
548
|
focusedId: string | null;
|
|
545
549
|
matches: readonly import("../types").SearchMatch[];
|
|
546
550
|
}> | null;
|
|
551
|
+
activeLockedId: string | null;
|
|
552
|
+
lockedMultiSelections: {
|
|
553
|
+
[groupId: string]: true;
|
|
554
|
+
};
|
|
555
|
+
stylesPanelMode: "compact" | "full";
|
|
547
556
|
};
|
|
548
557
|
captureUpdate: "IMMEDIATELY";
|
|
549
558
|
} | {
|
|
550
559
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
551
560
|
appState: {
|
|
552
|
-
|
|
561
|
+
selectedLinearElement: {
|
|
553
562
|
selectedPointsIndices: number[];
|
|
554
563
|
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
555
564
|
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
@@ -579,6 +588,8 @@ export declare const actionCut: {
|
|
|
579
588
|
hoverPointIndex: number;
|
|
580
589
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
581
590
|
elbowed: boolean;
|
|
591
|
+
customLineAngle: number | null;
|
|
592
|
+
isEditing: boolean;
|
|
582
593
|
};
|
|
583
594
|
contextMenu: {
|
|
584
595
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -598,7 +609,7 @@ export declare const actionCut: {
|
|
|
598
609
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
599
610
|
isBindingEnabled: boolean;
|
|
600
611
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
601
|
-
suggestedBindings: import("@excalidraw/element
|
|
612
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
602
613
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
603
614
|
frameRendering: {
|
|
604
615
|
enabled: boolean;
|
|
@@ -647,7 +658,7 @@ export declare const actionCut: {
|
|
|
647
658
|
value: import("../types").NormalizedZoomValue;
|
|
648
659
|
}>;
|
|
649
660
|
openMenu: "canvas" | "shape" | null;
|
|
650
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
661
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
651
662
|
openSidebar: {
|
|
652
663
|
name: string;
|
|
653
664
|
tab?: string | undefined;
|
|
@@ -728,9 +739,7 @@ export declare const actionCut: {
|
|
|
728
739
|
shown: true;
|
|
729
740
|
data: import("../charts").Spreadsheet;
|
|
730
741
|
};
|
|
731
|
-
pendingImageElementId: string | null;
|
|
732
742
|
showHyperlinkPopup: false | "editor" | "info";
|
|
733
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
734
743
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
735
744
|
originSnapOffset: {
|
|
736
745
|
x: number;
|
|
@@ -745,6 +754,11 @@ export declare const actionCut: {
|
|
|
745
754
|
focusedId: string | null;
|
|
746
755
|
matches: readonly import("../types").SearchMatch[];
|
|
747
756
|
}> | null;
|
|
757
|
+
activeLockedId: string | null;
|
|
758
|
+
lockedMultiSelections: {
|
|
759
|
+
[groupId: string]: true;
|
|
760
|
+
};
|
|
761
|
+
stylesPanelMode: "compact" | "full";
|
|
748
762
|
};
|
|
749
763
|
captureUpdate: "IMMEDIATELY";
|
|
750
764
|
} | {
|
|
@@ -778,7 +792,7 @@ export declare const actionCut: {
|
|
|
778
792
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
779
793
|
isBindingEnabled: boolean;
|
|
780
794
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
781
|
-
suggestedBindings: import("@excalidraw/element
|
|
795
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
782
796
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
783
797
|
frameRendering: {
|
|
784
798
|
enabled: boolean;
|
|
@@ -789,7 +803,6 @@ export declare const actionCut: {
|
|
|
789
803
|
editingFrame: string | null;
|
|
790
804
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
791
805
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
792
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
793
806
|
penMode: boolean;
|
|
794
807
|
penDetected: boolean;
|
|
795
808
|
exportBackground: boolean;
|
|
@@ -823,7 +836,7 @@ export declare const actionCut: {
|
|
|
823
836
|
value: import("../types").NormalizedZoomValue;
|
|
824
837
|
}>;
|
|
825
838
|
openMenu: "canvas" | "shape" | null;
|
|
826
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
839
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
827
840
|
openSidebar: {
|
|
828
841
|
name: string;
|
|
829
842
|
tab?: string | undefined;
|
|
@@ -897,7 +910,6 @@ export declare const actionCut: {
|
|
|
897
910
|
shown: true;
|
|
898
911
|
data: import("../charts").Spreadsheet;
|
|
899
912
|
};
|
|
900
|
-
pendingImageElementId: string | null;
|
|
901
913
|
showHyperlinkPopup: false | "editor" | "info";
|
|
902
914
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
903
915
|
originSnapOffset: {
|
|
@@ -913,12 +925,17 @@ export declare const actionCut: {
|
|
|
913
925
|
focusedId: string | null;
|
|
914
926
|
matches: readonly import("../types").SearchMatch[];
|
|
915
927
|
}> | null;
|
|
928
|
+
activeLockedId: string | null;
|
|
929
|
+
lockedMultiSelections: {
|
|
930
|
+
[groupId: string]: true;
|
|
931
|
+
};
|
|
932
|
+
stylesPanelMode: "compact" | "full";
|
|
916
933
|
};
|
|
917
934
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
918
935
|
};
|
|
919
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
936
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
920
937
|
} & {
|
|
921
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
938
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
922
939
|
};
|
|
923
940
|
export declare const actionCopyAsSvg: {
|
|
924
941
|
name: "copyAsSvg";
|
|
@@ -980,7 +997,7 @@ export declare const actionCopyAsPng: {
|
|
|
980
997
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
981
998
|
isBindingEnabled: boolean;
|
|
982
999
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
983
|
-
suggestedBindings: import("@excalidraw/element
|
|
1000
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
984
1001
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
985
1002
|
frameRendering: {
|
|
986
1003
|
enabled: boolean;
|
|
@@ -991,7 +1008,6 @@ export declare const actionCopyAsPng: {
|
|
|
991
1008
|
editingFrame: string | null;
|
|
992
1009
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
993
1010
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
994
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
995
1011
|
activeTool: {
|
|
996
1012
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
997
1013
|
locked: boolean;
|
|
@@ -1030,7 +1046,7 @@ export declare const actionCopyAsPng: {
|
|
|
1030
1046
|
value: import("../types").NormalizedZoomValue;
|
|
1031
1047
|
}>;
|
|
1032
1048
|
openMenu: "canvas" | "shape" | null;
|
|
1033
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1049
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1034
1050
|
openSidebar: {
|
|
1035
1051
|
name: string;
|
|
1036
1052
|
tab?: string | undefined;
|
|
@@ -1111,9 +1127,8 @@ export declare const actionCopyAsPng: {
|
|
|
1111
1127
|
shown: true;
|
|
1112
1128
|
data: import("../charts").Spreadsheet;
|
|
1113
1129
|
};
|
|
1114
|
-
pendingImageElementId: string | null;
|
|
1115
1130
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1116
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1131
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1117
1132
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1118
1133
|
originSnapOffset: {
|
|
1119
1134
|
x: number;
|
|
@@ -1128,14 +1143,19 @@ export declare const actionCopyAsPng: {
|
|
|
1128
1143
|
focusedId: string | null;
|
|
1129
1144
|
matches: readonly import("../types").SearchMatch[];
|
|
1130
1145
|
}> | null;
|
|
1146
|
+
activeLockedId: string | null;
|
|
1147
|
+
lockedMultiSelections: {
|
|
1148
|
+
[groupId: string]: true;
|
|
1149
|
+
};
|
|
1150
|
+
stylesPanelMode: "compact" | "full";
|
|
1131
1151
|
};
|
|
1132
1152
|
captureUpdate: "EVENTUALLY";
|
|
1133
1153
|
}>;
|
|
1134
1154
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1135
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1155
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1136
1156
|
keywords: string[];
|
|
1137
1157
|
} & {
|
|
1138
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1158
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1139
1159
|
};
|
|
1140
1160
|
export declare const copyText: {
|
|
1141
1161
|
name: "copyText";
|
|
@@ -30,7 +30,7 @@ export declare const actionToggleCropEditor: {
|
|
|
30
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
32
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
|
-
suggestedBindings: import("@excalidraw/element
|
|
33
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
34
34
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
35
|
frameRendering: {
|
|
36
36
|
enabled: boolean;
|
|
@@ -41,7 +41,6 @@ export declare const actionToggleCropEditor: {
|
|
|
41
41
|
editingFrame: string | null;
|
|
42
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
43
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
45
44
|
activeTool: {
|
|
46
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
46
|
locked: boolean;
|
|
@@ -80,7 +79,7 @@ export declare const actionToggleCropEditor: {
|
|
|
80
79
|
value: import("../types").NormalizedZoomValue;
|
|
81
80
|
}>;
|
|
82
81
|
openMenu: "canvas" | "shape" | null;
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
83
|
openSidebar: {
|
|
85
84
|
name: string;
|
|
86
85
|
tab?: string | undefined;
|
|
@@ -161,9 +160,8 @@ export declare const actionToggleCropEditor: {
|
|
|
161
160
|
shown: true;
|
|
162
161
|
data: import("../charts").Spreadsheet;
|
|
163
162
|
};
|
|
164
|
-
pendingImageElementId: string | null;
|
|
165
163
|
showHyperlinkPopup: false | "editor" | "info";
|
|
166
|
-
selectedLinearElement: import("@excalidraw/element
|
|
164
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
167
165
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
168
166
|
originSnapOffset: {
|
|
169
167
|
x: number;
|
|
@@ -176,6 +174,11 @@ export declare const actionToggleCropEditor: {
|
|
|
176
174
|
focusedId: string | null;
|
|
177
175
|
matches: readonly import("../types").SearchMatch[];
|
|
178
176
|
}> | null;
|
|
177
|
+
activeLockedId: string | null;
|
|
178
|
+
lockedMultiSelections: {
|
|
179
|
+
[groupId: string]: true;
|
|
180
|
+
};
|
|
181
|
+
stylesPanelMode: "compact" | "full";
|
|
179
182
|
};
|
|
180
183
|
captureUpdate: "IMMEDIATELY";
|
|
181
184
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
3
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
5
4
|
export declare const actionDeleteSelected: {
|
|
@@ -13,7 +12,7 @@ export declare const actionDeleteSelected: {
|
|
|
13
12
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => false | {
|
|
14
13
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
15
14
|
appState: {
|
|
16
|
-
|
|
15
|
+
selectedLinearElement: null;
|
|
17
16
|
contextMenu: {
|
|
18
17
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
19
18
|
top: number;
|
|
@@ -32,7 +31,7 @@ export declare const actionDeleteSelected: {
|
|
|
32
31
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
32
|
isBindingEnabled: boolean;
|
|
34
33
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
|
-
suggestedBindings: import("@excalidraw/element
|
|
34
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
36
35
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
37
36
|
frameRendering: {
|
|
38
37
|
enabled: boolean;
|
|
@@ -81,7 +80,7 @@ export declare const actionDeleteSelected: {
|
|
|
81
80
|
value: import("../types").NormalizedZoomValue;
|
|
82
81
|
}>;
|
|
83
82
|
openMenu: "canvas" | "shape" | null;
|
|
84
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
83
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
85
84
|
openSidebar: {
|
|
86
85
|
name: string;
|
|
87
86
|
tab?: string | undefined;
|
|
@@ -162,9 +161,7 @@ export declare const actionDeleteSelected: {
|
|
|
162
161
|
shown: true;
|
|
163
162
|
data: import("../charts").Spreadsheet;
|
|
164
163
|
};
|
|
165
|
-
pendingImageElementId: string | null;
|
|
166
164
|
showHyperlinkPopup: false | "editor" | "info";
|
|
167
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
168
165
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
169
166
|
originSnapOffset: {
|
|
170
167
|
x: number;
|
|
@@ -179,12 +176,17 @@ export declare const actionDeleteSelected: {
|
|
|
179
176
|
focusedId: string | null;
|
|
180
177
|
matches: readonly import("../types").SearchMatch[];
|
|
181
178
|
}> | null;
|
|
179
|
+
activeLockedId: string | null;
|
|
180
|
+
lockedMultiSelections: {
|
|
181
|
+
[groupId: string]: true;
|
|
182
|
+
};
|
|
183
|
+
stylesPanelMode: "compact" | "full";
|
|
182
184
|
};
|
|
183
185
|
captureUpdate: "IMMEDIATELY";
|
|
184
186
|
} | {
|
|
185
187
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
186
188
|
appState: {
|
|
187
|
-
|
|
189
|
+
selectedLinearElement: {
|
|
188
190
|
selectedPointsIndices: number[];
|
|
189
191
|
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
190
192
|
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
@@ -214,6 +216,8 @@ export declare const actionDeleteSelected: {
|
|
|
214
216
|
hoverPointIndex: number;
|
|
215
217
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
216
218
|
elbowed: boolean;
|
|
219
|
+
customLineAngle: number | null;
|
|
220
|
+
isEditing: boolean;
|
|
217
221
|
};
|
|
218
222
|
contextMenu: {
|
|
219
223
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -233,7 +237,7 @@ export declare const actionDeleteSelected: {
|
|
|
233
237
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
234
238
|
isBindingEnabled: boolean;
|
|
235
239
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
236
|
-
suggestedBindings: import("@excalidraw/element
|
|
240
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
237
241
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
238
242
|
frameRendering: {
|
|
239
243
|
enabled: boolean;
|
|
@@ -282,7 +286,7 @@ export declare const actionDeleteSelected: {
|
|
|
282
286
|
value: import("../types").NormalizedZoomValue;
|
|
283
287
|
}>;
|
|
284
288
|
openMenu: "canvas" | "shape" | null;
|
|
285
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
289
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
286
290
|
openSidebar: {
|
|
287
291
|
name: string;
|
|
288
292
|
tab?: string | undefined;
|
|
@@ -363,9 +367,7 @@ export declare const actionDeleteSelected: {
|
|
|
363
367
|
shown: true;
|
|
364
368
|
data: import("../charts").Spreadsheet;
|
|
365
369
|
};
|
|
366
|
-
pendingImageElementId: string | null;
|
|
367
370
|
showHyperlinkPopup: false | "editor" | "info";
|
|
368
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
369
371
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
370
372
|
originSnapOffset: {
|
|
371
373
|
x: number;
|
|
@@ -380,6 +382,11 @@ export declare const actionDeleteSelected: {
|
|
|
380
382
|
focusedId: string | null;
|
|
381
383
|
matches: readonly import("../types").SearchMatch[];
|
|
382
384
|
}> | null;
|
|
385
|
+
activeLockedId: string | null;
|
|
386
|
+
lockedMultiSelections: {
|
|
387
|
+
[groupId: string]: true;
|
|
388
|
+
};
|
|
389
|
+
stylesPanelMode: "compact" | "full";
|
|
383
390
|
};
|
|
384
391
|
captureUpdate: "IMMEDIATELY";
|
|
385
392
|
} | {
|
|
@@ -413,7 +420,7 @@ export declare const actionDeleteSelected: {
|
|
|
413
420
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
414
421
|
isBindingEnabled: boolean;
|
|
415
422
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
416
|
-
suggestedBindings: import("@excalidraw/element
|
|
423
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
417
424
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
418
425
|
frameRendering: {
|
|
419
426
|
enabled: boolean;
|
|
@@ -424,7 +431,6 @@ export declare const actionDeleteSelected: {
|
|
|
424
431
|
editingFrame: string | null;
|
|
425
432
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
426
433
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
427
|
-
editingLinearElement: LinearElementEditor | null;
|
|
428
434
|
penMode: boolean;
|
|
429
435
|
penDetected: boolean;
|
|
430
436
|
exportBackground: boolean;
|
|
@@ -458,7 +464,7 @@ export declare const actionDeleteSelected: {
|
|
|
458
464
|
value: import("../types").NormalizedZoomValue;
|
|
459
465
|
}>;
|
|
460
466
|
openMenu: "canvas" | "shape" | null;
|
|
461
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
467
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
462
468
|
openSidebar: {
|
|
463
469
|
name: string;
|
|
464
470
|
tab?: string | undefined;
|
|
@@ -532,7 +538,6 @@ export declare const actionDeleteSelected: {
|
|
|
532
538
|
shown: true;
|
|
533
539
|
data: import("../charts").Spreadsheet;
|
|
534
540
|
};
|
|
535
|
-
pendingImageElementId: string | null;
|
|
536
541
|
showHyperlinkPopup: false | "editor" | "info";
|
|
537
542
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
538
543
|
originSnapOffset: {
|
|
@@ -548,11 +553,16 @@ export declare const actionDeleteSelected: {
|
|
|
548
553
|
focusedId: string | null;
|
|
549
554
|
matches: readonly import("../types").SearchMatch[];
|
|
550
555
|
}> | null;
|
|
556
|
+
activeLockedId: string | null;
|
|
557
|
+
lockedMultiSelections: {
|
|
558
|
+
[groupId: string]: true;
|
|
559
|
+
};
|
|
560
|
+
stylesPanelMode: "compact" | "full";
|
|
551
561
|
};
|
|
552
562
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
553
563
|
};
|
|
554
|
-
keyTest: (event: import("react").KeyboardEvent<Element
|
|
564
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
555
565
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
556
566
|
} & {
|
|
557
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
567
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
558
568
|
};
|
|
@@ -12,10 +12,10 @@ export declare const distributeHorizontally: {
|
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
15
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
16
16
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
} & {
|
|
18
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
18
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
19
19
|
};
|
|
20
20
|
export declare const distributeVertically: {
|
|
21
21
|
name: "distributeVertically";
|
|
@@ -28,8 +28,8 @@ export declare const distributeVertically: {
|
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
captureUpdate: "IMMEDIATELY";
|
|
30
30
|
};
|
|
31
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
31
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
32
32
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
} & {
|
|
34
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
34
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
35
35
|
};
|
|
@@ -11,8 +11,8 @@ export declare const actionDuplicateSelection: {
|
|
|
11
11
|
appState: import("../types").AppState;
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
14
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
14
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
17
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
@@ -59,7 +59,7 @@ export declare const actionLinkToElement: {
|
|
|
59
59
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
60
|
isBindingEnabled: boolean;
|
|
61
61
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
62
|
-
suggestedBindings: import("@excalidraw/element
|
|
62
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
63
63
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
64
64
|
frameRendering: {
|
|
65
65
|
enabled: boolean;
|
|
@@ -70,7 +70,6 @@ export declare const actionLinkToElement: {
|
|
|
70
70
|
editingFrame: string | null;
|
|
71
71
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
72
72
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
73
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
74
73
|
activeTool: {
|
|
75
74
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
76
75
|
locked: boolean;
|
|
@@ -109,7 +108,7 @@ export declare const actionLinkToElement: {
|
|
|
109
108
|
value: import("../types").NormalizedZoomValue;
|
|
110
109
|
}>;
|
|
111
110
|
openMenu: "canvas" | "shape" | null;
|
|
112
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
111
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
113
112
|
openSidebar: {
|
|
114
113
|
name: string;
|
|
115
114
|
tab?: string | undefined;
|
|
@@ -179,9 +178,8 @@ export declare const actionLinkToElement: {
|
|
|
179
178
|
shown: true;
|
|
180
179
|
data: import("../charts").Spreadsheet;
|
|
181
180
|
};
|
|
182
|
-
pendingImageElementId: string | null;
|
|
183
181
|
showHyperlinkPopup: false | "editor" | "info";
|
|
184
|
-
selectedLinearElement: import("@excalidraw/element
|
|
182
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
185
183
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
186
184
|
originSnapOffset: {
|
|
187
185
|
x: number;
|
|
@@ -196,6 +194,11 @@ export declare const actionLinkToElement: {
|
|
|
196
194
|
focusedId: string | null;
|
|
197
195
|
matches: readonly import("../types").SearchMatch[];
|
|
198
196
|
}> | null;
|
|
197
|
+
activeLockedId: string | null;
|
|
198
|
+
lockedMultiSelections: {
|
|
199
|
+
[groupId: string]: true;
|
|
200
|
+
};
|
|
201
|
+
stylesPanelMode: "compact" | "full";
|
|
199
202
|
};
|
|
200
203
|
captureUpdate: "IMMEDIATELY";
|
|
201
204
|
elements?: undefined;
|