@excalidraw/excalidraw 0.18.0-a18b139 → 0.18.0-a30e1b2
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-X3RYHLJU.js → chunk-CARD3WJZ.js} +9 -4
- package/dist/dev/chunk-CARD3WJZ.js.map +7 -0
- package/dist/dev/{chunk-U3G3LY5D.js → chunk-ETWEPOFC.js} +7284 -6864
- package/dist/dev/chunk-ETWEPOFC.js.map +7 -0
- package/dist/dev/{chunk-MJMGTOVG.js → chunk-RS23HYC4.js} +2 -2
- package/dist/dev/data/{image-Y366K5SN.js → image-AYLHSOBV.js} +3 -3
- package/dist/dev/index.css +43 -2
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +2959 -1807
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-CKWC2GMK.js → en-E3O5XSXJ.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-6BSJPDKJ.js +33 -0
- package/dist/prod/{chunk-IUH5AXLB.js → chunk-FGHASORR.js} +4 -4
- package/dist/prod/{chunk-VQA74LVG.js → chunk-SBKTMZM7.js} +1 -1
- package/dist/prod/data/image-VAYKYPXV.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +19 -18
- package/dist/prod/locales/{en-SBO6ZHT2.js → en-44IKVKYT.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 +2 -0
- package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +4 -2
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/utility-types.d.ts +5 -0
- package/dist/types/common/src/utils.d.ts +9 -0
- package/dist/types/element/src/binding.d.ts +10 -2
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
- package/dist/types/element/src/frame.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +2 -2
- package/dist/types/element/src/linearElementEditor.d.ts +3 -7
- package/dist/types/element/src/newElement.d.ts +2 -2
- package/dist/types/element/src/store.d.ts +227 -0
- package/dist/types/element/src/transformHandles.d.ts +2 -2
- package/dist/types/element/src/typeChecks.d.ts +3 -0
- package/dist/types/element/src/types.d.ts +7 -0
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +18 -36
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +12 -24
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +107 -185
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +39 -75
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +6 -12
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +19 -37
- 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 +5 -11
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -26
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +6 -12
- package/dist/types/excalidraw/actions/actionExport.d.ts +81 -135
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +13 -25
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +26 -50
- package/dist/types/excalidraw/actions/actionGroup.d.ts +16 -28
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +6 -12
- package/dist/types/excalidraw/actions/actionLink.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionMenu.d.ts +19 -37
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +12 -24
- package/dist/types/excalidraw/actions/actionProperties.d.ts +96 -186
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -186
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +14 -14
- package/dist/types/excalidraw/components/App.d.ts +5 -3
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +49 -0
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -8
- package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
- package/dist/types/excalidraw/history.d.ts +14 -22
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +1 -1
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
- package/dist/types/excalidraw/types.d.ts +11 -3
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- package/dist/types/math/src/curve.d.ts +2 -0
- package/dist/types/math/src/vector.d.ts +4 -0
- package/history.ts +68 -94
- package/package.json +3 -3
- package/dist/dev/chunk-U3G3LY5D.js.map +0 -7
- package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
- package/dist/prod/chunk-PUQLEN73.js +0 -33
- package/dist/prod/data/image-WY2VMQLG.js +0 -1
- package/dist/types/excalidraw/store.d.ts +0 -129
- /package/dist/dev/{chunk-MJMGTOVG.js.map → chunk-RS23HYC4.js.map} +0 -0
- /package/dist/dev/data/{image-Y366K5SN.js.map → image-AYLHSOBV.js.map} +0 -0
- /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-E3O5XSXJ.js.map} +0 -0
|
@@ -19,7 +19,7 @@ export declare const actionCopy: {
|
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
activeEmbeddable: {
|
|
21
21
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
|
-
state: "
|
|
22
|
+
state: "active" | "hover";
|
|
23
23
|
} | null;
|
|
24
24
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
25
25
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -86,7 +86,7 @@ export declare const actionCopy: {
|
|
|
86
86
|
name: "imageExport" | "help" | "jsonExport";
|
|
87
87
|
} | {
|
|
88
88
|
name: "ttd";
|
|
89
|
-
tab: "text-to-diagram"
|
|
89
|
+
tab: "mermaid" | "text-to-diagram";
|
|
90
90
|
} | {
|
|
91
91
|
name: "commandPalette";
|
|
92
92
|
} | {
|
|
@@ -171,16 +171,10 @@ export declare const actionCopy: {
|
|
|
171
171
|
followedBy: Set<import("../types").SocketId>;
|
|
172
172
|
isCropping: boolean;
|
|
173
173
|
croppingElementId: string | null;
|
|
174
|
-
searchMatches:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
offsetX: number;
|
|
179
|
-
offsetY: number;
|
|
180
|
-
width: number;
|
|
181
|
-
height: number;
|
|
182
|
-
}[];
|
|
183
|
-
}[];
|
|
174
|
+
searchMatches: Readonly<{
|
|
175
|
+
focusedId: string | null;
|
|
176
|
+
matches: readonly import("../types").SearchMatch[];
|
|
177
|
+
}> | null;
|
|
184
178
|
};
|
|
185
179
|
} | {
|
|
186
180
|
captureUpdate: "EVENTUALLY";
|
|
@@ -209,7 +203,7 @@ export declare const actionPaste: {
|
|
|
209
203
|
isLoading: boolean;
|
|
210
204
|
activeEmbeddable: {
|
|
211
205
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
212
|
-
state: "
|
|
206
|
+
state: "active" | "hover";
|
|
213
207
|
} | null;
|
|
214
208
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
215
209
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -276,7 +270,7 @@ export declare const actionPaste: {
|
|
|
276
270
|
name: "imageExport" | "help" | "jsonExport";
|
|
277
271
|
} | {
|
|
278
272
|
name: "ttd";
|
|
279
|
-
tab: "text-to-diagram"
|
|
273
|
+
tab: "mermaid" | "text-to-diagram";
|
|
280
274
|
} | {
|
|
281
275
|
name: "commandPalette";
|
|
282
276
|
} | {
|
|
@@ -361,16 +355,10 @@ export declare const actionPaste: {
|
|
|
361
355
|
followedBy: Set<import("../types").SocketId>;
|
|
362
356
|
isCropping: boolean;
|
|
363
357
|
croppingElementId: string | null;
|
|
364
|
-
searchMatches:
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
offsetX: number;
|
|
369
|
-
offsetY: number;
|
|
370
|
-
width: number;
|
|
371
|
-
height: number;
|
|
372
|
-
}[];
|
|
373
|
-
}[];
|
|
358
|
+
searchMatches: Readonly<{
|
|
359
|
+
focusedId: string | null;
|
|
360
|
+
matches: readonly import("../types").SearchMatch[];
|
|
361
|
+
}> | null;
|
|
374
362
|
};
|
|
375
363
|
} | {
|
|
376
364
|
captureUpdate: "EVENTUALLY";
|
|
@@ -401,7 +389,7 @@ export declare const actionCut: {
|
|
|
401
389
|
errorMessage: import("react").ReactNode;
|
|
402
390
|
activeEmbeddable: {
|
|
403
391
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
404
|
-
state: "
|
|
392
|
+
state: "active" | "hover";
|
|
405
393
|
} | null;
|
|
406
394
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
407
395
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -467,7 +455,7 @@ export declare const actionCut: {
|
|
|
467
455
|
name: "imageExport" | "help" | "jsonExport";
|
|
468
456
|
} | {
|
|
469
457
|
name: "ttd";
|
|
470
|
-
tab: "text-to-diagram"
|
|
458
|
+
tab: "mermaid" | "text-to-diagram";
|
|
471
459
|
} | {
|
|
472
460
|
name: "commandPalette";
|
|
473
461
|
} | {
|
|
@@ -552,16 +540,10 @@ export declare const actionCut: {
|
|
|
552
540
|
followedBy: Set<import("../types").SocketId>;
|
|
553
541
|
isCropping: boolean;
|
|
554
542
|
croppingElementId: string | null;
|
|
555
|
-
searchMatches:
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
offsetX: number;
|
|
560
|
-
offsetY: number;
|
|
561
|
-
width: number;
|
|
562
|
-
height: number;
|
|
563
|
-
}[];
|
|
564
|
-
}[];
|
|
543
|
+
searchMatches: Readonly<{
|
|
544
|
+
focusedId: string | null;
|
|
545
|
+
matches: readonly import("../types").SearchMatch[];
|
|
546
|
+
}> | null;
|
|
565
547
|
};
|
|
566
548
|
captureUpdate: "IMMEDIATELY";
|
|
567
549
|
} | {
|
|
@@ -608,7 +590,7 @@ export declare const actionCut: {
|
|
|
608
590
|
errorMessage: import("react").ReactNode;
|
|
609
591
|
activeEmbeddable: {
|
|
610
592
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
611
|
-
state: "
|
|
593
|
+
state: "active" | "hover";
|
|
612
594
|
} | null;
|
|
613
595
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
614
596
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -674,7 +656,7 @@ export declare const actionCut: {
|
|
|
674
656
|
name: "imageExport" | "help" | "jsonExport";
|
|
675
657
|
} | {
|
|
676
658
|
name: "ttd";
|
|
677
|
-
tab: "text-to-diagram"
|
|
659
|
+
tab: "mermaid" | "text-to-diagram";
|
|
678
660
|
} | {
|
|
679
661
|
name: "commandPalette";
|
|
680
662
|
} | {
|
|
@@ -759,16 +741,10 @@ export declare const actionCut: {
|
|
|
759
741
|
followedBy: Set<import("../types").SocketId>;
|
|
760
742
|
isCropping: boolean;
|
|
761
743
|
croppingElementId: string | null;
|
|
762
|
-
searchMatches:
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
offsetX: number;
|
|
767
|
-
offsetY: number;
|
|
768
|
-
width: number;
|
|
769
|
-
height: number;
|
|
770
|
-
}[];
|
|
771
|
-
}[];
|
|
744
|
+
searchMatches: Readonly<{
|
|
745
|
+
focusedId: string | null;
|
|
746
|
+
matches: readonly import("../types").SearchMatch[];
|
|
747
|
+
}> | null;
|
|
772
748
|
};
|
|
773
749
|
captureUpdate: "IMMEDIATELY";
|
|
774
750
|
} | {
|
|
@@ -856,7 +832,7 @@ export declare const actionCut: {
|
|
|
856
832
|
name: "imageExport" | "help" | "jsonExport";
|
|
857
833
|
} | {
|
|
858
834
|
name: "ttd";
|
|
859
|
-
tab: "text-to-diagram"
|
|
835
|
+
tab: "mermaid" | "text-to-diagram";
|
|
860
836
|
} | {
|
|
861
837
|
name: "commandPalette";
|
|
862
838
|
} | {
|
|
@@ -933,22 +909,16 @@ export declare const actionCut: {
|
|
|
933
909
|
followedBy: Set<import("../types").SocketId>;
|
|
934
910
|
isCropping: boolean;
|
|
935
911
|
croppingElementId: string | null;
|
|
936
|
-
searchMatches:
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
offsetX: number;
|
|
941
|
-
offsetY: number;
|
|
942
|
-
width: number;
|
|
943
|
-
height: number;
|
|
944
|
-
}[];
|
|
945
|
-
}[];
|
|
912
|
+
searchMatches: Readonly<{
|
|
913
|
+
focusedId: string | null;
|
|
914
|
+
matches: readonly import("../types").SearchMatch[];
|
|
915
|
+
}> | null;
|
|
946
916
|
};
|
|
947
917
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
948
918
|
};
|
|
949
|
-
keyTest: (event:
|
|
919
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
950
920
|
} & {
|
|
951
|
-
keyTest?: ((event:
|
|
921
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
952
922
|
};
|
|
953
923
|
export declare const actionCopyAsSvg: {
|
|
954
924
|
name: "copyAsSvg";
|
|
@@ -1002,7 +972,7 @@ export declare const actionCopyAsPng: {
|
|
|
1002
972
|
isLoading: boolean;
|
|
1003
973
|
activeEmbeddable: {
|
|
1004
974
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1005
|
-
state: "
|
|
975
|
+
state: "active" | "hover";
|
|
1006
976
|
} | null;
|
|
1007
977
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1008
978
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1069,7 +1039,7 @@ export declare const actionCopyAsPng: {
|
|
|
1069
1039
|
name: "imageExport" | "help" | "jsonExport";
|
|
1070
1040
|
} | {
|
|
1071
1041
|
name: "ttd";
|
|
1072
|
-
tab: "text-to-diagram"
|
|
1042
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1073
1043
|
} | {
|
|
1074
1044
|
name: "commandPalette";
|
|
1075
1045
|
} | {
|
|
@@ -1154,24 +1124,18 @@ export declare const actionCopyAsPng: {
|
|
|
1154
1124
|
followedBy: Set<import("../types").SocketId>;
|
|
1155
1125
|
isCropping: boolean;
|
|
1156
1126
|
croppingElementId: string | null;
|
|
1157
|
-
searchMatches:
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
offsetX: number;
|
|
1162
|
-
offsetY: number;
|
|
1163
|
-
width: number;
|
|
1164
|
-
height: number;
|
|
1165
|
-
}[];
|
|
1166
|
-
}[];
|
|
1127
|
+
searchMatches: Readonly<{
|
|
1128
|
+
focusedId: string | null;
|
|
1129
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1130
|
+
}> | null;
|
|
1167
1131
|
};
|
|
1168
1132
|
captureUpdate: "EVENTUALLY";
|
|
1169
1133
|
}>;
|
|
1170
1134
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1171
|
-
keyTest: (event:
|
|
1135
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1172
1136
|
keywords: string[];
|
|
1173
1137
|
} & {
|
|
1174
|
-
keyTest?: ((event:
|
|
1138
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1175
1139
|
};
|
|
1176
1140
|
export declare const copyText: {
|
|
1177
1141
|
name: "copyText";
|
|
@@ -22,7 +22,7 @@ export declare const actionToggleCropEditor: {
|
|
|
22
22
|
errorMessage: import("react").ReactNode;
|
|
23
23
|
activeEmbeddable: {
|
|
24
24
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
25
|
-
state: "
|
|
25
|
+
state: "active" | "hover";
|
|
26
26
|
} | null;
|
|
27
27
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
28
28
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -89,7 +89,7 @@ export declare const actionToggleCropEditor: {
|
|
|
89
89
|
name: "imageExport" | "help" | "jsonExport";
|
|
90
90
|
} | {
|
|
91
91
|
name: "ttd";
|
|
92
|
-
tab: "text-to-diagram"
|
|
92
|
+
tab: "mermaid" | "text-to-diagram";
|
|
93
93
|
} | {
|
|
94
94
|
name: "commandPalette";
|
|
95
95
|
} | {
|
|
@@ -172,16 +172,10 @@ export declare const actionToggleCropEditor: {
|
|
|
172
172
|
objectsSnapModeEnabled: boolean;
|
|
173
173
|
userToFollow: import("../types").UserToFollow | null;
|
|
174
174
|
followedBy: Set<import("../types").SocketId>;
|
|
175
|
-
searchMatches:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
offsetX: number;
|
|
180
|
-
offsetY: number;
|
|
181
|
-
width: number;
|
|
182
|
-
height: number;
|
|
183
|
-
}[];
|
|
184
|
-
}[];
|
|
175
|
+
searchMatches: Readonly<{
|
|
176
|
+
focusedId: string | null;
|
|
177
|
+
matches: readonly import("../types").SearchMatch[];
|
|
178
|
+
}> | null;
|
|
185
179
|
};
|
|
186
180
|
captureUpdate: "IMMEDIATELY";
|
|
187
181
|
};
|
|
@@ -24,7 +24,7 @@ export declare const actionDeleteSelected: {
|
|
|
24
24
|
errorMessage: import("react").ReactNode;
|
|
25
25
|
activeEmbeddable: {
|
|
26
26
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
27
|
-
state: "
|
|
27
|
+
state: "active" | "hover";
|
|
28
28
|
} | null;
|
|
29
29
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
30
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -90,7 +90,7 @@ export declare const actionDeleteSelected: {
|
|
|
90
90
|
name: "imageExport" | "help" | "jsonExport";
|
|
91
91
|
} | {
|
|
92
92
|
name: "ttd";
|
|
93
|
-
tab: "text-to-diagram"
|
|
93
|
+
tab: "mermaid" | "text-to-diagram";
|
|
94
94
|
} | {
|
|
95
95
|
name: "commandPalette";
|
|
96
96
|
} | {
|
|
@@ -175,16 +175,10 @@ export declare const actionDeleteSelected: {
|
|
|
175
175
|
followedBy: Set<import("../types").SocketId>;
|
|
176
176
|
isCropping: boolean;
|
|
177
177
|
croppingElementId: string | null;
|
|
178
|
-
searchMatches:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
offsetX: number;
|
|
183
|
-
offsetY: number;
|
|
184
|
-
width: number;
|
|
185
|
-
height: number;
|
|
186
|
-
}[];
|
|
187
|
-
}[];
|
|
178
|
+
searchMatches: Readonly<{
|
|
179
|
+
focusedId: string | null;
|
|
180
|
+
matches: readonly import("../types").SearchMatch[];
|
|
181
|
+
}> | null;
|
|
188
182
|
};
|
|
189
183
|
captureUpdate: "IMMEDIATELY";
|
|
190
184
|
} | {
|
|
@@ -231,7 +225,7 @@ export declare const actionDeleteSelected: {
|
|
|
231
225
|
errorMessage: import("react").ReactNode;
|
|
232
226
|
activeEmbeddable: {
|
|
233
227
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
234
|
-
state: "
|
|
228
|
+
state: "active" | "hover";
|
|
235
229
|
} | null;
|
|
236
230
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
237
231
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -297,7 +291,7 @@ export declare const actionDeleteSelected: {
|
|
|
297
291
|
name: "imageExport" | "help" | "jsonExport";
|
|
298
292
|
} | {
|
|
299
293
|
name: "ttd";
|
|
300
|
-
tab: "text-to-diagram"
|
|
294
|
+
tab: "mermaid" | "text-to-diagram";
|
|
301
295
|
} | {
|
|
302
296
|
name: "commandPalette";
|
|
303
297
|
} | {
|
|
@@ -382,16 +376,10 @@ export declare const actionDeleteSelected: {
|
|
|
382
376
|
followedBy: Set<import("../types").SocketId>;
|
|
383
377
|
isCropping: boolean;
|
|
384
378
|
croppingElementId: string | null;
|
|
385
|
-
searchMatches:
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
offsetX: number;
|
|
390
|
-
offsetY: number;
|
|
391
|
-
width: number;
|
|
392
|
-
height: number;
|
|
393
|
-
}[];
|
|
394
|
-
}[];
|
|
379
|
+
searchMatches: Readonly<{
|
|
380
|
+
focusedId: string | null;
|
|
381
|
+
matches: readonly import("../types").SearchMatch[];
|
|
382
|
+
}> | null;
|
|
395
383
|
};
|
|
396
384
|
captureUpdate: "IMMEDIATELY";
|
|
397
385
|
} | {
|
|
@@ -479,7 +467,7 @@ export declare const actionDeleteSelected: {
|
|
|
479
467
|
name: "imageExport" | "help" | "jsonExport";
|
|
480
468
|
} | {
|
|
481
469
|
name: "ttd";
|
|
482
|
-
tab: "text-to-diagram"
|
|
470
|
+
tab: "mermaid" | "text-to-diagram";
|
|
483
471
|
} | {
|
|
484
472
|
name: "commandPalette";
|
|
485
473
|
} | {
|
|
@@ -556,21 +544,15 @@ export declare const actionDeleteSelected: {
|
|
|
556
544
|
followedBy: Set<import("../types").SocketId>;
|
|
557
545
|
isCropping: boolean;
|
|
558
546
|
croppingElementId: string | null;
|
|
559
|
-
searchMatches:
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
offsetX: number;
|
|
564
|
-
offsetY: number;
|
|
565
|
-
width: number;
|
|
566
|
-
height: number;
|
|
567
|
-
}[];
|
|
568
|
-
}[];
|
|
547
|
+
searchMatches: Readonly<{
|
|
548
|
+
focusedId: string | null;
|
|
549
|
+
matches: readonly import("../types").SearchMatch[];
|
|
550
|
+
}> | null;
|
|
569
551
|
};
|
|
570
552
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
571
553
|
};
|
|
572
|
-
keyTest: (event:
|
|
554
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
573
555
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
574
556
|
} & {
|
|
575
|
-
keyTest?: ((event:
|
|
557
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
576
558
|
};
|
|
@@ -12,10 +12,10 @@ export declare const distributeHorizontally: {
|
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
|
-
keyTest: (event:
|
|
15
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
16
16
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
} & {
|
|
18
|
-
keyTest?: ((event:
|
|
18
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => 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:
|
|
31
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
32
32
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
} & {
|
|
34
|
-
keyTest?: ((event:
|
|
34
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => 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:
|
|
14
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData }: 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
|
};
|
|
@@ -51,7 +51,7 @@ export declare const actionLinkToElement: {
|
|
|
51
51
|
errorMessage: import("react").ReactNode;
|
|
52
52
|
activeEmbeddable: {
|
|
53
53
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
54
|
-
state: "
|
|
54
|
+
state: "active" | "hover";
|
|
55
55
|
} | null;
|
|
56
56
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
57
57
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -192,16 +192,10 @@ export declare const actionLinkToElement: {
|
|
|
192
192
|
followedBy: Set<import("../types").SocketId>;
|
|
193
193
|
isCropping: boolean;
|
|
194
194
|
croppingElementId: string | null;
|
|
195
|
-
searchMatches:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
offsetX: number;
|
|
200
|
-
offsetY: number;
|
|
201
|
-
width: number;
|
|
202
|
-
height: number;
|
|
203
|
-
}[];
|
|
204
|
-
}[];
|
|
195
|
+
searchMatches: Readonly<{
|
|
196
|
+
focusedId: string | null;
|
|
197
|
+
matches: readonly import("../types").SearchMatch[];
|
|
198
|
+
}> | null;
|
|
205
199
|
};
|
|
206
200
|
captureUpdate: "IMMEDIATELY";
|
|
207
201
|
elements?: undefined;
|
|
@@ -22,7 +22,7 @@ export declare const actionToggleElementLock: {
|
|
|
22
22
|
errorMessage: import("react").ReactNode;
|
|
23
23
|
activeEmbeddable: {
|
|
24
24
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
25
|
-
state: "
|
|
25
|
+
state: "active" | "hover";
|
|
26
26
|
} | null;
|
|
27
27
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
28
28
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -89,7 +89,7 @@ export declare const actionToggleElementLock: {
|
|
|
89
89
|
name: "imageExport" | "help" | "jsonExport";
|
|
90
90
|
} | {
|
|
91
91
|
name: "ttd";
|
|
92
|
-
tab: "text-to-diagram"
|
|
92
|
+
tab: "mermaid" | "text-to-diagram";
|
|
93
93
|
} | {
|
|
94
94
|
name: "commandPalette";
|
|
95
95
|
} | {
|
|
@@ -173,22 +173,16 @@ export declare const actionToggleElementLock: {
|
|
|
173
173
|
followedBy: Set<import("../types").SocketId>;
|
|
174
174
|
isCropping: boolean;
|
|
175
175
|
croppingElementId: string | null;
|
|
176
|
-
searchMatches:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
offsetX: number;
|
|
181
|
-
offsetY: number;
|
|
182
|
-
width: number;
|
|
183
|
-
height: number;
|
|
184
|
-
}[];
|
|
185
|
-
}[];
|
|
176
|
+
searchMatches: Readonly<{
|
|
177
|
+
focusedId: string | null;
|
|
178
|
+
matches: readonly import("../types").SearchMatch[];
|
|
179
|
+
}> | null;
|
|
186
180
|
};
|
|
187
181
|
captureUpdate: "IMMEDIATELY";
|
|
188
182
|
};
|
|
189
|
-
keyTest: (event:
|
|
183
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
190
184
|
} & {
|
|
191
|
-
keyTest?: ((event:
|
|
185
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
192
186
|
};
|
|
193
187
|
export declare const actionUnlockAllElements: {
|
|
194
188
|
name: "unlockAllElements";
|
|
@@ -214,7 +208,7 @@ export declare const actionUnlockAllElements: {
|
|
|
214
208
|
errorMessage: import("react").ReactNode;
|
|
215
209
|
activeEmbeddable: {
|
|
216
210
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
217
|
-
state: "
|
|
211
|
+
state: "active" | "hover";
|
|
218
212
|
} | null;
|
|
219
213
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
220
214
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -281,7 +275,7 @@ export declare const actionUnlockAllElements: {
|
|
|
281
275
|
name: "imageExport" | "help" | "jsonExport";
|
|
282
276
|
} | {
|
|
283
277
|
name: "ttd";
|
|
284
|
-
tab: "text-to-diagram"
|
|
278
|
+
tab: "mermaid" | "text-to-diagram";
|
|
285
279
|
} | {
|
|
286
280
|
name: "commandPalette";
|
|
287
281
|
} | {
|
|
@@ -363,16 +357,10 @@ export declare const actionUnlockAllElements: {
|
|
|
363
357
|
followedBy: Set<import("../types").SocketId>;
|
|
364
358
|
isCropping: boolean;
|
|
365
359
|
croppingElementId: string | null;
|
|
366
|
-
searchMatches:
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
offsetX: number;
|
|
371
|
-
offsetY: number;
|
|
372
|
-
width: number;
|
|
373
|
-
height: number;
|
|
374
|
-
}[];
|
|
375
|
-
}[];
|
|
360
|
+
searchMatches: Readonly<{
|
|
361
|
+
focusedId: string | null;
|
|
362
|
+
matches: readonly import("../types").SearchMatch[];
|
|
363
|
+
}> | null;
|
|
376
364
|
};
|
|
377
365
|
captureUpdate: "IMMEDIATELY";
|
|
378
366
|
};
|
|
@@ -24,7 +24,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
24
24
|
errorMessage: import("react").ReactNode;
|
|
25
25
|
activeEmbeddable: {
|
|
26
26
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
27
|
-
state: "
|
|
27
|
+
state: "active" | "hover";
|
|
28
28
|
} | null;
|
|
29
29
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
30
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -86,7 +86,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
86
86
|
name: "imageExport" | "help" | "jsonExport";
|
|
87
87
|
} | {
|
|
88
88
|
name: "ttd";
|
|
89
|
-
tab: "text-to-diagram"
|
|
89
|
+
tab: "mermaid" | "text-to-diagram";
|
|
90
90
|
} | {
|
|
91
91
|
name: "commandPalette";
|
|
92
92
|
} | {
|
|
@@ -171,16 +171,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
171
171
|
followedBy: Set<import("../types").SocketId>;
|
|
172
172
|
isCropping: boolean;
|
|
173
173
|
croppingElementId: string | null;
|
|
174
|
-
searchMatches:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
offsetX: number;
|
|
179
|
-
offsetY: number;
|
|
180
|
-
width: number;
|
|
181
|
-
height: number;
|
|
182
|
-
}[];
|
|
183
|
-
}[];
|
|
174
|
+
searchMatches: Readonly<{
|
|
175
|
+
focusedId: string | null;
|
|
176
|
+
matches: readonly import("../types").SearchMatch[];
|
|
177
|
+
}> | null;
|
|
184
178
|
};
|
|
185
179
|
captureUpdate: "EVENTUALLY";
|
|
186
180
|
};
|