@zsviczian/excalidraw 0.17.1-obsidian-19 → 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 +122 -57
- 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/scene/types.d.ts +10 -20
- package/types/excalidraw/types.d.ts +21 -2
|
@@ -4,6 +4,7 @@ export declare const changeProperty: (elements: readonly ExcalidrawElement[], ap
|
|
|
4
4
|
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
5
5
|
export declare const actionChangeStrokeColor: {
|
|
6
6
|
name: "changeStrokeColor";
|
|
7
|
+
label: string;
|
|
7
8
|
trackEvent: false;
|
|
8
9
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => any;
|
|
9
10
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,6 +13,7 @@ export declare const actionChangeStrokeColor: {
|
|
|
12
13
|
};
|
|
13
14
|
export declare const actionChangeBackgroundColor: {
|
|
14
15
|
name: "changeBackgroundColor";
|
|
16
|
+
label: string;
|
|
15
17
|
trackEvent: false;
|
|
16
18
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
17
19
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,6 +22,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
20
22
|
};
|
|
21
23
|
export declare const actionChangeFillStyle: {
|
|
22
24
|
name: "changeFillStyle";
|
|
25
|
+
label: string;
|
|
23
26
|
trackEvent: false;
|
|
24
27
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
25
28
|
elements: ExcalidrawElement[];
|
|
@@ -103,6 +106,8 @@ export declare const actionChangeFillStyle: {
|
|
|
103
106
|
} | {
|
|
104
107
|
name: "ttd";
|
|
105
108
|
tab: "mermaid" | "text-to-diagram";
|
|
109
|
+
} | {
|
|
110
|
+
name: "commandPalette";
|
|
106
111
|
} | null;
|
|
107
112
|
defaultSidebarDockedPreference: boolean;
|
|
108
113
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -149,6 +154,9 @@ export declare const actionChangeFillStyle: {
|
|
|
149
154
|
id?: string | undefined;
|
|
150
155
|
socketId?: import("../types").SocketId | undefined;
|
|
151
156
|
isCurrentUser?: boolean | undefined;
|
|
157
|
+
isInCall?: boolean | undefined;
|
|
158
|
+
isSpeaking?: boolean | undefined;
|
|
159
|
+
isMuted?: boolean | undefined;
|
|
152
160
|
}>>;
|
|
153
161
|
showStats: boolean;
|
|
154
162
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -211,6 +219,7 @@ export declare const actionChangeFillStyle: {
|
|
|
211
219
|
};
|
|
212
220
|
export declare const actionChangeStrokeWidth: {
|
|
213
221
|
name: "changeStrokeWidth";
|
|
222
|
+
label: string;
|
|
214
223
|
trackEvent: false;
|
|
215
224
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
216
225
|
elements: ExcalidrawElement[];
|
|
@@ -294,6 +303,8 @@ export declare const actionChangeStrokeWidth: {
|
|
|
294
303
|
} | {
|
|
295
304
|
name: "ttd";
|
|
296
305
|
tab: "mermaid" | "text-to-diagram";
|
|
306
|
+
} | {
|
|
307
|
+
name: "commandPalette";
|
|
297
308
|
} | null;
|
|
298
309
|
defaultSidebarDockedPreference: boolean;
|
|
299
310
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -340,6 +351,9 @@ export declare const actionChangeStrokeWidth: {
|
|
|
340
351
|
id?: string | undefined;
|
|
341
352
|
socketId?: import("../types").SocketId | undefined;
|
|
342
353
|
isCurrentUser?: boolean | undefined;
|
|
354
|
+
isInCall?: boolean | undefined;
|
|
355
|
+
isSpeaking?: boolean | undefined;
|
|
356
|
+
isMuted?: boolean | undefined;
|
|
343
357
|
}>>;
|
|
344
358
|
showStats: boolean;
|
|
345
359
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -402,6 +416,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
402
416
|
};
|
|
403
417
|
export declare const actionChangeSloppiness: {
|
|
404
418
|
name: "changeSloppiness";
|
|
419
|
+
label: string;
|
|
405
420
|
trackEvent: false;
|
|
406
421
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
407
422
|
elements: ExcalidrawElement[];
|
|
@@ -485,6 +500,8 @@ export declare const actionChangeSloppiness: {
|
|
|
485
500
|
} | {
|
|
486
501
|
name: "ttd";
|
|
487
502
|
tab: "mermaid" | "text-to-diagram";
|
|
503
|
+
} | {
|
|
504
|
+
name: "commandPalette";
|
|
488
505
|
} | null;
|
|
489
506
|
defaultSidebarDockedPreference: boolean;
|
|
490
507
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -531,6 +548,9 @@ export declare const actionChangeSloppiness: {
|
|
|
531
548
|
id?: string | undefined;
|
|
532
549
|
socketId?: import("../types").SocketId | undefined;
|
|
533
550
|
isCurrentUser?: boolean | undefined;
|
|
551
|
+
isInCall?: boolean | undefined;
|
|
552
|
+
isSpeaking?: boolean | undefined;
|
|
553
|
+
isMuted?: boolean | undefined;
|
|
534
554
|
}>>;
|
|
535
555
|
showStats: boolean;
|
|
536
556
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -593,6 +613,7 @@ export declare const actionChangeSloppiness: {
|
|
|
593
613
|
};
|
|
594
614
|
export declare const actionChangeStrokeStyle: {
|
|
595
615
|
name: "changeStrokeStyle";
|
|
616
|
+
label: string;
|
|
596
617
|
trackEvent: false;
|
|
597
618
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
598
619
|
elements: ExcalidrawElement[];
|
|
@@ -676,6 +697,8 @@ export declare const actionChangeStrokeStyle: {
|
|
|
676
697
|
} | {
|
|
677
698
|
name: "ttd";
|
|
678
699
|
tab: "mermaid" | "text-to-diagram";
|
|
700
|
+
} | {
|
|
701
|
+
name: "commandPalette";
|
|
679
702
|
} | null;
|
|
680
703
|
defaultSidebarDockedPreference: boolean;
|
|
681
704
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -722,6 +745,9 @@ export declare const actionChangeStrokeStyle: {
|
|
|
722
745
|
id?: string | undefined;
|
|
723
746
|
socketId?: import("../types").SocketId | undefined;
|
|
724
747
|
isCurrentUser?: boolean | undefined;
|
|
748
|
+
isInCall?: boolean | undefined;
|
|
749
|
+
isSpeaking?: boolean | undefined;
|
|
750
|
+
isMuted?: boolean | undefined;
|
|
725
751
|
}>>;
|
|
726
752
|
showStats: boolean;
|
|
727
753
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -784,6 +810,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
784
810
|
};
|
|
785
811
|
export declare const actionChangeOpacity: {
|
|
786
812
|
name: "changeOpacity";
|
|
813
|
+
label: string;
|
|
787
814
|
trackEvent: false;
|
|
788
815
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
789
816
|
elements: ExcalidrawElement[];
|
|
@@ -867,6 +894,8 @@ export declare const actionChangeOpacity: {
|
|
|
867
894
|
} | {
|
|
868
895
|
name: "ttd";
|
|
869
896
|
tab: "mermaid" | "text-to-diagram";
|
|
897
|
+
} | {
|
|
898
|
+
name: "commandPalette";
|
|
870
899
|
} | null;
|
|
871
900
|
defaultSidebarDockedPreference: boolean;
|
|
872
901
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -913,6 +942,9 @@ export declare const actionChangeOpacity: {
|
|
|
913
942
|
id?: string | undefined;
|
|
914
943
|
socketId?: import("../types").SocketId | undefined;
|
|
915
944
|
isCurrentUser?: boolean | undefined;
|
|
945
|
+
isInCall?: boolean | undefined;
|
|
946
|
+
isSpeaking?: boolean | undefined;
|
|
947
|
+
isMuted?: boolean | undefined;
|
|
916
948
|
}>>;
|
|
917
949
|
showStats: boolean;
|
|
918
950
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -976,6 +1008,7 @@ export declare const actionChangeOpacity: {
|
|
|
976
1008
|
export declare const getFontSize: (size: number, zoom: number) => number;
|
|
977
1009
|
export declare const actionChangeFontSize: {
|
|
978
1010
|
name: "changeFontSize";
|
|
1011
|
+
label: string;
|
|
979
1012
|
trackEvent: false;
|
|
980
1013
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
981
1014
|
elements: ExcalidrawElement[];
|
|
@@ -1059,6 +1092,8 @@ export declare const actionChangeFontSize: {
|
|
|
1059
1092
|
} | {
|
|
1060
1093
|
name: "ttd";
|
|
1061
1094
|
tab: "mermaid" | "text-to-diagram";
|
|
1095
|
+
} | {
|
|
1096
|
+
name: "commandPalette";
|
|
1062
1097
|
} | null;
|
|
1063
1098
|
defaultSidebarDockedPreference: boolean;
|
|
1064
1099
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1105,6 +1140,9 @@ export declare const actionChangeFontSize: {
|
|
|
1105
1140
|
id?: string | undefined;
|
|
1106
1141
|
socketId?: import("../types").SocketId | undefined;
|
|
1107
1142
|
isCurrentUser?: boolean | undefined;
|
|
1143
|
+
isInCall?: boolean | undefined;
|
|
1144
|
+
isSpeaking?: boolean | undefined;
|
|
1145
|
+
isMuted?: boolean | undefined;
|
|
1108
1146
|
}>>;
|
|
1109
1147
|
showStats: boolean;
|
|
1110
1148
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1167,6 +1205,8 @@ export declare const actionChangeFontSize: {
|
|
|
1167
1205
|
};
|
|
1168
1206
|
export declare const actionDecreaseFontSize: {
|
|
1169
1207
|
name: "decreaseFontSize";
|
|
1208
|
+
label: string;
|
|
1209
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1170
1210
|
trackEvent: false;
|
|
1171
1211
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1172
1212
|
elements: ExcalidrawElement[];
|
|
@@ -1250,6 +1290,8 @@ export declare const actionDecreaseFontSize: {
|
|
|
1250
1290
|
} | {
|
|
1251
1291
|
name: "ttd";
|
|
1252
1292
|
tab: "mermaid" | "text-to-diagram";
|
|
1293
|
+
} | {
|
|
1294
|
+
name: "commandPalette";
|
|
1253
1295
|
} | null;
|
|
1254
1296
|
defaultSidebarDockedPreference: boolean;
|
|
1255
1297
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1296,6 +1338,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
1296
1338
|
id?: string | undefined;
|
|
1297
1339
|
socketId?: import("../types").SocketId | undefined;
|
|
1298
1340
|
isCurrentUser?: boolean | undefined;
|
|
1341
|
+
isInCall?: boolean | undefined;
|
|
1342
|
+
isSpeaking?: boolean | undefined;
|
|
1343
|
+
isMuted?: boolean | undefined;
|
|
1299
1344
|
}>>;
|
|
1300
1345
|
showStats: boolean;
|
|
1301
1346
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1358,6 +1403,8 @@ export declare const actionDecreaseFontSize: {
|
|
|
1358
1403
|
};
|
|
1359
1404
|
export declare const actionIncreaseFontSize: {
|
|
1360
1405
|
name: "increaseFontSize";
|
|
1406
|
+
label: string;
|
|
1407
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1361
1408
|
trackEvent: false;
|
|
1362
1409
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1363
1410
|
elements: ExcalidrawElement[];
|
|
@@ -1441,6 +1488,8 @@ export declare const actionIncreaseFontSize: {
|
|
|
1441
1488
|
} | {
|
|
1442
1489
|
name: "ttd";
|
|
1443
1490
|
tab: "mermaid" | "text-to-diagram";
|
|
1491
|
+
} | {
|
|
1492
|
+
name: "commandPalette";
|
|
1444
1493
|
} | null;
|
|
1445
1494
|
defaultSidebarDockedPreference: boolean;
|
|
1446
1495
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1487,6 +1536,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
1487
1536
|
id?: string | undefined;
|
|
1488
1537
|
socketId?: import("../types").SocketId | undefined;
|
|
1489
1538
|
isCurrentUser?: boolean | undefined;
|
|
1539
|
+
isInCall?: boolean | undefined;
|
|
1540
|
+
isSpeaking?: boolean | undefined;
|
|
1541
|
+
isMuted?: boolean | undefined;
|
|
1490
1542
|
}>>;
|
|
1491
1543
|
showStats: boolean;
|
|
1492
1544
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1549,6 +1601,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1549
1601
|
};
|
|
1550
1602
|
export declare const actionChangeFontFamily: {
|
|
1551
1603
|
name: "changeFontFamily";
|
|
1604
|
+
label: string;
|
|
1552
1605
|
trackEvent: false;
|
|
1553
1606
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1554
1607
|
elements: ExcalidrawElement[];
|
|
@@ -1632,6 +1685,8 @@ export declare const actionChangeFontFamily: {
|
|
|
1632
1685
|
} | {
|
|
1633
1686
|
name: "ttd";
|
|
1634
1687
|
tab: "mermaid" | "text-to-diagram";
|
|
1688
|
+
} | {
|
|
1689
|
+
name: "commandPalette";
|
|
1635
1690
|
} | null;
|
|
1636
1691
|
defaultSidebarDockedPreference: boolean;
|
|
1637
1692
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1678,6 +1733,9 @@ export declare const actionChangeFontFamily: {
|
|
|
1678
1733
|
id?: string | undefined;
|
|
1679
1734
|
socketId?: import("../types").SocketId | undefined;
|
|
1680
1735
|
isCurrentUser?: boolean | undefined;
|
|
1736
|
+
isInCall?: boolean | undefined;
|
|
1737
|
+
isSpeaking?: boolean | undefined;
|
|
1738
|
+
isMuted?: boolean | undefined;
|
|
1681
1739
|
}>>;
|
|
1682
1740
|
showStats: boolean;
|
|
1683
1741
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1740,6 +1798,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1740
1798
|
};
|
|
1741
1799
|
export declare const actionChangeTextAlign: {
|
|
1742
1800
|
name: "changeTextAlign";
|
|
1801
|
+
label: string;
|
|
1743
1802
|
trackEvent: false;
|
|
1744
1803
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1745
1804
|
elements: ExcalidrawElement[];
|
|
@@ -1823,6 +1882,8 @@ export declare const actionChangeTextAlign: {
|
|
|
1823
1882
|
} | {
|
|
1824
1883
|
name: "ttd";
|
|
1825
1884
|
tab: "mermaid" | "text-to-diagram";
|
|
1885
|
+
} | {
|
|
1886
|
+
name: "commandPalette";
|
|
1826
1887
|
} | null;
|
|
1827
1888
|
defaultSidebarDockedPreference: boolean;
|
|
1828
1889
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1869,6 +1930,9 @@ export declare const actionChangeTextAlign: {
|
|
|
1869
1930
|
id?: string | undefined;
|
|
1870
1931
|
socketId?: import("../types").SocketId | undefined;
|
|
1871
1932
|
isCurrentUser?: boolean | undefined;
|
|
1933
|
+
isInCall?: boolean | undefined;
|
|
1934
|
+
isSpeaking?: boolean | undefined;
|
|
1935
|
+
isMuted?: boolean | undefined;
|
|
1872
1936
|
}>>;
|
|
1873
1937
|
showStats: boolean;
|
|
1874
1938
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1931,6 +1995,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1931
1995
|
};
|
|
1932
1996
|
export declare const actionChangeVerticalAlign: {
|
|
1933
1997
|
name: "changeVerticalAlign";
|
|
1998
|
+
label: string;
|
|
1934
1999
|
trackEvent: {
|
|
1935
2000
|
category: "element";
|
|
1936
2001
|
};
|
|
@@ -2016,6 +2081,8 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2016
2081
|
} | {
|
|
2017
2082
|
name: "ttd";
|
|
2018
2083
|
tab: "mermaid" | "text-to-diagram";
|
|
2084
|
+
} | {
|
|
2085
|
+
name: "commandPalette";
|
|
2019
2086
|
} | null;
|
|
2020
2087
|
defaultSidebarDockedPreference: boolean;
|
|
2021
2088
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -2062,6 +2129,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2062
2129
|
id?: string | undefined;
|
|
2063
2130
|
socketId?: import("../types").SocketId | undefined;
|
|
2064
2131
|
isCurrentUser?: boolean | undefined;
|
|
2132
|
+
isInCall?: boolean | undefined;
|
|
2133
|
+
isSpeaking?: boolean | undefined;
|
|
2134
|
+
isMuted?: boolean | undefined;
|
|
2065
2135
|
}>>;
|
|
2066
2136
|
showStats: boolean;
|
|
2067
2137
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -2124,6 +2194,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2124
2194
|
};
|
|
2125
2195
|
export declare const actionChangeRoundness: {
|
|
2126
2196
|
name: "changeRoundness";
|
|
2197
|
+
label: string;
|
|
2127
2198
|
trackEvent: false;
|
|
2128
2199
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
2129
2200
|
elements: ExcalidrawElement[];
|
|
@@ -2207,6 +2278,8 @@ export declare const actionChangeRoundness: {
|
|
|
2207
2278
|
} | {
|
|
2208
2279
|
name: "ttd";
|
|
2209
2280
|
tab: "mermaid" | "text-to-diagram";
|
|
2281
|
+
} | {
|
|
2282
|
+
name: "commandPalette";
|
|
2210
2283
|
} | null;
|
|
2211
2284
|
defaultSidebarDockedPreference: boolean;
|
|
2212
2285
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -2253,6 +2326,9 @@ export declare const actionChangeRoundness: {
|
|
|
2253
2326
|
id?: string | undefined;
|
|
2254
2327
|
socketId?: import("../types").SocketId | undefined;
|
|
2255
2328
|
isCurrentUser?: boolean | undefined;
|
|
2329
|
+
isInCall?: boolean | undefined;
|
|
2330
|
+
isSpeaking?: boolean | undefined;
|
|
2331
|
+
isMuted?: boolean | undefined;
|
|
2256
2332
|
}>>;
|
|
2257
2333
|
showStats: boolean;
|
|
2258
2334
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -2315,6 +2391,7 @@ export declare const actionChangeRoundness: {
|
|
|
2315
2391
|
};
|
|
2316
2392
|
export declare const actionChangeArrowhead: {
|
|
2317
2393
|
name: "changeArrowhead";
|
|
2394
|
+
label: string;
|
|
2318
2395
|
trackEvent: false;
|
|
2319
2396
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: {
|
|
2320
2397
|
position: "start" | "end";
|
|
@@ -2401,6 +2478,8 @@ export declare const actionChangeArrowhead: {
|
|
|
2401
2478
|
} | {
|
|
2402
2479
|
name: "ttd";
|
|
2403
2480
|
tab: "mermaid" | "text-to-diagram";
|
|
2481
|
+
} | {
|
|
2482
|
+
name: "commandPalette";
|
|
2404
2483
|
} | null;
|
|
2405
2484
|
defaultSidebarDockedPreference: boolean;
|
|
2406
2485
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -2447,6 +2526,9 @@ export declare const actionChangeArrowhead: {
|
|
|
2447
2526
|
id?: string | undefined;
|
|
2448
2527
|
socketId?: import("../types").SocketId | undefined;
|
|
2449
2528
|
isCurrentUser?: boolean | undefined;
|
|
2529
|
+
isInCall?: boolean | undefined;
|
|
2530
|
+
isSpeaking?: boolean | undefined;
|
|
2531
|
+
isMuted?: boolean | undefined;
|
|
2450
2532
|
}>>;
|
|
2451
2533
|
showStats: boolean;
|
|
2452
2534
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -2,9 +2,12 @@ import { ExcalidrawElement } from "../element/types";
|
|
|
2
2
|
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
3
3
|
export declare const actionSelectAll: {
|
|
4
4
|
name: "selectAll";
|
|
5
|
+
label: string;
|
|
6
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
trackEvent: {
|
|
6
8
|
category: "canvas";
|
|
7
9
|
};
|
|
10
|
+
viewMode: false;
|
|
8
11
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => false | {
|
|
9
12
|
appState: {
|
|
10
13
|
selectedLinearElement: LinearElementEditor | null;
|
|
@@ -94,6 +97,8 @@ export declare const actionSelectAll: {
|
|
|
94
97
|
} | {
|
|
95
98
|
name: "ttd";
|
|
96
99
|
tab: "mermaid" | "text-to-diagram";
|
|
100
|
+
} | {
|
|
101
|
+
name: "commandPalette";
|
|
97
102
|
} | null;
|
|
98
103
|
defaultSidebarDockedPreference: boolean;
|
|
99
104
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -133,6 +138,9 @@ export declare const actionSelectAll: {
|
|
|
133
138
|
id?: string | undefined;
|
|
134
139
|
socketId?: import("../types").SocketId | undefined;
|
|
135
140
|
isCurrentUser?: boolean | undefined;
|
|
141
|
+
isInCall?: boolean | undefined;
|
|
142
|
+
isSpeaking?: boolean | undefined;
|
|
143
|
+
isMuted?: boolean | undefined;
|
|
136
144
|
}>>;
|
|
137
145
|
showStats: boolean;
|
|
138
146
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -188,7 +196,6 @@ export declare const actionSelectAll: {
|
|
|
188
196
|
};
|
|
189
197
|
commitToHistory: true;
|
|
190
198
|
};
|
|
191
|
-
contextItemLabel: string;
|
|
192
199
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
193
200
|
} & {
|
|
194
201
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare let copiedStyles: string;
|
|
2
2
|
export declare const actionCopyStyles: {
|
|
3
3
|
name: "copyStyles";
|
|
4
|
+
label: string;
|
|
5
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
4
6
|
trackEvent: {
|
|
5
7
|
category: "element";
|
|
6
8
|
};
|
|
@@ -88,6 +90,8 @@ export declare const actionCopyStyles: {
|
|
|
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;
|
|
@@ -129,6 +133,9 @@ export declare const actionCopyStyles: {
|
|
|
129
133
|
id?: string | undefined;
|
|
130
134
|
socketId?: import("../types").SocketId | undefined;
|
|
131
135
|
isCurrentUser?: boolean | undefined;
|
|
136
|
+
isInCall?: boolean | undefined;
|
|
137
|
+
isSpeaking?: boolean | undefined;
|
|
138
|
+
isMuted?: boolean | undefined;
|
|
132
139
|
}>>;
|
|
133
140
|
showStats: boolean;
|
|
134
141
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -185,13 +192,14 @@ export declare const actionCopyStyles: {
|
|
|
185
192
|
};
|
|
186
193
|
commitToHistory: false;
|
|
187
194
|
};
|
|
188
|
-
contextItemLabel: string;
|
|
189
195
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
190
196
|
} & {
|
|
191
197
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
192
198
|
};
|
|
193
199
|
export declare const actionPasteStyles: {
|
|
194
200
|
name: "pasteStyles";
|
|
201
|
+
label: string;
|
|
202
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
195
203
|
trackEvent: {
|
|
196
204
|
category: "element";
|
|
197
205
|
};
|
|
@@ -202,7 +210,6 @@ export declare const actionPasteStyles: {
|
|
|
202
210
|
elements: import("../element/types").ExcalidrawElement[];
|
|
203
211
|
commitToHistory: true;
|
|
204
212
|
};
|
|
205
|
-
contextItemLabel: string;
|
|
206
213
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
207
214
|
} & {
|
|
208
215
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AppState } from "../types";
|
|
2
2
|
export declare const actionToggleGridMode: {
|
|
3
3
|
name: "gridMode";
|
|
4
|
+
label: string;
|
|
4
5
|
viewMode: true;
|
|
5
6
|
trackEvent: {
|
|
6
7
|
category: "canvas";
|
|
@@ -89,6 +90,8 @@ export declare const actionToggleGridMode: {
|
|
|
89
90
|
} | {
|
|
90
91
|
name: "ttd";
|
|
91
92
|
tab: "mermaid" | "text-to-diagram";
|
|
93
|
+
} | {
|
|
94
|
+
name: "commandPalette";
|
|
92
95
|
} | null;
|
|
93
96
|
defaultSidebarDockedPreference: boolean;
|
|
94
97
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -134,6 +137,9 @@ export declare const actionToggleGridMode: {
|
|
|
134
137
|
id?: string | undefined;
|
|
135
138
|
socketId?: import("../types").SocketId | undefined;
|
|
136
139
|
isCurrentUser?: boolean | undefined;
|
|
140
|
+
isInCall?: boolean | undefined;
|
|
141
|
+
isSpeaking?: boolean | undefined;
|
|
142
|
+
isMuted?: boolean | undefined;
|
|
137
143
|
}>>;
|
|
138
144
|
showStats: boolean;
|
|
139
145
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -191,7 +197,6 @@ export declare const actionToggleGridMode: {
|
|
|
191
197
|
};
|
|
192
198
|
checked: (appState: AppState) => boolean;
|
|
193
199
|
predicate: (element: readonly import("../element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
194
|
-
contextItemLabel: string;
|
|
195
200
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
196
201
|
} & {
|
|
197
202
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const actionToggleObjectsSnapMode: {
|
|
2
2
|
name: "objectsSnapMode";
|
|
3
|
-
|
|
3
|
+
label: string;
|
|
4
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
viewMode: false;
|
|
4
6
|
trackEvent: {
|
|
5
7
|
category: "canvas";
|
|
6
8
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
@@ -88,6 +90,8 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
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;
|
|
@@ -133,6 +137,9 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
133
137
|
id?: string | undefined;
|
|
134
138
|
socketId?: import("../types").SocketId | undefined;
|
|
135
139
|
isCurrentUser?: boolean | undefined;
|
|
140
|
+
isInCall?: boolean | undefined;
|
|
141
|
+
isSpeaking?: boolean | undefined;
|
|
142
|
+
isMuted?: boolean | undefined;
|
|
136
143
|
}>>;
|
|
137
144
|
showStats: boolean;
|
|
138
145
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -190,7 +197,6 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
190
197
|
};
|
|
191
198
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
192
199
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
193
|
-
contextItemLabel: string;
|
|
194
200
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
195
201
|
} & {
|
|
196
202
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const actionToggleStats: {
|
|
2
2
|
name: "stats";
|
|
3
|
+
label: string;
|
|
4
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
paletteName: string;
|
|
3
6
|
viewMode: true;
|
|
4
7
|
trackEvent: {
|
|
5
8
|
category: "menu";
|
|
@@ -86,6 +89,8 @@ export declare const actionToggleStats: {
|
|
|
86
89
|
} | {
|
|
87
90
|
name: "ttd";
|
|
88
91
|
tab: "mermaid" | "text-to-diagram";
|
|
92
|
+
} | {
|
|
93
|
+
name: "commandPalette";
|
|
89
94
|
} | null;
|
|
90
95
|
defaultSidebarDockedPreference: boolean;
|
|
91
96
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -132,6 +137,9 @@ export declare const actionToggleStats: {
|
|
|
132
137
|
id?: string | undefined;
|
|
133
138
|
socketId?: import("../types").SocketId | undefined;
|
|
134
139
|
isCurrentUser?: boolean | undefined;
|
|
140
|
+
isInCall?: boolean | undefined;
|
|
141
|
+
isSpeaking?: boolean | undefined;
|
|
142
|
+
isMuted?: boolean | undefined;
|
|
135
143
|
}>>;
|
|
136
144
|
currentChartType: import("../element/types").ChartType;
|
|
137
145
|
pasteDialog: {
|
|
@@ -188,7 +196,6 @@ export declare const actionToggleStats: {
|
|
|
188
196
|
commitToHistory: false;
|
|
189
197
|
};
|
|
190
198
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
191
|
-
contextItemLabel: string;
|
|
192
199
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
193
200
|
} & {
|
|
194
201
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const actionToggleViewMode: {
|
|
2
2
|
name: "viewMode";
|
|
3
|
+
label: string;
|
|
4
|
+
paletteName: string;
|
|
5
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
3
6
|
viewMode: true;
|
|
4
7
|
trackEvent: {
|
|
5
8
|
category: "canvas";
|
|
@@ -87,6 +90,8 @@ export declare const actionToggleViewMode: {
|
|
|
87
90
|
} | {
|
|
88
91
|
name: "ttd";
|
|
89
92
|
tab: "mermaid" | "text-to-diagram";
|
|
93
|
+
} | {
|
|
94
|
+
name: "commandPalette";
|
|
90
95
|
} | null;
|
|
91
96
|
defaultSidebarDockedPreference: boolean;
|
|
92
97
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -132,6 +137,9 @@ export declare const actionToggleViewMode: {
|
|
|
132
137
|
id?: string | undefined;
|
|
133
138
|
socketId?: import("../types").SocketId | undefined;
|
|
134
139
|
isCurrentUser?: boolean | undefined;
|
|
140
|
+
isInCall?: boolean | undefined;
|
|
141
|
+
isSpeaking?: boolean | undefined;
|
|
142
|
+
isMuted?: boolean | undefined;
|
|
135
143
|
}>>;
|
|
136
144
|
showStats: boolean;
|
|
137
145
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -190,7 +198,6 @@ export declare const actionToggleViewMode: {
|
|
|
190
198
|
};
|
|
191
199
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
192
200
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
193
|
-
contextItemLabel: string;
|
|
194
201
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
195
202
|
} & {
|
|
196
203
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const actionToggleZenMode: {
|
|
2
2
|
name: "zenMode";
|
|
3
|
+
label: string;
|
|
4
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
paletteName: string;
|
|
3
6
|
viewMode: true;
|
|
4
7
|
trackEvent: {
|
|
5
8
|
category: "canvas";
|
|
@@ -87,6 +90,8 @@ export declare const actionToggleZenMode: {
|
|
|
87
90
|
} | {
|
|
88
91
|
name: "ttd";
|
|
89
92
|
tab: "mermaid" | "text-to-diagram";
|
|
93
|
+
} | {
|
|
94
|
+
name: "commandPalette";
|
|
90
95
|
} | null;
|
|
91
96
|
defaultSidebarDockedPreference: boolean;
|
|
92
97
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -132,6 +137,9 @@ export declare const actionToggleZenMode: {
|
|
|
132
137
|
id?: string | undefined;
|
|
133
138
|
socketId?: import("../types").SocketId | undefined;
|
|
134
139
|
isCurrentUser?: boolean | undefined;
|
|
140
|
+
isInCall?: boolean | undefined;
|
|
141
|
+
isSpeaking?: boolean | undefined;
|
|
142
|
+
isMuted?: boolean | undefined;
|
|
135
143
|
}>>;
|
|
136
144
|
showStats: boolean;
|
|
137
145
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -190,7 +198,6 @@ export declare const actionToggleZenMode: {
|
|
|
190
198
|
};
|
|
191
199
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
192
200
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
193
|
-
contextItemLabel: string;
|
|
194
201
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
195
202
|
} & {
|
|
196
203
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|