@zsviczian/excalidraw 0.17.1-obsidian-19 → 0.17.1-obsidian-21
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 +267 -92
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +1103 -854
- package/dist/styles.production.css +16 -15
- package/package.json +5 -3
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +20 -5
- package/types/excalidraw/actions/actionAlign.d.ts +39 -27
- package/types/excalidraw/actions/actionBoundText.d.ts +20 -10
- package/types/excalidraw/actions/actionCanvas.d.ts +148 -52
- package/types/excalidraw/actions/actionClipboard.d.ts +72 -30
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +25 -9
- package/types/excalidraw/actions/actionDistribute.d.ts +10 -8
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +7 -7
- package/types/excalidraw/actions/actionElementLock.d.ts +24 -11
- package/types/excalidraw/actions/actionExport.d.ts +85 -32
- package/types/excalidraw/actions/actionFinalize.d.ts +19 -8
- package/types/excalidraw/actions/actionFlip.d.ts +13 -11
- package/types/excalidraw/actions/actionFrame.d.ts +30 -200
- package/types/excalidraw/actions/actionGroup.d.ts +15 -379
- package/types/excalidraw/actions/actionHistory.d.ts +3 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +9 -3
- package/types/excalidraw/actions/actionLink.d.ts +12 -6
- package/types/excalidraw/actions/actionMenu.d.ts +25 -8
- package/types/excalidraw/actions/actionNavigate.d.ts +14 -3
- package/types/excalidraw/actions/actionProperties.d.ts +114 -32
- package/types/excalidraw/actions/actionSelectAll.d.ts +12 -5
- package/types/excalidraw/actions/actionStyles.d.ts +18 -14
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +12 -5
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +12 -6
- package/types/excalidraw/actions/actionToggleStats.d.ts +12 -5
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -5
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -5
- package/types/excalidraw/actions/actionZindex.d.ts +26 -23
- package/types/excalidraw/actions/manager.d.ts +3 -3
- package/types/excalidraw/actions/shortcuts.d.ts +2 -2
- package/types/excalidraw/actions/types.d.ts +10 -8
- package/types/excalidraw/appState.d.ts +4 -4
- package/types/excalidraw/change.d.ts +191 -0
- package/types/excalidraw/clients.d.ts +10 -1
- package/types/excalidraw/components/Actions.d.ts +3 -1
- package/types/excalidraw/components/App.d.ts +23 -9
- package/types/excalidraw/components/Avatar.d.ts +2 -3
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -0
- package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -0
- package/types/excalidraw/components/CommandPalette/types.d.ts +25 -0
- package/types/excalidraw/components/InlineIcon.d.ts +1 -1
- package/types/excalidraw/components/RadioGroup.d.ts +2 -1
- package/types/excalidraw/components/ToolButton.d.ts +1 -0
- package/types/excalidraw/components/UserList.d.ts +3 -7
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -0
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/types/excalidraw/components/icons.d.ts +26 -1
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +15 -1
- package/types/excalidraw/constants.d.ts +8 -0
- package/types/excalidraw/data/reconcile.d.ts +6 -0
- package/types/excalidraw/data/restore.d.ts +3 -3
- package/types/excalidraw/data/transform.d.ts +1 -1
- package/types/excalidraw/data/url.d.ts +1 -0
- package/types/excalidraw/deburr.d.ts +1 -0
- package/types/excalidraw/element/binding.d.ts +52 -9
- package/types/excalidraw/element/bounds.d.ts +0 -1
- package/types/excalidraw/element/collision.d.ts +14 -19
- package/types/excalidraw/element/embeddable.d.ts +14 -4
- package/types/excalidraw/element/index.d.ts +0 -1
- package/types/excalidraw/element/linearElementEditor.d.ts +17 -12
- package/types/excalidraw/element/mutateElement.d.ts +1 -2
- package/types/excalidraw/element/newElement.d.ts +1 -1
- package/types/excalidraw/element/resizeElements.d.ts +1 -1
- package/types/excalidraw/element/resizeTest.d.ts +4 -4
- package/types/excalidraw/element/textElement.d.ts +1 -7
- package/types/excalidraw/element/transformHandles.d.ts +22 -4
- package/types/excalidraw/element/typeChecks.d.ts +2 -2
- package/types/excalidraw/element/types.d.ts +22 -6
- package/types/excalidraw/errors.d.ts +3 -0
- package/types/excalidraw/fractionalIndex.d.ts +40 -0
- package/types/excalidraw/frame.d.ts +1 -1
- package/types/excalidraw/groups.d.ts +2 -0
- package/types/excalidraw/history.d.ts +34 -46
- package/types/excalidraw/hooks/useEmitter.d.ts +2 -0
- package/types/excalidraw/hooks/useStableCallback.d.ts +4 -0
- package/types/excalidraw/index.d.ts +3 -1
- package/types/excalidraw/keys.d.ts +1 -0
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/types/excalidraw/scene/Scene.d.ts +7 -6
- package/types/excalidraw/scene/types.d.ts +11 -20
- package/types/excalidraw/store.d.ts +99 -0
- package/types/excalidraw/types.d.ts +39 -6
- package/types/excalidraw/utils.d.ts +7 -0
- package/types/excalidraw/webpack.prod.config.d.ts +1 -1
- package/types/excalidraw/zindex.d.ts +2 -2
- package/types/utils/collision.d.ts +4 -0
- package/types/utils/export.d.ts +2 -2
- package/types/utils/geometry/geometry.d.ts +71 -0
- package/types/utils/geometry/shape.d.ts +56 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export declare const actionCopy: {
|
|
2
2
|
name: "copy";
|
|
3
|
+
label: string;
|
|
4
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
3
5
|
trackEvent: {
|
|
4
6
|
category: "element";
|
|
5
7
|
};
|
|
6
|
-
perform: (elements: readonly import("../element/types").
|
|
7
|
-
|
|
8
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
9
|
+
storeAction: import("../store").StoreActionType;
|
|
8
10
|
appState: {
|
|
9
11
|
errorMessage: any;
|
|
10
12
|
contextMenu: {
|
|
@@ -85,6 +87,8 @@ export declare const actionCopy: {
|
|
|
85
87
|
} | {
|
|
86
88
|
name: "ttd";
|
|
87
89
|
tab: "mermaid" | "text-to-diagram";
|
|
90
|
+
} | {
|
|
91
|
+
name: "commandPalette";
|
|
88
92
|
} | null;
|
|
89
93
|
defaultSidebarDockedPreference: boolean;
|
|
90
94
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -131,6 +135,9 @@ export declare const actionCopy: {
|
|
|
131
135
|
id?: string | undefined;
|
|
132
136
|
socketId?: import("../types").SocketId | undefined;
|
|
133
137
|
isCurrentUser?: boolean | undefined;
|
|
138
|
+
isInCall?: boolean | undefined;
|
|
139
|
+
isSpeaking?: boolean | undefined;
|
|
140
|
+
isMuted?: boolean | undefined;
|
|
134
141
|
}>>;
|
|
135
142
|
showStats: boolean;
|
|
136
143
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -186,21 +193,21 @@ export declare const actionCopy: {
|
|
|
186
193
|
followedBy: Set<import("../types").SocketId>;
|
|
187
194
|
};
|
|
188
195
|
} | {
|
|
189
|
-
|
|
196
|
+
storeAction: import("../store").StoreActionType;
|
|
190
197
|
appState?: undefined;
|
|
191
198
|
}>;
|
|
192
|
-
contextItemLabel: string;
|
|
193
199
|
keyTest: undefined;
|
|
194
200
|
} & {
|
|
195
201
|
keyTest?: undefined;
|
|
196
202
|
};
|
|
197
203
|
export declare const actionPaste: {
|
|
198
204
|
name: "paste";
|
|
205
|
+
label: string;
|
|
199
206
|
trackEvent: {
|
|
200
207
|
category: "element";
|
|
201
208
|
};
|
|
202
|
-
perform: (elements: readonly import("../element/types").
|
|
203
|
-
|
|
209
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
210
|
+
storeAction: import("../store").StoreActionType;
|
|
204
211
|
appState: {
|
|
205
212
|
errorMessage: string;
|
|
206
213
|
contextMenu: {
|
|
@@ -281,6 +288,8 @@ export declare const actionPaste: {
|
|
|
281
288
|
} | {
|
|
282
289
|
name: "ttd";
|
|
283
290
|
tab: "mermaid" | "text-to-diagram";
|
|
291
|
+
} | {
|
|
292
|
+
name: "commandPalette";
|
|
284
293
|
} | null;
|
|
285
294
|
defaultSidebarDockedPreference: boolean;
|
|
286
295
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -327,6 +336,9 @@ export declare const actionPaste: {
|
|
|
327
336
|
id?: string | undefined;
|
|
328
337
|
socketId?: import("../types").SocketId | undefined;
|
|
329
338
|
isCurrentUser?: boolean | undefined;
|
|
339
|
+
isInCall?: boolean | undefined;
|
|
340
|
+
isSpeaking?: boolean | undefined;
|
|
341
|
+
isMuted?: boolean | undefined;
|
|
330
342
|
}>>;
|
|
331
343
|
showStats: boolean;
|
|
332
344
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -382,21 +394,22 @@ export declare const actionPaste: {
|
|
|
382
394
|
followedBy: Set<import("../types").SocketId>;
|
|
383
395
|
};
|
|
384
396
|
} | {
|
|
385
|
-
|
|
397
|
+
storeAction: import("../store").StoreActionType;
|
|
386
398
|
appState?: undefined;
|
|
387
399
|
}>;
|
|
388
|
-
contextItemLabel: string;
|
|
389
400
|
keyTest: undefined;
|
|
390
401
|
} & {
|
|
391
402
|
keyTest?: undefined;
|
|
392
403
|
};
|
|
393
404
|
export declare const actionCut: {
|
|
394
405
|
name: "cut";
|
|
406
|
+
label: string;
|
|
407
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
395
408
|
trackEvent: {
|
|
396
409
|
category: "element";
|
|
397
410
|
};
|
|
398
|
-
perform: (elements: readonly import("../element/types").
|
|
399
|
-
elements: import("../element/types").
|
|
411
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
412
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
400
413
|
appState: {
|
|
401
414
|
editingLinearElement: null;
|
|
402
415
|
contextMenu: {
|
|
@@ -477,6 +490,8 @@ export declare const actionCut: {
|
|
|
477
490
|
} | {
|
|
478
491
|
name: "ttd";
|
|
479
492
|
tab: "mermaid" | "text-to-diagram";
|
|
493
|
+
} | {
|
|
494
|
+
name: "commandPalette";
|
|
480
495
|
} | null;
|
|
481
496
|
defaultSidebarDockedPreference: boolean;
|
|
482
497
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -523,6 +538,9 @@ export declare const actionCut: {
|
|
|
523
538
|
id?: string | undefined;
|
|
524
539
|
socketId?: import("../types").SocketId | undefined;
|
|
525
540
|
isCurrentUser?: boolean | undefined;
|
|
541
|
+
isInCall?: boolean | undefined;
|
|
542
|
+
isSpeaking?: boolean | undefined;
|
|
543
|
+
isMuted?: boolean | undefined;
|
|
526
544
|
}>>;
|
|
527
545
|
showStats: boolean;
|
|
528
546
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -577,9 +595,9 @@ export declare const actionCut: {
|
|
|
577
595
|
userToFollow: import("../types").UserToFollow | null;
|
|
578
596
|
followedBy: Set<import("../types").SocketId>;
|
|
579
597
|
};
|
|
580
|
-
|
|
598
|
+
storeAction: import("../store").StoreActionType;
|
|
581
599
|
} | {
|
|
582
|
-
elements: readonly import("../element/types").
|
|
600
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
583
601
|
appState: {
|
|
584
602
|
editingLinearElement: {
|
|
585
603
|
selectedPointsIndices: number[];
|
|
@@ -688,6 +706,8 @@ export declare const actionCut: {
|
|
|
688
706
|
} | {
|
|
689
707
|
name: "ttd";
|
|
690
708
|
tab: "mermaid" | "text-to-diagram";
|
|
709
|
+
} | {
|
|
710
|
+
name: "commandPalette";
|
|
691
711
|
} | null;
|
|
692
712
|
defaultSidebarDockedPreference: boolean;
|
|
693
713
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -734,6 +754,9 @@ export declare const actionCut: {
|
|
|
734
754
|
id?: string | undefined;
|
|
735
755
|
socketId?: import("../types").SocketId | undefined;
|
|
736
756
|
isCurrentUser?: boolean | undefined;
|
|
757
|
+
isInCall?: boolean | undefined;
|
|
758
|
+
isSpeaking?: boolean | undefined;
|
|
759
|
+
isMuted?: boolean | undefined;
|
|
737
760
|
}>>;
|
|
738
761
|
showStats: boolean;
|
|
739
762
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -788,7 +811,7 @@ export declare const actionCut: {
|
|
|
788
811
|
userToFollow: import("../types").UserToFollow | null;
|
|
789
812
|
followedBy: Set<import("../types").SocketId>;
|
|
790
813
|
};
|
|
791
|
-
|
|
814
|
+
storeAction: import("../store").StoreActionType;
|
|
792
815
|
} | {
|
|
793
816
|
elements: import("../element/types").ExcalidrawElement[];
|
|
794
817
|
appState: {
|
|
@@ -870,6 +893,8 @@ export declare const actionCut: {
|
|
|
870
893
|
} | {
|
|
871
894
|
name: "ttd";
|
|
872
895
|
tab: "mermaid" | "text-to-diagram";
|
|
896
|
+
} | {
|
|
897
|
+
name: "commandPalette";
|
|
873
898
|
} | null;
|
|
874
899
|
defaultSidebarDockedPreference: boolean;
|
|
875
900
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -910,6 +935,9 @@ export declare const actionCut: {
|
|
|
910
935
|
id?: string | undefined;
|
|
911
936
|
socketId?: import("../types").SocketId | undefined;
|
|
912
937
|
isCurrentUser?: boolean | undefined;
|
|
938
|
+
isInCall?: boolean | undefined;
|
|
939
|
+
isSpeaking?: boolean | undefined;
|
|
940
|
+
isMuted?: boolean | undefined;
|
|
913
941
|
}>>;
|
|
914
942
|
showStats: boolean;
|
|
915
943
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -964,20 +992,21 @@ export declare const actionCut: {
|
|
|
964
992
|
userToFollow: import("../types").UserToFollow | null;
|
|
965
993
|
followedBy: Set<import("../types").SocketId>;
|
|
966
994
|
};
|
|
967
|
-
|
|
995
|
+
storeAction: import("../store").StoreActionType;
|
|
968
996
|
};
|
|
969
|
-
|
|
970
|
-
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
997
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
971
998
|
} & {
|
|
972
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
999
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
973
1000
|
};
|
|
974
1001
|
export declare const actionCopyAsSvg: {
|
|
975
1002
|
name: "copyAsSvg";
|
|
1003
|
+
label: string;
|
|
1004
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
976
1005
|
trackEvent: {
|
|
977
1006
|
category: "element";
|
|
978
1007
|
};
|
|
979
|
-
perform: (elements: readonly import("../element/types").
|
|
980
|
-
|
|
1008
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1009
|
+
storeAction: import("../store").StoreActionType;
|
|
981
1010
|
appState?: undefined;
|
|
982
1011
|
} | {
|
|
983
1012
|
appState: {
|
|
@@ -1060,6 +1089,8 @@ export declare const actionCopyAsSvg: {
|
|
|
1060
1089
|
} | {
|
|
1061
1090
|
name: "ttd";
|
|
1062
1091
|
tab: "mermaid" | "text-to-diagram";
|
|
1092
|
+
} | {
|
|
1093
|
+
name: "commandPalette";
|
|
1063
1094
|
} | null;
|
|
1064
1095
|
defaultSidebarDockedPreference: boolean;
|
|
1065
1096
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1106,6 +1137,9 @@ export declare const actionCopyAsSvg: {
|
|
|
1106
1137
|
id?: string | undefined;
|
|
1107
1138
|
socketId?: import("../types").SocketId | undefined;
|
|
1108
1139
|
isCurrentUser?: boolean | undefined;
|
|
1140
|
+
isInCall?: boolean | undefined;
|
|
1141
|
+
isSpeaking?: boolean | undefined;
|
|
1142
|
+
isMuted?: boolean | undefined;
|
|
1109
1143
|
}>>;
|
|
1110
1144
|
showStats: boolean;
|
|
1111
1145
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1160,20 +1194,22 @@ export declare const actionCopyAsSvg: {
|
|
|
1160
1194
|
userToFollow: import("../types").UserToFollow | null;
|
|
1161
1195
|
followedBy: Set<import("../types").SocketId>;
|
|
1162
1196
|
};
|
|
1163
|
-
|
|
1197
|
+
storeAction: import("../store").StoreActionType;
|
|
1164
1198
|
}>;
|
|
1165
1199
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1166
|
-
|
|
1200
|
+
keywords: string[];
|
|
1167
1201
|
} & {
|
|
1168
1202
|
keyTest?: undefined;
|
|
1169
1203
|
};
|
|
1170
1204
|
export declare const actionCopyAsPng: {
|
|
1171
1205
|
name: "copyAsPng";
|
|
1206
|
+
label: string;
|
|
1207
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1172
1208
|
trackEvent: {
|
|
1173
1209
|
category: "element";
|
|
1174
1210
|
};
|
|
1175
|
-
perform: (elements: readonly import("../element/types").
|
|
1176
|
-
|
|
1211
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1212
|
+
storeAction: import("../store").StoreActionType;
|
|
1177
1213
|
appState?: undefined;
|
|
1178
1214
|
} | {
|
|
1179
1215
|
appState: {
|
|
@@ -1256,6 +1292,8 @@ export declare const actionCopyAsPng: {
|
|
|
1256
1292
|
} | {
|
|
1257
1293
|
name: "ttd";
|
|
1258
1294
|
tab: "mermaid" | "text-to-diagram";
|
|
1295
|
+
} | {
|
|
1296
|
+
name: "commandPalette";
|
|
1259
1297
|
} | null;
|
|
1260
1298
|
defaultSidebarDockedPreference: boolean;
|
|
1261
1299
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1302,6 +1340,9 @@ export declare const actionCopyAsPng: {
|
|
|
1302
1340
|
id?: string | undefined;
|
|
1303
1341
|
socketId?: import("../types").SocketId | undefined;
|
|
1304
1342
|
isCurrentUser?: boolean | undefined;
|
|
1343
|
+
isInCall?: boolean | undefined;
|
|
1344
|
+
isSpeaking?: boolean | undefined;
|
|
1345
|
+
isMuted?: boolean | undefined;
|
|
1305
1346
|
}>>;
|
|
1306
1347
|
showStats: boolean;
|
|
1307
1348
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1356,24 +1397,25 @@ export declare const actionCopyAsPng: {
|
|
|
1356
1397
|
userToFollow: import("../types").UserToFollow | null;
|
|
1357
1398
|
followedBy: Set<import("../types").SocketId>;
|
|
1358
1399
|
};
|
|
1359
|
-
|
|
1400
|
+
storeAction: import("../store").StoreActionType;
|
|
1360
1401
|
}>;
|
|
1361
1402
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1362
|
-
|
|
1363
|
-
|
|
1403
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1404
|
+
keywords: string[];
|
|
1364
1405
|
} & {
|
|
1365
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1406
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1366
1407
|
};
|
|
1367
1408
|
export declare const copyText: {
|
|
1368
1409
|
name: "copyText";
|
|
1410
|
+
label: string;
|
|
1369
1411
|
trackEvent: {
|
|
1370
1412
|
category: "element";
|
|
1371
1413
|
};
|
|
1372
|
-
perform: (elements: readonly import("../element/types").
|
|
1373
|
-
|
|
1414
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1415
|
+
storeAction: import("../store").StoreActionType;
|
|
1374
1416
|
};
|
|
1375
1417
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1376
|
-
|
|
1418
|
+
keywords: string[];
|
|
1377
1419
|
} & {
|
|
1378
1420
|
keyTest?: undefined;
|
|
1379
1421
|
};
|
|
@@ -3,12 +3,14 @@ import { AppState } from "../types";
|
|
|
3
3
|
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
4
4
|
export declare const actionDeleteSelected: {
|
|
5
5
|
name: "deleteSelectedElements";
|
|
6
|
+
label: string;
|
|
7
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
trackEvent: {
|
|
7
9
|
category: "element";
|
|
8
10
|
action: string;
|
|
9
11
|
};
|
|
10
|
-
perform: (elements: readonly
|
|
11
|
-
elements:
|
|
12
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
13
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
12
14
|
appState: {
|
|
13
15
|
editingLinearElement: null;
|
|
14
16
|
contextMenu: {
|
|
@@ -89,6 +91,8 @@ export declare const actionDeleteSelected: {
|
|
|
89
91
|
} | {
|
|
90
92
|
name: "ttd";
|
|
91
93
|
tab: "mermaid" | "text-to-diagram";
|
|
94
|
+
} | {
|
|
95
|
+
name: "commandPalette";
|
|
92
96
|
} | null;
|
|
93
97
|
defaultSidebarDockedPreference: boolean;
|
|
94
98
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -135,6 +139,9 @@ export declare const actionDeleteSelected: {
|
|
|
135
139
|
id?: string | undefined;
|
|
136
140
|
socketId?: import("../types").SocketId | undefined;
|
|
137
141
|
isCurrentUser?: boolean | undefined;
|
|
142
|
+
isInCall?: boolean | undefined;
|
|
143
|
+
isSpeaking?: boolean | undefined;
|
|
144
|
+
isMuted?: boolean | undefined;
|
|
138
145
|
}>>;
|
|
139
146
|
showStats: boolean;
|
|
140
147
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -189,9 +196,9 @@ export declare const actionDeleteSelected: {
|
|
|
189
196
|
userToFollow: import("../types").UserToFollow | null;
|
|
190
197
|
followedBy: Set<import("../types").SocketId>;
|
|
191
198
|
};
|
|
192
|
-
|
|
199
|
+
storeAction: import("../store").StoreActionType;
|
|
193
200
|
} | {
|
|
194
|
-
elements: readonly
|
|
201
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
195
202
|
appState: {
|
|
196
203
|
editingLinearElement: {
|
|
197
204
|
selectedPointsIndices: number[];
|
|
@@ -300,6 +307,8 @@ export declare const actionDeleteSelected: {
|
|
|
300
307
|
} | {
|
|
301
308
|
name: "ttd";
|
|
302
309
|
tab: "mermaid" | "text-to-diagram";
|
|
310
|
+
} | {
|
|
311
|
+
name: "commandPalette";
|
|
303
312
|
} | null;
|
|
304
313
|
defaultSidebarDockedPreference: boolean;
|
|
305
314
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -346,6 +355,9 @@ export declare const actionDeleteSelected: {
|
|
|
346
355
|
id?: string | undefined;
|
|
347
356
|
socketId?: import("../types").SocketId | undefined;
|
|
348
357
|
isCurrentUser?: boolean | undefined;
|
|
358
|
+
isInCall?: boolean | undefined;
|
|
359
|
+
isSpeaking?: boolean | undefined;
|
|
360
|
+
isMuted?: boolean | undefined;
|
|
349
361
|
}>>;
|
|
350
362
|
showStats: boolean;
|
|
351
363
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -400,7 +412,7 @@ export declare const actionDeleteSelected: {
|
|
|
400
412
|
userToFollow: import("../types").UserToFollow | null;
|
|
401
413
|
followedBy: Set<import("../types").SocketId>;
|
|
402
414
|
};
|
|
403
|
-
|
|
415
|
+
storeAction: import("../store").StoreActionType;
|
|
404
416
|
} | {
|
|
405
417
|
elements: ExcalidrawElement[];
|
|
406
418
|
appState: {
|
|
@@ -482,6 +494,8 @@ export declare const actionDeleteSelected: {
|
|
|
482
494
|
} | {
|
|
483
495
|
name: "ttd";
|
|
484
496
|
tab: "mermaid" | "text-to-diagram";
|
|
497
|
+
} | {
|
|
498
|
+
name: "commandPalette";
|
|
485
499
|
} | null;
|
|
486
500
|
defaultSidebarDockedPreference: boolean;
|
|
487
501
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -522,6 +536,9 @@ export declare const actionDeleteSelected: {
|
|
|
522
536
|
id?: string | undefined;
|
|
523
537
|
socketId?: import("../types").SocketId | undefined;
|
|
524
538
|
isCurrentUser?: boolean | undefined;
|
|
539
|
+
isInCall?: boolean | undefined;
|
|
540
|
+
isSpeaking?: boolean | undefined;
|
|
541
|
+
isMuted?: boolean | undefined;
|
|
525
542
|
}>>;
|
|
526
543
|
showStats: boolean;
|
|
527
544
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -576,11 +593,10 @@ export declare const actionDeleteSelected: {
|
|
|
576
593
|
userToFollow: import("../types").UserToFollow | null;
|
|
577
594
|
followedBy: Set<import("../types").SocketId>;
|
|
578
595
|
};
|
|
579
|
-
|
|
596
|
+
storeAction: import("../store").StoreActionType;
|
|
580
597
|
};
|
|
581
|
-
|
|
582
|
-
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
598
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
583
599
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
584
600
|
} & {
|
|
585
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
601
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
586
602
|
};
|
|
@@ -2,31 +2,33 @@ import { ExcalidrawElement } from "../element/types";
|
|
|
2
2
|
import { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const distributeHorizontally: {
|
|
4
4
|
name: "distributeHorizontally";
|
|
5
|
+
label: string;
|
|
5
6
|
trackEvent: {
|
|
6
7
|
category: "element";
|
|
7
8
|
};
|
|
8
|
-
perform: (elements: readonly
|
|
9
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
9
10
|
appState: Readonly<AppState>;
|
|
10
11
|
elements: ExcalidrawElement[];
|
|
11
|
-
|
|
12
|
+
storeAction: import("../store").StoreActionType;
|
|
12
13
|
};
|
|
13
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
14
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
14
15
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
} & {
|
|
16
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
17
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
17
18
|
};
|
|
18
19
|
export declare const distributeVertically: {
|
|
19
20
|
name: "distributeVertically";
|
|
21
|
+
label: string;
|
|
20
22
|
trackEvent: {
|
|
21
23
|
category: "element";
|
|
22
24
|
};
|
|
23
|
-
perform: (elements: readonly
|
|
25
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
24
26
|
appState: Readonly<AppState>;
|
|
25
27
|
elements: ExcalidrawElement[];
|
|
26
|
-
|
|
28
|
+
storeAction: import("../store").StoreActionType;
|
|
27
29
|
};
|
|
28
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
30
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
29
31
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
32
|
} & {
|
|
31
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
33
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
32
34
|
};
|
|
@@ -2,20 +2,20 @@ import { ExcalidrawElement } from "../element/types";
|
|
|
2
2
|
import { AppState } from "../types";
|
|
3
3
|
export declare const actionDuplicateSelection: {
|
|
4
4
|
name: "duplicateSelection";
|
|
5
|
+
label: string;
|
|
6
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
trackEvent: {
|
|
6
8
|
category: "element";
|
|
7
9
|
};
|
|
8
|
-
perform: (elements: readonly
|
|
9
|
-
|
|
10
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
11
|
+
storeAction: import("../store").StoreActionType;
|
|
10
12
|
elements?: readonly ExcalidrawElement[] | null | undefined;
|
|
11
|
-
appState?: import("../utility-types").MarkOptional<AppState, "
|
|
13
|
+
appState?: import("../utility-types").MarkOptional<AppState, "width" | "height" | "offsetTop" | "offsetLeft"> | null | undefined;
|
|
12
14
|
files?: import("../types").BinaryFiles | null | undefined;
|
|
13
|
-
syncHistory?: boolean | undefined;
|
|
14
15
|
replaceFiles?: boolean | undefined;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
-
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
17
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
18
18
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
} & {
|
|
20
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
20
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
21
21
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ExcalidrawElement } from "../element/types";
|
|
2
2
|
export declare const actionToggleElementLock: {
|
|
3
3
|
name: "toggleElementLock";
|
|
4
|
+
label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
|
|
5
|
+
icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
|
|
4
6
|
trackEvent: {
|
|
5
7
|
category: "element";
|
|
6
8
|
};
|
|
7
9
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
8
|
-
perform: (elements: readonly
|
|
9
|
-
elements:
|
|
10
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
|
|
11
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
10
12
|
appState: {
|
|
11
13
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
12
14
|
contextMenu: {
|
|
@@ -88,6 +90,8 @@ export declare const actionToggleElementLock: {
|
|
|
88
90
|
} | {
|
|
89
91
|
name: "ttd";
|
|
90
92
|
tab: "mermaid" | "text-to-diagram";
|
|
93
|
+
} | {
|
|
94
|
+
name: "commandPalette";
|
|
91
95
|
} | null;
|
|
92
96
|
defaultSidebarDockedPreference: boolean;
|
|
93
97
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -134,6 +138,9 @@ export declare const actionToggleElementLock: {
|
|
|
134
138
|
id?: string | undefined;
|
|
135
139
|
socketId?: import("../types").SocketId | undefined;
|
|
136
140
|
isCurrentUser?: boolean | undefined;
|
|
141
|
+
isInCall?: boolean | undefined;
|
|
142
|
+
isSpeaking?: boolean | undefined;
|
|
143
|
+
isMuted?: boolean | undefined;
|
|
137
144
|
}>>;
|
|
138
145
|
showStats: boolean;
|
|
139
146
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -187,22 +194,23 @@ export declare const actionToggleElementLock: {
|
|
|
187
194
|
userToFollow: import("../types").UserToFollow | null;
|
|
188
195
|
followedBy: Set<import("../types").SocketId>;
|
|
189
196
|
};
|
|
190
|
-
|
|
197
|
+
storeAction: import("../store").StoreActionType;
|
|
191
198
|
};
|
|
192
|
-
|
|
193
|
-
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
199
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
194
200
|
} & {
|
|
195
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
201
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
196
202
|
};
|
|
197
203
|
export declare const actionUnlockAllElements: {
|
|
198
204
|
name: "unlockAllElements";
|
|
205
|
+
paletteName: string;
|
|
199
206
|
trackEvent: {
|
|
200
207
|
category: "canvas";
|
|
201
208
|
};
|
|
202
209
|
viewMode: false;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
210
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
211
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
212
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
213
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
206
214
|
appState: {
|
|
207
215
|
selectedElementIds: {
|
|
208
216
|
[k: string]: true;
|
|
@@ -286,6 +294,8 @@ export declare const actionUnlockAllElements: {
|
|
|
286
294
|
} | {
|
|
287
295
|
name: "ttd";
|
|
288
296
|
tab: "mermaid" | "text-to-diagram";
|
|
297
|
+
} | {
|
|
298
|
+
name: "commandPalette";
|
|
289
299
|
} | null;
|
|
290
300
|
defaultSidebarDockedPreference: boolean;
|
|
291
301
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -329,6 +339,9 @@ export declare const actionUnlockAllElements: {
|
|
|
329
339
|
id?: string | undefined;
|
|
330
340
|
socketId?: import("../types").SocketId | undefined;
|
|
331
341
|
isCurrentUser?: boolean | undefined;
|
|
342
|
+
isInCall?: boolean | undefined;
|
|
343
|
+
isSpeaking?: boolean | undefined;
|
|
344
|
+
isMuted?: boolean | undefined;
|
|
332
345
|
}>>;
|
|
333
346
|
showStats: boolean;
|
|
334
347
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -383,9 +396,9 @@ export declare const actionUnlockAllElements: {
|
|
|
383
396
|
userToFollow: import("../types").UserToFollow | null;
|
|
384
397
|
followedBy: Set<import("../types").SocketId>;
|
|
385
398
|
};
|
|
386
|
-
|
|
399
|
+
storeAction: import("../store").StoreActionType;
|
|
387
400
|
};
|
|
388
|
-
|
|
401
|
+
label: string;
|
|
389
402
|
} & {
|
|
390
403
|
keyTest?: undefined;
|
|
391
404
|
};
|