@zsviczian/excalidraw 0.17.1-obsidian-19 → 0.17.1-obsidian-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/excalidraw.development.js +267 -92
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +1103 -854
- package/dist/styles.production.css +16 -15
- package/package.json +5 -3
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +20 -5
- package/types/excalidraw/actions/actionAlign.d.ts +39 -27
- package/types/excalidraw/actions/actionBoundText.d.ts +20 -10
- package/types/excalidraw/actions/actionCanvas.d.ts +148 -52
- package/types/excalidraw/actions/actionClipboard.d.ts +72 -30
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +25 -9
- package/types/excalidraw/actions/actionDistribute.d.ts +10 -8
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +7 -7
- package/types/excalidraw/actions/actionElementLock.d.ts +24 -11
- package/types/excalidraw/actions/actionExport.d.ts +85 -32
- package/types/excalidraw/actions/actionFinalize.d.ts +19 -8
- package/types/excalidraw/actions/actionFlip.d.ts +13 -11
- package/types/excalidraw/actions/actionFrame.d.ts +30 -200
- package/types/excalidraw/actions/actionGroup.d.ts +15 -379
- package/types/excalidraw/actions/actionHistory.d.ts +3 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +9 -3
- package/types/excalidraw/actions/actionLink.d.ts +12 -6
- package/types/excalidraw/actions/actionMenu.d.ts +25 -8
- package/types/excalidraw/actions/actionNavigate.d.ts +14 -3
- package/types/excalidraw/actions/actionProperties.d.ts +114 -32
- package/types/excalidraw/actions/actionSelectAll.d.ts +12 -5
- package/types/excalidraw/actions/actionStyles.d.ts +18 -14
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +12 -5
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +12 -6
- package/types/excalidraw/actions/actionToggleStats.d.ts +12 -5
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -5
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -5
- package/types/excalidraw/actions/actionZindex.d.ts +26 -23
- package/types/excalidraw/actions/manager.d.ts +3 -3
- package/types/excalidraw/actions/shortcuts.d.ts +2 -2
- package/types/excalidraw/actions/types.d.ts +10 -8
- package/types/excalidraw/appState.d.ts +4 -4
- package/types/excalidraw/change.d.ts +191 -0
- package/types/excalidraw/clients.d.ts +10 -1
- package/types/excalidraw/components/Actions.d.ts +3 -1
- package/types/excalidraw/components/App.d.ts +23 -9
- package/types/excalidraw/components/Avatar.d.ts +2 -3
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -0
- package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -0
- package/types/excalidraw/components/CommandPalette/types.d.ts +25 -0
- package/types/excalidraw/components/InlineIcon.d.ts +1 -1
- package/types/excalidraw/components/RadioGroup.d.ts +2 -1
- package/types/excalidraw/components/ToolButton.d.ts +1 -0
- package/types/excalidraw/components/UserList.d.ts +3 -7
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -0
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/types/excalidraw/components/icons.d.ts +26 -1
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +15 -1
- package/types/excalidraw/constants.d.ts +8 -0
- package/types/excalidraw/data/reconcile.d.ts +6 -0
- package/types/excalidraw/data/restore.d.ts +3 -3
- package/types/excalidraw/data/transform.d.ts +1 -1
- package/types/excalidraw/data/url.d.ts +1 -0
- package/types/excalidraw/deburr.d.ts +1 -0
- package/types/excalidraw/element/binding.d.ts +52 -9
- package/types/excalidraw/element/bounds.d.ts +0 -1
- package/types/excalidraw/element/collision.d.ts +14 -19
- package/types/excalidraw/element/embeddable.d.ts +14 -4
- package/types/excalidraw/element/index.d.ts +0 -1
- package/types/excalidraw/element/linearElementEditor.d.ts +17 -12
- package/types/excalidraw/element/mutateElement.d.ts +1 -2
- package/types/excalidraw/element/newElement.d.ts +1 -1
- package/types/excalidraw/element/resizeElements.d.ts +1 -1
- package/types/excalidraw/element/resizeTest.d.ts +4 -4
- package/types/excalidraw/element/textElement.d.ts +1 -7
- package/types/excalidraw/element/transformHandles.d.ts +22 -4
- package/types/excalidraw/element/typeChecks.d.ts +2 -2
- package/types/excalidraw/element/types.d.ts +22 -6
- package/types/excalidraw/errors.d.ts +3 -0
- package/types/excalidraw/fractionalIndex.d.ts +40 -0
- package/types/excalidraw/frame.d.ts +1 -1
- package/types/excalidraw/groups.d.ts +2 -0
- package/types/excalidraw/history.d.ts +34 -46
- package/types/excalidraw/hooks/useEmitter.d.ts +2 -0
- package/types/excalidraw/hooks/useStableCallback.d.ts +4 -0
- package/types/excalidraw/index.d.ts +3 -1
- package/types/excalidraw/keys.d.ts +1 -0
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/types/excalidraw/scene/Scene.d.ts +7 -6
- package/types/excalidraw/scene/types.d.ts +11 -20
- package/types/excalidraw/store.d.ts +99 -0
- package/types/excalidraw/types.d.ts +39 -6
- package/types/excalidraw/utils.d.ts +7 -0
- package/types/excalidraw/webpack.prod.config.d.ts +1 -1
- package/types/excalidraw/zindex.d.ts +2 -2
- package/types/utils/collision.d.ts +4 -0
- package/types/utils/export.d.ts +2 -2
- package/types/utils/geometry/geometry.d.ts +71 -0
- package/types/utils/geometry/shape.d.ts +56 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Collaborator } from "../types";
|
|
2
2
|
export declare const actionGoToCollaborator: {
|
|
3
3
|
name: "goToCollaborator";
|
|
4
|
+
label: string;
|
|
4
5
|
viewMode: true;
|
|
5
6
|
trackEvent: {
|
|
6
7
|
category: "collab";
|
|
7
8
|
};
|
|
8
|
-
perform: (_elements: readonly import("../element/types").
|
|
9
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, collaborator: Collaborator) => {
|
|
9
10
|
appState: {
|
|
10
11
|
userToFollow: null;
|
|
11
12
|
contextMenu: {
|
|
@@ -87,6 +88,8 @@ export declare const actionGoToCollaborator: {
|
|
|
87
88
|
} | {
|
|
88
89
|
name: "ttd";
|
|
89
90
|
tab: "mermaid" | "text-to-diagram";
|
|
91
|
+
} | {
|
|
92
|
+
name: "commandPalette";
|
|
90
93
|
} | null;
|
|
91
94
|
defaultSidebarDockedPreference: boolean;
|
|
92
95
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -133,6 +136,9 @@ export declare const actionGoToCollaborator: {
|
|
|
133
136
|
id?: string | undefined;
|
|
134
137
|
socketId?: import("../types").SocketId | undefined;
|
|
135
138
|
isCurrentUser?: boolean | undefined;
|
|
139
|
+
isInCall?: boolean | undefined;
|
|
140
|
+
isSpeaking?: boolean | undefined;
|
|
141
|
+
isMuted?: boolean | undefined;
|
|
136
142
|
}>>;
|
|
137
143
|
showStats: boolean;
|
|
138
144
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -186,7 +192,7 @@ export declare const actionGoToCollaborator: {
|
|
|
186
192
|
objectsSnapModeEnabled: boolean;
|
|
187
193
|
followedBy: Set<import("../types").SocketId>;
|
|
188
194
|
};
|
|
189
|
-
|
|
195
|
+
storeAction: import("../store").StoreActionType;
|
|
190
196
|
} | {
|
|
191
197
|
appState: {
|
|
192
198
|
userToFollow: {
|
|
@@ -272,6 +278,8 @@ export declare const actionGoToCollaborator: {
|
|
|
272
278
|
} | {
|
|
273
279
|
name: "ttd";
|
|
274
280
|
tab: "mermaid" | "text-to-diagram";
|
|
281
|
+
} | {
|
|
282
|
+
name: "commandPalette";
|
|
275
283
|
} | null;
|
|
276
284
|
defaultSidebarDockedPreference: boolean;
|
|
277
285
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -318,6 +326,9 @@ export declare const actionGoToCollaborator: {
|
|
|
318
326
|
id?: string | undefined;
|
|
319
327
|
socketId?: import("../types").SocketId | undefined;
|
|
320
328
|
isCurrentUser?: boolean | undefined;
|
|
329
|
+
isInCall?: boolean | undefined;
|
|
330
|
+
isSpeaking?: boolean | undefined;
|
|
331
|
+
isMuted?: boolean | undefined;
|
|
321
332
|
}>>;
|
|
322
333
|
showStats: boolean;
|
|
323
334
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -371,7 +382,7 @@ export declare const actionGoToCollaborator: {
|
|
|
371
382
|
objectsSnapModeEnabled: boolean;
|
|
372
383
|
followedBy: Set<import("../types").SocketId>;
|
|
373
384
|
};
|
|
374
|
-
|
|
385
|
+
storeAction: import("../store").StoreActionType;
|
|
375
386
|
};
|
|
376
387
|
PanelComponent: ({ updateData, data, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
377
388
|
} & {
|
|
@@ -4,24 +4,27 @@ 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
|
-
perform: (elements: readonly
|
|
9
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => any;
|
|
9
10
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
} & {
|
|
11
12
|
keyTest?: undefined;
|
|
12
13
|
};
|
|
13
14
|
export declare const actionChangeBackgroundColor: {
|
|
14
15
|
name: "changeBackgroundColor";
|
|
16
|
+
label: string;
|
|
15
17
|
trackEvent: false;
|
|
16
|
-
perform: (elements: readonly
|
|
18
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
17
19
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
20
|
} & {
|
|
19
21
|
keyTest?: undefined;
|
|
20
22
|
};
|
|
21
23
|
export declare const actionChangeFillStyle: {
|
|
22
24
|
name: "changeFillStyle";
|
|
25
|
+
label: string;
|
|
23
26
|
trackEvent: false;
|
|
24
|
-
perform: (elements: readonly
|
|
27
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
25
28
|
elements: ExcalidrawElement[];
|
|
26
29
|
appState: {
|
|
27
30
|
currentItemFillStyle: any;
|
|
@@ -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;
|
|
@@ -203,7 +211,7 @@ export declare const actionChangeFillStyle: {
|
|
|
203
211
|
userToFollow: import("../types").UserToFollow | null;
|
|
204
212
|
followedBy: Set<import("../types").SocketId>;
|
|
205
213
|
};
|
|
206
|
-
|
|
214
|
+
storeAction: import("../store").StoreActionType;
|
|
207
215
|
};
|
|
208
216
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
209
217
|
} & {
|
|
@@ -211,8 +219,9 @@ export declare const actionChangeFillStyle: {
|
|
|
211
219
|
};
|
|
212
220
|
export declare const actionChangeStrokeWidth: {
|
|
213
221
|
name: "changeStrokeWidth";
|
|
222
|
+
label: string;
|
|
214
223
|
trackEvent: false;
|
|
215
|
-
perform: (elements: readonly
|
|
224
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
216
225
|
elements: ExcalidrawElement[];
|
|
217
226
|
appState: {
|
|
218
227
|
currentItemStrokeWidth: any;
|
|
@@ -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;
|
|
@@ -394,7 +408,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
394
408
|
userToFollow: import("../types").UserToFollow | null;
|
|
395
409
|
followedBy: Set<import("../types").SocketId>;
|
|
396
410
|
};
|
|
397
|
-
|
|
411
|
+
storeAction: import("../store").StoreActionType;
|
|
398
412
|
};
|
|
399
413
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
400
414
|
} & {
|
|
@@ -402,8 +416,9 @@ export declare const actionChangeStrokeWidth: {
|
|
|
402
416
|
};
|
|
403
417
|
export declare const actionChangeSloppiness: {
|
|
404
418
|
name: "changeSloppiness";
|
|
419
|
+
label: string;
|
|
405
420
|
trackEvent: false;
|
|
406
|
-
perform: (elements: readonly
|
|
421
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
407
422
|
elements: ExcalidrawElement[];
|
|
408
423
|
appState: {
|
|
409
424
|
currentItemRoughness: any;
|
|
@@ -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;
|
|
@@ -585,7 +605,7 @@ export declare const actionChangeSloppiness: {
|
|
|
585
605
|
userToFollow: import("../types").UserToFollow | null;
|
|
586
606
|
followedBy: Set<import("../types").SocketId>;
|
|
587
607
|
};
|
|
588
|
-
|
|
608
|
+
storeAction: import("../store").StoreActionType;
|
|
589
609
|
};
|
|
590
610
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
591
611
|
} & {
|
|
@@ -593,8 +613,9 @@ export declare const actionChangeSloppiness: {
|
|
|
593
613
|
};
|
|
594
614
|
export declare const actionChangeStrokeStyle: {
|
|
595
615
|
name: "changeStrokeStyle";
|
|
616
|
+
label: string;
|
|
596
617
|
trackEvent: false;
|
|
597
|
-
perform: (elements: readonly
|
|
618
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
598
619
|
elements: ExcalidrawElement[];
|
|
599
620
|
appState: {
|
|
600
621
|
currentItemStrokeStyle: any;
|
|
@@ -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;
|
|
@@ -776,7 +802,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
776
802
|
userToFollow: import("../types").UserToFollow | null;
|
|
777
803
|
followedBy: Set<import("../types").SocketId>;
|
|
778
804
|
};
|
|
779
|
-
|
|
805
|
+
storeAction: import("../store").StoreActionType;
|
|
780
806
|
};
|
|
781
807
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
782
808
|
} & {
|
|
@@ -784,8 +810,9 @@ export declare const actionChangeStrokeStyle: {
|
|
|
784
810
|
};
|
|
785
811
|
export declare const actionChangeOpacity: {
|
|
786
812
|
name: "changeOpacity";
|
|
813
|
+
label: string;
|
|
787
814
|
trackEvent: false;
|
|
788
|
-
perform: (elements: readonly
|
|
815
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
789
816
|
elements: ExcalidrawElement[];
|
|
790
817
|
appState: {
|
|
791
818
|
currentItemOpacity: any;
|
|
@@ -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;
|
|
@@ -967,7 +999,7 @@ export declare const actionChangeOpacity: {
|
|
|
967
999
|
userToFollow: import("../types").UserToFollow | null;
|
|
968
1000
|
followedBy: Set<import("../types").SocketId>;
|
|
969
1001
|
};
|
|
970
|
-
|
|
1002
|
+
storeAction: import("../store").StoreActionType;
|
|
971
1003
|
};
|
|
972
1004
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
973
1005
|
} & {
|
|
@@ -976,8 +1008,9 @@ 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
|
-
perform: (elements: readonly
|
|
1013
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
981
1014
|
elements: ExcalidrawElement[];
|
|
982
1015
|
appState: {
|
|
983
1016
|
currentItemFontSize: number;
|
|
@@ -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;
|
|
@@ -1159,7 +1197,7 @@ export declare const actionChangeFontSize: {
|
|
|
1159
1197
|
userToFollow: import("../types").UserToFollow | null;
|
|
1160
1198
|
followedBy: Set<import("../types").SocketId>;
|
|
1161
1199
|
};
|
|
1162
|
-
|
|
1200
|
+
storeAction: import("../store").StoreActionType;
|
|
1163
1201
|
};
|
|
1164
1202
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1165
1203
|
} & {
|
|
@@ -1167,8 +1205,10 @@ 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
|
-
perform: (elements: readonly
|
|
1211
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1172
1212
|
elements: ExcalidrawElement[];
|
|
1173
1213
|
appState: {
|
|
1174
1214
|
currentItemFontSize: number;
|
|
@@ -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;
|
|
@@ -1350,16 +1395,18 @@ export declare const actionDecreaseFontSize: {
|
|
|
1350
1395
|
userToFollow: import("../types").UserToFollow | null;
|
|
1351
1396
|
followedBy: Set<import("../types").SocketId>;
|
|
1352
1397
|
};
|
|
1353
|
-
|
|
1398
|
+
storeAction: import("../store").StoreActionType;
|
|
1354
1399
|
};
|
|
1355
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1400
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1356
1401
|
} & {
|
|
1357
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1402
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
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
|
-
perform: (elements: readonly
|
|
1409
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1363
1410
|
elements: ExcalidrawElement[];
|
|
1364
1411
|
appState: {
|
|
1365
1412
|
currentItemFontSize: number;
|
|
@@ -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;
|
|
@@ -1541,16 +1593,17 @@ export declare const actionIncreaseFontSize: {
|
|
|
1541
1593
|
userToFollow: import("../types").UserToFollow | null;
|
|
1542
1594
|
followedBy: Set<import("../types").SocketId>;
|
|
1543
1595
|
};
|
|
1544
|
-
|
|
1596
|
+
storeAction: import("../store").StoreActionType;
|
|
1545
1597
|
};
|
|
1546
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1598
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1547
1599
|
} & {
|
|
1548
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1600
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1549
1601
|
};
|
|
1550
1602
|
export declare const actionChangeFontFamily: {
|
|
1551
1603
|
name: "changeFontFamily";
|
|
1604
|
+
label: string;
|
|
1552
1605
|
trackEvent: false;
|
|
1553
|
-
perform: (elements: readonly
|
|
1606
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1554
1607
|
elements: ExcalidrawElement[];
|
|
1555
1608
|
appState: {
|
|
1556
1609
|
currentItemFontFamily: any;
|
|
@@ -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;
|
|
@@ -1732,7 +1790,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1732
1790
|
userToFollow: import("../types").UserToFollow | null;
|
|
1733
1791
|
followedBy: Set<import("../types").SocketId>;
|
|
1734
1792
|
};
|
|
1735
|
-
|
|
1793
|
+
storeAction: import("../store").StoreActionType;
|
|
1736
1794
|
};
|
|
1737
1795
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1738
1796
|
} & {
|
|
@@ -1740,8 +1798,9 @@ export declare const actionChangeFontFamily: {
|
|
|
1740
1798
|
};
|
|
1741
1799
|
export declare const actionChangeTextAlign: {
|
|
1742
1800
|
name: "changeTextAlign";
|
|
1801
|
+
label: string;
|
|
1743
1802
|
trackEvent: false;
|
|
1744
|
-
perform: (elements: readonly
|
|
1803
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1745
1804
|
elements: ExcalidrawElement[];
|
|
1746
1805
|
appState: {
|
|
1747
1806
|
currentItemTextAlign: any;
|
|
@@ -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;
|
|
@@ -1923,7 +1987,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1923
1987
|
userToFollow: import("../types").UserToFollow | null;
|
|
1924
1988
|
followedBy: Set<import("../types").SocketId>;
|
|
1925
1989
|
};
|
|
1926
|
-
|
|
1990
|
+
storeAction: import("../store").StoreActionType;
|
|
1927
1991
|
};
|
|
1928
1992
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1929
1993
|
} & {
|
|
@@ -1931,10 +1995,11 @@ 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
|
};
|
|
1937
|
-
perform: (elements: readonly
|
|
2002
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1938
2003
|
elements: ExcalidrawElement[];
|
|
1939
2004
|
appState: {
|
|
1940
2005
|
contextMenu: {
|
|
@@ -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;
|
|
@@ -2116,7 +2186,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2116
2186
|
userToFollow: import("../types").UserToFollow | null;
|
|
2117
2187
|
followedBy: Set<import("../types").SocketId>;
|
|
2118
2188
|
};
|
|
2119
|
-
|
|
2189
|
+
storeAction: import("../store").StoreActionType;
|
|
2120
2190
|
};
|
|
2121
2191
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2122
2192
|
} & {
|
|
@@ -2124,8 +2194,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2124
2194
|
};
|
|
2125
2195
|
export declare const actionChangeRoundness: {
|
|
2126
2196
|
name: "changeRoundness";
|
|
2197
|
+
label: string;
|
|
2127
2198
|
trackEvent: false;
|
|
2128
|
-
perform: (elements: readonly
|
|
2199
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
2129
2200
|
elements: ExcalidrawElement[];
|
|
2130
2201
|
appState: {
|
|
2131
2202
|
currentItemRoundness: any;
|
|
@@ -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;
|
|
@@ -2307,7 +2383,7 @@ export declare const actionChangeRoundness: {
|
|
|
2307
2383
|
userToFollow: import("../types").UserToFollow | null;
|
|
2308
2384
|
followedBy: Set<import("../types").SocketId>;
|
|
2309
2385
|
};
|
|
2310
|
-
|
|
2386
|
+
storeAction: import("../store").StoreActionType;
|
|
2311
2387
|
};
|
|
2312
2388
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2313
2389
|
} & {
|
|
@@ -2315,8 +2391,9 @@ export declare const actionChangeRoundness: {
|
|
|
2315
2391
|
};
|
|
2316
2392
|
export declare const actionChangeArrowhead: {
|
|
2317
2393
|
name: "changeArrowhead";
|
|
2394
|
+
label: string;
|
|
2318
2395
|
trackEvent: false;
|
|
2319
|
-
perform: (elements: readonly
|
|
2396
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
|
|
2320
2397
|
position: "start" | "end";
|
|
2321
2398
|
type: Arrowhead;
|
|
2322
2399
|
}) => {
|
|
@@ -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;
|
|
@@ -2501,7 +2583,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2501
2583
|
userToFollow: import("../types").UserToFollow | null;
|
|
2502
2584
|
followedBy: Set<import("../types").SocketId>;
|
|
2503
2585
|
};
|
|
2504
|
-
|
|
2586
|
+
storeAction: import("../store").StoreActionType;
|
|
2505
2587
|
};
|
|
2506
2588
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2507
2589
|
} & {
|
|
@@ -2,10 +2,13 @@ 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
|
};
|
|
8
|
-
|
|
10
|
+
viewMode: false;
|
|
11
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => false | {
|
|
9
12
|
appState: {
|
|
10
13
|
selectedLinearElement: LinearElementEditor | null;
|
|
11
14
|
selectedElementIds: Readonly<{
|
|
@@ -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;
|
|
@@ -186,10 +194,9 @@ export declare const actionSelectAll: {
|
|
|
186
194
|
userToFollow: import("../types").UserToFollow | null;
|
|
187
195
|
followedBy: Set<import("../types").SocketId>;
|
|
188
196
|
};
|
|
189
|
-
|
|
197
|
+
storeAction: import("../store").StoreActionType;
|
|
190
198
|
};
|
|
191
|
-
|
|
192
|
-
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
199
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
193
200
|
} & {
|
|
194
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
201
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
195
202
|
};
|