@zsviczian/excalidraw 0.15.2-obsidian-2 → 0.15.2-obsidian-4
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 +1022 -158
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +2 -2
- package/types/actions/actionAddToLibrary.d.ts +33 -18
- package/types/actions/actionBoundText.d.ts +22 -12
- package/types/actions/actionCanvas.d.ts +110 -60
- package/types/actions/actionClipboard.d.ts +55 -30
- package/types/actions/actionDeleteSelected.d.ts +33 -18
- package/types/actions/actionElementLock.d.ts +287 -0
- package/types/actions/actionExport.d.ts +100 -55
- package/types/actions/actionFinalize.d.ts +22 -12
- package/types/actions/actionFlip.d.ts +2 -4
- package/types/actions/actionHistory.d.ts +1 -1
- package/types/actions/actionLinearEditor.d.ts +11 -6
- package/types/actions/actionMenu.d.ts +33 -18
- package/types/actions/actionProperties.d.ts +145 -80
- package/types/actions/actionStyles.d.ts +11 -6
- package/types/actions/actionToggleGridMode.d.ts +11 -6
- package/types/actions/actionToggleStats.d.ts +11 -6
- package/types/actions/actionToggleViewMode.d.ts +11 -6
- package/types/actions/actionToggleZenMode.d.ts +11 -6
- 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/charts.d.ts +2 -2
- package/types/clients.d.ts +4 -1
- package/types/colors.d.ts +60 -5
- package/types/components/ActiveConfirmDialog.d.ts +1 -21
- package/types/components/App.d.ts +6 -2
- package/types/components/Avatar.d.ts +1 -1
- package/types/components/ColorPicker/ColorInput.d.ts +7 -0
- package/types/components/ColorPicker/ColorPicker.d.ts +19 -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 +18 -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 +21 -0
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +21 -0
- package/types/components/ContextMenu.d.ts +3 -3
- package/types/components/Dialog.d.ts +2 -4
- package/types/components/EyeDropper.d.ts +18 -0
- 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/ImageExportDialog.d.ts +7 -12
- package/types/components/Island.d.ts +1 -1
- package/types/components/JSONExportDialog.d.ts +1 -1
- package/types/components/LayerUI.d.ts +3 -2
- package/types/components/LibraryMenu.d.ts +3 -23
- package/types/components/LibraryMenuControlButtons.d.ts +4 -4
- package/types/components/LibraryMenuHeaderContent.d.ts +3 -1
- package/types/components/LibraryMenuItems.d.ts +4 -5
- 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 +1 -1
- 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/RadioGroup.d.ts +12 -0
- package/types/components/Sidebar/Sidebar.d.ts +1 -21
- package/types/components/Sidebar/common.d.ts +3 -3
- package/types/components/Spinner.d.ts +2 -1
- package/types/components/Stack.d.ts +4 -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/icons.d.ts +8 -1
- package/types/constants.d.ts +6 -0
- package/types/context/tunnels.d.ts +2 -2
- package/types/data/encode.d.ts +1 -1
- package/types/data/filesystem.d.ts +1 -1
- package/types/data/library.d.ts +3 -45
- package/types/data/restore.d.ts +2 -2
- package/types/data/types.d.ts +1 -1
- package/types/element/Hyperlink.d.ts +11 -6
- package/types/element/binding.d.ts +2 -2
- package/types/element/bounds.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +11 -6
- package/types/element/mutateElement.d.ts +1 -1
- package/types/element/newElement.d.ts +1 -1
- package/types/element/resizeElements.d.ts +1 -0
- 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/useCreatePortalContainer.d.ts +5 -0
- package/types/hooks/useLibraryItemSvg.d.ts +11 -0
- package/types/hooks/useOutsideClick.d.ts +19 -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/jotai.d.ts +16 -104
- package/types/keys.d.ts +1 -1
- package/types/packages/excalidraw/index.d.ts +1 -1
- package/types/packages/utils.d.ts +2 -2
- 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/types.d.ts +4 -4
- package/types/types.d.ts +46 -37
- package/types/utility-types.d.ts +13 -13
- package/types/utils.d.ts +3 -3
|
@@ -65,7 +65,7 @@ export declare const actionFinalize: {
|
|
|
65
65
|
value: import("../types").NormalizedZoomValue;
|
|
66
66
|
}>;
|
|
67
67
|
openMenu: "canvas" | "shape" | null;
|
|
68
|
-
openPopup: "
|
|
68
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
69
69
|
openSidebar: {
|
|
70
70
|
name: string;
|
|
71
71
|
tab?: string | undefined;
|
|
@@ -113,11 +113,16 @@ export declare const actionFinalize: {
|
|
|
113
113
|
showHyperlinkPopup: false | "info" | "editor";
|
|
114
114
|
linkOpacity: number;
|
|
115
115
|
trayModeEnabled: boolean;
|
|
116
|
-
colorPalette
|
|
117
|
-
canvasBackground
|
|
118
|
-
elementBackground
|
|
119
|
-
elementStroke
|
|
120
|
-
|
|
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;
|
|
121
126
|
allowWheelZoom?: boolean | undefined;
|
|
122
127
|
allowPinchZoom?: boolean | undefined;
|
|
123
128
|
pinnedScripts?: string[] | undefined;
|
|
@@ -196,7 +201,7 @@ export declare const actionFinalize: {
|
|
|
196
201
|
value: import("../types").NormalizedZoomValue;
|
|
197
202
|
}>;
|
|
198
203
|
openMenu: "canvas" | "shape" | null;
|
|
199
|
-
openPopup: "
|
|
204
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
200
205
|
openSidebar: {
|
|
201
206
|
name: string;
|
|
202
207
|
tab?: string | undefined;
|
|
@@ -240,11 +245,16 @@ export declare const actionFinalize: {
|
|
|
240
245
|
showHyperlinkPopup: false | "info" | "editor";
|
|
241
246
|
linkOpacity: number;
|
|
242
247
|
trayModeEnabled: boolean;
|
|
243
|
-
colorPalette
|
|
244
|
-
canvasBackground
|
|
245
|
-
elementBackground
|
|
246
|
-
elementStroke
|
|
247
|
-
|
|
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;
|
|
248
258
|
allowWheelZoom?: boolean | undefined;
|
|
249
259
|
allowPinchZoom?: boolean | undefined;
|
|
250
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,7 +67,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
67
67
|
value: import("../types").NormalizedZoomValue;
|
|
68
68
|
}>;
|
|
69
69
|
openMenu: "canvas" | "shape" | null;
|
|
70
|
-
openPopup: "
|
|
70
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
71
71
|
openSidebar: {
|
|
72
72
|
name: string;
|
|
73
73
|
tab?: string | undefined;
|
|
@@ -115,11 +115,16 @@ export declare const actionToggleLinearEditor: {
|
|
|
115
115
|
showHyperlinkPopup: false | "info" | "editor";
|
|
116
116
|
linkOpacity: number;
|
|
117
117
|
trayModeEnabled: boolean;
|
|
118
|
-
colorPalette
|
|
119
|
-
canvasBackground
|
|
120
|
-
elementBackground
|
|
121
|
-
elementStroke
|
|
122
|
-
|
|
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;
|
|
123
128
|
allowWheelZoom?: boolean | undefined;
|
|
124
129
|
allowPinchZoom?: boolean | undefined;
|
|
125
130
|
pinnedScripts?: string[] | undefined;
|
|
@@ -64,7 +64,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
64
64
|
zoom: Readonly<{
|
|
65
65
|
value: import("../types").NormalizedZoomValue;
|
|
66
66
|
}>;
|
|
67
|
-
openPopup: "
|
|
67
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
68
68
|
openSidebar: {
|
|
69
69
|
name: string;
|
|
70
70
|
tab?: string | undefined;
|
|
@@ -112,11 +112,16 @@ export declare const actionToggleCanvasMenu: {
|
|
|
112
112
|
showHyperlinkPopup: false | "info" | "editor";
|
|
113
113
|
linkOpacity: number;
|
|
114
114
|
trayModeEnabled: boolean;
|
|
115
|
-
colorPalette
|
|
116
|
-
canvasBackground
|
|
117
|
-
elementBackground
|
|
118
|
-
elementStroke
|
|
119
|
-
|
|
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;
|
|
120
125
|
allowWheelZoom?: boolean | undefined;
|
|
121
126
|
allowPinchZoom?: boolean | undefined;
|
|
122
127
|
pinnedScripts?: string[] | undefined;
|
|
@@ -199,7 +204,7 @@ export declare const actionToggleEditMenu: {
|
|
|
199
204
|
zoom: Readonly<{
|
|
200
205
|
value: import("../types").NormalizedZoomValue;
|
|
201
206
|
}>;
|
|
202
|
-
openPopup: "
|
|
207
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
203
208
|
openSidebar: {
|
|
204
209
|
name: string;
|
|
205
210
|
tab?: string | undefined;
|
|
@@ -247,11 +252,16 @@ export declare const actionToggleEditMenu: {
|
|
|
247
252
|
showHyperlinkPopup: false | "info" | "editor";
|
|
248
253
|
linkOpacity: number;
|
|
249
254
|
trayModeEnabled: boolean;
|
|
250
|
-
colorPalette
|
|
251
|
-
canvasBackground
|
|
252
|
-
elementBackground
|
|
253
|
-
elementStroke
|
|
254
|
-
|
|
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;
|
|
255
265
|
allowWheelZoom?: boolean | undefined;
|
|
256
266
|
allowPinchZoom?: boolean | undefined;
|
|
257
267
|
pinnedScripts?: string[] | undefined;
|
|
@@ -351,7 +361,7 @@ export declare const actionShortcuts: {
|
|
|
351
361
|
value: import("../types").NormalizedZoomValue;
|
|
352
362
|
}>;
|
|
353
363
|
openMenu: "canvas" | "shape" | null;
|
|
354
|
-
openPopup: "
|
|
364
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
355
365
|
openSidebar: {
|
|
356
366
|
name: string;
|
|
357
367
|
tab?: string | undefined;
|
|
@@ -398,11 +408,16 @@ export declare const actionShortcuts: {
|
|
|
398
408
|
showHyperlinkPopup: false | "info" | "editor";
|
|
399
409
|
linkOpacity: number;
|
|
400
410
|
trayModeEnabled: boolean;
|
|
401
|
-
colorPalette
|
|
402
|
-
canvasBackground
|
|
403
|
-
elementBackground
|
|
404
|
-
elementStroke
|
|
405
|
-
|
|
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;
|
|
406
421
|
allowWheelZoom?: boolean | undefined;
|
|
407
422
|
allowPinchZoom?: boolean | undefined;
|
|
408
423
|
pinnedScripts?: string[] | undefined;
|
|
@@ -5,7 +5,7 @@ export declare const actionChangeStrokeColor: {
|
|
|
5
5
|
name: "changeStrokeColor";
|
|
6
6
|
trackEvent: false;
|
|
7
7
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
8
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
8
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
9
9
|
} & {
|
|
10
10
|
keyTest?: undefined;
|
|
11
11
|
};
|
|
@@ -13,7 +13,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
13
13
|
name: "changeBackgroundColor";
|
|
14
14
|
trackEvent: false;
|
|
15
15
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
16
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
16
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: undefined;
|
|
19
19
|
};
|
|
@@ -81,7 +81,7 @@ export declare const actionChangeFillStyle: {
|
|
|
81
81
|
value: import("../../src/types").NormalizedZoomValue;
|
|
82
82
|
}>;
|
|
83
83
|
openMenu: "canvas" | "shape" | null;
|
|
84
|
-
openPopup: "
|
|
84
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
85
85
|
openSidebar: {
|
|
86
86
|
name: string;
|
|
87
87
|
tab?: string | undefined;
|
|
@@ -129,11 +129,16 @@ export declare const actionChangeFillStyle: {
|
|
|
129
129
|
showHyperlinkPopup: false | "info" | "editor";
|
|
130
130
|
linkOpacity: number;
|
|
131
131
|
trayModeEnabled: boolean;
|
|
132
|
-
colorPalette
|
|
133
|
-
canvasBackground
|
|
134
|
-
elementBackground
|
|
135
|
-
elementStroke
|
|
136
|
-
|
|
132
|
+
colorPalette?: {
|
|
133
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
134
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
135
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
136
|
+
topPicks: {
|
|
137
|
+
canvasBackground: [string, string, string, string, string];
|
|
138
|
+
elementStroke: [string, string, string, string, string];
|
|
139
|
+
elementBackground: [string, string, string, string, string];
|
|
140
|
+
};
|
|
141
|
+
} | undefined;
|
|
137
142
|
allowWheelZoom?: boolean | undefined;
|
|
138
143
|
allowPinchZoom?: boolean | undefined;
|
|
139
144
|
pinnedScripts?: string[] | undefined;
|
|
@@ -215,7 +220,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
215
220
|
value: import("../../src/types").NormalizedZoomValue;
|
|
216
221
|
}>;
|
|
217
222
|
openMenu: "canvas" | "shape" | null;
|
|
218
|
-
openPopup: "
|
|
223
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
219
224
|
openSidebar: {
|
|
220
225
|
name: string;
|
|
221
226
|
tab?: string | undefined;
|
|
@@ -263,11 +268,16 @@ export declare const actionChangeStrokeWidth: {
|
|
|
263
268
|
showHyperlinkPopup: false | "info" | "editor";
|
|
264
269
|
linkOpacity: number;
|
|
265
270
|
trayModeEnabled: boolean;
|
|
266
|
-
colorPalette
|
|
267
|
-
canvasBackground
|
|
268
|
-
elementBackground
|
|
269
|
-
elementStroke
|
|
270
|
-
|
|
271
|
+
colorPalette?: {
|
|
272
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
273
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
274
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
275
|
+
topPicks: {
|
|
276
|
+
canvasBackground: [string, string, string, string, string];
|
|
277
|
+
elementStroke: [string, string, string, string, string];
|
|
278
|
+
elementBackground: [string, string, string, string, string];
|
|
279
|
+
};
|
|
280
|
+
} | undefined;
|
|
271
281
|
allowWheelZoom?: boolean | undefined;
|
|
272
282
|
allowPinchZoom?: boolean | undefined;
|
|
273
283
|
pinnedScripts?: string[] | undefined;
|
|
@@ -349,7 +359,7 @@ export declare const actionChangeSloppiness: {
|
|
|
349
359
|
value: import("../../src/types").NormalizedZoomValue;
|
|
350
360
|
}>;
|
|
351
361
|
openMenu: "canvas" | "shape" | null;
|
|
352
|
-
openPopup: "
|
|
362
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
353
363
|
openSidebar: {
|
|
354
364
|
name: string;
|
|
355
365
|
tab?: string | undefined;
|
|
@@ -397,11 +407,16 @@ export declare const actionChangeSloppiness: {
|
|
|
397
407
|
showHyperlinkPopup: false | "info" | "editor";
|
|
398
408
|
linkOpacity: number;
|
|
399
409
|
trayModeEnabled: boolean;
|
|
400
|
-
colorPalette
|
|
401
|
-
canvasBackground
|
|
402
|
-
elementBackground
|
|
403
|
-
elementStroke
|
|
404
|
-
|
|
410
|
+
colorPalette?: {
|
|
411
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
412
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
413
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
414
|
+
topPicks: {
|
|
415
|
+
canvasBackground: [string, string, string, string, string];
|
|
416
|
+
elementStroke: [string, string, string, string, string];
|
|
417
|
+
elementBackground: [string, string, string, string, string];
|
|
418
|
+
};
|
|
419
|
+
} | undefined;
|
|
405
420
|
allowWheelZoom?: boolean | undefined;
|
|
406
421
|
allowPinchZoom?: boolean | undefined;
|
|
407
422
|
pinnedScripts?: string[] | undefined;
|
|
@@ -483,7 +498,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
483
498
|
value: import("../../src/types").NormalizedZoomValue;
|
|
484
499
|
}>;
|
|
485
500
|
openMenu: "canvas" | "shape" | null;
|
|
486
|
-
openPopup: "
|
|
501
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
487
502
|
openSidebar: {
|
|
488
503
|
name: string;
|
|
489
504
|
tab?: string | undefined;
|
|
@@ -531,11 +546,16 @@ export declare const actionChangeStrokeStyle: {
|
|
|
531
546
|
showHyperlinkPopup: false | "info" | "editor";
|
|
532
547
|
linkOpacity: number;
|
|
533
548
|
trayModeEnabled: boolean;
|
|
534
|
-
colorPalette
|
|
535
|
-
canvasBackground
|
|
536
|
-
elementBackground
|
|
537
|
-
elementStroke
|
|
538
|
-
|
|
549
|
+
colorPalette?: {
|
|
550
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
551
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
552
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
553
|
+
topPicks: {
|
|
554
|
+
canvasBackground: [string, string, string, string, string];
|
|
555
|
+
elementStroke: [string, string, string, string, string];
|
|
556
|
+
elementBackground: [string, string, string, string, string];
|
|
557
|
+
};
|
|
558
|
+
} | undefined;
|
|
539
559
|
allowWheelZoom?: boolean | undefined;
|
|
540
560
|
allowPinchZoom?: boolean | undefined;
|
|
541
561
|
pinnedScripts?: string[] | undefined;
|
|
@@ -617,7 +637,7 @@ export declare const actionChangeOpacity: {
|
|
|
617
637
|
value: import("../../src/types").NormalizedZoomValue;
|
|
618
638
|
}>;
|
|
619
639
|
openMenu: "canvas" | "shape" | null;
|
|
620
|
-
openPopup: "
|
|
640
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
621
641
|
openSidebar: {
|
|
622
642
|
name: string;
|
|
623
643
|
tab?: string | undefined;
|
|
@@ -665,11 +685,16 @@ export declare const actionChangeOpacity: {
|
|
|
665
685
|
showHyperlinkPopup: false | "info" | "editor";
|
|
666
686
|
linkOpacity: number;
|
|
667
687
|
trayModeEnabled: boolean;
|
|
668
|
-
colorPalette
|
|
669
|
-
canvasBackground
|
|
670
|
-
elementBackground
|
|
671
|
-
elementStroke
|
|
672
|
-
|
|
688
|
+
colorPalette?: {
|
|
689
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
690
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
691
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
692
|
+
topPicks: {
|
|
693
|
+
canvasBackground: [string, string, string, string, string];
|
|
694
|
+
elementStroke: [string, string, string, string, string];
|
|
695
|
+
elementBackground: [string, string, string, string, string];
|
|
696
|
+
};
|
|
697
|
+
} | undefined;
|
|
673
698
|
allowWheelZoom?: boolean | undefined;
|
|
674
699
|
allowPinchZoom?: boolean | undefined;
|
|
675
700
|
pinnedScripts?: string[] | undefined;
|
|
@@ -751,7 +776,7 @@ export declare const actionChangeFontSize: {
|
|
|
751
776
|
value: import("../../src/types").NormalizedZoomValue;
|
|
752
777
|
}>;
|
|
753
778
|
openMenu: "canvas" | "shape" | null;
|
|
754
|
-
openPopup: "
|
|
779
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
755
780
|
openSidebar: {
|
|
756
781
|
name: string;
|
|
757
782
|
tab?: string | undefined;
|
|
@@ -799,11 +824,16 @@ export declare const actionChangeFontSize: {
|
|
|
799
824
|
showHyperlinkPopup: false | "info" | "editor";
|
|
800
825
|
linkOpacity: number;
|
|
801
826
|
trayModeEnabled: boolean;
|
|
802
|
-
colorPalette
|
|
803
|
-
canvasBackground
|
|
804
|
-
elementBackground
|
|
805
|
-
elementStroke
|
|
806
|
-
|
|
827
|
+
colorPalette?: {
|
|
828
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
829
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
830
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
831
|
+
topPicks: {
|
|
832
|
+
canvasBackground: [string, string, string, string, string];
|
|
833
|
+
elementStroke: [string, string, string, string, string];
|
|
834
|
+
elementBackground: [string, string, string, string, string];
|
|
835
|
+
};
|
|
836
|
+
} | undefined;
|
|
807
837
|
allowWheelZoom?: boolean | undefined;
|
|
808
838
|
allowPinchZoom?: boolean | undefined;
|
|
809
839
|
pinnedScripts?: string[] | undefined;
|
|
@@ -885,7 +915,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
885
915
|
value: import("../../src/types").NormalizedZoomValue;
|
|
886
916
|
}>;
|
|
887
917
|
openMenu: "canvas" | "shape" | null;
|
|
888
|
-
openPopup: "
|
|
918
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
889
919
|
openSidebar: {
|
|
890
920
|
name: string;
|
|
891
921
|
tab?: string | undefined;
|
|
@@ -933,11 +963,16 @@ export declare const actionDecreaseFontSize: {
|
|
|
933
963
|
showHyperlinkPopup: false | "info" | "editor";
|
|
934
964
|
linkOpacity: number;
|
|
935
965
|
trayModeEnabled: boolean;
|
|
936
|
-
colorPalette
|
|
937
|
-
canvasBackground
|
|
938
|
-
elementBackground
|
|
939
|
-
elementStroke
|
|
940
|
-
|
|
966
|
+
colorPalette?: {
|
|
967
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
968
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
969
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
970
|
+
topPicks: {
|
|
971
|
+
canvasBackground: [string, string, string, string, string];
|
|
972
|
+
elementStroke: [string, string, string, string, string];
|
|
973
|
+
elementBackground: [string, string, string, string, string];
|
|
974
|
+
};
|
|
975
|
+
} | undefined;
|
|
941
976
|
allowWheelZoom?: boolean | undefined;
|
|
942
977
|
allowPinchZoom?: boolean | undefined;
|
|
943
978
|
pinnedScripts?: string[] | undefined;
|
|
@@ -1019,7 +1054,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1019
1054
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1020
1055
|
}>;
|
|
1021
1056
|
openMenu: "canvas" | "shape" | null;
|
|
1022
|
-
openPopup: "
|
|
1057
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1023
1058
|
openSidebar: {
|
|
1024
1059
|
name: string;
|
|
1025
1060
|
tab?: string | undefined;
|
|
@@ -1067,11 +1102,16 @@ export declare const actionIncreaseFontSize: {
|
|
|
1067
1102
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1068
1103
|
linkOpacity: number;
|
|
1069
1104
|
trayModeEnabled: boolean;
|
|
1070
|
-
colorPalette
|
|
1071
|
-
canvasBackground
|
|
1072
|
-
elementBackground
|
|
1073
|
-
elementStroke
|
|
1074
|
-
|
|
1105
|
+
colorPalette?: {
|
|
1106
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1107
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1108
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1109
|
+
topPicks: {
|
|
1110
|
+
canvasBackground: [string, string, string, string, string];
|
|
1111
|
+
elementStroke: [string, string, string, string, string];
|
|
1112
|
+
elementBackground: [string, string, string, string, string];
|
|
1113
|
+
};
|
|
1114
|
+
} | undefined;
|
|
1075
1115
|
allowWheelZoom?: boolean | undefined;
|
|
1076
1116
|
allowPinchZoom?: boolean | undefined;
|
|
1077
1117
|
pinnedScripts?: string[] | undefined;
|
|
@@ -1153,7 +1193,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1153
1193
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1154
1194
|
}>;
|
|
1155
1195
|
openMenu: "canvas" | "shape" | null;
|
|
1156
|
-
openPopup: "
|
|
1196
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1157
1197
|
openSidebar: {
|
|
1158
1198
|
name: string;
|
|
1159
1199
|
tab?: string | undefined;
|
|
@@ -1201,11 +1241,16 @@ export declare const actionChangeFontFamily: {
|
|
|
1201
1241
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1202
1242
|
linkOpacity: number;
|
|
1203
1243
|
trayModeEnabled: boolean;
|
|
1204
|
-
colorPalette
|
|
1205
|
-
canvasBackground
|
|
1206
|
-
elementBackground
|
|
1207
|
-
elementStroke
|
|
1208
|
-
|
|
1244
|
+
colorPalette?: {
|
|
1245
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1246
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1247
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1248
|
+
topPicks: {
|
|
1249
|
+
canvasBackground: [string, string, string, string, string];
|
|
1250
|
+
elementStroke: [string, string, string, string, string];
|
|
1251
|
+
elementBackground: [string, string, string, string, string];
|
|
1252
|
+
};
|
|
1253
|
+
} | undefined;
|
|
1209
1254
|
allowWheelZoom?: boolean | undefined;
|
|
1210
1255
|
allowPinchZoom?: boolean | undefined;
|
|
1211
1256
|
pinnedScripts?: string[] | undefined;
|
|
@@ -1287,7 +1332,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1287
1332
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1288
1333
|
}>;
|
|
1289
1334
|
openMenu: "canvas" | "shape" | null;
|
|
1290
|
-
openPopup: "
|
|
1335
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1291
1336
|
openSidebar: {
|
|
1292
1337
|
name: string;
|
|
1293
1338
|
tab?: string | undefined;
|
|
@@ -1335,11 +1380,16 @@ export declare const actionChangeTextAlign: {
|
|
|
1335
1380
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1336
1381
|
linkOpacity: number;
|
|
1337
1382
|
trayModeEnabled: boolean;
|
|
1338
|
-
colorPalette
|
|
1339
|
-
canvasBackground
|
|
1340
|
-
elementBackground
|
|
1341
|
-
elementStroke
|
|
1342
|
-
|
|
1383
|
+
colorPalette?: {
|
|
1384
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1385
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1386
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1387
|
+
topPicks: {
|
|
1388
|
+
canvasBackground: [string, string, string, string, string];
|
|
1389
|
+
elementStroke: [string, string, string, string, string];
|
|
1390
|
+
elementBackground: [string, string, string, string, string];
|
|
1391
|
+
};
|
|
1392
|
+
} | undefined;
|
|
1343
1393
|
allowWheelZoom?: boolean | undefined;
|
|
1344
1394
|
allowPinchZoom?: boolean | undefined;
|
|
1345
1395
|
pinnedScripts?: string[] | undefined;
|
|
@@ -1423,7 +1473,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1423
1473
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1424
1474
|
}>;
|
|
1425
1475
|
openMenu: "canvas" | "shape" | null;
|
|
1426
|
-
openPopup: "
|
|
1476
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1427
1477
|
openSidebar: {
|
|
1428
1478
|
name: string;
|
|
1429
1479
|
tab?: string | undefined;
|
|
@@ -1471,11 +1521,16 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1471
1521
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1472
1522
|
linkOpacity: number;
|
|
1473
1523
|
trayModeEnabled: boolean;
|
|
1474
|
-
colorPalette
|
|
1475
|
-
canvasBackground
|
|
1476
|
-
elementBackground
|
|
1477
|
-
elementStroke
|
|
1478
|
-
|
|
1524
|
+
colorPalette?: {
|
|
1525
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1526
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1527
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1528
|
+
topPicks: {
|
|
1529
|
+
canvasBackground: [string, string, string, string, string];
|
|
1530
|
+
elementStroke: [string, string, string, string, string];
|
|
1531
|
+
elementBackground: [string, string, string, string, string];
|
|
1532
|
+
};
|
|
1533
|
+
} | undefined;
|
|
1479
1534
|
allowWheelZoom?: boolean | undefined;
|
|
1480
1535
|
allowPinchZoom?: boolean | undefined;
|
|
1481
1536
|
pinnedScripts?: string[] | undefined;
|
|
@@ -1557,7 +1612,7 @@ export declare const actionChangeRoundness: {
|
|
|
1557
1612
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1558
1613
|
}>;
|
|
1559
1614
|
openMenu: "canvas" | "shape" | null;
|
|
1560
|
-
openPopup: "
|
|
1615
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1561
1616
|
openSidebar: {
|
|
1562
1617
|
name: string;
|
|
1563
1618
|
tab?: string | undefined;
|
|
@@ -1605,11 +1660,16 @@ export declare const actionChangeRoundness: {
|
|
|
1605
1660
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1606
1661
|
linkOpacity: number;
|
|
1607
1662
|
trayModeEnabled: boolean;
|
|
1608
|
-
colorPalette
|
|
1609
|
-
canvasBackground
|
|
1610
|
-
elementBackground
|
|
1611
|
-
elementStroke
|
|
1612
|
-
|
|
1663
|
+
colorPalette?: {
|
|
1664
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1665
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1666
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1667
|
+
topPicks: {
|
|
1668
|
+
canvasBackground: [string, string, string, string, string];
|
|
1669
|
+
elementStroke: [string, string, string, string, string];
|
|
1670
|
+
elementBackground: [string, string, string, string, string];
|
|
1671
|
+
};
|
|
1672
|
+
} | undefined;
|
|
1613
1673
|
allowWheelZoom?: boolean | undefined;
|
|
1614
1674
|
allowPinchZoom?: boolean | undefined;
|
|
1615
1675
|
pinnedScripts?: string[] | undefined;
|
|
@@ -1694,7 +1754,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1694
1754
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1695
1755
|
}>;
|
|
1696
1756
|
openMenu: "canvas" | "shape" | null;
|
|
1697
|
-
openPopup: "
|
|
1757
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1698
1758
|
openSidebar: {
|
|
1699
1759
|
name: string;
|
|
1700
1760
|
tab?: string | undefined;
|
|
@@ -1742,11 +1802,16 @@ export declare const actionChangeArrowhead: {
|
|
|
1742
1802
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1743
1803
|
linkOpacity: number;
|
|
1744
1804
|
trayModeEnabled: boolean;
|
|
1745
|
-
colorPalette
|
|
1746
|
-
canvasBackground
|
|
1747
|
-
elementBackground
|
|
1748
|
-
elementStroke
|
|
1749
|
-
|
|
1805
|
+
colorPalette?: {
|
|
1806
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1807
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1808
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1809
|
+
topPicks: {
|
|
1810
|
+
canvasBackground: [string, string, string, string, string];
|
|
1811
|
+
elementStroke: [string, string, string, string, string];
|
|
1812
|
+
elementBackground: [string, string, string, string, string];
|
|
1813
|
+
};
|
|
1814
|
+
} | undefined;
|
|
1750
1815
|
allowWheelZoom?: boolean | undefined;
|
|
1751
1816
|
allowPinchZoom?: boolean | undefined;
|
|
1752
1817
|
pinnedScripts?: string[] | undefined;
|