@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
|
@@ -2,8 +2,9 @@ import { Theme } from "../element/types";
|
|
|
2
2
|
import "../components/ToolIcon.scss";
|
|
3
3
|
export declare const actionChangeProjectName: {
|
|
4
4
|
name: "changeProjectName";
|
|
5
|
+
label: string;
|
|
5
6
|
trackEvent: false;
|
|
6
|
-
perform: (_elements: readonly import("../element/types").
|
|
7
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
7
8
|
appState: {
|
|
8
9
|
name: any;
|
|
9
10
|
contextMenu: {
|
|
@@ -84,6 +85,8 @@ export declare const actionChangeProjectName: {
|
|
|
84
85
|
} | {
|
|
85
86
|
name: "ttd";
|
|
86
87
|
tab: "mermaid" | "text-to-diagram";
|
|
88
|
+
} | {
|
|
89
|
+
name: "commandPalette";
|
|
87
90
|
} | null;
|
|
88
91
|
defaultSidebarDockedPreference: boolean;
|
|
89
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -130,6 +133,9 @@ export declare const actionChangeProjectName: {
|
|
|
130
133
|
id?: string | undefined;
|
|
131
134
|
socketId?: import("../types").SocketId | undefined;
|
|
132
135
|
isCurrentUser?: boolean | undefined;
|
|
136
|
+
isInCall?: boolean | undefined;
|
|
137
|
+
isSpeaking?: boolean | undefined;
|
|
138
|
+
isMuted?: boolean | undefined;
|
|
133
139
|
}>>;
|
|
134
140
|
showStats: boolean;
|
|
135
141
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -184,7 +190,7 @@ export declare const actionChangeProjectName: {
|
|
|
184
190
|
userToFollow: import("../types").UserToFollow | null;
|
|
185
191
|
followedBy: Set<import("../types").SocketId>;
|
|
186
192
|
};
|
|
187
|
-
|
|
193
|
+
storeAction: import("../store").StoreActionType;
|
|
188
194
|
};
|
|
189
195
|
PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
190
196
|
} & {
|
|
@@ -192,11 +198,12 @@ export declare const actionChangeProjectName: {
|
|
|
192
198
|
};
|
|
193
199
|
export declare const actionChangeExportScale: {
|
|
194
200
|
name: "changeExportScale";
|
|
201
|
+
label: string;
|
|
195
202
|
trackEvent: {
|
|
196
203
|
category: "export";
|
|
197
204
|
action: string;
|
|
198
205
|
};
|
|
199
|
-
perform: (_elements: readonly import("../element/types").
|
|
206
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
200
207
|
appState: {
|
|
201
208
|
exportScale: any;
|
|
202
209
|
contextMenu: {
|
|
@@ -277,6 +284,8 @@ export declare const actionChangeExportScale: {
|
|
|
277
284
|
} | {
|
|
278
285
|
name: "ttd";
|
|
279
286
|
tab: "mermaid" | "text-to-diagram";
|
|
287
|
+
} | {
|
|
288
|
+
name: "commandPalette";
|
|
280
289
|
} | null;
|
|
281
290
|
defaultSidebarDockedPreference: boolean;
|
|
282
291
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -323,6 +332,9 @@ export declare const actionChangeExportScale: {
|
|
|
323
332
|
id?: string | undefined;
|
|
324
333
|
socketId?: import("../types").SocketId | undefined;
|
|
325
334
|
isCurrentUser?: boolean | undefined;
|
|
335
|
+
isInCall?: boolean | undefined;
|
|
336
|
+
isSpeaking?: boolean | undefined;
|
|
337
|
+
isMuted?: boolean | undefined;
|
|
326
338
|
}>>;
|
|
327
339
|
showStats: boolean;
|
|
328
340
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -377,7 +389,7 @@ export declare const actionChangeExportScale: {
|
|
|
377
389
|
userToFollow: import("../types").UserToFollow | null;
|
|
378
390
|
followedBy: Set<import("../types").SocketId>;
|
|
379
391
|
};
|
|
380
|
-
|
|
392
|
+
storeAction: import("../store").StoreActionType;
|
|
381
393
|
};
|
|
382
394
|
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
383
395
|
} & {
|
|
@@ -385,11 +397,12 @@ export declare const actionChangeExportScale: {
|
|
|
385
397
|
};
|
|
386
398
|
export declare const actionChangeExportBackground: {
|
|
387
399
|
name: "changeExportBackground";
|
|
400
|
+
label: string;
|
|
388
401
|
trackEvent: {
|
|
389
402
|
category: "export";
|
|
390
403
|
action: string;
|
|
391
404
|
};
|
|
392
|
-
perform: (_elements: readonly import("../element/types").
|
|
405
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
393
406
|
appState: {
|
|
394
407
|
exportBackground: any;
|
|
395
408
|
contextMenu: {
|
|
@@ -470,6 +483,8 @@ export declare const actionChangeExportBackground: {
|
|
|
470
483
|
} | {
|
|
471
484
|
name: "ttd";
|
|
472
485
|
tab: "mermaid" | "text-to-diagram";
|
|
486
|
+
} | {
|
|
487
|
+
name: "commandPalette";
|
|
473
488
|
} | null;
|
|
474
489
|
defaultSidebarDockedPreference: boolean;
|
|
475
490
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -516,6 +531,9 @@ export declare const actionChangeExportBackground: {
|
|
|
516
531
|
id?: string | undefined;
|
|
517
532
|
socketId?: import("../types").SocketId | undefined;
|
|
518
533
|
isCurrentUser?: boolean | undefined;
|
|
534
|
+
isInCall?: boolean | undefined;
|
|
535
|
+
isSpeaking?: boolean | undefined;
|
|
536
|
+
isMuted?: boolean | undefined;
|
|
519
537
|
}>>;
|
|
520
538
|
showStats: boolean;
|
|
521
539
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -570,7 +588,7 @@ export declare const actionChangeExportBackground: {
|
|
|
570
588
|
userToFollow: import("../types").UserToFollow | null;
|
|
571
589
|
followedBy: Set<import("../types").SocketId>;
|
|
572
590
|
};
|
|
573
|
-
|
|
591
|
+
storeAction: import("../store").StoreActionType;
|
|
574
592
|
};
|
|
575
593
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
576
594
|
} & {
|
|
@@ -578,11 +596,12 @@ export declare const actionChangeExportBackground: {
|
|
|
578
596
|
};
|
|
579
597
|
export declare const actionChangeExportEmbedScene: {
|
|
580
598
|
name: "changeExportEmbedScene";
|
|
599
|
+
label: string;
|
|
581
600
|
trackEvent: {
|
|
582
601
|
category: "export";
|
|
583
602
|
action: string;
|
|
584
603
|
};
|
|
585
|
-
perform: (_elements: readonly import("../element/types").
|
|
604
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
586
605
|
appState: {
|
|
587
606
|
exportEmbedScene: any;
|
|
588
607
|
contextMenu: {
|
|
@@ -663,6 +682,8 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
663
682
|
} | {
|
|
664
683
|
name: "ttd";
|
|
665
684
|
tab: "mermaid" | "text-to-diagram";
|
|
685
|
+
} | {
|
|
686
|
+
name: "commandPalette";
|
|
666
687
|
} | null;
|
|
667
688
|
defaultSidebarDockedPreference: boolean;
|
|
668
689
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -709,6 +730,9 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
709
730
|
id?: string | undefined;
|
|
710
731
|
socketId?: import("../types").SocketId | undefined;
|
|
711
732
|
isCurrentUser?: boolean | undefined;
|
|
733
|
+
isInCall?: boolean | undefined;
|
|
734
|
+
isSpeaking?: boolean | undefined;
|
|
735
|
+
isMuted?: boolean | undefined;
|
|
712
736
|
}>>;
|
|
713
737
|
showStats: boolean;
|
|
714
738
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -763,7 +787,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
763
787
|
userToFollow: import("../types").UserToFollow | null;
|
|
764
788
|
followedBy: Set<import("../types").SocketId>;
|
|
765
789
|
};
|
|
766
|
-
|
|
790
|
+
storeAction: import("../store").StoreActionType;
|
|
767
791
|
};
|
|
768
792
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
769
793
|
} & {
|
|
@@ -771,12 +795,14 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
771
795
|
};
|
|
772
796
|
export declare const actionSaveToActiveFile: {
|
|
773
797
|
name: "saveToActiveFile";
|
|
798
|
+
label: string;
|
|
799
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
774
800
|
trackEvent: {
|
|
775
801
|
category: "export";
|
|
776
802
|
};
|
|
777
803
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
778
|
-
perform: (elements: readonly import("../element/types").
|
|
779
|
-
|
|
804
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
805
|
+
storeAction: import("../store").StoreActionType;
|
|
780
806
|
appState: {
|
|
781
807
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
782
808
|
toast: {
|
|
@@ -861,6 +887,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
861
887
|
} | {
|
|
862
888
|
name: "ttd";
|
|
863
889
|
tab: "mermaid" | "text-to-diagram";
|
|
890
|
+
} | {
|
|
891
|
+
name: "commandPalette";
|
|
864
892
|
} | null;
|
|
865
893
|
defaultSidebarDockedPreference: boolean;
|
|
866
894
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -901,6 +929,9 @@ export declare const actionSaveToActiveFile: {
|
|
|
901
929
|
id?: string | undefined;
|
|
902
930
|
socketId?: import("../types").SocketId | undefined;
|
|
903
931
|
isCurrentUser?: boolean | undefined;
|
|
932
|
+
isInCall?: boolean | undefined;
|
|
933
|
+
isSpeaking?: boolean | undefined;
|
|
934
|
+
isMuted?: boolean | undefined;
|
|
904
935
|
}>>;
|
|
905
936
|
showStats: boolean;
|
|
906
937
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -956,21 +987,23 @@ export declare const actionSaveToActiveFile: {
|
|
|
956
987
|
followedBy: Set<import("../types").SocketId>;
|
|
957
988
|
};
|
|
958
989
|
} | {
|
|
959
|
-
|
|
990
|
+
storeAction: import("../store").StoreActionType;
|
|
960
991
|
appState?: undefined;
|
|
961
992
|
}>;
|
|
962
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
993
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
963
994
|
} & {
|
|
964
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
995
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
965
996
|
};
|
|
966
997
|
export declare const actionSaveFileToDisk: {
|
|
967
998
|
name: "saveFileToDisk";
|
|
999
|
+
label: string;
|
|
1000
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
968
1001
|
viewMode: true;
|
|
969
1002
|
trackEvent: {
|
|
970
1003
|
category: "export";
|
|
971
1004
|
};
|
|
972
|
-
perform: (elements: readonly import("../element/types").
|
|
973
|
-
|
|
1005
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1006
|
+
storeAction: import("../store").StoreActionType;
|
|
974
1007
|
appState: {
|
|
975
1008
|
openDialog: null;
|
|
976
1009
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
@@ -1086,6 +1119,9 @@ export declare const actionSaveFileToDisk: {
|
|
|
1086
1119
|
id?: string | undefined;
|
|
1087
1120
|
socketId?: import("../types").SocketId | undefined;
|
|
1088
1121
|
isCurrentUser?: boolean | undefined;
|
|
1122
|
+
isInCall?: boolean | undefined;
|
|
1123
|
+
isSpeaking?: boolean | undefined;
|
|
1124
|
+
isMuted?: boolean | undefined;
|
|
1089
1125
|
}>>;
|
|
1090
1126
|
showStats: boolean;
|
|
1091
1127
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1141,23 +1177,29 @@ export declare const actionSaveFileToDisk: {
|
|
|
1141
1177
|
followedBy: Set<import("../types").SocketId>;
|
|
1142
1178
|
};
|
|
1143
1179
|
} | {
|
|
1144
|
-
|
|
1180
|
+
storeAction: import("../store").StoreActionType;
|
|
1145
1181
|
appState?: undefined;
|
|
1146
1182
|
}>;
|
|
1147
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1183
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1148
1184
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1149
1185
|
} & {
|
|
1150
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1186
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1151
1187
|
};
|
|
1152
1188
|
export declare const actionLoadScene: {
|
|
1153
1189
|
name: "loadScene";
|
|
1190
|
+
label: string;
|
|
1154
1191
|
trackEvent: {
|
|
1155
1192
|
category: "export";
|
|
1156
1193
|
};
|
|
1157
1194
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1158
|
-
perform: (elements: readonly import("../element/types").
|
|
1159
|
-
elements: import("../element/types").
|
|
1195
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1196
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
1160
1197
|
appState: {
|
|
1198
|
+
viewModeEnabled: boolean;
|
|
1199
|
+
zenModeEnabled: boolean;
|
|
1200
|
+
objectsSnapModeEnabled: boolean;
|
|
1201
|
+
theme: Theme;
|
|
1202
|
+
name: string | null;
|
|
1161
1203
|
contextMenu: {
|
|
1162
1204
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1163
1205
|
top: number;
|
|
@@ -1216,7 +1258,6 @@ export declare const actionLoadScene: {
|
|
|
1216
1258
|
scrollY: number;
|
|
1217
1259
|
cursorButton: "up" | "down";
|
|
1218
1260
|
scrolledOutside: boolean;
|
|
1219
|
-
name: string | null;
|
|
1220
1261
|
isResizing: boolean;
|
|
1221
1262
|
isRotating: boolean;
|
|
1222
1263
|
zoom: Readonly<{
|
|
@@ -1237,6 +1278,8 @@ export declare const actionLoadScene: {
|
|
|
1237
1278
|
} | {
|
|
1238
1279
|
name: "ttd";
|
|
1239
1280
|
tab: "mermaid" | "text-to-diagram";
|
|
1281
|
+
} | {
|
|
1282
|
+
name: "commandPalette";
|
|
1240
1283
|
} | null;
|
|
1241
1284
|
defaultSidebarDockedPreference: boolean;
|
|
1242
1285
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1253,11 +1296,8 @@ export declare const actionLoadScene: {
|
|
|
1253
1296
|
closable?: boolean | undefined;
|
|
1254
1297
|
duration?: number | undefined;
|
|
1255
1298
|
} | null;
|
|
1256
|
-
zenModeEnabled: boolean;
|
|
1257
|
-
theme: Theme;
|
|
1258
1299
|
gridSize: number | null;
|
|
1259
1300
|
previousGridSize: number | null;
|
|
1260
|
-
viewModeEnabled: boolean;
|
|
1261
1301
|
selectedGroupIds: {
|
|
1262
1302
|
[groupId: string]: boolean;
|
|
1263
1303
|
};
|
|
@@ -1279,6 +1319,9 @@ export declare const actionLoadScene: {
|
|
|
1279
1319
|
id?: string | undefined;
|
|
1280
1320
|
socketId?: import("../types").SocketId | undefined;
|
|
1281
1321
|
isCurrentUser?: boolean | undefined;
|
|
1322
|
+
isInCall?: boolean | undefined;
|
|
1323
|
+
isSpeaking?: boolean | undefined;
|
|
1324
|
+
isMuted?: boolean | undefined;
|
|
1282
1325
|
}>>;
|
|
1283
1326
|
showStats: boolean;
|
|
1284
1327
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1329,14 +1372,13 @@ export declare const actionLoadScene: {
|
|
|
1329
1372
|
x: number;
|
|
1330
1373
|
y: number;
|
|
1331
1374
|
} | null;
|
|
1332
|
-
objectsSnapModeEnabled: boolean;
|
|
1333
1375
|
userToFollow: import("../types").UserToFollow | null;
|
|
1334
1376
|
followedBy: Set<import("../types").SocketId>;
|
|
1335
1377
|
};
|
|
1336
1378
|
files: import("../types").BinaryFiles;
|
|
1337
|
-
|
|
1379
|
+
storeAction: import("../store").StoreActionType;
|
|
1338
1380
|
} | {
|
|
1339
|
-
elements: readonly import("../element/types").
|
|
1381
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
1340
1382
|
appState: {
|
|
1341
1383
|
errorMessage: any;
|
|
1342
1384
|
contextMenu: {
|
|
@@ -1417,6 +1459,8 @@ export declare const actionLoadScene: {
|
|
|
1417
1459
|
} | {
|
|
1418
1460
|
name: "ttd";
|
|
1419
1461
|
tab: "mermaid" | "text-to-diagram";
|
|
1462
|
+
} | {
|
|
1463
|
+
name: "commandPalette";
|
|
1420
1464
|
} | null;
|
|
1421
1465
|
defaultSidebarDockedPreference: boolean;
|
|
1422
1466
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1463,6 +1507,9 @@ export declare const actionLoadScene: {
|
|
|
1463
1507
|
id?: string | undefined;
|
|
1464
1508
|
socketId?: import("../types").SocketId | undefined;
|
|
1465
1509
|
isCurrentUser?: boolean | undefined;
|
|
1510
|
+
isInCall?: boolean | undefined;
|
|
1511
|
+
isSpeaking?: boolean | undefined;
|
|
1512
|
+
isMuted?: boolean | undefined;
|
|
1466
1513
|
}>>;
|
|
1467
1514
|
showStats: boolean;
|
|
1468
1515
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1518,19 +1565,20 @@ export declare const actionLoadScene: {
|
|
|
1518
1565
|
followedBy: Set<import("../types").SocketId>;
|
|
1519
1566
|
};
|
|
1520
1567
|
files: import("../types").BinaryFiles;
|
|
1521
|
-
|
|
1568
|
+
storeAction: import("../store").StoreActionType;
|
|
1522
1569
|
}>;
|
|
1523
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1570
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1524
1571
|
} & {
|
|
1525
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1572
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1526
1573
|
};
|
|
1527
1574
|
export declare const actionExportWithDarkMode: {
|
|
1528
1575
|
name: "exportWithDarkMode";
|
|
1576
|
+
label: string;
|
|
1529
1577
|
trackEvent: {
|
|
1530
1578
|
category: "export";
|
|
1531
1579
|
action: string;
|
|
1532
1580
|
};
|
|
1533
|
-
perform: (_elements: readonly import("../element/types").
|
|
1581
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
1534
1582
|
appState: {
|
|
1535
1583
|
exportWithDarkMode: any;
|
|
1536
1584
|
contextMenu: {
|
|
@@ -1611,6 +1659,8 @@ export declare const actionExportWithDarkMode: {
|
|
|
1611
1659
|
} | {
|
|
1612
1660
|
name: "ttd";
|
|
1613
1661
|
tab: "mermaid" | "text-to-diagram";
|
|
1662
|
+
} | {
|
|
1663
|
+
name: "commandPalette";
|
|
1614
1664
|
} | null;
|
|
1615
1665
|
defaultSidebarDockedPreference: boolean;
|
|
1616
1666
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1657,6 +1707,9 @@ export declare const actionExportWithDarkMode: {
|
|
|
1657
1707
|
id?: string | undefined;
|
|
1658
1708
|
socketId?: import("../types").SocketId | undefined;
|
|
1659
1709
|
isCurrentUser?: boolean | undefined;
|
|
1710
|
+
isInCall?: boolean | undefined;
|
|
1711
|
+
isSpeaking?: boolean | undefined;
|
|
1712
|
+
isMuted?: boolean | undefined;
|
|
1660
1713
|
}>>;
|
|
1661
1714
|
showStats: boolean;
|
|
1662
1715
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -1711,7 +1764,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1711
1764
|
userToFollow: import("../types").UserToFollow | null;
|
|
1712
1765
|
followedBy: Set<import("../types").SocketId>;
|
|
1713
1766
|
};
|
|
1714
|
-
|
|
1767
|
+
storeAction: import("../store").StoreActionType;
|
|
1715
1768
|
};
|
|
1716
1769
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1717
1770
|
} & {
|
|
@@ -2,12 +2,14 @@ import { LinearElementEditor } from "../element/linearElementEditor";
|
|
|
2
2
|
import { AppState } from "../types";
|
|
3
3
|
export declare const actionFinalize: {
|
|
4
4
|
name: "finalize";
|
|
5
|
+
label: string;
|
|
5
6
|
trackEvent: false;
|
|
6
|
-
perform: (elements: readonly import("../element/types").
|
|
7
|
-
elements: import("../element/types").
|
|
7
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
8
|
+
elements: import("../element/types").OrderedExcalidrawElement[] | undefined;
|
|
8
9
|
appState: {
|
|
9
10
|
cursorButton: "up";
|
|
10
11
|
editingLinearElement: null;
|
|
12
|
+
selectedLinearElement: null;
|
|
11
13
|
contextMenu: {
|
|
12
14
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
13
15
|
top: number;
|
|
@@ -85,6 +87,8 @@ export declare const actionFinalize: {
|
|
|
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 actionFinalize: {
|
|
|
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;
|
|
@@ -175,7 +182,6 @@ export declare const actionFinalize: {
|
|
|
175
182
|
nameColor: string;
|
|
176
183
|
};
|
|
177
184
|
invertBindingBehaviour: boolean;
|
|
178
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
179
185
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
180
186
|
originSnapOffset: {
|
|
181
187
|
x: number;
|
|
@@ -185,9 +191,9 @@ export declare const actionFinalize: {
|
|
|
185
191
|
userToFollow: import("../types").UserToFollow | null;
|
|
186
192
|
followedBy: Set<import("../types").SocketId>;
|
|
187
193
|
};
|
|
188
|
-
|
|
194
|
+
storeAction: import("../store").StoreActionType;
|
|
189
195
|
} | {
|
|
190
|
-
elements: readonly import("../element/types").
|
|
196
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
191
197
|
appState: {
|
|
192
198
|
cursorButton: "up";
|
|
193
199
|
activeTool: {
|
|
@@ -270,6 +276,8 @@ export declare const actionFinalize: {
|
|
|
270
276
|
} | {
|
|
271
277
|
name: "ttd";
|
|
272
278
|
tab: "mermaid" | "text-to-diagram";
|
|
279
|
+
} | {
|
|
280
|
+
name: "commandPalette";
|
|
273
281
|
} | null;
|
|
274
282
|
defaultSidebarDockedPreference: boolean;
|
|
275
283
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -313,6 +321,9 @@ export declare const actionFinalize: {
|
|
|
313
321
|
id?: string | undefined;
|
|
314
322
|
socketId?: import("../types").SocketId | undefined;
|
|
315
323
|
isCurrentUser?: boolean | undefined;
|
|
324
|
+
isInCall?: boolean | undefined;
|
|
325
|
+
isSpeaking?: boolean | undefined;
|
|
326
|
+
isMuted?: boolean | undefined;
|
|
316
327
|
}>>;
|
|
317
328
|
showStats: boolean;
|
|
318
329
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -365,10 +376,10 @@ export declare const actionFinalize: {
|
|
|
365
376
|
userToFollow: import("../types").UserToFollow | null;
|
|
366
377
|
followedBy: Set<import("../types").SocketId>;
|
|
367
378
|
};
|
|
368
|
-
|
|
379
|
+
storeAction: import("../store").StoreActionType;
|
|
369
380
|
};
|
|
370
|
-
keyTest: (event: import("react").KeyboardEvent<Element
|
|
381
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
371
382
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
372
383
|
} & {
|
|
373
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
384
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
374
385
|
};
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppState } from "../types";
|
|
2
|
+
import { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const actionFlipHorizontal: {
|
|
4
4
|
name: "flipHorizontal";
|
|
5
|
+
label: string;
|
|
6
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
trackEvent: {
|
|
6
8
|
category: "element";
|
|
7
9
|
};
|
|
8
|
-
perform: (elements: readonly
|
|
10
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
9
11
|
elements: ExcalidrawElement[];
|
|
10
12
|
appState: Readonly<AppState>;
|
|
11
|
-
|
|
13
|
+
storeAction: import("../store").StoreActionType;
|
|
12
14
|
};
|
|
13
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
14
|
-
contextItemLabel: string;
|
|
15
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
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 actionFlipVertical: {
|
|
19
20
|
name: "flipVertical";
|
|
21
|
+
label: string;
|
|
22
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
20
23
|
trackEvent: {
|
|
21
24
|
category: "element";
|
|
22
25
|
};
|
|
23
|
-
perform: (elements: readonly
|
|
26
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
24
27
|
elements: ExcalidrawElement[];
|
|
25
28
|
appState: Readonly<AppState>;
|
|
26
|
-
|
|
29
|
+
storeAction: import("../store").StoreActionType;
|
|
27
30
|
};
|
|
28
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
29
|
-
contextItemLabel: string;
|
|
31
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
30
32
|
} & {
|
|
31
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
33
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
32
34
|
};
|