@zsviczian/excalidraw 0.15.2-obsidian-1 → 0.15.2-obsidian-3
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 +1438 -364
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +2 -2
- package/types/actions/actionAddToLibrary.d.ts +48 -24
- package/types/actions/actionBoundText.d.ts +32 -16
- package/types/actions/actionCanvas.d.ts +160 -80
- package/types/actions/actionClipboard.d.ts +80 -40
- package/types/actions/actionDeleteSelected.d.ts +48 -24
- package/types/actions/actionElementLock.d.ts +287 -0
- package/types/actions/actionExport.d.ts +145 -73
- package/types/actions/actionFinalize.d.ts +32 -16
- package/types/actions/actionFlip.d.ts +2 -4
- package/types/actions/actionHistory.d.ts +1 -1
- package/types/actions/actionLinearEditor.d.ts +16 -8
- package/types/actions/actionMenu.d.ts +48 -24
- package/types/actions/actionProperties.d.ts +210 -106
- package/types/actions/actionStyles.d.ts +16 -8
- package/types/actions/actionToggleGridMode.d.ts +16 -8
- package/types/actions/actionToggleLock.d.ts +5 -2
- package/types/actions/actionToggleStats.d.ts +16 -8
- package/types/actions/actionToggleViewMode.d.ts +16 -8
- package/types/actions/actionToggleZenMode.d.ts +16 -8
- package/types/actions/index.d.ts +1 -1
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +7 -7
- package/types/appState.d.ts +5 -2
- package/types/charts.d.ts +2 -2
- package/types/clients.d.ts +4 -1
- package/types/clipboard.d.ts +2 -2
- package/types/colors.d.ts +59 -5
- package/types/components/Actions.d.ts +5 -5
- package/types/components/App.d.ts +13 -3
- package/types/components/Avatar.d.ts +1 -1
- package/types/components/Button.d.ts +3 -1
- package/types/components/ColorPicker/ColorInput.d.ts +7 -0
- package/types/components/ColorPicker/ColorPicker.d.ts +18 -0
- package/types/components/ColorPicker/CustomColorList.d.ts +8 -0
- package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -0
- package/types/components/ColorPicker/Picker.d.ts +16 -0
- package/types/components/ColorPicker/PickerColorList.d.ts +10 -0
- package/types/components/ColorPicker/PickerHeading.d.ts +5 -0
- package/types/components/ColorPicker/ShadeList.d.ts +8 -0
- package/types/components/ColorPicker/TopPicks.d.ts +9 -0
- package/types/components/ColorPicker/colorPickerUtils.d.ts +41 -0
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +16 -0
- package/types/components/ContextMenu.d.ts +3 -3
- package/types/components/DefaultSidebar.d.ts +30 -0
- package/types/components/Dialog.d.ts +2 -2
- package/types/components/FilledButton.d.ts +16 -0
- package/types/components/FixedSideContainer.d.ts +1 -1
- package/types/components/HandButton.d.ts +1 -1
- package/types/components/HelpButton.d.ts +1 -1
- package/types/components/HintViewer.d.ts +2 -2
- package/types/components/ImageExportDialog.d.ts +8 -13
- package/types/components/Island.d.ts +1 -1
- package/types/components/JSONExportDialog.d.ts +4 -4
- package/types/components/LayerUI.d.ts +4 -10
- package/types/components/LibraryMenu.d.ts +33 -14
- package/types/components/LibraryMenuBrowseButton.d.ts +2 -2
- package/types/components/LibraryMenuControlButtons.d.ts +9 -0
- package/types/components/LibraryMenuHeaderContent.d.ts +11 -28
- package/types/components/LibraryMenuItems.d.ts +6 -7
- package/types/components/LibraryMenuSection.d.ts +22 -0
- package/types/components/LibraryUnit.d.ts +7 -3
- package/types/components/LockButton.d.ts +1 -1
- package/types/components/MobileMenu.d.ts +4 -4
- package/types/components/PasteChartDialog.d.ts +4 -5
- package/types/components/PenModeButton.d.ts +1 -1
- package/types/components/Popover.d.ts +1 -1
- package/types/components/ProjectName.d.ts +2 -1
- package/types/components/PublishLibrary.d.ts +2 -2
- package/types/components/RadioGroup.d.ts +12 -0
- package/types/components/Sidebar/Sidebar.d.ts +68 -45
- package/types/components/Sidebar/SidebarHeader.d.ts +6 -19
- package/types/components/Sidebar/SidebarTab.d.ts +9 -0
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +10 -0
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +7 -0
- package/types/components/Sidebar/SidebarTabs.d.ts +7 -0
- package/types/components/Sidebar/SidebarTrigger.d.ts +6 -0
- package/types/components/Sidebar/common.d.ts +24 -7
- package/types/components/Spinner.d.ts +2 -1
- package/types/components/Stack.d.ts +4 -3
- package/types/components/Stats.d.ts +3 -3
- package/types/components/Switch.d.ts +9 -0
- package/types/components/ToolButton.d.ts +3 -3
- package/types/components/Tooltip.d.ts +1 -1
- package/types/components/Trans.d.ts +8 -0
- package/types/components/footer/Footer.d.ts +2 -2
- package/types/components/icons.d.ts +7 -1
- package/types/constants.d.ts +10 -0
- package/types/context/tunnels.d.ts +18 -0
- package/types/context/ui-appState.d.ts +4 -0
- package/types/data/encode.d.ts +1 -1
- package/types/data/filesystem.d.ts +1 -1
- package/types/data/library.d.ts +2 -0
- package/types/data/restore.d.ts +2 -2
- package/types/data/types.d.ts +3 -5
- package/types/element/Hyperlink.d.ts +18 -10
- package/types/element/binding.d.ts +2 -2
- package/types/element/bounds.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +16 -8
- package/types/element/mutateElement.d.ts +1 -1
- package/types/element/newElement.d.ts +7 -2
- package/types/element/resizeElements.d.ts +1 -0
- package/types/element/showSelectedShapeActions.d.ts +2 -2
- package/types/element/textElement.d.ts +2 -2
- package/types/element/transformHandles.d.ts +5 -5
- package/types/element/types.d.ts +35 -35
- package/types/errors.d.ts +1 -1
- package/types/ga.d.ts +5 -5
- package/types/hooks/useLibraryItemSvg.d.ts +31 -0
- package/types/hooks/useOutsideClick.d.ts +1 -1
- package/types/hooks/useScrollPosition.d.ts +2 -0
- package/types/hooks/useTransition.d.ts +2 -0
- package/types/i18n.d.ts +2 -2
- package/types/keys.d.ts +1 -1
- package/types/packages/excalidraw/index.d.ts +3 -2
- package/types/packages/utils.d.ts +3 -3
- package/types/renderer/easingFunctions.d.ts +1 -1
- package/types/renderer/renderElement.d.ts +2 -2
- package/types/scene/Scene.d.ts +4 -4
- package/types/scene/selection.d.ts +4 -4
- package/types/scene/types.d.ts +4 -4
- package/types/types.d.ts +65 -46
- package/types/utility-types.d.ts +13 -13
- package/types/utils.d.ts +5 -5
|
@@ -63,10 +63,13 @@ export declare const actionChangeProjectName: {
|
|
|
63
63
|
value: import("../types").NormalizedZoomValue;
|
|
64
64
|
}>;
|
|
65
65
|
openMenu: "canvas" | "shape" | null;
|
|
66
|
-
openPopup: "
|
|
67
|
-
openSidebar:
|
|
66
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
67
|
+
openSidebar: {
|
|
68
|
+
name: string;
|
|
69
|
+
tab?: string | undefined;
|
|
70
|
+
} | null;
|
|
68
71
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
69
|
-
|
|
72
|
+
defaultSidebarDockedPreference: boolean;
|
|
70
73
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
71
74
|
selectedElementIds: {
|
|
72
75
|
[id: string]: boolean;
|
|
@@ -108,11 +111,16 @@ export declare const actionChangeProjectName: {
|
|
|
108
111
|
showHyperlinkPopup: false | "info" | "editor";
|
|
109
112
|
linkOpacity: number;
|
|
110
113
|
trayModeEnabled: boolean;
|
|
111
|
-
colorPalette
|
|
112
|
-
canvasBackground
|
|
113
|
-
elementBackground
|
|
114
|
-
elementStroke
|
|
115
|
-
|
|
114
|
+
colorPalette?: {
|
|
115
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
116
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
117
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
118
|
+
topPicks: {
|
|
119
|
+
canvasBackground: [string, string, string, string, string];
|
|
120
|
+
elementStroke: [string, string, string, string, string];
|
|
121
|
+
elementBackground: [string, string, string, string, string];
|
|
122
|
+
};
|
|
123
|
+
} | undefined;
|
|
116
124
|
allowWheelZoom?: boolean | undefined;
|
|
117
125
|
allowPinchZoom?: boolean | undefined;
|
|
118
126
|
pinnedScripts?: string[] | undefined;
|
|
@@ -126,7 +134,7 @@ export declare const actionChangeProjectName: {
|
|
|
126
134
|
};
|
|
127
135
|
commitToHistory: false;
|
|
128
136
|
};
|
|
129
|
-
PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
137
|
+
PanelComponent: ({ appState, updateData, appProps, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
130
138
|
} & {
|
|
131
139
|
keyTest?: undefined;
|
|
132
140
|
};
|
|
@@ -196,10 +204,13 @@ export declare const actionChangeExportScale: {
|
|
|
196
204
|
value: import("../types").NormalizedZoomValue;
|
|
197
205
|
}>;
|
|
198
206
|
openMenu: "canvas" | "shape" | null;
|
|
199
|
-
openPopup: "
|
|
200
|
-
openSidebar:
|
|
207
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
208
|
+
openSidebar: {
|
|
209
|
+
name: string;
|
|
210
|
+
tab?: string | undefined;
|
|
211
|
+
} | null;
|
|
201
212
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
202
|
-
|
|
213
|
+
defaultSidebarDockedPreference: boolean;
|
|
203
214
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
204
215
|
selectedElementIds: {
|
|
205
216
|
[id: string]: boolean;
|
|
@@ -241,11 +252,16 @@ export declare const actionChangeExportScale: {
|
|
|
241
252
|
showHyperlinkPopup: false | "info" | "editor";
|
|
242
253
|
linkOpacity: number;
|
|
243
254
|
trayModeEnabled: boolean;
|
|
244
|
-
colorPalette
|
|
245
|
-
canvasBackground
|
|
246
|
-
elementBackground
|
|
247
|
-
elementStroke
|
|
248
|
-
|
|
255
|
+
colorPalette?: {
|
|
256
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
257
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
258
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
259
|
+
topPicks: {
|
|
260
|
+
canvasBackground: [string, string, string, string, string];
|
|
261
|
+
elementStroke: [string, string, string, string, string];
|
|
262
|
+
elementBackground: [string, string, string, string, string];
|
|
263
|
+
};
|
|
264
|
+
} | undefined;
|
|
249
265
|
allowWheelZoom?: boolean | undefined;
|
|
250
266
|
allowPinchZoom?: boolean | undefined;
|
|
251
267
|
pinnedScripts?: string[] | undefined;
|
|
@@ -329,10 +345,13 @@ export declare const actionChangeExportBackground: {
|
|
|
329
345
|
value: import("../types").NormalizedZoomValue;
|
|
330
346
|
}>;
|
|
331
347
|
openMenu: "canvas" | "shape" | null;
|
|
332
|
-
openPopup: "
|
|
333
|
-
openSidebar:
|
|
348
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
349
|
+
openSidebar: {
|
|
350
|
+
name: string;
|
|
351
|
+
tab?: string | undefined;
|
|
352
|
+
} | null;
|
|
334
353
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
335
|
-
|
|
354
|
+
defaultSidebarDockedPreference: boolean;
|
|
336
355
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
337
356
|
selectedElementIds: {
|
|
338
357
|
[id: string]: boolean;
|
|
@@ -374,11 +393,16 @@ export declare const actionChangeExportBackground: {
|
|
|
374
393
|
showHyperlinkPopup: false | "info" | "editor";
|
|
375
394
|
linkOpacity: number;
|
|
376
395
|
trayModeEnabled: boolean;
|
|
377
|
-
colorPalette
|
|
378
|
-
canvasBackground
|
|
379
|
-
elementBackground
|
|
380
|
-
elementStroke
|
|
381
|
-
|
|
396
|
+
colorPalette?: {
|
|
397
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
398
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
399
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
400
|
+
topPicks: {
|
|
401
|
+
canvasBackground: [string, string, string, string, string];
|
|
402
|
+
elementStroke: [string, string, string, string, string];
|
|
403
|
+
elementBackground: [string, string, string, string, string];
|
|
404
|
+
};
|
|
405
|
+
} | undefined;
|
|
382
406
|
allowWheelZoom?: boolean | undefined;
|
|
383
407
|
allowPinchZoom?: boolean | undefined;
|
|
384
408
|
pinnedScripts?: string[] | undefined;
|
|
@@ -462,10 +486,13 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
462
486
|
value: import("../types").NormalizedZoomValue;
|
|
463
487
|
}>;
|
|
464
488
|
openMenu: "canvas" | "shape" | null;
|
|
465
|
-
openPopup: "
|
|
466
|
-
openSidebar:
|
|
489
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
490
|
+
openSidebar: {
|
|
491
|
+
name: string;
|
|
492
|
+
tab?: string | undefined;
|
|
493
|
+
} | null;
|
|
467
494
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
468
|
-
|
|
495
|
+
defaultSidebarDockedPreference: boolean;
|
|
469
496
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
470
497
|
selectedElementIds: {
|
|
471
498
|
[id: string]: boolean;
|
|
@@ -507,11 +534,16 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
507
534
|
showHyperlinkPopup: false | "info" | "editor";
|
|
508
535
|
linkOpacity: number;
|
|
509
536
|
trayModeEnabled: boolean;
|
|
510
|
-
colorPalette
|
|
511
|
-
canvasBackground
|
|
512
|
-
elementBackground
|
|
513
|
-
elementStroke
|
|
514
|
-
|
|
537
|
+
colorPalette?: {
|
|
538
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
539
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
540
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
541
|
+
topPicks: {
|
|
542
|
+
canvasBackground: [string, string, string, string, string];
|
|
543
|
+
elementStroke: [string, string, string, string, string];
|
|
544
|
+
elementBackground: [string, string, string, string, string];
|
|
545
|
+
};
|
|
546
|
+
} | undefined;
|
|
515
547
|
allowWheelZoom?: boolean | undefined;
|
|
516
548
|
allowPinchZoom?: boolean | undefined;
|
|
517
549
|
pinnedScripts?: string[] | undefined;
|
|
@@ -600,10 +632,13 @@ export declare const actionSaveToActiveFile: {
|
|
|
600
632
|
value: import("../types").NormalizedZoomValue;
|
|
601
633
|
}>;
|
|
602
634
|
openMenu: "canvas" | "shape" | null;
|
|
603
|
-
openPopup: "
|
|
604
|
-
openSidebar:
|
|
635
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
636
|
+
openSidebar: {
|
|
637
|
+
name: string;
|
|
638
|
+
tab?: string | undefined;
|
|
639
|
+
} | null;
|
|
605
640
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
606
|
-
|
|
641
|
+
defaultSidebarDockedPreference: boolean;
|
|
607
642
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
608
643
|
selectedElementIds: {
|
|
609
644
|
[id: string]: boolean;
|
|
@@ -639,11 +674,16 @@ export declare const actionSaveToActiveFile: {
|
|
|
639
674
|
showHyperlinkPopup: false | "info" | "editor";
|
|
640
675
|
linkOpacity: number;
|
|
641
676
|
trayModeEnabled: boolean;
|
|
642
|
-
colorPalette
|
|
643
|
-
canvasBackground
|
|
644
|
-
elementBackground
|
|
645
|
-
elementStroke
|
|
646
|
-
|
|
677
|
+
colorPalette?: {
|
|
678
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
679
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
680
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
681
|
+
topPicks: {
|
|
682
|
+
canvasBackground: [string, string, string, string, string];
|
|
683
|
+
elementStroke: [string, string, string, string, string];
|
|
684
|
+
elementBackground: [string, string, string, string, string];
|
|
685
|
+
};
|
|
686
|
+
} | undefined;
|
|
647
687
|
allowWheelZoom?: boolean | undefined;
|
|
648
688
|
allowPinchZoom?: boolean | undefined;
|
|
649
689
|
pinnedScripts?: string[] | undefined;
|
|
@@ -731,10 +771,13 @@ export declare const actionSaveFileToDisk: {
|
|
|
731
771
|
value: import("../types").NormalizedZoomValue;
|
|
732
772
|
}>;
|
|
733
773
|
openMenu: "canvas" | "shape" | null;
|
|
734
|
-
openPopup: "
|
|
735
|
-
openSidebar:
|
|
774
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
775
|
+
openSidebar: {
|
|
776
|
+
name: string;
|
|
777
|
+
tab?: string | undefined;
|
|
778
|
+
} | null;
|
|
736
779
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
737
|
-
|
|
780
|
+
defaultSidebarDockedPreference: boolean;
|
|
738
781
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
739
782
|
selectedElementIds: {
|
|
740
783
|
[id: string]: boolean;
|
|
@@ -775,11 +818,16 @@ export declare const actionSaveFileToDisk: {
|
|
|
775
818
|
showHyperlinkPopup: false | "info" | "editor";
|
|
776
819
|
linkOpacity: number;
|
|
777
820
|
trayModeEnabled: boolean;
|
|
778
|
-
colorPalette
|
|
779
|
-
canvasBackground
|
|
780
|
-
elementBackground
|
|
781
|
-
elementStroke
|
|
782
|
-
|
|
821
|
+
colorPalette?: {
|
|
822
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
823
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
824
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
825
|
+
topPicks: {
|
|
826
|
+
canvasBackground: [string, string, string, string, string];
|
|
827
|
+
elementStroke: [string, string, string, string, string];
|
|
828
|
+
elementBackground: [string, string, string, string, string];
|
|
829
|
+
};
|
|
830
|
+
} | undefined;
|
|
783
831
|
allowWheelZoom?: boolean | undefined;
|
|
784
832
|
allowPinchZoom?: boolean | undefined;
|
|
785
833
|
pinnedScripts?: string[] | undefined;
|
|
@@ -868,10 +916,13 @@ export declare const actionLoadScene: {
|
|
|
868
916
|
value: import("../types").NormalizedZoomValue;
|
|
869
917
|
}>;
|
|
870
918
|
openMenu: "canvas" | "shape" | null;
|
|
871
|
-
openPopup: "
|
|
872
|
-
openSidebar:
|
|
919
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
920
|
+
openSidebar: {
|
|
921
|
+
name: string;
|
|
922
|
+
tab?: string | undefined;
|
|
923
|
+
} | null;
|
|
873
924
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
874
|
-
|
|
925
|
+
defaultSidebarDockedPreference: boolean;
|
|
875
926
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
876
927
|
selectedElementIds: {
|
|
877
928
|
[id: string]: boolean;
|
|
@@ -908,11 +959,16 @@ export declare const actionLoadScene: {
|
|
|
908
959
|
showHyperlinkPopup: false | "info" | "editor";
|
|
909
960
|
linkOpacity: number;
|
|
910
961
|
trayModeEnabled: boolean;
|
|
911
|
-
colorPalette
|
|
912
|
-
canvasBackground
|
|
913
|
-
elementBackground
|
|
914
|
-
elementStroke
|
|
915
|
-
|
|
962
|
+
colorPalette?: {
|
|
963
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
964
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
965
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
966
|
+
topPicks: {
|
|
967
|
+
canvasBackground: [string, string, string, string, string];
|
|
968
|
+
elementStroke: [string, string, string, string, string];
|
|
969
|
+
elementBackground: [string, string, string, string, string];
|
|
970
|
+
};
|
|
971
|
+
} | undefined;
|
|
916
972
|
allowWheelZoom?: boolean | undefined;
|
|
917
973
|
allowPinchZoom?: boolean | undefined;
|
|
918
974
|
pinnedScripts?: string[] | undefined;
|
|
@@ -987,10 +1043,13 @@ export declare const actionLoadScene: {
|
|
|
987
1043
|
value: import("../types").NormalizedZoomValue;
|
|
988
1044
|
}>;
|
|
989
1045
|
openMenu: "canvas" | "shape" | null;
|
|
990
|
-
openPopup: "
|
|
991
|
-
openSidebar:
|
|
1046
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1047
|
+
openSidebar: {
|
|
1048
|
+
name: string;
|
|
1049
|
+
tab?: string | undefined;
|
|
1050
|
+
} | null;
|
|
992
1051
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
993
|
-
|
|
1052
|
+
defaultSidebarDockedPreference: boolean;
|
|
994
1053
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
995
1054
|
selectedElementIds: {
|
|
996
1055
|
[id: string]: boolean;
|
|
@@ -1032,11 +1091,16 @@ export declare const actionLoadScene: {
|
|
|
1032
1091
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1033
1092
|
linkOpacity: number;
|
|
1034
1093
|
trayModeEnabled: boolean;
|
|
1035
|
-
colorPalette
|
|
1036
|
-
canvasBackground
|
|
1037
|
-
elementBackground
|
|
1038
|
-
elementStroke
|
|
1039
|
-
|
|
1094
|
+
colorPalette?: {
|
|
1095
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1096
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1097
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1098
|
+
topPicks: {
|
|
1099
|
+
canvasBackground: [string, string, string, string, string];
|
|
1100
|
+
elementStroke: [string, string, string, string, string];
|
|
1101
|
+
elementBackground: [string, string, string, string, string];
|
|
1102
|
+
};
|
|
1103
|
+
} | undefined;
|
|
1040
1104
|
allowWheelZoom?: boolean | undefined;
|
|
1041
1105
|
allowPinchZoom?: boolean | undefined;
|
|
1042
1106
|
pinnedScripts?: string[] | undefined;
|
|
@@ -1121,10 +1185,13 @@ export declare const actionExportWithDarkMode: {
|
|
|
1121
1185
|
value: import("../types").NormalizedZoomValue;
|
|
1122
1186
|
}>;
|
|
1123
1187
|
openMenu: "canvas" | "shape" | null;
|
|
1124
|
-
openPopup: "
|
|
1125
|
-
openSidebar:
|
|
1188
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1189
|
+
openSidebar: {
|
|
1190
|
+
name: string;
|
|
1191
|
+
tab?: string | undefined;
|
|
1192
|
+
} | null;
|
|
1126
1193
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1127
|
-
|
|
1194
|
+
defaultSidebarDockedPreference: boolean;
|
|
1128
1195
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1129
1196
|
selectedElementIds: {
|
|
1130
1197
|
[id: string]: boolean;
|
|
@@ -1166,11 +1233,16 @@ export declare const actionExportWithDarkMode: {
|
|
|
1166
1233
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1167
1234
|
linkOpacity: number;
|
|
1168
1235
|
trayModeEnabled: boolean;
|
|
1169
|
-
colorPalette
|
|
1170
|
-
canvasBackground
|
|
1171
|
-
elementBackground
|
|
1172
|
-
elementStroke
|
|
1173
|
-
|
|
1236
|
+
colorPalette?: {
|
|
1237
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1238
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1239
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1240
|
+
topPicks: {
|
|
1241
|
+
canvasBackground: [string, string, string, string, string];
|
|
1242
|
+
elementStroke: [string, string, string, string, string];
|
|
1243
|
+
elementBackground: [string, string, string, string, string];
|
|
1244
|
+
};
|
|
1245
|
+
} | undefined;
|
|
1174
1246
|
allowWheelZoom?: boolean | undefined;
|
|
1175
1247
|
allowPinchZoom?: boolean | undefined;
|
|
1176
1248
|
pinnedScripts?: string[] | undefined;
|
|
@@ -65,10 +65,13 @@ export declare const actionFinalize: {
|
|
|
65
65
|
value: import("../types").NormalizedZoomValue;
|
|
66
66
|
}>;
|
|
67
67
|
openMenu: "canvas" | "shape" | null;
|
|
68
|
-
openPopup: "
|
|
69
|
-
openSidebar:
|
|
68
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
69
|
+
openSidebar: {
|
|
70
|
+
name: string;
|
|
71
|
+
tab?: string | undefined;
|
|
72
|
+
} | null;
|
|
70
73
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
71
|
-
|
|
74
|
+
defaultSidebarDockedPreference: boolean;
|
|
72
75
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
73
76
|
selectedElementIds: {
|
|
74
77
|
[id: string]: boolean;
|
|
@@ -110,11 +113,16 @@ export declare const actionFinalize: {
|
|
|
110
113
|
showHyperlinkPopup: false | "info" | "editor";
|
|
111
114
|
linkOpacity: number;
|
|
112
115
|
trayModeEnabled: boolean;
|
|
113
|
-
colorPalette
|
|
114
|
-
canvasBackground
|
|
115
|
-
elementBackground
|
|
116
|
-
elementStroke
|
|
117
|
-
|
|
116
|
+
colorPalette?: {
|
|
117
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
118
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
119
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
120
|
+
topPicks: {
|
|
121
|
+
canvasBackground: [string, string, string, string, string];
|
|
122
|
+
elementStroke: [string, string, string, string, string];
|
|
123
|
+
elementBackground: [string, string, string, string, string];
|
|
124
|
+
};
|
|
125
|
+
} | undefined;
|
|
118
126
|
allowWheelZoom?: boolean | undefined;
|
|
119
127
|
allowPinchZoom?: boolean | undefined;
|
|
120
128
|
pinnedScripts?: string[] | undefined;
|
|
@@ -193,10 +201,13 @@ export declare const actionFinalize: {
|
|
|
193
201
|
value: import("../types").NormalizedZoomValue;
|
|
194
202
|
}>;
|
|
195
203
|
openMenu: "canvas" | "shape" | null;
|
|
196
|
-
openPopup: "
|
|
197
|
-
openSidebar:
|
|
204
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
205
|
+
openSidebar: {
|
|
206
|
+
name: string;
|
|
207
|
+
tab?: string | undefined;
|
|
208
|
+
} | null;
|
|
198
209
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
199
|
-
|
|
210
|
+
defaultSidebarDockedPreference: boolean;
|
|
200
211
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
201
212
|
previousSelectedElementIds: {
|
|
202
213
|
[id: string]: boolean;
|
|
@@ -234,11 +245,16 @@ export declare const actionFinalize: {
|
|
|
234
245
|
showHyperlinkPopup: false | "info" | "editor";
|
|
235
246
|
linkOpacity: number;
|
|
236
247
|
trayModeEnabled: boolean;
|
|
237
|
-
colorPalette
|
|
238
|
-
canvasBackground
|
|
239
|
-
elementBackground
|
|
240
|
-
elementStroke
|
|
241
|
-
|
|
248
|
+
colorPalette?: {
|
|
249
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
250
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
251
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
252
|
+
topPicks: {
|
|
253
|
+
canvasBackground: [string, string, string, string, string];
|
|
254
|
+
elementStroke: [string, string, string, string, string];
|
|
255
|
+
elementBackground: [string, string, string, string, string];
|
|
256
|
+
};
|
|
257
|
+
} | undefined;
|
|
242
258
|
allowWheelZoom?: boolean | undefined;
|
|
243
259
|
allowPinchZoom?: boolean | undefined;
|
|
244
260
|
pinnedScripts?: string[] | undefined;
|
|
@@ -7,13 +7,12 @@ export declare const actionFlipHorizontal: {
|
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
9
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
10
|
-
elements:
|
|
10
|
+
elements: ExcalidrawElement[];
|
|
11
11
|
appState: Readonly<AppState>;
|
|
12
12
|
commitToHistory: true;
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
15
|
contextItemLabel: string;
|
|
16
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
17
16
|
} & {
|
|
18
17
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
19
18
|
};
|
|
@@ -23,13 +22,12 @@ export declare const actionFlipVertical: {
|
|
|
23
22
|
category: "element";
|
|
24
23
|
};
|
|
25
24
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
26
|
-
elements:
|
|
25
|
+
elements: ExcalidrawElement[];
|
|
27
26
|
appState: Readonly<AppState>;
|
|
28
27
|
commitToHistory: true;
|
|
29
28
|
};
|
|
30
29
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
31
30
|
contextItemLabel: string;
|
|
32
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
33
31
|
} & {
|
|
34
32
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
35
33
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action } from "./types";
|
|
2
2
|
import History from "../history";
|
|
3
|
-
|
|
3
|
+
type ActionCreator = (history: History) => Action;
|
|
4
4
|
export declare const createUndoAction: ActionCreator;
|
|
5
5
|
export declare const createRedoAction: ActionCreator;
|
|
6
6
|
export {};
|
|
@@ -67,10 +67,13 @@ export declare const actionToggleLinearEditor: {
|
|
|
67
67
|
value: import("../types").NormalizedZoomValue;
|
|
68
68
|
}>;
|
|
69
69
|
openMenu: "canvas" | "shape" | null;
|
|
70
|
-
openPopup: "
|
|
71
|
-
openSidebar:
|
|
70
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
71
|
+
openSidebar: {
|
|
72
|
+
name: string;
|
|
73
|
+
tab?: string | undefined;
|
|
74
|
+
} | null;
|
|
72
75
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
73
|
-
|
|
76
|
+
defaultSidebarDockedPreference: boolean;
|
|
74
77
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
75
78
|
selectedElementIds: {
|
|
76
79
|
[id: string]: boolean;
|
|
@@ -112,11 +115,16 @@ export declare const actionToggleLinearEditor: {
|
|
|
112
115
|
showHyperlinkPopup: false | "info" | "editor";
|
|
113
116
|
linkOpacity: number;
|
|
114
117
|
trayModeEnabled: boolean;
|
|
115
|
-
colorPalette
|
|
116
|
-
canvasBackground
|
|
117
|
-
elementBackground
|
|
118
|
-
elementStroke
|
|
119
|
-
|
|
118
|
+
colorPalette?: {
|
|
119
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
120
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
121
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
122
|
+
topPicks: {
|
|
123
|
+
canvasBackground: [string, string, string, string, string];
|
|
124
|
+
elementStroke: [string, string, string, string, string];
|
|
125
|
+
elementBackground: [string, string, string, string, string];
|
|
126
|
+
};
|
|
127
|
+
} | undefined;
|
|
120
128
|
allowWheelZoom?: boolean | undefined;
|
|
121
129
|
allowPinchZoom?: boolean | undefined;
|
|
122
130
|
pinnedScripts?: string[] | undefined;
|
|
@@ -64,10 +64,13 @@ export declare const actionToggleCanvasMenu: {
|
|
|
64
64
|
zoom: Readonly<{
|
|
65
65
|
value: import("../types").NormalizedZoomValue;
|
|
66
66
|
}>;
|
|
67
|
-
openPopup: "
|
|
68
|
-
openSidebar:
|
|
67
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
68
|
+
openSidebar: {
|
|
69
|
+
name: string;
|
|
70
|
+
tab?: string | undefined;
|
|
71
|
+
} | null;
|
|
69
72
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
70
|
-
|
|
73
|
+
defaultSidebarDockedPreference: boolean;
|
|
71
74
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
72
75
|
selectedElementIds: {
|
|
73
76
|
[id: string]: boolean;
|
|
@@ -109,11 +112,16 @@ export declare const actionToggleCanvasMenu: {
|
|
|
109
112
|
showHyperlinkPopup: false | "info" | "editor";
|
|
110
113
|
linkOpacity: number;
|
|
111
114
|
trayModeEnabled: boolean;
|
|
112
|
-
colorPalette
|
|
113
|
-
canvasBackground
|
|
114
|
-
elementBackground
|
|
115
|
-
elementStroke
|
|
116
|
-
|
|
115
|
+
colorPalette?: {
|
|
116
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
117
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
118
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
119
|
+
topPicks: {
|
|
120
|
+
canvasBackground: [string, string, string, string, string];
|
|
121
|
+
elementStroke: [string, string, string, string, string];
|
|
122
|
+
elementBackground: [string, string, string, string, string];
|
|
123
|
+
};
|
|
124
|
+
} | undefined;
|
|
117
125
|
allowWheelZoom?: boolean | undefined;
|
|
118
126
|
allowPinchZoom?: boolean | undefined;
|
|
119
127
|
pinnedScripts?: string[] | undefined;
|
|
@@ -196,10 +204,13 @@ export declare const actionToggleEditMenu: {
|
|
|
196
204
|
zoom: Readonly<{
|
|
197
205
|
value: import("../types").NormalizedZoomValue;
|
|
198
206
|
}>;
|
|
199
|
-
openPopup: "
|
|
200
|
-
openSidebar:
|
|
207
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
208
|
+
openSidebar: {
|
|
209
|
+
name: string;
|
|
210
|
+
tab?: string | undefined;
|
|
211
|
+
} | null;
|
|
201
212
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
202
|
-
|
|
213
|
+
defaultSidebarDockedPreference: boolean;
|
|
203
214
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
204
215
|
selectedElementIds: {
|
|
205
216
|
[id: string]: boolean;
|
|
@@ -241,11 +252,16 @@ export declare const actionToggleEditMenu: {
|
|
|
241
252
|
showHyperlinkPopup: false | "info" | "editor";
|
|
242
253
|
linkOpacity: number;
|
|
243
254
|
trayModeEnabled: boolean;
|
|
244
|
-
colorPalette
|
|
245
|
-
canvasBackground
|
|
246
|
-
elementBackground
|
|
247
|
-
elementStroke
|
|
248
|
-
|
|
255
|
+
colorPalette?: {
|
|
256
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
257
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
258
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
259
|
+
topPicks: {
|
|
260
|
+
canvasBackground: [string, string, string, string, string];
|
|
261
|
+
elementStroke: [string, string, string, string, string];
|
|
262
|
+
elementBackground: [string, string, string, string, string];
|
|
263
|
+
};
|
|
264
|
+
} | undefined;
|
|
249
265
|
allowWheelZoom?: boolean | undefined;
|
|
250
266
|
allowPinchZoom?: boolean | undefined;
|
|
251
267
|
pinnedScripts?: string[] | undefined;
|
|
@@ -345,9 +361,12 @@ export declare const actionShortcuts: {
|
|
|
345
361
|
value: import("../types").NormalizedZoomValue;
|
|
346
362
|
}>;
|
|
347
363
|
openMenu: "canvas" | "shape" | null;
|
|
348
|
-
openPopup: "
|
|
349
|
-
openSidebar:
|
|
350
|
-
|
|
364
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
365
|
+
openSidebar: {
|
|
366
|
+
name: string;
|
|
367
|
+
tab?: string | undefined;
|
|
368
|
+
} | null;
|
|
369
|
+
defaultSidebarDockedPreference: boolean;
|
|
351
370
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
352
371
|
selectedElementIds: {
|
|
353
372
|
[id: string]: boolean;
|
|
@@ -389,11 +408,16 @@ export declare const actionShortcuts: {
|
|
|
389
408
|
showHyperlinkPopup: false | "info" | "editor";
|
|
390
409
|
linkOpacity: number;
|
|
391
410
|
trayModeEnabled: boolean;
|
|
392
|
-
colorPalette
|
|
393
|
-
canvasBackground
|
|
394
|
-
elementBackground
|
|
395
|
-
elementStroke
|
|
396
|
-
|
|
411
|
+
colorPalette?: {
|
|
412
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
413
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
414
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
415
|
+
topPicks: {
|
|
416
|
+
canvasBackground: [string, string, string, string, string];
|
|
417
|
+
elementStroke: [string, string, string, string, string];
|
|
418
|
+
elementBackground: [string, string, string, string, string];
|
|
419
|
+
};
|
|
420
|
+
} | undefined;
|
|
397
421
|
allowWheelZoom?: boolean | undefined;
|
|
398
422
|
allowPinchZoom?: boolean | undefined;
|
|
399
423
|
pinnedScripts?: string[] | undefined;
|