@zsviczian/excalidraw 0.18.0-13 → 0.18.0-15
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/excalidraw.development.js +153 -153
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +38 -2
- package/dist/styles.production.css +2 -2
- package/package.json +1 -1
- package/types/common/src/constants.d.ts +1 -0
- package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/types/common/src/font-metadata.d.ts +4 -2
- package/types/common/src/index.d.ts +1 -0
- package/types/common/src/utility-types.d.ts +5 -0
- package/types/common/src/utils.d.ts +16 -4
- package/types/element/src/Scene.d.ts +4 -4
- package/types/element/src/ShapeCache.d.ts +1 -1
- package/types/element/src/align.d.ts +1 -1
- package/types/element/src/binding.d.ts +1 -1
- package/types/element/src/bounds.d.ts +1 -1
- package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
- package/types/element/src/dragElements.d.ts +1 -1
- package/types/element/src/flowchart.d.ts +1 -1
- package/types/element/src/frame.d.ts +3 -2
- package/types/element/src/index.d.ts +45 -2
- package/types/element/src/linearElementEditor.d.ts +4 -8
- package/types/element/src/newElement.d.ts +1 -1
- package/types/element/src/resizeElements.d.ts +1 -1
- package/types/element/src/selection.d.ts +1 -6
- package/types/element/src/store.d.ts +227 -0
- package/types/element/src/textElement.d.ts +1 -1
- package/types/element/src/transformHandles.d.ts +4 -4
- package/types/element/src/typeChecks.d.ts +2 -1
- package/types/element/src/types.d.ts +6 -1
- package/types/element/src/zindex.d.ts +3 -3
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +24 -42
- package/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/types/excalidraw/actions/actionBoundText.d.ts +16 -28
- package/types/excalidraw/actions/actionCanvas.d.ts +238 -328
- package/types/excalidraw/actions/actionClipboard.d.ts +50 -86
- package/types/excalidraw/actions/actionCropEditor.d.ts +8 -14
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +22 -40
- package/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/excalidraw/actions/actionElementLink.d.ts +8 -14
- package/types/excalidraw/actions/actionElementLock.d.ts +18 -30
- package/types/excalidraw/actions/actionEmbeddable.d.ts +8 -14
- package/types/excalidraw/actions/actionExport.d.ts +173 -227
- package/types/excalidraw/actions/actionFinalize.d.ts +14 -26
- package/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/types/excalidraw/actions/actionFrame.d.ts +81 -105
- package/types/excalidraw/actions/actionGroup.d.ts +22 -34
- package/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +7 -13
- package/types/excalidraw/actions/actionLink.d.ts +9 -15
- package/types/excalidraw/actions/actionMenu.d.ts +26 -44
- package/types/excalidraw/actions/actionNavigate.d.ts +16 -28
- package/types/excalidraw/actions/actionProperties.d.ts +106 -196
- package/types/excalidraw/actions/actionSelectAll.d.ts +10 -16
- package/types/excalidraw/actions/actionStyles.d.ts +12 -18
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -16
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -16
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -225
- package/types/excalidraw/actions/actionToggleStats.d.ts +10 -16
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -16
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -16
- package/types/excalidraw/actions/actionZindex.d.ts +10 -10
- package/types/excalidraw/actions/types.d.ts +1 -1
- package/types/excalidraw/appState.d.ts +23 -23
- package/types/excalidraw/clipboard.d.ts +4 -4
- package/types/excalidraw/components/App.d.ts +8 -8
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
- package/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/types/excalidraw/components/Range.d.ts +3 -3
- package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/types/excalidraw/components/icons.d.ts +1 -0
- package/types/excalidraw/components/shapes.d.ts +1 -1
- package/types/excalidraw/data/blob.d.ts +1 -1
- package/types/excalidraw/data/library.d.ts +1 -1
- package/types/excalidraw/data/transform.d.ts +1 -1
- package/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/types/excalidraw/history.d.ts +14 -22
- package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/types/excalidraw/index.d.ts +9 -9
- package/types/excalidraw/renderer/helpers.d.ts +6 -1
- package/types/excalidraw/scene/Renderer.d.ts +1 -1
- package/types/excalidraw/scene/index.d.ts +2 -2
- package/types/excalidraw/snapping.d.ts +2 -2
- package/types/excalidraw/types.d.ts +13 -6
- package/types/excalidraw/visualdebug.d.ts +1 -1
- package/types/math/src/curve.d.ts +2 -0
- package/types/math/src/vector.d.ts +4 -0
- package/types/utils/src/bbox.d.ts +1 -1
- package/types/utils/src/index.d.ts +1 -1
- package/types/utils/src/withinBounds.d.ts +1 -1
- package/types/excalidraw/store.d.ts +0 -129
|
@@ -26,7 +26,7 @@ export declare const actionCopy: {
|
|
|
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
|
-
suggestedBindings: import("@excalidraw/element
|
|
29
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
30
30
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
31
31
|
frameRendering: {
|
|
32
32
|
enabled: boolean;
|
|
@@ -37,7 +37,7 @@ export declare const actionCopy: {
|
|
|
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
|
|
40
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
41
41
|
activeTool: {
|
|
42
42
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
43
|
locked: boolean;
|
|
@@ -158,7 +158,7 @@ export declare const actionCopy: {
|
|
|
158
158
|
data: import("../charts").Spreadsheet;
|
|
159
159
|
};
|
|
160
160
|
pendingImageElementId: string | null;
|
|
161
|
-
showHyperlinkPopup: false | "
|
|
161
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
162
162
|
linkOpacity: number;
|
|
163
163
|
trayModeEnabled: boolean;
|
|
164
164
|
colorPalette?: {
|
|
@@ -195,7 +195,7 @@ export declare const actionCopy: {
|
|
|
195
195
|
nameColor: string;
|
|
196
196
|
};
|
|
197
197
|
invertBindingBehaviour: boolean;
|
|
198
|
-
selectedLinearElement: import("@excalidraw/element
|
|
198
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
199
199
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
200
200
|
originSnapOffset: {
|
|
201
201
|
x: number;
|
|
@@ -206,16 +206,10 @@ export declare const actionCopy: {
|
|
|
206
206
|
followedBy: Set<import("../types").SocketId>;
|
|
207
207
|
isCropping: boolean;
|
|
208
208
|
croppingElementId: string | null;
|
|
209
|
-
searchMatches:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
offsetX: number;
|
|
214
|
-
offsetY: number;
|
|
215
|
-
width: number;
|
|
216
|
-
height: number;
|
|
217
|
-
}[];
|
|
218
|
-
}[];
|
|
209
|
+
searchMatches: Readonly<{
|
|
210
|
+
focusedId: string | null;
|
|
211
|
+
matches: readonly import("../types").SearchMatch[];
|
|
212
|
+
}> | null;
|
|
219
213
|
};
|
|
220
214
|
} | {
|
|
221
215
|
captureUpdate: "EVENTUALLY";
|
|
@@ -252,7 +246,7 @@ export declare const actionPaste: {
|
|
|
252
246
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
253
247
|
isBindingEnabled: boolean;
|
|
254
248
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
255
|
-
suggestedBindings: import("@excalidraw/element
|
|
249
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
256
250
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
257
251
|
frameRendering: {
|
|
258
252
|
enabled: boolean;
|
|
@@ -263,7 +257,7 @@ export declare const actionPaste: {
|
|
|
263
257
|
editingFrame: string | null;
|
|
264
258
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
265
259
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
266
|
-
editingLinearElement: import("@excalidraw/element
|
|
260
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
267
261
|
activeTool: {
|
|
268
262
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
269
263
|
locked: boolean;
|
|
@@ -384,7 +378,7 @@ export declare const actionPaste: {
|
|
|
384
378
|
data: import("../charts").Spreadsheet;
|
|
385
379
|
};
|
|
386
380
|
pendingImageElementId: string | null;
|
|
387
|
-
showHyperlinkPopup: false | "
|
|
381
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
388
382
|
linkOpacity: number;
|
|
389
383
|
trayModeEnabled: boolean;
|
|
390
384
|
colorPalette?: {
|
|
@@ -421,7 +415,7 @@ export declare const actionPaste: {
|
|
|
421
415
|
nameColor: string;
|
|
422
416
|
};
|
|
423
417
|
invertBindingBehaviour: boolean;
|
|
424
|
-
selectedLinearElement: import("@excalidraw/element
|
|
418
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
425
419
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
426
420
|
originSnapOffset: {
|
|
427
421
|
x: number;
|
|
@@ -432,16 +426,10 @@ export declare const actionPaste: {
|
|
|
432
426
|
followedBy: Set<import("../types").SocketId>;
|
|
433
427
|
isCropping: boolean;
|
|
434
428
|
croppingElementId: string | null;
|
|
435
|
-
searchMatches:
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
offsetX: number;
|
|
440
|
-
offsetY: number;
|
|
441
|
-
width: number;
|
|
442
|
-
height: number;
|
|
443
|
-
}[];
|
|
444
|
-
}[];
|
|
429
|
+
searchMatches: Readonly<{
|
|
430
|
+
focusedId: string | null;
|
|
431
|
+
matches: readonly import("../types").SearchMatch[];
|
|
432
|
+
}> | null;
|
|
445
433
|
};
|
|
446
434
|
} | {
|
|
447
435
|
captureUpdate: "EVENTUALLY";
|
|
@@ -480,7 +468,7 @@ export declare const actionCut: {
|
|
|
480
468
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
481
469
|
isBindingEnabled: boolean;
|
|
482
470
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
483
|
-
suggestedBindings: import("@excalidraw/element
|
|
471
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
484
472
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
485
473
|
frameRendering: {
|
|
486
474
|
enabled: boolean;
|
|
@@ -611,7 +599,7 @@ export declare const actionCut: {
|
|
|
611
599
|
data: import("../charts").Spreadsheet;
|
|
612
600
|
};
|
|
613
601
|
pendingImageElementId: string | null;
|
|
614
|
-
showHyperlinkPopup: false | "
|
|
602
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
615
603
|
linkOpacity: number;
|
|
616
604
|
trayModeEnabled: boolean;
|
|
617
605
|
colorPalette?: {
|
|
@@ -648,7 +636,7 @@ export declare const actionCut: {
|
|
|
648
636
|
nameColor: string;
|
|
649
637
|
};
|
|
650
638
|
invertBindingBehaviour: boolean;
|
|
651
|
-
selectedLinearElement: import("@excalidraw/element
|
|
639
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
652
640
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
653
641
|
originSnapOffset: {
|
|
654
642
|
x: number;
|
|
@@ -659,16 +647,10 @@ export declare const actionCut: {
|
|
|
659
647
|
followedBy: Set<import("../types").SocketId>;
|
|
660
648
|
isCropping: boolean;
|
|
661
649
|
croppingElementId: string | null;
|
|
662
|
-
searchMatches:
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
offsetX: number;
|
|
667
|
-
offsetY: number;
|
|
668
|
-
width: number;
|
|
669
|
-
height: number;
|
|
670
|
-
}[];
|
|
671
|
-
}[];
|
|
650
|
+
searchMatches: Readonly<{
|
|
651
|
+
focusedId: string | null;
|
|
652
|
+
matches: readonly import("../types").SearchMatch[];
|
|
653
|
+
}> | null;
|
|
672
654
|
};
|
|
673
655
|
captureUpdate: "IMMEDIATELY";
|
|
674
656
|
} | {
|
|
@@ -723,7 +705,7 @@ export declare const actionCut: {
|
|
|
723
705
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
724
706
|
isBindingEnabled: boolean;
|
|
725
707
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
726
|
-
suggestedBindings: import("@excalidraw/element
|
|
708
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
727
709
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
728
710
|
frameRendering: {
|
|
729
711
|
enabled: boolean;
|
|
@@ -854,7 +836,7 @@ export declare const actionCut: {
|
|
|
854
836
|
data: import("../charts").Spreadsheet;
|
|
855
837
|
};
|
|
856
838
|
pendingImageElementId: string | null;
|
|
857
|
-
showHyperlinkPopup: false | "
|
|
839
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
858
840
|
linkOpacity: number;
|
|
859
841
|
trayModeEnabled: boolean;
|
|
860
842
|
colorPalette?: {
|
|
@@ -891,7 +873,7 @@ export declare const actionCut: {
|
|
|
891
873
|
nameColor: string;
|
|
892
874
|
};
|
|
893
875
|
invertBindingBehaviour: boolean;
|
|
894
|
-
selectedLinearElement: import("@excalidraw/element
|
|
876
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
895
877
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
896
878
|
originSnapOffset: {
|
|
897
879
|
x: number;
|
|
@@ -902,16 +884,10 @@ export declare const actionCut: {
|
|
|
902
884
|
followedBy: Set<import("../types").SocketId>;
|
|
903
885
|
isCropping: boolean;
|
|
904
886
|
croppingElementId: string | null;
|
|
905
|
-
searchMatches:
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
offsetX: number;
|
|
910
|
-
offsetY: number;
|
|
911
|
-
width: number;
|
|
912
|
-
height: number;
|
|
913
|
-
}[];
|
|
914
|
-
}[];
|
|
887
|
+
searchMatches: Readonly<{
|
|
888
|
+
focusedId: string | null;
|
|
889
|
+
matches: readonly import("../types").SearchMatch[];
|
|
890
|
+
}> | null;
|
|
915
891
|
};
|
|
916
892
|
captureUpdate: "IMMEDIATELY";
|
|
917
893
|
} | {
|
|
@@ -925,13 +901,13 @@ export declare const actionCut: {
|
|
|
925
901
|
multiElement: null;
|
|
926
902
|
activeEmbeddable: null;
|
|
927
903
|
selectedLinearElement: null;
|
|
928
|
-
editingGroupId: string | null;
|
|
929
904
|
selectedElementIds: Readonly<{
|
|
930
905
|
[id: string]: true;
|
|
931
906
|
}>;
|
|
932
907
|
selectedGroupIds: {
|
|
933
908
|
[groupId: string]: boolean;
|
|
934
909
|
};
|
|
910
|
+
editingGroupId: string | null;
|
|
935
911
|
contextMenu: {
|
|
936
912
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
937
913
|
top: number;
|
|
@@ -945,7 +921,7 @@ export declare const actionCut: {
|
|
|
945
921
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
946
922
|
isBindingEnabled: boolean;
|
|
947
923
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
948
|
-
suggestedBindings: import("@excalidraw/element
|
|
924
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
949
925
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
950
926
|
frameRendering: {
|
|
951
927
|
enabled: boolean;
|
|
@@ -956,7 +932,7 @@ export declare const actionCut: {
|
|
|
956
932
|
editingFrame: string | null;
|
|
957
933
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
958
934
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
959
|
-
editingLinearElement: import("@excalidraw/element
|
|
935
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
960
936
|
penMode: boolean;
|
|
961
937
|
penDetected: boolean;
|
|
962
938
|
exportBackground: boolean;
|
|
@@ -1065,7 +1041,7 @@ export declare const actionCut: {
|
|
|
1065
1041
|
data: import("../charts").Spreadsheet;
|
|
1066
1042
|
};
|
|
1067
1043
|
pendingImageElementId: string | null;
|
|
1068
|
-
showHyperlinkPopup: false | "
|
|
1044
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1069
1045
|
linkOpacity: number;
|
|
1070
1046
|
trayModeEnabled: boolean;
|
|
1071
1047
|
colorPalette?: {
|
|
@@ -1112,22 +1088,16 @@ export declare const actionCut: {
|
|
|
1112
1088
|
followedBy: Set<import("../types").SocketId>;
|
|
1113
1089
|
isCropping: boolean;
|
|
1114
1090
|
croppingElementId: string | null;
|
|
1115
|
-
searchMatches:
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
offsetX: number;
|
|
1120
|
-
offsetY: number;
|
|
1121
|
-
width: number;
|
|
1122
|
-
height: number;
|
|
1123
|
-
}[];
|
|
1124
|
-
}[];
|
|
1091
|
+
searchMatches: Readonly<{
|
|
1092
|
+
focusedId: string | null;
|
|
1093
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1094
|
+
}> | null;
|
|
1125
1095
|
};
|
|
1126
1096
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
1127
1097
|
};
|
|
1128
|
-
keyTest: (event:
|
|
1098
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1129
1099
|
} & {
|
|
1130
|
-
keyTest?: ((event:
|
|
1100
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1131
1101
|
};
|
|
1132
1102
|
export declare const actionCopyAsSvg: {
|
|
1133
1103
|
name: "copyAsSvg";
|
|
@@ -1189,7 +1159,7 @@ export declare const actionCopyAsPng: {
|
|
|
1189
1159
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1190
1160
|
isBindingEnabled: boolean;
|
|
1191
1161
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1192
|
-
suggestedBindings: import("@excalidraw/element
|
|
1162
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1193
1163
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1194
1164
|
frameRendering: {
|
|
1195
1165
|
enabled: boolean;
|
|
@@ -1200,7 +1170,7 @@ export declare const actionCopyAsPng: {
|
|
|
1200
1170
|
editingFrame: string | null;
|
|
1201
1171
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1202
1172
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1203
|
-
editingLinearElement: import("@excalidraw/element
|
|
1173
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1204
1174
|
activeTool: {
|
|
1205
1175
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1206
1176
|
locked: boolean;
|
|
@@ -1321,7 +1291,7 @@ export declare const actionCopyAsPng: {
|
|
|
1321
1291
|
data: import("../charts").Spreadsheet;
|
|
1322
1292
|
};
|
|
1323
1293
|
pendingImageElementId: string | null;
|
|
1324
|
-
showHyperlinkPopup: false | "
|
|
1294
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1325
1295
|
linkOpacity: number;
|
|
1326
1296
|
trayModeEnabled: boolean;
|
|
1327
1297
|
colorPalette?: {
|
|
@@ -1358,7 +1328,7 @@ export declare const actionCopyAsPng: {
|
|
|
1358
1328
|
nameColor: string;
|
|
1359
1329
|
};
|
|
1360
1330
|
invertBindingBehaviour: boolean;
|
|
1361
|
-
selectedLinearElement: import("@excalidraw/element
|
|
1331
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1362
1332
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1363
1333
|
originSnapOffset: {
|
|
1364
1334
|
x: number;
|
|
@@ -1369,24 +1339,18 @@ export declare const actionCopyAsPng: {
|
|
|
1369
1339
|
followedBy: Set<import("../types").SocketId>;
|
|
1370
1340
|
isCropping: boolean;
|
|
1371
1341
|
croppingElementId: string | null;
|
|
1372
|
-
searchMatches:
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
offsetX: number;
|
|
1377
|
-
offsetY: number;
|
|
1378
|
-
width: number;
|
|
1379
|
-
height: number;
|
|
1380
|
-
}[];
|
|
1381
|
-
}[];
|
|
1342
|
+
searchMatches: Readonly<{
|
|
1343
|
+
focusedId: string | null;
|
|
1344
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1345
|
+
}> | null;
|
|
1382
1346
|
};
|
|
1383
1347
|
captureUpdate: "EVENTUALLY";
|
|
1384
1348
|
}>;
|
|
1385
1349
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1386
|
-
keyTest: (event:
|
|
1350
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1387
1351
|
keywords: string[];
|
|
1388
1352
|
} & {
|
|
1389
|
-
keyTest?: ((event:
|
|
1353
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1390
1354
|
};
|
|
1391
1355
|
export declare const copyText: {
|
|
1392
1356
|
name: "copyText";
|
|
@@ -29,7 +29,7 @@ export declare const actionToggleCropEditor: {
|
|
|
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
|
-
suggestedBindings: import("@excalidraw/element
|
|
32
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
33
33
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
@@ -40,7 +40,7 @@ export declare const actionToggleCropEditor: {
|
|
|
40
40
|
editingFrame: string | null;
|
|
41
41
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
42
42
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
-
editingLinearElement: import("@excalidraw/element
|
|
43
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
44
44
|
activeTool: {
|
|
45
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
46
|
locked: boolean;
|
|
@@ -161,7 +161,7 @@ export declare const actionToggleCropEditor: {
|
|
|
161
161
|
data: import("../charts").Spreadsheet;
|
|
162
162
|
};
|
|
163
163
|
pendingImageElementId: string | null;
|
|
164
|
-
showHyperlinkPopup: false | "
|
|
164
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
165
165
|
linkOpacity: number;
|
|
166
166
|
trayModeEnabled: boolean;
|
|
167
167
|
colorPalette?: {
|
|
@@ -198,7 +198,7 @@ export declare const actionToggleCropEditor: {
|
|
|
198
198
|
nameColor: string;
|
|
199
199
|
};
|
|
200
200
|
invertBindingBehaviour: boolean;
|
|
201
|
-
selectedLinearElement: import("@excalidraw/element
|
|
201
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
202
202
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
203
203
|
originSnapOffset: {
|
|
204
204
|
x: number;
|
|
@@ -207,16 +207,10 @@ export declare const actionToggleCropEditor: {
|
|
|
207
207
|
objectsSnapModeEnabled: boolean;
|
|
208
208
|
userToFollow: import("../types").UserToFollow | null;
|
|
209
209
|
followedBy: Set<import("../types").SocketId>;
|
|
210
|
-
searchMatches:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
offsetX: number;
|
|
215
|
-
offsetY: number;
|
|
216
|
-
width: number;
|
|
217
|
-
height: number;
|
|
218
|
-
}[];
|
|
219
|
-
}[];
|
|
210
|
+
searchMatches: Readonly<{
|
|
211
|
+
focusedId: string | null;
|
|
212
|
+
matches: readonly import("../types").SearchMatch[];
|
|
213
|
+
}> | null;
|
|
220
214
|
};
|
|
221
215
|
captureUpdate: "IMMEDIATELY";
|
|
222
216
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinearElementEditor } from "@excalidraw/element
|
|
1
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
4
|
export declare const actionDeleteSelected: {
|
|
@@ -31,7 +31,7 @@ export declare const actionDeleteSelected: {
|
|
|
31
31
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
32
|
isBindingEnabled: boolean;
|
|
33
33
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
|
-
suggestedBindings: import("@excalidraw/element
|
|
34
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
35
35
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
36
36
|
frameRendering: {
|
|
37
37
|
enabled: boolean;
|
|
@@ -162,7 +162,7 @@ export declare const actionDeleteSelected: {
|
|
|
162
162
|
data: import("../charts").Spreadsheet;
|
|
163
163
|
};
|
|
164
164
|
pendingImageElementId: string | null;
|
|
165
|
-
showHyperlinkPopup: false | "
|
|
165
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
166
166
|
linkOpacity: number;
|
|
167
167
|
trayModeEnabled: boolean;
|
|
168
168
|
colorPalette?: {
|
|
@@ -210,16 +210,10 @@ export declare const actionDeleteSelected: {
|
|
|
210
210
|
followedBy: Set<import("../types").SocketId>;
|
|
211
211
|
isCropping: boolean;
|
|
212
212
|
croppingElementId: string | null;
|
|
213
|
-
searchMatches:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
offsetX: number;
|
|
218
|
-
offsetY: number;
|
|
219
|
-
width: number;
|
|
220
|
-
height: number;
|
|
221
|
-
}[];
|
|
222
|
-
}[];
|
|
213
|
+
searchMatches: Readonly<{
|
|
214
|
+
focusedId: string | null;
|
|
215
|
+
matches: readonly import("../types").SearchMatch[];
|
|
216
|
+
}> | null;
|
|
223
217
|
};
|
|
224
218
|
captureUpdate: "IMMEDIATELY";
|
|
225
219
|
} | {
|
|
@@ -274,7 +268,7 @@ export declare const actionDeleteSelected: {
|
|
|
274
268
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
275
269
|
isBindingEnabled: boolean;
|
|
276
270
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
277
|
-
suggestedBindings: import("@excalidraw/element
|
|
271
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
278
272
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
279
273
|
frameRendering: {
|
|
280
274
|
enabled: boolean;
|
|
@@ -405,7 +399,7 @@ export declare const actionDeleteSelected: {
|
|
|
405
399
|
data: import("../charts").Spreadsheet;
|
|
406
400
|
};
|
|
407
401
|
pendingImageElementId: string | null;
|
|
408
|
-
showHyperlinkPopup: false | "
|
|
402
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
409
403
|
linkOpacity: number;
|
|
410
404
|
trayModeEnabled: boolean;
|
|
411
405
|
colorPalette?: {
|
|
@@ -453,16 +447,10 @@ export declare const actionDeleteSelected: {
|
|
|
453
447
|
followedBy: Set<import("../types").SocketId>;
|
|
454
448
|
isCropping: boolean;
|
|
455
449
|
croppingElementId: string | null;
|
|
456
|
-
searchMatches:
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
offsetX: number;
|
|
461
|
-
offsetY: number;
|
|
462
|
-
width: number;
|
|
463
|
-
height: number;
|
|
464
|
-
}[];
|
|
465
|
-
}[];
|
|
450
|
+
searchMatches: Readonly<{
|
|
451
|
+
focusedId: string | null;
|
|
452
|
+
matches: readonly import("../types").SearchMatch[];
|
|
453
|
+
}> | null;
|
|
466
454
|
};
|
|
467
455
|
captureUpdate: "IMMEDIATELY";
|
|
468
456
|
} | {
|
|
@@ -476,13 +464,13 @@ export declare const actionDeleteSelected: {
|
|
|
476
464
|
multiElement: null;
|
|
477
465
|
activeEmbeddable: null;
|
|
478
466
|
selectedLinearElement: null;
|
|
479
|
-
editingGroupId: string | null;
|
|
480
467
|
selectedElementIds: Readonly<{
|
|
481
468
|
[id: string]: true;
|
|
482
469
|
}>;
|
|
483
470
|
selectedGroupIds: {
|
|
484
471
|
[groupId: string]: boolean;
|
|
485
472
|
};
|
|
473
|
+
editingGroupId: string | null;
|
|
486
474
|
contextMenu: {
|
|
487
475
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
488
476
|
top: number;
|
|
@@ -496,7 +484,7 @@ export declare const actionDeleteSelected: {
|
|
|
496
484
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
497
485
|
isBindingEnabled: boolean;
|
|
498
486
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
499
|
-
suggestedBindings: import("@excalidraw/element
|
|
487
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
500
488
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
501
489
|
frameRendering: {
|
|
502
490
|
enabled: boolean;
|
|
@@ -616,7 +604,7 @@ export declare const actionDeleteSelected: {
|
|
|
616
604
|
data: import("../charts").Spreadsheet;
|
|
617
605
|
};
|
|
618
606
|
pendingImageElementId: string | null;
|
|
619
|
-
showHyperlinkPopup: false | "
|
|
607
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
620
608
|
linkOpacity: number;
|
|
621
609
|
trayModeEnabled: boolean;
|
|
622
610
|
colorPalette?: {
|
|
@@ -663,21 +651,15 @@ export declare const actionDeleteSelected: {
|
|
|
663
651
|
followedBy: Set<import("../types").SocketId>;
|
|
664
652
|
isCropping: boolean;
|
|
665
653
|
croppingElementId: string | null;
|
|
666
|
-
searchMatches:
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
offsetX: number;
|
|
671
|
-
offsetY: number;
|
|
672
|
-
width: number;
|
|
673
|
-
height: number;
|
|
674
|
-
}[];
|
|
675
|
-
}[];
|
|
654
|
+
searchMatches: Readonly<{
|
|
655
|
+
focusedId: string | null;
|
|
656
|
+
matches: readonly import("../types").SearchMatch[];
|
|
657
|
+
}> | null;
|
|
676
658
|
};
|
|
677
659
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
678
660
|
};
|
|
679
|
-
keyTest: (event:
|
|
661
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
680
662
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
681
663
|
} & {
|
|
682
|
-
keyTest?: ((event:
|
|
664
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
683
665
|
};
|
|
@@ -11,10 +11,10 @@ export declare const distributeHorizontally: {
|
|
|
11
11
|
elements: ExcalidrawElement[];
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
14
|
-
keyTest: (event:
|
|
14
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event:
|
|
17
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
18
18
|
};
|
|
19
19
|
export declare const distributeVertically: {
|
|
20
20
|
name: "distributeVertically";
|
|
@@ -27,8 +27,8 @@ export declare const distributeVertically: {
|
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
28
|
captureUpdate: "IMMEDIATELY";
|
|
29
29
|
};
|
|
30
|
-
keyTest: (event:
|
|
30
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
31
31
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
} & {
|
|
33
|
-
keyTest?: ((event:
|
|
33
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
34
34
|
};
|
|
@@ -10,8 +10,8 @@ export declare const actionDuplicateSelection: {
|
|
|
10
10
|
appState: import("../types").AppState;
|
|
11
11
|
captureUpdate: "IMMEDIATELY";
|
|
12
12
|
};
|
|
13
|
-
keyTest: (event:
|
|
13
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
14
14
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
} & {
|
|
16
|
-
keyTest?: ((event:
|
|
16
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
17
17
|
};
|
|
@@ -58,7 +58,7 @@ export declare const actionLinkToElement: {
|
|
|
58
58
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
59
59
|
isBindingEnabled: boolean;
|
|
60
60
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
61
|
-
suggestedBindings: import("@excalidraw/element
|
|
61
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
62
62
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
63
63
|
frameRendering: {
|
|
64
64
|
enabled: boolean;
|
|
@@ -69,7 +69,7 @@ export declare const actionLinkToElement: {
|
|
|
69
69
|
editingFrame: string | null;
|
|
70
70
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
71
71
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
72
|
-
editingLinearElement: import("@excalidraw/element
|
|
72
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
73
73
|
activeTool: {
|
|
74
74
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
75
|
locked: boolean;
|
|
@@ -179,7 +179,7 @@ export declare const actionLinkToElement: {
|
|
|
179
179
|
data: import("../charts").Spreadsheet;
|
|
180
180
|
};
|
|
181
181
|
pendingImageElementId: string | null;
|
|
182
|
-
showHyperlinkPopup: false | "
|
|
182
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
183
183
|
linkOpacity: number;
|
|
184
184
|
trayModeEnabled: boolean;
|
|
185
185
|
colorPalette?: {
|
|
@@ -216,7 +216,7 @@ export declare const actionLinkToElement: {
|
|
|
216
216
|
nameColor: string;
|
|
217
217
|
};
|
|
218
218
|
invertBindingBehaviour: boolean;
|
|
219
|
-
selectedLinearElement: import("@excalidraw/element
|
|
219
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
220
220
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
221
221
|
originSnapOffset: {
|
|
222
222
|
x: number;
|
|
@@ -227,16 +227,10 @@ export declare const actionLinkToElement: {
|
|
|
227
227
|
followedBy: Set<import("../types").SocketId>;
|
|
228
228
|
isCropping: boolean;
|
|
229
229
|
croppingElementId: string | null;
|
|
230
|
-
searchMatches:
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
offsetX: number;
|
|
235
|
-
offsetY: number;
|
|
236
|
-
width: number;
|
|
237
|
-
height: number;
|
|
238
|
-
}[];
|
|
239
|
-
}[];
|
|
230
|
+
searchMatches: Readonly<{
|
|
231
|
+
focusedId: string | null;
|
|
232
|
+
matches: readonly import("../types").SearchMatch[];
|
|
233
|
+
}> | null;
|
|
240
234
|
};
|
|
241
235
|
captureUpdate: "IMMEDIATELY";
|
|
242
236
|
elements?: undefined;
|