@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
|
@@ -18,7 +18,7 @@ export declare const actionChangeProjectName: {
|
|
|
18
18
|
errorMessage: import("react").ReactNode;
|
|
19
19
|
activeEmbeddable: {
|
|
20
20
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
21
|
-
state: "
|
|
21
|
+
state: "active" | "hover";
|
|
22
22
|
} | null;
|
|
23
23
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
24
24
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -84,7 +84,7 @@ export declare const actionChangeProjectName: {
|
|
|
84
84
|
name: "imageExport" | "help" | "jsonExport";
|
|
85
85
|
} | {
|
|
86
86
|
name: "ttd";
|
|
87
|
-
tab: "text-to-diagram"
|
|
87
|
+
tab: "mermaid" | "text-to-diagram";
|
|
88
88
|
} | {
|
|
89
89
|
name: "commandPalette";
|
|
90
90
|
} | {
|
|
@@ -169,16 +169,10 @@ export declare const actionChangeProjectName: {
|
|
|
169
169
|
followedBy: Set<import("../types").SocketId>;
|
|
170
170
|
isCropping: boolean;
|
|
171
171
|
croppingElementId: string | null;
|
|
172
|
-
searchMatches:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
offsetX: number;
|
|
177
|
-
offsetY: number;
|
|
178
|
-
width: number;
|
|
179
|
-
height: number;
|
|
180
|
-
}[];
|
|
181
|
-
}[];
|
|
172
|
+
searchMatches: Readonly<{
|
|
173
|
+
focusedId: string | null;
|
|
174
|
+
matches: readonly import("../types").SearchMatch[];
|
|
175
|
+
}> | null;
|
|
182
176
|
};
|
|
183
177
|
captureUpdate: "EVENTUALLY";
|
|
184
178
|
};
|
|
@@ -206,7 +200,7 @@ export declare const actionChangeExportScale: {
|
|
|
206
200
|
errorMessage: import("react").ReactNode;
|
|
207
201
|
activeEmbeddable: {
|
|
208
202
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
209
|
-
state: "
|
|
203
|
+
state: "active" | "hover";
|
|
210
204
|
} | null;
|
|
211
205
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
212
206
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -272,7 +266,7 @@ export declare const actionChangeExportScale: {
|
|
|
272
266
|
name: "imageExport" | "help" | "jsonExport";
|
|
273
267
|
} | {
|
|
274
268
|
name: "ttd";
|
|
275
|
-
tab: "text-to-diagram"
|
|
269
|
+
tab: "mermaid" | "text-to-diagram";
|
|
276
270
|
} | {
|
|
277
271
|
name: "commandPalette";
|
|
278
272
|
} | {
|
|
@@ -357,16 +351,10 @@ export declare const actionChangeExportScale: {
|
|
|
357
351
|
followedBy: Set<import("../types").SocketId>;
|
|
358
352
|
isCropping: boolean;
|
|
359
353
|
croppingElementId: string | null;
|
|
360
|
-
searchMatches:
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
offsetX: number;
|
|
365
|
-
offsetY: number;
|
|
366
|
-
width: number;
|
|
367
|
-
height: number;
|
|
368
|
-
}[];
|
|
369
|
-
}[];
|
|
354
|
+
searchMatches: Readonly<{
|
|
355
|
+
focusedId: string | null;
|
|
356
|
+
matches: readonly import("../types").SearchMatch[];
|
|
357
|
+
}> | null;
|
|
370
358
|
};
|
|
371
359
|
captureUpdate: "EVENTUALLY";
|
|
372
360
|
};
|
|
@@ -394,7 +382,7 @@ export declare const actionChangeExportBackground: {
|
|
|
394
382
|
errorMessage: import("react").ReactNode;
|
|
395
383
|
activeEmbeddable: {
|
|
396
384
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
397
|
-
state: "
|
|
385
|
+
state: "active" | "hover";
|
|
398
386
|
} | null;
|
|
399
387
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
400
388
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -460,7 +448,7 @@ export declare const actionChangeExportBackground: {
|
|
|
460
448
|
name: "imageExport" | "help" | "jsonExport";
|
|
461
449
|
} | {
|
|
462
450
|
name: "ttd";
|
|
463
|
-
tab: "text-to-diagram"
|
|
451
|
+
tab: "mermaid" | "text-to-diagram";
|
|
464
452
|
} | {
|
|
465
453
|
name: "commandPalette";
|
|
466
454
|
} | {
|
|
@@ -545,16 +533,10 @@ export declare const actionChangeExportBackground: {
|
|
|
545
533
|
followedBy: Set<import("../types").SocketId>;
|
|
546
534
|
isCropping: boolean;
|
|
547
535
|
croppingElementId: string | null;
|
|
548
|
-
searchMatches:
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
offsetX: number;
|
|
553
|
-
offsetY: number;
|
|
554
|
-
width: number;
|
|
555
|
-
height: number;
|
|
556
|
-
}[];
|
|
557
|
-
}[];
|
|
536
|
+
searchMatches: Readonly<{
|
|
537
|
+
focusedId: string | null;
|
|
538
|
+
matches: readonly import("../types").SearchMatch[];
|
|
539
|
+
}> | null;
|
|
558
540
|
};
|
|
559
541
|
captureUpdate: "EVENTUALLY";
|
|
560
542
|
};
|
|
@@ -582,7 +564,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
582
564
|
errorMessage: import("react").ReactNode;
|
|
583
565
|
activeEmbeddable: {
|
|
584
566
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
585
|
-
state: "
|
|
567
|
+
state: "active" | "hover";
|
|
586
568
|
} | null;
|
|
587
569
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
588
570
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -648,7 +630,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
648
630
|
name: "imageExport" | "help" | "jsonExport";
|
|
649
631
|
} | {
|
|
650
632
|
name: "ttd";
|
|
651
|
-
tab: "text-to-diagram"
|
|
633
|
+
tab: "mermaid" | "text-to-diagram";
|
|
652
634
|
} | {
|
|
653
635
|
name: "commandPalette";
|
|
654
636
|
} | {
|
|
@@ -733,16 +715,10 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
733
715
|
followedBy: Set<import("../types").SocketId>;
|
|
734
716
|
isCropping: boolean;
|
|
735
717
|
croppingElementId: string | null;
|
|
736
|
-
searchMatches:
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
offsetX: number;
|
|
741
|
-
offsetY: number;
|
|
742
|
-
width: number;
|
|
743
|
-
height: number;
|
|
744
|
-
}[];
|
|
745
|
-
}[];
|
|
718
|
+
searchMatches: Readonly<{
|
|
719
|
+
focusedId: string | null;
|
|
720
|
+
matches: readonly import("../types").SearchMatch[];
|
|
721
|
+
}> | null;
|
|
746
722
|
};
|
|
747
723
|
captureUpdate: "EVENTUALLY";
|
|
748
724
|
};
|
|
@@ -775,7 +751,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
775
751
|
errorMessage: import("react").ReactNode;
|
|
776
752
|
activeEmbeddable: {
|
|
777
753
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
778
|
-
state: "
|
|
754
|
+
state: "active" | "hover";
|
|
779
755
|
} | null;
|
|
780
756
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
781
757
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -842,7 +818,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
842
818
|
name: "imageExport" | "help" | "jsonExport";
|
|
843
819
|
} | {
|
|
844
820
|
name: "ttd";
|
|
845
|
-
tab: "text-to-diagram"
|
|
821
|
+
tab: "mermaid" | "text-to-diagram";
|
|
846
822
|
} | {
|
|
847
823
|
name: "commandPalette";
|
|
848
824
|
} | {
|
|
@@ -921,24 +897,18 @@ export declare const actionSaveToActiveFile: {
|
|
|
921
897
|
followedBy: Set<import("../types").SocketId>;
|
|
922
898
|
isCropping: boolean;
|
|
923
899
|
croppingElementId: string | null;
|
|
924
|
-
searchMatches:
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
offsetX: number;
|
|
929
|
-
offsetY: number;
|
|
930
|
-
width: number;
|
|
931
|
-
height: number;
|
|
932
|
-
}[];
|
|
933
|
-
}[];
|
|
900
|
+
searchMatches: Readonly<{
|
|
901
|
+
focusedId: string | null;
|
|
902
|
+
matches: readonly import("../types").SearchMatch[];
|
|
903
|
+
}> | null;
|
|
934
904
|
};
|
|
935
905
|
} | {
|
|
936
906
|
captureUpdate: "EVENTUALLY";
|
|
937
907
|
appState?: undefined;
|
|
938
908
|
}>;
|
|
939
|
-
keyTest: (event:
|
|
909
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
940
910
|
} & {
|
|
941
|
-
keyTest?: ((event:
|
|
911
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
942
912
|
};
|
|
943
913
|
export declare const actionSaveFileToDisk: {
|
|
944
914
|
name: "saveFileToDisk";
|
|
@@ -966,7 +936,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
966
936
|
errorMessage: import("react").ReactNode;
|
|
967
937
|
activeEmbeddable: {
|
|
968
938
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
969
|
-
state: "
|
|
939
|
+
state: "active" | "hover";
|
|
970
940
|
} | null;
|
|
971
941
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
972
942
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1101,25 +1071,19 @@ export declare const actionSaveFileToDisk: {
|
|
|
1101
1071
|
followedBy: Set<import("../types").SocketId>;
|
|
1102
1072
|
isCropping: boolean;
|
|
1103
1073
|
croppingElementId: string | null;
|
|
1104
|
-
searchMatches:
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
offsetX: number;
|
|
1109
|
-
offsetY: number;
|
|
1110
|
-
width: number;
|
|
1111
|
-
height: number;
|
|
1112
|
-
}[];
|
|
1113
|
-
}[];
|
|
1074
|
+
searchMatches: Readonly<{
|
|
1075
|
+
focusedId: string | null;
|
|
1076
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1077
|
+
}> | null;
|
|
1114
1078
|
};
|
|
1115
1079
|
} | {
|
|
1116
1080
|
captureUpdate: "EVENTUALLY";
|
|
1117
1081
|
appState?: undefined;
|
|
1118
1082
|
}>;
|
|
1119
|
-
keyTest: (event:
|
|
1083
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1120
1084
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1121
1085
|
} & {
|
|
1122
|
-
keyTest?: ((event:
|
|
1086
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1123
1087
|
};
|
|
1124
1088
|
export declare const actionLoadScene: {
|
|
1125
1089
|
name: "loadScene";
|
|
@@ -1131,17 +1095,6 @@ export declare const actionLoadScene: {
|
|
|
1131
1095
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1132
1096
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
1133
1097
|
appState: {
|
|
1134
|
-
name: string | null;
|
|
1135
|
-
activeTool: {
|
|
1136
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1137
|
-
locked: boolean;
|
|
1138
|
-
fromSelection: boolean;
|
|
1139
|
-
} & import("../types").ActiveTool;
|
|
1140
|
-
zoom: Readonly<{
|
|
1141
|
-
value: import("../types").NormalizedZoomValue;
|
|
1142
|
-
}>;
|
|
1143
|
-
scrollX: number;
|
|
1144
|
-
scrollY: number;
|
|
1145
1098
|
viewBackgroundColor: string;
|
|
1146
1099
|
frameRendering: {
|
|
1147
1100
|
enabled: boolean;
|
|
@@ -1149,12 +1102,18 @@ export declare const actionLoadScene: {
|
|
|
1149
1102
|
outline: boolean;
|
|
1150
1103
|
clip: boolean;
|
|
1151
1104
|
};
|
|
1105
|
+
name: string | null;
|
|
1106
|
+
zoom: Readonly<{
|
|
1107
|
+
value: import("../types").NormalizedZoomValue;
|
|
1108
|
+
}>;
|
|
1109
|
+
scrollX: number;
|
|
1110
|
+
scrollY: number;
|
|
1152
1111
|
viewModeEnabled: boolean;
|
|
1153
1112
|
openDialog: {
|
|
1154
1113
|
name: "imageExport" | "help" | "jsonExport";
|
|
1155
1114
|
} | {
|
|
1156
1115
|
name: "ttd";
|
|
1157
|
-
tab: "text-to-diagram"
|
|
1116
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1158
1117
|
} | {
|
|
1159
1118
|
name: "commandPalette";
|
|
1160
1119
|
} | {
|
|
@@ -1170,7 +1129,7 @@ export declare const actionLoadScene: {
|
|
|
1170
1129
|
pendingImageElementId: string | null;
|
|
1171
1130
|
activeEmbeddable: {
|
|
1172
1131
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1173
|
-
state: "
|
|
1132
|
+
state: "active" | "hover";
|
|
1174
1133
|
} | null;
|
|
1175
1134
|
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1176
1135
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1208,16 +1167,26 @@ export declare const actionLoadScene: {
|
|
|
1208
1167
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1209
1168
|
isCropping: boolean;
|
|
1210
1169
|
croppingElementId: string | null;
|
|
1211
|
-
searchMatches:
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1170
|
+
searchMatches: Readonly<{
|
|
1171
|
+
focusedId: string | null;
|
|
1172
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1173
|
+
}> | null;
|
|
1174
|
+
activeTool: {
|
|
1175
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
1176
|
+
locked: boolean;
|
|
1177
|
+
fromSelection: boolean;
|
|
1178
|
+
} & import("../types").ActiveTool;
|
|
1179
|
+
gridModeEnabled: boolean;
|
|
1180
|
+
objectsSnapModeEnabled: boolean;
|
|
1181
|
+
shouldCacheIgnoreZoom: boolean;
|
|
1182
|
+
exportScale: number;
|
|
1183
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1184
|
+
gridSize: number;
|
|
1185
|
+
gridStep: number;
|
|
1186
|
+
currentHoveredFontFamily: number | null;
|
|
1187
|
+
hoveredElementIds: Readonly<{
|
|
1188
|
+
[id: string]: true;
|
|
1189
|
+
}>;
|
|
1221
1190
|
contextMenu: {
|
|
1222
1191
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1223
1192
|
top: number;
|
|
@@ -1235,7 +1204,6 @@ export declare const actionLoadScene: {
|
|
|
1235
1204
|
exportBackground: boolean;
|
|
1236
1205
|
exportEmbedScene: boolean;
|
|
1237
1206
|
exportWithDarkMode: boolean;
|
|
1238
|
-
exportScale: number;
|
|
1239
1207
|
currentItemStrokeColor: string;
|
|
1240
1208
|
currentItemBackgroundColor: string;
|
|
1241
1209
|
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
@@ -1248,7 +1216,6 @@ export declare const actionLoadScene: {
|
|
|
1248
1216
|
currentItemTextAlign: string;
|
|
1249
1217
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1250
1218
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1251
|
-
currentHoveredFontFamily: number | null;
|
|
1252
1219
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1253
1220
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1254
1221
|
cursorButton: "up" | "down";
|
|
@@ -1262,22 +1229,14 @@ export declare const actionLoadScene: {
|
|
|
1262
1229
|
} | null;
|
|
1263
1230
|
defaultSidebarDockedPreference: boolean;
|
|
1264
1231
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1265
|
-
hoveredElementIds: Readonly<{
|
|
1266
|
-
[id: string]: true;
|
|
1267
|
-
}>;
|
|
1268
1232
|
previousSelectedElementIds: {
|
|
1269
1233
|
[id: string]: true;
|
|
1270
1234
|
};
|
|
1271
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1272
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1273
1235
|
toast: {
|
|
1274
1236
|
message: string;
|
|
1275
1237
|
closable?: boolean | undefined;
|
|
1276
1238
|
duration?: number | undefined;
|
|
1277
1239
|
} | null;
|
|
1278
|
-
gridSize: number;
|
|
1279
|
-
gridStep: number;
|
|
1280
|
-
gridModeEnabled: boolean;
|
|
1281
1240
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1282
1241
|
stats: {
|
|
1283
1242
|
open: boolean;
|
|
@@ -1296,7 +1255,6 @@ export declare const actionLoadScene: {
|
|
|
1296
1255
|
x: number;
|
|
1297
1256
|
y: number;
|
|
1298
1257
|
} | null;
|
|
1299
|
-
objectsSnapModeEnabled: boolean;
|
|
1300
1258
|
userToFollow: import("../types").UserToFollow | null;
|
|
1301
1259
|
followedBy: Set<import("../types").SocketId>;
|
|
1302
1260
|
};
|
|
@@ -1315,7 +1273,7 @@ export declare const actionLoadScene: {
|
|
|
1315
1273
|
isLoading: boolean;
|
|
1316
1274
|
activeEmbeddable: {
|
|
1317
1275
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1318
|
-
state: "
|
|
1276
|
+
state: "active" | "hover";
|
|
1319
1277
|
} | null;
|
|
1320
1278
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1321
1279
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1382,7 +1340,7 @@ export declare const actionLoadScene: {
|
|
|
1382
1340
|
name: "imageExport" | "help" | "jsonExport";
|
|
1383
1341
|
} | {
|
|
1384
1342
|
name: "ttd";
|
|
1385
|
-
tab: "text-to-diagram"
|
|
1343
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1386
1344
|
} | {
|
|
1387
1345
|
name: "commandPalette";
|
|
1388
1346
|
} | {
|
|
@@ -1467,23 +1425,17 @@ export declare const actionLoadScene: {
|
|
|
1467
1425
|
followedBy: Set<import("../types").SocketId>;
|
|
1468
1426
|
isCropping: boolean;
|
|
1469
1427
|
croppingElementId: string | null;
|
|
1470
|
-
searchMatches:
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
offsetX: number;
|
|
1475
|
-
offsetY: number;
|
|
1476
|
-
width: number;
|
|
1477
|
-
height: number;
|
|
1478
|
-
}[];
|
|
1479
|
-
}[];
|
|
1428
|
+
searchMatches: Readonly<{
|
|
1429
|
+
focusedId: string | null;
|
|
1430
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1431
|
+
}> | null;
|
|
1480
1432
|
};
|
|
1481
1433
|
files: import("../types").BinaryFiles;
|
|
1482
1434
|
captureUpdate: "EVENTUALLY";
|
|
1483
1435
|
}>;
|
|
1484
|
-
keyTest: (event:
|
|
1436
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1485
1437
|
} & {
|
|
1486
|
-
keyTest?: ((event:
|
|
1438
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1487
1439
|
};
|
|
1488
1440
|
export declare const actionExportWithDarkMode: {
|
|
1489
1441
|
name: "exportWithDarkMode";
|
|
@@ -1505,7 +1457,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1505
1457
|
errorMessage: import("react").ReactNode;
|
|
1506
1458
|
activeEmbeddable: {
|
|
1507
1459
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1508
|
-
state: "
|
|
1460
|
+
state: "active" | "hover";
|
|
1509
1461
|
} | null;
|
|
1510
1462
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1511
1463
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1571,7 +1523,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1571
1523
|
name: "imageExport" | "help" | "jsonExport";
|
|
1572
1524
|
} | {
|
|
1573
1525
|
name: "ttd";
|
|
1574
|
-
tab: "text-to-diagram"
|
|
1526
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1575
1527
|
} | {
|
|
1576
1528
|
name: "commandPalette";
|
|
1577
1529
|
} | {
|
|
@@ -1656,16 +1608,10 @@ export declare const actionExportWithDarkMode: {
|
|
|
1656
1608
|
followedBy: Set<import("../types").SocketId>;
|
|
1657
1609
|
isCropping: boolean;
|
|
1658
1610
|
croppingElementId: string | null;
|
|
1659
|
-
searchMatches:
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
offsetX: number;
|
|
1664
|
-
offsetY: number;
|
|
1665
|
-
width: number;
|
|
1666
|
-
height: number;
|
|
1667
|
-
}[];
|
|
1668
|
-
}[];
|
|
1611
|
+
searchMatches: Readonly<{
|
|
1612
|
+
focusedId: string | null;
|
|
1613
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1614
|
+
}> | null;
|
|
1669
1615
|
};
|
|
1670
1616
|
captureUpdate: "EVENTUALLY";
|
|
1671
1617
|
};
|
|
@@ -20,7 +20,7 @@ export declare const actionFinalize: {
|
|
|
20
20
|
errorMessage: import("react").ReactNode;
|
|
21
21
|
activeEmbeddable: {
|
|
22
22
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
23
|
-
state: "
|
|
23
|
+
state: "active" | "hover";
|
|
24
24
|
} | null;
|
|
25
25
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
26
26
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -85,7 +85,7 @@ export declare const actionFinalize: {
|
|
|
85
85
|
name: "imageExport" | "help" | "jsonExport";
|
|
86
86
|
} | {
|
|
87
87
|
name: "ttd";
|
|
88
|
-
tab: "text-to-diagram"
|
|
88
|
+
tab: "mermaid" | "text-to-diagram";
|
|
89
89
|
} | {
|
|
90
90
|
name: "commandPalette";
|
|
91
91
|
} | {
|
|
@@ -170,16 +170,10 @@ export declare const actionFinalize: {
|
|
|
170
170
|
followedBy: Set<import("../types").SocketId>;
|
|
171
171
|
isCropping: boolean;
|
|
172
172
|
croppingElementId: string | null;
|
|
173
|
-
searchMatches:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
offsetX: number;
|
|
178
|
-
offsetY: number;
|
|
179
|
-
width: number;
|
|
180
|
-
height: number;
|
|
181
|
-
}[];
|
|
182
|
-
}[];
|
|
173
|
+
searchMatches: Readonly<{
|
|
174
|
+
focusedId: string | null;
|
|
175
|
+
matches: readonly import("../types").SearchMatch[];
|
|
176
|
+
}> | null;
|
|
183
177
|
};
|
|
184
178
|
captureUpdate: "IMMEDIATELY";
|
|
185
179
|
} | {
|
|
@@ -264,7 +258,7 @@ export declare const actionFinalize: {
|
|
|
264
258
|
name: "imageExport" | "help" | "jsonExport";
|
|
265
259
|
} | {
|
|
266
260
|
name: "ttd";
|
|
267
|
-
tab: "text-to-diagram"
|
|
261
|
+
tab: "mermaid" | "text-to-diagram";
|
|
268
262
|
} | {
|
|
269
263
|
name: "commandPalette";
|
|
270
264
|
} | {
|
|
@@ -344,21 +338,15 @@ export declare const actionFinalize: {
|
|
|
344
338
|
followedBy: Set<import("../types").SocketId>;
|
|
345
339
|
isCropping: boolean;
|
|
346
340
|
croppingElementId: string | null;
|
|
347
|
-
searchMatches:
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
offsetX: number;
|
|
352
|
-
offsetY: number;
|
|
353
|
-
width: number;
|
|
354
|
-
height: number;
|
|
355
|
-
}[];
|
|
356
|
-
}[];
|
|
341
|
+
searchMatches: Readonly<{
|
|
342
|
+
focusedId: string | null;
|
|
343
|
+
matches: readonly import("../types").SearchMatch[];
|
|
344
|
+
}> | null;
|
|
357
345
|
};
|
|
358
346
|
captureUpdate: "IMMEDIATELY";
|
|
359
347
|
};
|
|
360
|
-
keyTest: (event:
|
|
348
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
|
|
361
349
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
362
350
|
} & {
|
|
363
|
-
keyTest?: ((event:
|
|
351
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
|
|
364
352
|
};
|
|
@@ -13,9 +13,9 @@ export declare const actionFlipHorizontal: {
|
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
captureUpdate: "IMMEDIATELY";
|
|
15
15
|
};
|
|
16
|
-
keyTest: (event:
|
|
16
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
17
17
|
} & {
|
|
18
|
-
keyTest?: ((event:
|
|
18
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
19
19
|
};
|
|
20
20
|
export declare const actionFlipVertical: {
|
|
21
21
|
name: "flipVertical";
|
|
@@ -29,7 +29,7 @@ export declare const actionFlipVertical: {
|
|
|
29
29
|
appState: Readonly<AppState>;
|
|
30
30
|
captureUpdate: "IMMEDIATELY";
|
|
31
31
|
};
|
|
32
|
-
keyTest: (event:
|
|
32
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
33
33
|
} & {
|
|
34
|
-
keyTest?: ((event:
|
|
34
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
35
35
|
};
|