@zsviczian/excalidraw 0.13.0-obsidian-2 → 0.14.0-obsidian
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/README.md +417 -19
- package/dist/excalidraw.development.js +491 -1096
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -102
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +18 -3
- package/types/actions/actionAlign.d.ts +6 -18
- package/types/actions/actionBoundText.d.ts +8 -3
- package/types/actions/actionCanvas.d.ts +62 -30
- package/types/actions/actionClipboard.d.ts +49 -6
- package/types/actions/actionDeleteSelected.d.ts +19 -6
- package/types/actions/actionDistribute.d.ts +2 -6
- package/types/actions/actionDuplicateSelection.d.ts +1 -3
- package/types/actions/actionExport.d.ts +62 -33
- package/types/actions/actionFinalize.d.ts +13 -5
- package/types/actions/actionFlip.d.ts +2 -2
- package/types/actions/actionGroup.d.ts +4 -8
- package/types/actions/actionLinearEditor.d.ts +7 -2
- package/types/actions/actionMenu.d.ts +19 -11
- package/types/actions/actionNavigate.d.ts +1 -3
- package/types/actions/actionProperties.d.ts +91 -52
- package/types/actions/actionStyles.d.ts +6 -1
- package/types/actions/actionToggleGridMode.d.ts +7 -1
- package/types/actions/actionToggleLock.d.ts +6 -1
- package/types/actions/actionToggleStats.d.ts +6 -1
- package/types/actions/actionToggleViewMode.d.ts +7 -1
- package/types/actions/actionToggleZenMode.d.ts +7 -1
- package/types/actions/actionZindex.d.ts +4 -12
- package/types/actions/manager.d.ts +2 -1
- package/types/actions/types.d.ts +2 -4
- package/types/components/App.d.ts +7 -50
- package/types/components/Button.d.ts +15 -0
- package/types/components/CollabButton.d.ts +1 -2
- package/types/components/ContextMenu.d.ts +8 -20
- package/types/components/JSONExportDialog.d.ts +3 -1
- package/types/components/LayerUI.d.ts +2 -3
- package/types/components/LibraryMenuHeaderContent.d.ts +23 -0
- package/types/components/MobileMenu.d.ts +4 -6
- package/types/components/UserList.d.ts +0 -2
- package/types/components/dropdownMenu/DropdownMenu.d.ts +64 -0
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +11 -0
- package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +13 -0
- package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -0
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -0
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +12 -0
- package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -0
- package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -0
- package/types/components/footer/Footer.d.ts +13 -0
- package/types/components/footer/FooterCenter.d.ts +8 -0
- package/types/components/icons.d.ts +1 -1
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -0
- package/types/components/main-menu/DefaultItems.d.ts +44 -0
- package/types/components/main-menu/MainMenu.d.ts +55 -0
- package/types/components/mainMenu/DefaultItems.d.ts +44 -0
- package/types/components/mainMenu/MainMenu.d.ts +63 -0
- package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -0
- package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -0
- package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -0
- package/types/constants.d.ts +0 -3
- package/types/element/Hyperlink.d.ts +8 -5
- package/types/element/linearElementEditor.d.ts +6 -1
- package/types/element/textElement.d.ts +7 -0
- package/types/element/textWysiwyg.d.ts +6 -1
- package/types/excalidraw-app/data/index.d.ts +5 -0
- package/types/excalidraw-app/data/localStorage.d.ts +5 -0
- package/types/keys.d.ts +2 -0
- package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -0
- package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -0
- package/types/packages/excalidraw/index.d.ts +10 -0
- package/types/renderer/easingFunctions.d.ts +6 -0
- package/types/types.d.ts +41 -19
- package/types/utils.d.ts +17 -0
|
@@ -7,6 +7,21 @@ export declare const actionCopy: {
|
|
|
7
7
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
8
8
|
commitToHistory: false;
|
|
9
9
|
};
|
|
10
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => true;
|
|
11
|
+
contextItemLabel: string;
|
|
12
|
+
keyTest: undefined;
|
|
13
|
+
} & {
|
|
14
|
+
keyTest?: undefined;
|
|
15
|
+
};
|
|
16
|
+
export declare const actionPaste: {
|
|
17
|
+
name: "paste";
|
|
18
|
+
trackEvent: {
|
|
19
|
+
category: "element";
|
|
20
|
+
};
|
|
21
|
+
perform: (elements: any, appStates: any, data: any, app: import("../types").AppClassProperties) => {
|
|
22
|
+
commitToHistory: false;
|
|
23
|
+
};
|
|
24
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => true;
|
|
10
25
|
contextItemLabel: string;
|
|
11
26
|
keyTest: undefined;
|
|
12
27
|
} & {
|
|
@@ -21,6 +36,11 @@ export declare const actionCut: {
|
|
|
21
36
|
elements: import("../element/types").ExcalidrawElement[];
|
|
22
37
|
appState: {
|
|
23
38
|
editingLinearElement: null;
|
|
39
|
+
contextMenu: {
|
|
40
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
41
|
+
top: number;
|
|
42
|
+
left: number;
|
|
43
|
+
} | null;
|
|
24
44
|
showWelcomeScreen: boolean;
|
|
25
45
|
isLoading: boolean;
|
|
26
46
|
errorMessage: string | null;
|
|
@@ -76,7 +96,7 @@ export declare const actionCut: {
|
|
|
76
96
|
openMenu: "canvas" | "shape" | null;
|
|
77
97
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
78
98
|
openSidebar: "library" | "customSidebar" | null;
|
|
79
|
-
openDialog: "imageExport" | "help" | null;
|
|
99
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
80
100
|
isSidebarDocked: boolean;
|
|
81
101
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
82
102
|
selectedElementIds: {
|
|
@@ -158,6 +178,11 @@ export declare const actionCut: {
|
|
|
158
178
|
hoverPointIndex: number;
|
|
159
179
|
segmentMidPointHoveredCoords: readonly [number, number] | null;
|
|
160
180
|
};
|
|
181
|
+
contextMenu: {
|
|
182
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
183
|
+
top: number;
|
|
184
|
+
left: number;
|
|
185
|
+
} | null;
|
|
161
186
|
showWelcomeScreen: boolean;
|
|
162
187
|
isLoading: boolean;
|
|
163
188
|
errorMessage: string | null;
|
|
@@ -213,7 +238,7 @@ export declare const actionCut: {
|
|
|
213
238
|
openMenu: "canvas" | "shape" | null;
|
|
214
239
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
215
240
|
openSidebar: "library" | "customSidebar" | null;
|
|
216
|
-
openDialog: "imageExport" | "help" | null;
|
|
241
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
217
242
|
isSidebarDocked: boolean;
|
|
218
243
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
219
244
|
selectedElementIds: {
|
|
@@ -279,6 +304,11 @@ export declare const actionCut: {
|
|
|
279
304
|
};
|
|
280
305
|
multiElement: null;
|
|
281
306
|
selectedElementIds: {};
|
|
307
|
+
contextMenu: {
|
|
308
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
309
|
+
top: number;
|
|
310
|
+
left: number;
|
|
311
|
+
} | null;
|
|
282
312
|
showWelcomeScreen: boolean;
|
|
283
313
|
isLoading: boolean;
|
|
284
314
|
errorMessage: string | null;
|
|
@@ -323,7 +353,7 @@ export declare const actionCut: {
|
|
|
323
353
|
openMenu: "canvas" | "shape" | null;
|
|
324
354
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
325
355
|
openSidebar: "library" | "customSidebar" | null;
|
|
326
|
-
openDialog: "imageExport" | "help" | null;
|
|
356
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
327
357
|
isSidebarDocked: boolean;
|
|
328
358
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
329
359
|
previousSelectedElementIds: {
|
|
@@ -371,6 +401,7 @@ export declare const actionCut: {
|
|
|
371
401
|
};
|
|
372
402
|
commitToHistory: boolean;
|
|
373
403
|
};
|
|
404
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
374
405
|
contextItemLabel: string;
|
|
375
406
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
376
407
|
} & {
|
|
@@ -387,6 +418,11 @@ export declare const actionCopyAsSvg: {
|
|
|
387
418
|
} | {
|
|
388
419
|
appState: {
|
|
389
420
|
errorMessage: any;
|
|
421
|
+
contextMenu: {
|
|
422
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
423
|
+
top: number;
|
|
424
|
+
left: number;
|
|
425
|
+
} | null;
|
|
390
426
|
showWelcomeScreen: boolean;
|
|
391
427
|
isLoading: boolean;
|
|
392
428
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -442,7 +478,7 @@ export declare const actionCopyAsSvg: {
|
|
|
442
478
|
openMenu: "canvas" | "shape" | null;
|
|
443
479
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
444
480
|
openSidebar: "library" | "customSidebar" | null;
|
|
445
|
-
openDialog: "imageExport" | "help" | null;
|
|
481
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
446
482
|
isSidebarDocked: boolean;
|
|
447
483
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
448
484
|
selectedElementIds: {
|
|
@@ -493,6 +529,7 @@ export declare const actionCopyAsSvg: {
|
|
|
493
529
|
};
|
|
494
530
|
commitToHistory: false;
|
|
495
531
|
}>;
|
|
532
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
496
533
|
contextItemLabel: string;
|
|
497
534
|
} & {
|
|
498
535
|
keyTest?: undefined;
|
|
@@ -508,6 +545,11 @@ export declare const actionCopyAsPng: {
|
|
|
508
545
|
} | {
|
|
509
546
|
appState: {
|
|
510
547
|
errorMessage: any;
|
|
548
|
+
contextMenu: {
|
|
549
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
550
|
+
top: number;
|
|
551
|
+
left: number;
|
|
552
|
+
} | null;
|
|
511
553
|
showWelcomeScreen: boolean;
|
|
512
554
|
isLoading: boolean;
|
|
513
555
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -563,7 +605,7 @@ export declare const actionCopyAsPng: {
|
|
|
563
605
|
openMenu: "canvas" | "shape" | null;
|
|
564
606
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
565
607
|
openSidebar: "library" | "customSidebar" | null;
|
|
566
|
-
openDialog: "imageExport" | "help" | null;
|
|
608
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
567
609
|
isSidebarDocked: boolean;
|
|
568
610
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
569
611
|
selectedElementIds: {
|
|
@@ -614,6 +656,7 @@ export declare const actionCopyAsPng: {
|
|
|
614
656
|
};
|
|
615
657
|
commitToHistory: false;
|
|
616
658
|
}>;
|
|
659
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
617
660
|
contextItemLabel: string;
|
|
618
661
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
619
662
|
} & {
|
|
@@ -627,7 +670,7 @@ export declare const copyText: {
|
|
|
627
670
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
628
671
|
commitToHistory: false;
|
|
629
672
|
};
|
|
630
|
-
|
|
673
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
631
674
|
contextItemLabel: string;
|
|
632
675
|
} & {
|
|
633
676
|
keyTest?: undefined;
|
|
@@ -12,6 +12,11 @@ export declare const actionDeleteSelected: {
|
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
appState: {
|
|
14
14
|
editingLinearElement: null;
|
|
15
|
+
contextMenu: {
|
|
16
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
17
|
+
top: number;
|
|
18
|
+
left: number;
|
|
19
|
+
} | null;
|
|
15
20
|
showWelcomeScreen: boolean;
|
|
16
21
|
isLoading: boolean;
|
|
17
22
|
errorMessage: string | null;
|
|
@@ -67,7 +72,7 @@ export declare const actionDeleteSelected: {
|
|
|
67
72
|
openMenu: "canvas" | "shape" | null;
|
|
68
73
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
69
74
|
openSidebar: "library" | "customSidebar" | null;
|
|
70
|
-
openDialog: "imageExport" | "help" | null;
|
|
75
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
71
76
|
isSidebarDocked: boolean;
|
|
72
77
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
73
78
|
selectedElementIds: {
|
|
@@ -149,6 +154,11 @@ export declare const actionDeleteSelected: {
|
|
|
149
154
|
hoverPointIndex: number;
|
|
150
155
|
segmentMidPointHoveredCoords: readonly [number, number] | null;
|
|
151
156
|
};
|
|
157
|
+
contextMenu: {
|
|
158
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
159
|
+
top: number;
|
|
160
|
+
left: number;
|
|
161
|
+
} | null;
|
|
152
162
|
showWelcomeScreen: boolean;
|
|
153
163
|
isLoading: boolean;
|
|
154
164
|
errorMessage: string | null;
|
|
@@ -204,7 +214,7 @@ export declare const actionDeleteSelected: {
|
|
|
204
214
|
openMenu: "canvas" | "shape" | null;
|
|
205
215
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
206
216
|
openSidebar: "library" | "customSidebar" | null;
|
|
207
|
-
openDialog: "imageExport" | "help" | null;
|
|
217
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
208
218
|
isSidebarDocked: boolean;
|
|
209
219
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
210
220
|
selectedElementIds: {
|
|
@@ -270,6 +280,11 @@ export declare const actionDeleteSelected: {
|
|
|
270
280
|
};
|
|
271
281
|
multiElement: null;
|
|
272
282
|
selectedElementIds: {};
|
|
283
|
+
contextMenu: {
|
|
284
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
285
|
+
top: number;
|
|
286
|
+
left: number;
|
|
287
|
+
} | null;
|
|
273
288
|
showWelcomeScreen: boolean;
|
|
274
289
|
isLoading: boolean;
|
|
275
290
|
errorMessage: string | null;
|
|
@@ -314,7 +329,7 @@ export declare const actionDeleteSelected: {
|
|
|
314
329
|
openMenu: "canvas" | "shape" | null;
|
|
315
330
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
316
331
|
openSidebar: "library" | "customSidebar" | null;
|
|
317
|
-
openDialog: "imageExport" | "help" | null;
|
|
332
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
318
333
|
isSidebarDocked: boolean;
|
|
319
334
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
320
335
|
previousSelectedElementIds: {
|
|
@@ -364,9 +379,7 @@ export declare const actionDeleteSelected: {
|
|
|
364
379
|
};
|
|
365
380
|
contextItemLabel: string;
|
|
366
381
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
367
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
368
|
-
isInHamburgerMenu: boolean;
|
|
369
|
-
}) => JSX.Element;
|
|
382
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
370
383
|
} & {
|
|
371
384
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
372
385
|
};
|
|
@@ -12,9 +12,7 @@ export declare const distributeHorizontally: {
|
|
|
12
12
|
commitToHistory: true;
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
16
|
-
isInHamburgerMenu: boolean;
|
|
17
|
-
}) => JSX.Element;
|
|
15
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
18
16
|
} & {
|
|
19
17
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
20
18
|
};
|
|
@@ -29,9 +27,7 @@ export declare const distributeVertically: {
|
|
|
29
27
|
commitToHistory: true;
|
|
30
28
|
};
|
|
31
29
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
32
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
33
|
-
isInHamburgerMenu: boolean;
|
|
34
|
-
}) => JSX.Element;
|
|
30
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
35
31
|
} & {
|
|
36
32
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
37
33
|
};
|
|
@@ -16,9 +16,7 @@ export declare const actionDuplicateSelection: {
|
|
|
16
16
|
};
|
|
17
17
|
contextItemLabel: string;
|
|
18
18
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
19
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
20
|
-
isInHamburgerMenu: boolean;
|
|
21
|
-
}) => JSX.Element;
|
|
19
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
22
20
|
} & {
|
|
23
21
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
24
22
|
};
|
|
@@ -6,6 +6,11 @@ export declare const actionChangeProjectName: {
|
|
|
6
6
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
7
7
|
appState: {
|
|
8
8
|
name: any;
|
|
9
|
+
contextMenu: {
|
|
10
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
11
|
+
top: number;
|
|
12
|
+
left: number;
|
|
13
|
+
} | null;
|
|
9
14
|
showWelcomeScreen: boolean;
|
|
10
15
|
isLoading: boolean;
|
|
11
16
|
errorMessage: string | null;
|
|
@@ -61,7 +66,7 @@ export declare const actionChangeProjectName: {
|
|
|
61
66
|
openMenu: "canvas" | "shape" | null;
|
|
62
67
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
63
68
|
openSidebar: "library" | "customSidebar" | null;
|
|
64
|
-
openDialog: "imageExport" | "help" | null;
|
|
69
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
65
70
|
isSidebarDocked: boolean;
|
|
66
71
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
67
72
|
selectedElementIds: {
|
|
@@ -112,9 +117,7 @@ export declare const actionChangeProjectName: {
|
|
|
112
117
|
};
|
|
113
118
|
commitToHistory: false;
|
|
114
119
|
};
|
|
115
|
-
PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps
|
|
116
|
-
isInHamburgerMenu: boolean;
|
|
117
|
-
}) => JSX.Element;
|
|
120
|
+
PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
118
121
|
} & {
|
|
119
122
|
keyTest?: undefined;
|
|
120
123
|
};
|
|
@@ -127,6 +130,11 @@ export declare const actionChangeExportScale: {
|
|
|
127
130
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
128
131
|
appState: {
|
|
129
132
|
exportScale: any;
|
|
133
|
+
contextMenu: {
|
|
134
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
135
|
+
top: number;
|
|
136
|
+
left: number;
|
|
137
|
+
} | null;
|
|
130
138
|
showWelcomeScreen: boolean;
|
|
131
139
|
isLoading: boolean;
|
|
132
140
|
errorMessage: string | null;
|
|
@@ -182,7 +190,7 @@ export declare const actionChangeExportScale: {
|
|
|
182
190
|
openMenu: "canvas" | "shape" | null;
|
|
183
191
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
184
192
|
openSidebar: "library" | "customSidebar" | null;
|
|
185
|
-
openDialog: "imageExport" | "help" | null;
|
|
193
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
186
194
|
isSidebarDocked: boolean;
|
|
187
195
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
188
196
|
selectedElementIds: {
|
|
@@ -233,9 +241,7 @@ export declare const actionChangeExportScale: {
|
|
|
233
241
|
};
|
|
234
242
|
commitToHistory: false;
|
|
235
243
|
};
|
|
236
|
-
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps
|
|
237
|
-
isInHamburgerMenu: boolean;
|
|
238
|
-
}) => JSX.Element;
|
|
244
|
+
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
239
245
|
} & {
|
|
240
246
|
keyTest?: undefined;
|
|
241
247
|
};
|
|
@@ -248,6 +254,11 @@ export declare const actionChangeExportBackground: {
|
|
|
248
254
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
249
255
|
appState: {
|
|
250
256
|
exportBackground: any;
|
|
257
|
+
contextMenu: {
|
|
258
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
259
|
+
top: number;
|
|
260
|
+
left: number;
|
|
261
|
+
} | null;
|
|
251
262
|
showWelcomeScreen: boolean;
|
|
252
263
|
isLoading: boolean;
|
|
253
264
|
errorMessage: string | null;
|
|
@@ -303,7 +314,7 @@ export declare const actionChangeExportBackground: {
|
|
|
303
314
|
openMenu: "canvas" | "shape" | null;
|
|
304
315
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
305
316
|
openSidebar: "library" | "customSidebar" | null;
|
|
306
|
-
openDialog: "imageExport" | "help" | null;
|
|
317
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
307
318
|
isSidebarDocked: boolean;
|
|
308
319
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
309
320
|
selectedElementIds: {
|
|
@@ -354,9 +365,7 @@ export declare const actionChangeExportBackground: {
|
|
|
354
365
|
};
|
|
355
366
|
commitToHistory: false;
|
|
356
367
|
};
|
|
357
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps
|
|
358
|
-
isInHamburgerMenu: boolean;
|
|
359
|
-
}) => JSX.Element;
|
|
368
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
360
369
|
} & {
|
|
361
370
|
keyTest?: undefined;
|
|
362
371
|
};
|
|
@@ -369,6 +378,11 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
369
378
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
370
379
|
appState: {
|
|
371
380
|
exportEmbedScene: any;
|
|
381
|
+
contextMenu: {
|
|
382
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
383
|
+
top: number;
|
|
384
|
+
left: number;
|
|
385
|
+
} | null;
|
|
372
386
|
showWelcomeScreen: boolean;
|
|
373
387
|
isLoading: boolean;
|
|
374
388
|
errorMessage: string | null;
|
|
@@ -424,7 +438,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
424
438
|
openMenu: "canvas" | "shape" | null;
|
|
425
439
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
426
440
|
openSidebar: "library" | "customSidebar" | null;
|
|
427
|
-
openDialog: "imageExport" | "help" | null;
|
|
441
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
428
442
|
isSidebarDocked: boolean;
|
|
429
443
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
430
444
|
selectedElementIds: {
|
|
@@ -475,9 +489,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
475
489
|
};
|
|
476
490
|
commitToHistory: false;
|
|
477
491
|
};
|
|
478
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps
|
|
479
|
-
isInHamburgerMenu: boolean;
|
|
480
|
-
}) => JSX.Element;
|
|
492
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
481
493
|
} & {
|
|
482
494
|
keyTest?: undefined;
|
|
483
495
|
};
|
|
@@ -486,6 +498,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
486
498
|
trackEvent: {
|
|
487
499
|
category: "export";
|
|
488
500
|
};
|
|
501
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
489
502
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
490
503
|
commitToHistory: false;
|
|
491
504
|
appState: {
|
|
@@ -493,6 +506,11 @@ export declare const actionSaveToActiveFile: {
|
|
|
493
506
|
toast: {
|
|
494
507
|
message: string;
|
|
495
508
|
} | null;
|
|
509
|
+
contextMenu: {
|
|
510
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
511
|
+
top: number;
|
|
512
|
+
left: number;
|
|
513
|
+
} | null;
|
|
496
514
|
showWelcomeScreen: boolean;
|
|
497
515
|
isLoading: boolean;
|
|
498
516
|
errorMessage: string | null;
|
|
@@ -549,7 +567,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
549
567
|
openMenu: "canvas" | "shape" | null;
|
|
550
568
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
551
569
|
openSidebar: "library" | "customSidebar" | null;
|
|
552
|
-
openDialog: "imageExport" | "help" | null;
|
|
570
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
553
571
|
isSidebarDocked: boolean;
|
|
554
572
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
555
573
|
selectedElementIds: {
|
|
@@ -597,9 +615,6 @@ export declare const actionSaveToActiveFile: {
|
|
|
597
615
|
appState?: undefined;
|
|
598
616
|
}>;
|
|
599
617
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
600
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps & {
|
|
601
|
-
isInHamburgerMenu: boolean;
|
|
602
|
-
}) => JSX.Element;
|
|
603
618
|
} & {
|
|
604
619
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
605
620
|
};
|
|
@@ -613,6 +628,11 @@ export declare const actionSaveFileToDisk: {
|
|
|
613
628
|
commitToHistory: false;
|
|
614
629
|
appState: {
|
|
615
630
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
631
|
+
contextMenu: {
|
|
632
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
633
|
+
top: number;
|
|
634
|
+
left: number;
|
|
635
|
+
} | null;
|
|
616
636
|
showWelcomeScreen: boolean;
|
|
617
637
|
isLoading: boolean;
|
|
618
638
|
errorMessage: string | null;
|
|
@@ -669,7 +689,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
669
689
|
openMenu: "canvas" | "shape" | null;
|
|
670
690
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
671
691
|
openSidebar: "library" | "customSidebar" | null;
|
|
672
|
-
openDialog: "imageExport" | "help" | null;
|
|
692
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
673
693
|
isSidebarDocked: boolean;
|
|
674
694
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
675
695
|
selectedElementIds: {
|
|
@@ -722,9 +742,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
722
742
|
appState?: undefined;
|
|
723
743
|
}>;
|
|
724
744
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
725
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps
|
|
726
|
-
isInHamburgerMenu: boolean;
|
|
727
|
-
}) => JSX.Element;
|
|
745
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
728
746
|
} & {
|
|
729
747
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
730
748
|
};
|
|
@@ -733,6 +751,7 @@ export declare const actionLoadScene: {
|
|
|
733
751
|
trackEvent: {
|
|
734
752
|
category: "export";
|
|
735
753
|
};
|
|
754
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
736
755
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
737
756
|
elements: import("../element/types").ExcalidrawElement[];
|
|
738
757
|
appState: {
|
|
@@ -749,6 +768,11 @@ export declare const actionLoadScene: {
|
|
|
749
768
|
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
750
769
|
locked: boolean;
|
|
751
770
|
};
|
|
771
|
+
contextMenu: {
|
|
772
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
773
|
+
top: number;
|
|
774
|
+
left: number;
|
|
775
|
+
} | null;
|
|
752
776
|
showWelcomeScreen: boolean;
|
|
753
777
|
isLoading: boolean;
|
|
754
778
|
errorMessage: string | null;
|
|
@@ -793,7 +817,7 @@ export declare const actionLoadScene: {
|
|
|
793
817
|
openMenu: "canvas" | "shape" | null;
|
|
794
818
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
795
819
|
openSidebar: "library" | "customSidebar" | null;
|
|
796
|
-
openDialog: "imageExport" | "help" | null;
|
|
820
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
797
821
|
isSidebarDocked: boolean;
|
|
798
822
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
799
823
|
selectedElementIds: {
|
|
@@ -843,6 +867,11 @@ export declare const actionLoadScene: {
|
|
|
843
867
|
elements: readonly import("../element/types").ExcalidrawElement[];
|
|
844
868
|
appState: {
|
|
845
869
|
errorMessage: any;
|
|
870
|
+
contextMenu: {
|
|
871
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
872
|
+
top: number;
|
|
873
|
+
left: number;
|
|
874
|
+
} | null;
|
|
846
875
|
showWelcomeScreen: boolean;
|
|
847
876
|
isLoading: boolean;
|
|
848
877
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -898,7 +927,7 @@ export declare const actionLoadScene: {
|
|
|
898
927
|
openMenu: "canvas" | "shape" | null;
|
|
899
928
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
900
929
|
openSidebar: "library" | "customSidebar" | null;
|
|
901
|
-
openDialog: "imageExport" | "help" | null;
|
|
930
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
902
931
|
isSidebarDocked: boolean;
|
|
903
932
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
904
933
|
selectedElementIds: {
|
|
@@ -951,9 +980,6 @@ export declare const actionLoadScene: {
|
|
|
951
980
|
commitToHistory: false;
|
|
952
981
|
}>;
|
|
953
982
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
954
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
|
|
955
|
-
isInHamburgerMenu: boolean;
|
|
956
|
-
}) => JSX.Element;
|
|
957
983
|
} & {
|
|
958
984
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
959
985
|
};
|
|
@@ -966,6 +992,11 @@ export declare const actionExportWithDarkMode: {
|
|
|
966
992
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
967
993
|
appState: {
|
|
968
994
|
exportWithDarkMode: any;
|
|
995
|
+
contextMenu: {
|
|
996
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
997
|
+
top: number;
|
|
998
|
+
left: number;
|
|
999
|
+
} | null;
|
|
969
1000
|
showWelcomeScreen: boolean;
|
|
970
1001
|
isLoading: boolean;
|
|
971
1002
|
errorMessage: string | null;
|
|
@@ -1021,7 +1052,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1021
1052
|
openMenu: "canvas" | "shape" | null;
|
|
1022
1053
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1023
1054
|
openSidebar: "library" | "customSidebar" | null;
|
|
1024
|
-
openDialog: "imageExport" | "help" | null;
|
|
1055
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1025
1056
|
isSidebarDocked: boolean;
|
|
1026
1057
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1027
1058
|
selectedElementIds: {
|
|
@@ -1072,9 +1103,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1072
1103
|
};
|
|
1073
1104
|
commitToHistory: false;
|
|
1074
1105
|
};
|
|
1075
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps
|
|
1076
|
-
isInHamburgerMenu: boolean;
|
|
1077
|
-
}) => JSX.Element;
|
|
1106
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1078
1107
|
} & {
|
|
1079
1108
|
keyTest?: undefined;
|
|
1080
1109
|
};
|
|
@@ -9,6 +9,11 @@ export declare const actionFinalize: {
|
|
|
9
9
|
appState: {
|
|
10
10
|
cursorButton: "up";
|
|
11
11
|
editingLinearElement: null;
|
|
12
|
+
contextMenu: {
|
|
13
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
14
|
+
top: number;
|
|
15
|
+
left: number;
|
|
16
|
+
} | null;
|
|
12
17
|
showWelcomeScreen: boolean;
|
|
13
18
|
isLoading: boolean;
|
|
14
19
|
errorMessage: string | null;
|
|
@@ -63,7 +68,7 @@ export declare const actionFinalize: {
|
|
|
63
68
|
openMenu: "canvas" | "shape" | null;
|
|
64
69
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
65
70
|
openSidebar: "library" | "customSidebar" | null;
|
|
66
|
-
openDialog: "imageExport" | "help" | null;
|
|
71
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
67
72
|
isSidebarDocked: boolean;
|
|
68
73
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
69
74
|
selectedElementIds: {
|
|
@@ -138,6 +143,11 @@ export declare const actionFinalize: {
|
|
|
138
143
|
};
|
|
139
144
|
selectedLinearElement: LinearElementEditor | null;
|
|
140
145
|
pendingImageElementId: null;
|
|
146
|
+
contextMenu: {
|
|
147
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
148
|
+
top: number;
|
|
149
|
+
left: number;
|
|
150
|
+
} | null;
|
|
141
151
|
showWelcomeScreen: boolean;
|
|
142
152
|
isLoading: boolean;
|
|
143
153
|
errorMessage: string | null;
|
|
@@ -177,7 +187,7 @@ export declare const actionFinalize: {
|
|
|
177
187
|
openMenu: "canvas" | "shape" | null;
|
|
178
188
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
179
189
|
openSidebar: "library" | "customSidebar" | null;
|
|
180
|
-
openDialog: "imageExport" | "help" | null;
|
|
190
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
181
191
|
isSidebarDocked: boolean;
|
|
182
192
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
183
193
|
previousSelectedElementIds: {
|
|
@@ -224,9 +234,7 @@ export declare const actionFinalize: {
|
|
|
224
234
|
commitToHistory: boolean;
|
|
225
235
|
};
|
|
226
236
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
227
|
-
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps
|
|
228
|
-
isInHamburgerMenu: boolean;
|
|
229
|
-
}) => JSX.Element;
|
|
237
|
+
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
230
238
|
} & {
|
|
231
239
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
232
240
|
};
|
|
@@ -13,7 +13,7 @@ export declare const actionFlipHorizontal: {
|
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
15
|
contextItemLabel: string;
|
|
16
|
-
|
|
16
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
19
19
|
};
|
|
@@ -29,7 +29,7 @@ export declare const actionFlipVertical: {
|
|
|
29
29
|
};
|
|
30
30
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
31
31
|
contextItemLabel: string;
|
|
32
|
-
|
|
32
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
33
33
|
} & {
|
|
34
34
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
35
35
|
};
|
|
@@ -16,11 +16,9 @@ export declare const actionGroup: {
|
|
|
16
16
|
commitToHistory: true;
|
|
17
17
|
};
|
|
18
18
|
contextItemLabel: string;
|
|
19
|
-
|
|
19
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
20
20
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
21
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
22
|
-
isInHamburgerMenu: boolean;
|
|
23
|
-
}) => JSX.Element;
|
|
21
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
24
22
|
} & {
|
|
25
23
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
26
24
|
};
|
|
@@ -40,10 +38,8 @@ export declare const actionUngroup: {
|
|
|
40
38
|
};
|
|
41
39
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
42
40
|
contextItemLabel: string;
|
|
43
|
-
|
|
44
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
45
|
-
isInHamburgerMenu: boolean;
|
|
46
|
-
}) => JSX.Element;
|
|
41
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
42
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
47
43
|
} & {
|
|
48
44
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
49
45
|
};
|