@zsviczian/excalidraw 0.17.1-obsidian-18 → 0.17.1-obsidian-20
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 +123 -58
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +1042 -821
- package/dist/styles.production.css +12 -11
- package/package.json +4 -3
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +16 -1
- package/types/excalidraw/actions/actionAlign.d.ts +19 -7
- package/types/excalidraw/actions/actionBoundText.d.ts +13 -3
- package/types/excalidraw/actions/actionCanvas.d.ts +111 -15
- package/types/excalidraw/actions/actionClipboard.d.ts +48 -6
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +17 -1
- package/types/excalidraw/actions/actionDistribute.d.ts +2 -0
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -1
- package/types/excalidraw/actions/actionElementLock.d.ts +16 -3
- package/types/excalidraw/actions/actionExport.d.ts +53 -0
- package/types/excalidraw/actions/actionFinalize.d.ts +11 -0
- package/types/excalidraw/actions/actionFlip.d.ts +4 -2
- package/types/excalidraw/actions/actionFrame.d.ts +21 -3
- package/types/excalidraw/actions/actionGroup.d.ts +14 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +7 -1
- package/types/excalidraw/actions/actionLink.d.ts +7 -1
- package/types/excalidraw/actions/actionMenu.d.ts +17 -0
- package/types/excalidraw/actions/actionNavigate.d.ts +11 -0
- package/types/excalidraw/actions/actionProperties.d.ts +82 -0
- package/types/excalidraw/actions/actionSelectAll.d.ts +8 -1
- package/types/excalidraw/actions/actionStyles.d.ts +9 -2
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -1
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +8 -2
- package/types/excalidraw/actions/actionToggleStats.d.ts +8 -1
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +8 -1
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +8 -1
- package/types/excalidraw/actions/actionZindex.d.ts +8 -4
- package/types/excalidraw/actions/shortcuts.d.ts +2 -2
- package/types/excalidraw/actions/types.d.ts +6 -4
- package/types/excalidraw/clients.d.ts +10 -1
- package/types/excalidraw/components/Actions.d.ts +3 -1
- package/types/excalidraw/components/App.d.ts +1 -1
- 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/UserList.d.ts +3 -7
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/types/excalidraw/components/icons.d.ts +22 -1
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +4 -0
- package/types/excalidraw/constants.d.ts +5 -0
- package/types/excalidraw/deburr.d.ts +1 -0
- package/types/excalidraw/element/embeddable.d.ts +7 -0
- package/types/excalidraw/element/linearElementEditor.d.ts +5 -0
- package/types/excalidraw/element/textElement.d.ts +0 -5
- package/types/excalidraw/hooks/useStableCallback.d.ts +4 -0
- package/types/excalidraw/index.d.ts +1 -1
- package/types/excalidraw/keys.d.ts +1 -0
- package/types/excalidraw/obsidianUtils.d.ts +1 -0
- package/types/excalidraw/scene/types.d.ts +10 -20
- package/types/excalidraw/types.d.ts +21 -2
|
@@ -3,6 +3,8 @@ import { AppClassProperties, AppState, NormalizedZoomValue } from "../types";
|
|
|
3
3
|
import { SceneBounds } from "../element/bounds";
|
|
4
4
|
export declare const actionChangeViewBackgroundColor: {
|
|
5
5
|
name: "changeViewBackgroundColor";
|
|
6
|
+
label: string;
|
|
7
|
+
paletteName: string;
|
|
6
8
|
trackEvent: false;
|
|
7
9
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
8
10
|
perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
@@ -15,6 +17,9 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
15
17
|
};
|
|
16
18
|
export declare const actionClearCanvas: {
|
|
17
19
|
name: "clearCanvas";
|
|
20
|
+
label: string;
|
|
21
|
+
paletteName: string;
|
|
22
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
18
23
|
trackEvent: {
|
|
19
24
|
category: "canvas";
|
|
20
25
|
};
|
|
@@ -44,7 +49,7 @@ export declare const actionClearCanvas: {
|
|
|
44
49
|
colorPalette: {
|
|
45
50
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
46
51
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
47
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
52
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
48
53
|
topPicks: {
|
|
49
54
|
canvasBackground: [string, string, string, string, string];
|
|
50
55
|
elementStroke: [string, string, string, string, string];
|
|
@@ -127,6 +132,8 @@ export declare const actionClearCanvas: {
|
|
|
127
132
|
} | {
|
|
128
133
|
name: "ttd";
|
|
129
134
|
tab: "mermaid" | "text-to-diagram";
|
|
135
|
+
} | {
|
|
136
|
+
name: "commandPalette";
|
|
130
137
|
} | null;
|
|
131
138
|
defaultSidebarDockedPreference: boolean;
|
|
132
139
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -167,6 +174,9 @@ export declare const actionClearCanvas: {
|
|
|
167
174
|
id?: string | undefined;
|
|
168
175
|
socketId?: import("../types").SocketId | undefined;
|
|
169
176
|
isCurrentUser?: boolean | undefined;
|
|
177
|
+
isInCall?: boolean | undefined;
|
|
178
|
+
isSpeaking?: boolean | undefined;
|
|
179
|
+
isMuted?: boolean | undefined;
|
|
170
180
|
}>>;
|
|
171
181
|
currentChartType: import("../element/types").ChartType;
|
|
172
182
|
pendingImageElementId: string | null;
|
|
@@ -205,7 +215,9 @@ export declare const actionClearCanvas: {
|
|
|
205
215
|
};
|
|
206
216
|
export declare const actionZoomIn: {
|
|
207
217
|
name: "zoomIn";
|
|
218
|
+
label: string;
|
|
208
219
|
viewMode: true;
|
|
220
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
209
221
|
trackEvent: {
|
|
210
222
|
category: "canvas";
|
|
211
223
|
};
|
|
@@ -291,6 +303,8 @@ export declare const actionZoomIn: {
|
|
|
291
303
|
} | {
|
|
292
304
|
name: "ttd";
|
|
293
305
|
tab: "mermaid" | "text-to-diagram";
|
|
306
|
+
} | {
|
|
307
|
+
name: "commandPalette";
|
|
294
308
|
} | null;
|
|
295
309
|
defaultSidebarDockedPreference: boolean;
|
|
296
310
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -337,6 +351,9 @@ export declare const actionZoomIn: {
|
|
|
337
351
|
id?: string | undefined;
|
|
338
352
|
socketId?: import("../types").SocketId | undefined;
|
|
339
353
|
isCurrentUser?: boolean | undefined;
|
|
354
|
+
isInCall?: boolean | undefined;
|
|
355
|
+
isSpeaking?: boolean | undefined;
|
|
356
|
+
isMuted?: boolean | undefined;
|
|
340
357
|
}>>;
|
|
341
358
|
showStats: boolean;
|
|
342
359
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -354,7 +371,7 @@ export declare const actionZoomIn: {
|
|
|
354
371
|
colorPalette?: {
|
|
355
372
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
356
373
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
357
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
374
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
358
375
|
topPicks: {
|
|
359
376
|
canvasBackground: [string, string, string, string, string];
|
|
360
377
|
elementStroke: [string, string, string, string, string];
|
|
@@ -399,6 +416,8 @@ export declare const actionZoomIn: {
|
|
|
399
416
|
};
|
|
400
417
|
export declare const actionZoomOut: {
|
|
401
418
|
name: "zoomOut";
|
|
419
|
+
label: string;
|
|
420
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
402
421
|
viewMode: true;
|
|
403
422
|
trackEvent: {
|
|
404
423
|
category: "canvas";
|
|
@@ -485,6 +504,8 @@ export declare const actionZoomOut: {
|
|
|
485
504
|
} | {
|
|
486
505
|
name: "ttd";
|
|
487
506
|
tab: "mermaid" | "text-to-diagram";
|
|
507
|
+
} | {
|
|
508
|
+
name: "commandPalette";
|
|
488
509
|
} | null;
|
|
489
510
|
defaultSidebarDockedPreference: boolean;
|
|
490
511
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -531,6 +552,9 @@ export declare const actionZoomOut: {
|
|
|
531
552
|
id?: string | undefined;
|
|
532
553
|
socketId?: import("../types").SocketId | undefined;
|
|
533
554
|
isCurrentUser?: boolean | undefined;
|
|
555
|
+
isInCall?: boolean | undefined;
|
|
556
|
+
isSpeaking?: boolean | undefined;
|
|
557
|
+
isMuted?: boolean | undefined;
|
|
534
558
|
}>>;
|
|
535
559
|
showStats: boolean;
|
|
536
560
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -548,7 +572,7 @@ export declare const actionZoomOut: {
|
|
|
548
572
|
colorPalette?: {
|
|
549
573
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
550
574
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
551
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
575
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
552
576
|
topPicks: {
|
|
553
577
|
canvasBackground: [string, string, string, string, string];
|
|
554
578
|
elementStroke: [string, string, string, string, string];
|
|
@@ -593,6 +617,8 @@ export declare const actionZoomOut: {
|
|
|
593
617
|
};
|
|
594
618
|
export declare const actionResetZoom: {
|
|
595
619
|
name: "resetZoom";
|
|
620
|
+
label: string;
|
|
621
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
596
622
|
viewMode: true;
|
|
597
623
|
trackEvent: {
|
|
598
624
|
category: "canvas";
|
|
@@ -679,6 +705,8 @@ export declare const actionResetZoom: {
|
|
|
679
705
|
} | {
|
|
680
706
|
name: "ttd";
|
|
681
707
|
tab: "mermaid" | "text-to-diagram";
|
|
708
|
+
} | {
|
|
709
|
+
name: "commandPalette";
|
|
682
710
|
} | null;
|
|
683
711
|
defaultSidebarDockedPreference: boolean;
|
|
684
712
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -725,6 +753,9 @@ export declare const actionResetZoom: {
|
|
|
725
753
|
id?: string | undefined;
|
|
726
754
|
socketId?: import("../types").SocketId | undefined;
|
|
727
755
|
isCurrentUser?: boolean | undefined;
|
|
756
|
+
isInCall?: boolean | undefined;
|
|
757
|
+
isSpeaking?: boolean | undefined;
|
|
758
|
+
isMuted?: boolean | undefined;
|
|
728
759
|
}>>;
|
|
729
760
|
showStats: boolean;
|
|
730
761
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -742,7 +773,7 @@ export declare const actionResetZoom: {
|
|
|
742
773
|
colorPalette?: {
|
|
743
774
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
744
775
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
745
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
776
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
746
777
|
topPicks: {
|
|
747
778
|
canvasBackground: [string, string, string, string, string];
|
|
748
779
|
elementStroke: [string, string, string, string, string];
|
|
@@ -873,6 +904,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
|
|
|
873
904
|
} | {
|
|
874
905
|
name: "ttd";
|
|
875
906
|
tab: "mermaid" | "text-to-diagram";
|
|
907
|
+
} | {
|
|
908
|
+
name: "commandPalette";
|
|
876
909
|
} | null;
|
|
877
910
|
defaultSidebarDockedPreference: boolean;
|
|
878
911
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -919,6 +952,9 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
|
|
|
919
952
|
id?: string | undefined;
|
|
920
953
|
socketId?: import("../types").SocketId | undefined;
|
|
921
954
|
isCurrentUser?: boolean | undefined;
|
|
955
|
+
isInCall?: boolean | undefined;
|
|
956
|
+
isSpeaking?: boolean | undefined;
|
|
957
|
+
isMuted?: boolean | undefined;
|
|
922
958
|
}>>;
|
|
923
959
|
showStats: boolean;
|
|
924
960
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -936,7 +972,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
|
|
|
936
972
|
colorPalette?: {
|
|
937
973
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
938
974
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
939
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
975
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
940
976
|
topPicks: {
|
|
941
977
|
canvasBackground: [string, string, string, string, string];
|
|
942
978
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1063,6 +1099,8 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
1063
1099
|
} | {
|
|
1064
1100
|
name: "ttd";
|
|
1065
1101
|
tab: "mermaid" | "text-to-diagram";
|
|
1102
|
+
} | {
|
|
1103
|
+
name: "commandPalette";
|
|
1066
1104
|
} | null;
|
|
1067
1105
|
defaultSidebarDockedPreference: boolean;
|
|
1068
1106
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1109,6 +1147,9 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
1109
1147
|
id?: string | undefined;
|
|
1110
1148
|
socketId?: import("../types").SocketId | undefined;
|
|
1111
1149
|
isCurrentUser?: boolean | undefined;
|
|
1150
|
+
isInCall?: boolean | undefined;
|
|
1151
|
+
isSpeaking?: boolean | undefined;
|
|
1152
|
+
isMuted?: boolean | undefined;
|
|
1112
1153
|
}>>;
|
|
1113
1154
|
showStats: boolean;
|
|
1114
1155
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1126,7 +1167,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
1126
1167
|
colorPalette?: {
|
|
1127
1168
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1128
1169
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1129
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1170
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1130
1171
|
topPicks: {
|
|
1131
1172
|
canvasBackground: [string, string, string, string, string];
|
|
1132
1173
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1167,6 +1208,8 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
1167
1208
|
};
|
|
1168
1209
|
export declare const actionZoomToFitSelectionInViewport: {
|
|
1169
1210
|
name: "zoomToFitSelectionInViewport";
|
|
1211
|
+
label: string;
|
|
1212
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1170
1213
|
trackEvent: {
|
|
1171
1214
|
category: "canvas";
|
|
1172
1215
|
};
|
|
@@ -1251,6 +1294,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1251
1294
|
} | {
|
|
1252
1295
|
name: "ttd";
|
|
1253
1296
|
tab: "mermaid" | "text-to-diagram";
|
|
1297
|
+
} | {
|
|
1298
|
+
name: "commandPalette";
|
|
1254
1299
|
} | null;
|
|
1255
1300
|
defaultSidebarDockedPreference: boolean;
|
|
1256
1301
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1297,6 +1342,9 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1297
1342
|
id?: string | undefined;
|
|
1298
1343
|
socketId?: import("../types").SocketId | undefined;
|
|
1299
1344
|
isCurrentUser?: boolean | undefined;
|
|
1345
|
+
isInCall?: boolean | undefined;
|
|
1346
|
+
isSpeaking?: boolean | undefined;
|
|
1347
|
+
isMuted?: boolean | undefined;
|
|
1300
1348
|
}>>;
|
|
1301
1349
|
showStats: boolean;
|
|
1302
1350
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1314,7 +1362,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1314
1362
|
colorPalette?: {
|
|
1315
1363
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1316
1364
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1317
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1365
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1318
1366
|
topPicks: {
|
|
1319
1367
|
canvasBackground: [string, string, string, string, string];
|
|
1320
1368
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1359,6 +1407,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1359
1407
|
};
|
|
1360
1408
|
export declare const actionZoomToFitSelection: {
|
|
1361
1409
|
name: "zoomToFitSelection";
|
|
1410
|
+
label: string;
|
|
1411
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1362
1412
|
trackEvent: {
|
|
1363
1413
|
category: "canvas";
|
|
1364
1414
|
};
|
|
@@ -1443,6 +1493,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1443
1493
|
} | {
|
|
1444
1494
|
name: "ttd";
|
|
1445
1495
|
tab: "mermaid" | "text-to-diagram";
|
|
1496
|
+
} | {
|
|
1497
|
+
name: "commandPalette";
|
|
1446
1498
|
} | null;
|
|
1447
1499
|
defaultSidebarDockedPreference: boolean;
|
|
1448
1500
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1489,6 +1541,9 @@ export declare const actionZoomToFitSelection: {
|
|
|
1489
1541
|
id?: string | undefined;
|
|
1490
1542
|
socketId?: import("../types").SocketId | undefined;
|
|
1491
1543
|
isCurrentUser?: boolean | undefined;
|
|
1544
|
+
isInCall?: boolean | undefined;
|
|
1545
|
+
isSpeaking?: boolean | undefined;
|
|
1546
|
+
isMuted?: boolean | undefined;
|
|
1492
1547
|
}>>;
|
|
1493
1548
|
showStats: boolean;
|
|
1494
1549
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1506,7 +1561,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1506
1561
|
colorPalette?: {
|
|
1507
1562
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1508
1563
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1509
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1564
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1510
1565
|
topPicks: {
|
|
1511
1566
|
canvasBackground: [string, string, string, string, string];
|
|
1512
1567
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1551,6 +1606,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1551
1606
|
};
|
|
1552
1607
|
export declare const actionZoomToFit: {
|
|
1553
1608
|
name: "zoomToFit";
|
|
1609
|
+
label: string;
|
|
1610
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1554
1611
|
viewMode: true;
|
|
1555
1612
|
trackEvent: {
|
|
1556
1613
|
category: "canvas";
|
|
@@ -1636,6 +1693,8 @@ export declare const actionZoomToFit: {
|
|
|
1636
1693
|
} | {
|
|
1637
1694
|
name: "ttd";
|
|
1638
1695
|
tab: "mermaid" | "text-to-diagram";
|
|
1696
|
+
} | {
|
|
1697
|
+
name: "commandPalette";
|
|
1639
1698
|
} | null;
|
|
1640
1699
|
defaultSidebarDockedPreference: boolean;
|
|
1641
1700
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1682,6 +1741,9 @@ export declare const actionZoomToFit: {
|
|
|
1682
1741
|
id?: string | undefined;
|
|
1683
1742
|
socketId?: import("../types").SocketId | undefined;
|
|
1684
1743
|
isCurrentUser?: boolean | undefined;
|
|
1744
|
+
isInCall?: boolean | undefined;
|
|
1745
|
+
isSpeaking?: boolean | undefined;
|
|
1746
|
+
isMuted?: boolean | undefined;
|
|
1685
1747
|
}>>;
|
|
1686
1748
|
showStats: boolean;
|
|
1687
1749
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1699,7 +1761,7 @@ export declare const actionZoomToFit: {
|
|
|
1699
1761
|
colorPalette?: {
|
|
1700
1762
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1701
1763
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1702
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1764
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1703
1765
|
topPicks: {
|
|
1704
1766
|
canvasBackground: [string, string, string, string, string];
|
|
1705
1767
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1744,6 +1806,9 @@ export declare const actionZoomToFit: {
|
|
|
1744
1806
|
};
|
|
1745
1807
|
export declare const actionToggleTheme: {
|
|
1746
1808
|
name: "toggleTheme";
|
|
1809
|
+
label: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>) => "buttons.lightMode" | "buttons.darkMode";
|
|
1810
|
+
keywords: string[];
|
|
1811
|
+
icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
1747
1812
|
viewMode: true;
|
|
1748
1813
|
trackEvent: {
|
|
1749
1814
|
category: "canvas";
|
|
@@ -1830,6 +1895,8 @@ export declare const actionToggleTheme: {
|
|
|
1830
1895
|
} | {
|
|
1831
1896
|
name: "ttd";
|
|
1832
1897
|
tab: "mermaid" | "text-to-diagram";
|
|
1898
|
+
} | {
|
|
1899
|
+
name: "commandPalette";
|
|
1833
1900
|
} | null;
|
|
1834
1901
|
defaultSidebarDockedPreference: boolean;
|
|
1835
1902
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1875,6 +1942,9 @@ export declare const actionToggleTheme: {
|
|
|
1875
1942
|
id?: string | undefined;
|
|
1876
1943
|
socketId?: import("../types").SocketId | undefined;
|
|
1877
1944
|
isCurrentUser?: boolean | undefined;
|
|
1945
|
+
isInCall?: boolean | undefined;
|
|
1946
|
+
isSpeaking?: boolean | undefined;
|
|
1947
|
+
isMuted?: boolean | undefined;
|
|
1878
1948
|
}>>;
|
|
1879
1949
|
showStats: boolean;
|
|
1880
1950
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1892,7 +1962,7 @@ export declare const actionToggleTheme: {
|
|
|
1892
1962
|
colorPalette?: {
|
|
1893
1963
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1894
1964
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1895
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1965
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
1896
1966
|
topPicks: {
|
|
1897
1967
|
canvasBackground: [string, string, string, string, string];
|
|
1898
1968
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1938,6 +2008,7 @@ export declare const actionToggleTheme: {
|
|
|
1938
2008
|
};
|
|
1939
2009
|
export declare const actionToggleEraserTool: {
|
|
1940
2010
|
name: "toggleEraserTool";
|
|
2011
|
+
label: string;
|
|
1941
2012
|
trackEvent: {
|
|
1942
2013
|
category: "toolbar";
|
|
1943
2014
|
};
|
|
@@ -2021,6 +2092,8 @@ export declare const actionToggleEraserTool: {
|
|
|
2021
2092
|
} | {
|
|
2022
2093
|
name: "ttd";
|
|
2023
2094
|
tab: "mermaid" | "text-to-diagram";
|
|
2095
|
+
} | {
|
|
2096
|
+
name: "commandPalette";
|
|
2024
2097
|
} | null;
|
|
2025
2098
|
defaultSidebarDockedPreference: boolean;
|
|
2026
2099
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -2061,6 +2134,9 @@ export declare const actionToggleEraserTool: {
|
|
|
2061
2134
|
id?: string | undefined;
|
|
2062
2135
|
socketId?: import("../types").SocketId | undefined;
|
|
2063
2136
|
isCurrentUser?: boolean | undefined;
|
|
2137
|
+
isInCall?: boolean | undefined;
|
|
2138
|
+
isSpeaking?: boolean | undefined;
|
|
2139
|
+
isMuted?: boolean | undefined;
|
|
2064
2140
|
}>>;
|
|
2065
2141
|
showStats: boolean;
|
|
2066
2142
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -2078,7 +2154,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2078
2154
|
colorPalette?: {
|
|
2079
2155
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
2080
2156
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
2081
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2157
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
2082
2158
|
topPicks: {
|
|
2083
2159
|
canvasBackground: [string, string, string, string, string];
|
|
2084
2160
|
elementStroke: [string, string, string, string, string];
|
|
@@ -2123,9 +2199,13 @@ export declare const actionToggleEraserTool: {
|
|
|
2123
2199
|
};
|
|
2124
2200
|
export declare const actionToggleHandTool: {
|
|
2125
2201
|
name: "toggleHandTool";
|
|
2202
|
+
label: string;
|
|
2203
|
+
paletteName: string;
|
|
2126
2204
|
trackEvent: {
|
|
2127
2205
|
category: "toolbar";
|
|
2128
2206
|
};
|
|
2207
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
2208
|
+
viewMode: false;
|
|
2129
2209
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
2130
2210
|
appState: {
|
|
2131
2211
|
selectedElementIds: {};
|
|
@@ -2206,6 +2286,8 @@ export declare const actionToggleHandTool: {
|
|
|
2206
2286
|
} | {
|
|
2207
2287
|
name: "ttd";
|
|
2208
2288
|
tab: "mermaid" | "text-to-diagram";
|
|
2289
|
+
} | {
|
|
2290
|
+
name: "commandPalette";
|
|
2209
2291
|
} | null;
|
|
2210
2292
|
defaultSidebarDockedPreference: boolean;
|
|
2211
2293
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -2246,6 +2328,9 @@ export declare const actionToggleHandTool: {
|
|
|
2246
2328
|
id?: string | undefined;
|
|
2247
2329
|
socketId?: import("../types").SocketId | undefined;
|
|
2248
2330
|
isCurrentUser?: boolean | undefined;
|
|
2331
|
+
isInCall?: boolean | undefined;
|
|
2332
|
+
isSpeaking?: boolean | undefined;
|
|
2333
|
+
isMuted?: boolean | undefined;
|
|
2249
2334
|
}>>;
|
|
2250
2335
|
showStats: boolean;
|
|
2251
2336
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -2263,7 +2348,7 @@ export declare const actionToggleHandTool: {
|
|
|
2263
2348
|
colorPalette?: {
|
|
2264
2349
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
2265
2350
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
2266
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2351
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
2267
2352
|
topPicks: {
|
|
2268
2353
|
canvasBackground: [string, string, string, string, string];
|
|
2269
2354
|
elementStroke: [string, string, string, string, string];
|
|
@@ -2392,6 +2477,8 @@ export declare const actionToggleLaserPointer: {
|
|
|
2392
2477
|
} | {
|
|
2393
2478
|
name: "ttd";
|
|
2394
2479
|
tab: "mermaid" | "text-to-diagram";
|
|
2480
|
+
} | {
|
|
2481
|
+
name: "commandPalette";
|
|
2395
2482
|
} | null;
|
|
2396
2483
|
defaultSidebarDockedPreference: boolean;
|
|
2397
2484
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -2432,6 +2519,9 @@ export declare const actionToggleLaserPointer: {
|
|
|
2432
2519
|
id?: string | undefined;
|
|
2433
2520
|
socketId?: import("../types").SocketId | undefined;
|
|
2434
2521
|
isCurrentUser?: boolean | undefined;
|
|
2522
|
+
isInCall?: boolean | undefined;
|
|
2523
|
+
isSpeaking?: boolean | undefined;
|
|
2524
|
+
isMuted?: boolean | undefined;
|
|
2435
2525
|
}>>;
|
|
2436
2526
|
showStats: boolean;
|
|
2437
2527
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -2449,7 +2539,7 @@ export declare const actionToggleLaserPointer: {
|
|
|
2449
2539
|
colorPalette?: {
|
|
2450
2540
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
2451
2541
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
2452
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2542
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
2453
2543
|
topPicks: {
|
|
2454
2544
|
canvasBackground: [string, string, string, string, string];
|
|
2455
2545
|
elementStroke: [string, string, string, string, string];
|
|
@@ -2489,7 +2579,8 @@ export declare const actionToggleLaserPointer: {
|
|
|
2489
2579
|
commitToHistory: true;
|
|
2490
2580
|
};
|
|
2491
2581
|
checked: (appState: Readonly<AppState>) => boolean;
|
|
2492
|
-
|
|
2582
|
+
label: string;
|
|
2583
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
2493
2584
|
} & {
|
|
2494
2585
|
keyTest?: undefined;
|
|
2495
2586
|
};
|
|
@@ -2574,6 +2665,8 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
2574
2665
|
} | {
|
|
2575
2666
|
name: "ttd";
|
|
2576
2667
|
tab: "mermaid" | "text-to-diagram";
|
|
2668
|
+
} | {
|
|
2669
|
+
name: "commandPalette";
|
|
2577
2670
|
} | null;
|
|
2578
2671
|
defaultSidebarDockedPreference: boolean;
|
|
2579
2672
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -2620,6 +2713,9 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
2620
2713
|
id?: string | undefined;
|
|
2621
2714
|
socketId?: import("../types").SocketId | undefined;
|
|
2622
2715
|
isCurrentUser?: boolean | undefined;
|
|
2716
|
+
isInCall?: boolean | undefined;
|
|
2717
|
+
isSpeaking?: boolean | undefined;
|
|
2718
|
+
isMuted?: boolean | undefined;
|
|
2623
2719
|
}>>;
|
|
2624
2720
|
showStats: boolean;
|
|
2625
2721
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -2637,7 +2733,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
2637
2733
|
colorPalette?: {
|
|
2638
2734
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
2639
2735
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
2640
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2736
|
+
elementStroke: import("../colors").ColorPaletteCustom; /** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
2641
2737
|
topPicks: {
|
|
2642
2738
|
canvasBackground: [string, string, string, string, string];
|
|
2643
2739
|
elementStroke: [string, string, string, string, string];
|