@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zsviczian/excalidraw",
|
|
3
|
-
"version": "0.15.2-obsidian-
|
|
3
|
+
"version": "0.15.2-obsidian-3",
|
|
4
4
|
"main": "main.js",
|
|
5
5
|
"types": "types/packages/excalidraw/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"sass-loader": "13.0.2",
|
|
64
64
|
"terser-webpack-plugin": "5.3.3",
|
|
65
65
|
"ts-loader": "9.3.1",
|
|
66
|
-
"typescript": "4.
|
|
66
|
+
"typescript": "4.9.4",
|
|
67
67
|
"webpack": "5.76.0",
|
|
68
68
|
"webpack-bundle-analyzer": "4.5.0",
|
|
69
69
|
"webpack-cli": "4.10.0",
|
|
@@ -68,10 +68,13 @@ export declare const actionAddToLibrary: {
|
|
|
68
68
|
value: import("../types").NormalizedZoomValue;
|
|
69
69
|
}>;
|
|
70
70
|
openMenu: "canvas" | "shape" | null;
|
|
71
|
-
openPopup: "
|
|
72
|
-
openSidebar:
|
|
71
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
72
|
+
openSidebar: {
|
|
73
|
+
name: string;
|
|
74
|
+
tab?: string | undefined;
|
|
75
|
+
} | null;
|
|
73
76
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
74
|
-
|
|
77
|
+
defaultSidebarDockedPreference: boolean;
|
|
75
78
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
76
79
|
selectedElementIds: {
|
|
77
80
|
[id: string]: boolean;
|
|
@@ -108,11 +111,16 @@ export declare const actionAddToLibrary: {
|
|
|
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;
|
|
@@ -185,10 +193,13 @@ export declare const actionAddToLibrary: {
|
|
|
185
193
|
value: import("../types").NormalizedZoomValue;
|
|
186
194
|
}>;
|
|
187
195
|
openMenu: "canvas" | "shape" | null;
|
|
188
|
-
openPopup: "
|
|
189
|
-
openSidebar:
|
|
196
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
197
|
+
openSidebar: {
|
|
198
|
+
name: string;
|
|
199
|
+
tab?: string | undefined;
|
|
200
|
+
} | null;
|
|
190
201
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
191
|
-
|
|
202
|
+
defaultSidebarDockedPreference: boolean;
|
|
192
203
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
193
204
|
selectedElementIds: {
|
|
194
205
|
[id: string]: boolean;
|
|
@@ -230,11 +241,16 @@ export declare const actionAddToLibrary: {
|
|
|
230
241
|
showHyperlinkPopup: false | "info" | "editor";
|
|
231
242
|
linkOpacity: number;
|
|
232
243
|
trayModeEnabled: boolean;
|
|
233
|
-
colorPalette
|
|
234
|
-
canvasBackground
|
|
235
|
-
elementBackground
|
|
236
|
-
elementStroke
|
|
237
|
-
|
|
244
|
+
colorPalette?: {
|
|
245
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
246
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
247
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
248
|
+
topPicks: {
|
|
249
|
+
canvasBackground: [string, string, string, string, string];
|
|
250
|
+
elementStroke: [string, string, string, string, string];
|
|
251
|
+
elementBackground: [string, string, string, string, string];
|
|
252
|
+
};
|
|
253
|
+
} | undefined;
|
|
238
254
|
allowWheelZoom?: boolean | undefined;
|
|
239
255
|
allowPinchZoom?: boolean | undefined;
|
|
240
256
|
pinnedScripts?: string[] | undefined;
|
|
@@ -307,10 +323,13 @@ export declare const actionAddToLibrary: {
|
|
|
307
323
|
value: import("../types").NormalizedZoomValue;
|
|
308
324
|
}>;
|
|
309
325
|
openMenu: "canvas" | "shape" | null;
|
|
310
|
-
openPopup: "
|
|
311
|
-
openSidebar:
|
|
326
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
327
|
+
openSidebar: {
|
|
328
|
+
name: string;
|
|
329
|
+
tab?: string | undefined;
|
|
330
|
+
} | null;
|
|
312
331
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
313
|
-
|
|
332
|
+
defaultSidebarDockedPreference: boolean;
|
|
314
333
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
315
334
|
selectedElementIds: {
|
|
316
335
|
[id: string]: boolean;
|
|
@@ -352,11 +371,16 @@ export declare const actionAddToLibrary: {
|
|
|
352
371
|
showHyperlinkPopup: false | "info" | "editor";
|
|
353
372
|
linkOpacity: number;
|
|
354
373
|
trayModeEnabled: boolean;
|
|
355
|
-
colorPalette
|
|
356
|
-
canvasBackground
|
|
357
|
-
elementBackground
|
|
358
|
-
elementStroke
|
|
359
|
-
|
|
374
|
+
colorPalette?: {
|
|
375
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
376
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
377
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
378
|
+
topPicks: {
|
|
379
|
+
canvasBackground: [string, string, string, string, string];
|
|
380
|
+
elementStroke: [string, string, string, string, string];
|
|
381
|
+
elementBackground: [string, string, string, string, string];
|
|
382
|
+
};
|
|
383
|
+
} | undefined;
|
|
360
384
|
allowWheelZoom?: boolean | undefined;
|
|
361
385
|
allowPinchZoom?: boolean | undefined;
|
|
362
386
|
pinnedScripts?: string[] | undefined;
|
|
@@ -87,10 +87,13 @@ export declare const actionBindText: {
|
|
|
87
87
|
value: import("../types").NormalizedZoomValue;
|
|
88
88
|
}>;
|
|
89
89
|
openMenu: "canvas" | "shape" | null;
|
|
90
|
-
openPopup: "
|
|
91
|
-
openSidebar:
|
|
90
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
91
|
+
openSidebar: {
|
|
92
|
+
name: string;
|
|
93
|
+
tab?: string | undefined;
|
|
94
|
+
} | null;
|
|
92
95
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
93
|
-
|
|
96
|
+
defaultSidebarDockedPreference: boolean;
|
|
94
97
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
95
98
|
previousSelectedElementIds: {
|
|
96
99
|
[id: string]: boolean;
|
|
@@ -129,11 +132,16 @@ export declare const actionBindText: {
|
|
|
129
132
|
showHyperlinkPopup: false | "info" | "editor";
|
|
130
133
|
linkOpacity: number;
|
|
131
134
|
trayModeEnabled: boolean;
|
|
132
|
-
colorPalette
|
|
133
|
-
canvasBackground
|
|
134
|
-
elementBackground
|
|
135
|
-
elementStroke
|
|
136
|
-
|
|
135
|
+
colorPalette?: {
|
|
136
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
137
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
138
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
139
|
+
topPicks: {
|
|
140
|
+
canvasBackground: [string, string, string, string, string];
|
|
141
|
+
elementStroke: [string, string, string, string, string];
|
|
142
|
+
elementBackground: [string, string, string, string, string];
|
|
143
|
+
};
|
|
144
|
+
} | undefined;
|
|
137
145
|
allowWheelZoom?: boolean | undefined;
|
|
138
146
|
allowPinchZoom?: boolean | undefined;
|
|
139
147
|
pinnedScripts?: string[] | undefined;
|
|
@@ -221,10 +229,13 @@ export declare const actionWrapTextInContainer: {
|
|
|
221
229
|
value: import("../types").NormalizedZoomValue;
|
|
222
230
|
}>;
|
|
223
231
|
openMenu: "canvas" | "shape" | null;
|
|
224
|
-
openPopup: "
|
|
225
|
-
openSidebar:
|
|
232
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
233
|
+
openSidebar: {
|
|
234
|
+
name: string;
|
|
235
|
+
tab?: string | undefined;
|
|
236
|
+
} | null;
|
|
226
237
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
227
|
-
|
|
238
|
+
defaultSidebarDockedPreference: boolean;
|
|
228
239
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
229
240
|
previousSelectedElementIds: {
|
|
230
241
|
[id: string]: boolean;
|
|
@@ -263,11 +274,16 @@ export declare const actionWrapTextInContainer: {
|
|
|
263
274
|
showHyperlinkPopup: false | "info" | "editor";
|
|
264
275
|
linkOpacity: number;
|
|
265
276
|
trayModeEnabled: boolean;
|
|
266
|
-
colorPalette
|
|
267
|
-
canvasBackground
|
|
268
|
-
elementBackground
|
|
269
|
-
elementStroke
|
|
270
|
-
|
|
277
|
+
colorPalette?: {
|
|
278
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
279
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
280
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
281
|
+
topPicks: {
|
|
282
|
+
canvasBackground: [string, string, string, string, string];
|
|
283
|
+
elementStroke: [string, string, string, string, string];
|
|
284
|
+
elementBackground: [string, string, string, string, string];
|
|
285
|
+
};
|
|
286
|
+
} | undefined;
|
|
271
287
|
allowWheelZoom?: boolean | undefined;
|
|
272
288
|
allowPinchZoom?: boolean | undefined;
|
|
273
289
|
pinnedScripts?: string[] | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
9
9
|
appState: any;
|
|
10
10
|
commitToHistory: boolean;
|
|
11
11
|
};
|
|
12
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
12
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
13
13
|
} & {
|
|
14
14
|
keyTest?: undefined;
|
|
15
15
|
};
|
|
@@ -48,10 +48,15 @@ export declare const actionClearCanvas: {
|
|
|
48
48
|
customType: string;
|
|
49
49
|
});
|
|
50
50
|
colorPalette: {
|
|
51
|
-
canvasBackground
|
|
52
|
-
elementBackground
|
|
53
|
-
elementStroke
|
|
54
|
-
|
|
51
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
52
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
53
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
54
|
+
topPicks: {
|
|
55
|
+
canvasBackground: [string, string, string, string, string];
|
|
56
|
+
elementStroke: [string, string, string, string, string];
|
|
57
|
+
elementBackground: [string, string, string, string, string];
|
|
58
|
+
};
|
|
59
|
+
} | undefined;
|
|
55
60
|
trayModeEnabled: boolean;
|
|
56
61
|
allowPinchZoom: boolean | undefined;
|
|
57
62
|
allowWheelZoom: boolean | undefined;
|
|
@@ -101,10 +106,13 @@ export declare const actionClearCanvas: {
|
|
|
101
106
|
value: NormalizedZoomValue;
|
|
102
107
|
}>;
|
|
103
108
|
openMenu: "canvas" | "shape" | null;
|
|
104
|
-
openPopup: "
|
|
105
|
-
openSidebar:
|
|
109
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
110
|
+
openSidebar: {
|
|
111
|
+
name: string;
|
|
112
|
+
tab?: string | undefined;
|
|
113
|
+
} | null;
|
|
106
114
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
107
|
-
|
|
115
|
+
defaultSidebarDockedPreference: boolean;
|
|
108
116
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
109
117
|
selectedElementIds: {
|
|
110
118
|
[id: string]: boolean;
|
|
@@ -209,10 +217,13 @@ export declare const actionZoomIn: {
|
|
|
209
217
|
isResizing: boolean;
|
|
210
218
|
isRotating: boolean;
|
|
211
219
|
openMenu: "canvas" | "shape" | null;
|
|
212
|
-
openPopup: "
|
|
213
|
-
openSidebar:
|
|
220
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
221
|
+
openSidebar: {
|
|
222
|
+
name: string;
|
|
223
|
+
tab?: string | undefined;
|
|
224
|
+
} | null;
|
|
214
225
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
215
|
-
|
|
226
|
+
defaultSidebarDockedPreference: boolean;
|
|
216
227
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
217
228
|
selectedElementIds: {
|
|
218
229
|
[id: string]: boolean;
|
|
@@ -254,11 +265,16 @@ export declare const actionZoomIn: {
|
|
|
254
265
|
showHyperlinkPopup: false | "info" | "editor";
|
|
255
266
|
linkOpacity: number;
|
|
256
267
|
trayModeEnabled: boolean;
|
|
257
|
-
colorPalette
|
|
258
|
-
canvasBackground
|
|
259
|
-
elementBackground
|
|
260
|
-
elementStroke
|
|
261
|
-
|
|
268
|
+
colorPalette?: {
|
|
269
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
270
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
271
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
272
|
+
topPicks: {
|
|
273
|
+
canvasBackground: [string, string, string, string, string];
|
|
274
|
+
elementStroke: [string, string, string, string, string];
|
|
275
|
+
elementBackground: [string, string, string, string, string];
|
|
276
|
+
};
|
|
277
|
+
} | undefined;
|
|
262
278
|
allowWheelZoom?: boolean | undefined;
|
|
263
279
|
allowPinchZoom?: boolean | undefined;
|
|
264
280
|
pinnedScripts?: string[] | undefined;
|
|
@@ -343,10 +359,13 @@ export declare const actionZoomOut: {
|
|
|
343
359
|
isResizing: boolean;
|
|
344
360
|
isRotating: boolean;
|
|
345
361
|
openMenu: "canvas" | "shape" | null;
|
|
346
|
-
openPopup: "
|
|
347
|
-
openSidebar:
|
|
362
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
363
|
+
openSidebar: {
|
|
364
|
+
name: string;
|
|
365
|
+
tab?: string | undefined;
|
|
366
|
+
} | null;
|
|
348
367
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
349
|
-
|
|
368
|
+
defaultSidebarDockedPreference: boolean;
|
|
350
369
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
351
370
|
selectedElementIds: {
|
|
352
371
|
[id: string]: boolean;
|
|
@@ -388,11 +407,16 @@ export declare const actionZoomOut: {
|
|
|
388
407
|
showHyperlinkPopup: false | "info" | "editor";
|
|
389
408
|
linkOpacity: number;
|
|
390
409
|
trayModeEnabled: boolean;
|
|
391
|
-
colorPalette
|
|
392
|
-
canvasBackground
|
|
393
|
-
elementBackground
|
|
394
|
-
elementStroke
|
|
395
|
-
|
|
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;
|
|
396
420
|
allowWheelZoom?: boolean | undefined;
|
|
397
421
|
allowPinchZoom?: boolean | undefined;
|
|
398
422
|
pinnedScripts?: string[] | undefined;
|
|
@@ -477,10 +501,13 @@ export declare const actionResetZoom: {
|
|
|
477
501
|
isResizing: boolean;
|
|
478
502
|
isRotating: boolean;
|
|
479
503
|
openMenu: "canvas" | "shape" | null;
|
|
480
|
-
openPopup: "
|
|
481
|
-
openSidebar:
|
|
504
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
505
|
+
openSidebar: {
|
|
506
|
+
name: string;
|
|
507
|
+
tab?: string | undefined;
|
|
508
|
+
} | null;
|
|
482
509
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
483
|
-
|
|
510
|
+
defaultSidebarDockedPreference: boolean;
|
|
484
511
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
485
512
|
selectedElementIds: {
|
|
486
513
|
[id: string]: boolean;
|
|
@@ -522,11 +549,16 @@ export declare const actionResetZoom: {
|
|
|
522
549
|
showHyperlinkPopup: false | "info" | "editor";
|
|
523
550
|
linkOpacity: number;
|
|
524
551
|
trayModeEnabled: boolean;
|
|
525
|
-
colorPalette
|
|
526
|
-
canvasBackground
|
|
527
|
-
elementBackground
|
|
528
|
-
elementStroke
|
|
529
|
-
|
|
552
|
+
colorPalette?: {
|
|
553
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
554
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
555
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
556
|
+
topPicks: {
|
|
557
|
+
canvasBackground: [string, string, string, string, string];
|
|
558
|
+
elementStroke: [string, string, string, string, string];
|
|
559
|
+
elementBackground: [string, string, string, string, string];
|
|
560
|
+
};
|
|
561
|
+
} | undefined;
|
|
530
562
|
allowWheelZoom?: boolean | undefined;
|
|
531
563
|
allowPinchZoom?: boolean | undefined;
|
|
532
564
|
pinnedScripts?: string[] | undefined;
|
|
@@ -605,10 +637,13 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
605
637
|
isResizing: boolean;
|
|
606
638
|
isRotating: boolean;
|
|
607
639
|
openMenu: "canvas" | "shape" | null;
|
|
608
|
-
openPopup: "
|
|
609
|
-
openSidebar:
|
|
640
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
641
|
+
openSidebar: {
|
|
642
|
+
name: string;
|
|
643
|
+
tab?: string | undefined;
|
|
644
|
+
} | null;
|
|
610
645
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
611
|
-
|
|
646
|
+
defaultSidebarDockedPreference: boolean;
|
|
612
647
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
613
648
|
selectedElementIds: {
|
|
614
649
|
[id: string]: boolean;
|
|
@@ -650,11 +685,16 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
650
685
|
showHyperlinkPopup: false | "info" | "editor";
|
|
651
686
|
linkOpacity: number;
|
|
652
687
|
trayModeEnabled: boolean;
|
|
653
|
-
colorPalette
|
|
654
|
-
canvasBackground
|
|
655
|
-
elementBackground
|
|
656
|
-
elementStroke
|
|
657
|
-
|
|
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;
|
|
658
698
|
allowWheelZoom?: boolean | undefined;
|
|
659
699
|
allowPinchZoom?: boolean | undefined;
|
|
660
700
|
pinnedScripts?: string[] | undefined;
|
|
@@ -733,10 +773,13 @@ export declare const actionZoomToSelected: {
|
|
|
733
773
|
isResizing: boolean;
|
|
734
774
|
isRotating: boolean;
|
|
735
775
|
openMenu: "canvas" | "shape" | null;
|
|
736
|
-
openPopup: "
|
|
737
|
-
openSidebar:
|
|
776
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
777
|
+
openSidebar: {
|
|
778
|
+
name: string;
|
|
779
|
+
tab?: string | undefined;
|
|
780
|
+
} | null;
|
|
738
781
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
739
|
-
|
|
782
|
+
defaultSidebarDockedPreference: boolean;
|
|
740
783
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
741
784
|
selectedElementIds: {
|
|
742
785
|
[id: string]: boolean;
|
|
@@ -778,11 +821,16 @@ export declare const actionZoomToSelected: {
|
|
|
778
821
|
showHyperlinkPopup: false | "info" | "editor";
|
|
779
822
|
linkOpacity: number;
|
|
780
823
|
trayModeEnabled: boolean;
|
|
781
|
-
colorPalette
|
|
782
|
-
canvasBackground
|
|
783
|
-
elementBackground
|
|
784
|
-
elementStroke
|
|
785
|
-
|
|
824
|
+
colorPalette?: {
|
|
825
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
826
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
827
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
828
|
+
topPicks: {
|
|
829
|
+
canvasBackground: [string, string, string, string, string];
|
|
830
|
+
elementStroke: [string, string, string, string, string];
|
|
831
|
+
elementBackground: [string, string, string, string, string];
|
|
832
|
+
};
|
|
833
|
+
} | undefined;
|
|
786
834
|
allowWheelZoom?: boolean | undefined;
|
|
787
835
|
allowPinchZoom?: boolean | undefined;
|
|
788
836
|
pinnedScripts?: string[] | undefined;
|
|
@@ -866,10 +914,13 @@ export declare const actionZoomToFit: {
|
|
|
866
914
|
isResizing: boolean;
|
|
867
915
|
isRotating: boolean;
|
|
868
916
|
openMenu: "canvas" | "shape" | null;
|
|
869
|
-
openPopup: "
|
|
870
|
-
openSidebar:
|
|
917
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
918
|
+
openSidebar: {
|
|
919
|
+
name: string;
|
|
920
|
+
tab?: string | undefined;
|
|
921
|
+
} | null;
|
|
871
922
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
872
|
-
|
|
923
|
+
defaultSidebarDockedPreference: boolean;
|
|
873
924
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
874
925
|
selectedElementIds: {
|
|
875
926
|
[id: string]: boolean;
|
|
@@ -911,11 +962,16 @@ export declare const actionZoomToFit: {
|
|
|
911
962
|
showHyperlinkPopup: false | "info" | "editor";
|
|
912
963
|
linkOpacity: number;
|
|
913
964
|
trayModeEnabled: boolean;
|
|
914
|
-
colorPalette
|
|
915
|
-
canvasBackground
|
|
916
|
-
elementBackground
|
|
917
|
-
elementStroke
|
|
918
|
-
|
|
965
|
+
colorPalette?: {
|
|
966
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
967
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
968
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
969
|
+
topPicks: {
|
|
970
|
+
canvasBackground: [string, string, string, string, string];
|
|
971
|
+
elementStroke: [string, string, string, string, string];
|
|
972
|
+
elementBackground: [string, string, string, string, string];
|
|
973
|
+
};
|
|
974
|
+
} | undefined;
|
|
919
975
|
allowWheelZoom?: boolean | undefined;
|
|
920
976
|
allowPinchZoom?: boolean | undefined;
|
|
921
977
|
pinnedScripts?: string[] | undefined;
|
|
@@ -1000,10 +1056,13 @@ export declare const actionToggleTheme: {
|
|
|
1000
1056
|
value: NormalizedZoomValue;
|
|
1001
1057
|
}>;
|
|
1002
1058
|
openMenu: "canvas" | "shape" | null;
|
|
1003
|
-
openPopup: "
|
|
1004
|
-
openSidebar:
|
|
1059
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1060
|
+
openSidebar: {
|
|
1061
|
+
name: string;
|
|
1062
|
+
tab?: string | undefined;
|
|
1063
|
+
} | null;
|
|
1005
1064
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1006
|
-
|
|
1065
|
+
defaultSidebarDockedPreference: boolean;
|
|
1007
1066
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1008
1067
|
selectedElementIds: {
|
|
1009
1068
|
[id: string]: boolean;
|
|
@@ -1044,11 +1103,16 @@ export declare const actionToggleTheme: {
|
|
|
1044
1103
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1045
1104
|
linkOpacity: number;
|
|
1046
1105
|
trayModeEnabled: boolean;
|
|
1047
|
-
colorPalette
|
|
1048
|
-
canvasBackground
|
|
1049
|
-
elementBackground
|
|
1050
|
-
elementStroke
|
|
1051
|
-
|
|
1106
|
+
colorPalette?: {
|
|
1107
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1108
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1109
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1110
|
+
topPicks: {
|
|
1111
|
+
canvasBackground: [string, string, string, string, string];
|
|
1112
|
+
elementStroke: [string, string, string, string, string];
|
|
1113
|
+
elementBackground: [string, string, string, string, string];
|
|
1114
|
+
};
|
|
1115
|
+
} | undefined;
|
|
1052
1116
|
allowWheelZoom?: boolean | undefined;
|
|
1053
1117
|
allowPinchZoom?: boolean | undefined;
|
|
1054
1118
|
pinnedScripts?: string[] | undefined;
|
|
@@ -1134,10 +1198,13 @@ export declare const actionToggleEraserTool: {
|
|
|
1134
1198
|
value: NormalizedZoomValue;
|
|
1135
1199
|
}>;
|
|
1136
1200
|
openMenu: "canvas" | "shape" | null;
|
|
1137
|
-
openPopup: "
|
|
1138
|
-
openSidebar:
|
|
1201
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1202
|
+
openSidebar: {
|
|
1203
|
+
name: string;
|
|
1204
|
+
tab?: string | undefined;
|
|
1205
|
+
} | null;
|
|
1139
1206
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1140
|
-
|
|
1207
|
+
defaultSidebarDockedPreference: boolean;
|
|
1141
1208
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1142
1209
|
previousSelectedElementIds: {
|
|
1143
1210
|
[id: string]: boolean;
|
|
@@ -1173,11 +1240,16 @@ export declare const actionToggleEraserTool: {
|
|
|
1173
1240
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1174
1241
|
linkOpacity: number;
|
|
1175
1242
|
trayModeEnabled: boolean;
|
|
1176
|
-
colorPalette
|
|
1177
|
-
canvasBackground
|
|
1178
|
-
elementBackground
|
|
1179
|
-
elementStroke
|
|
1180
|
-
|
|
1243
|
+
colorPalette?: {
|
|
1244
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1245
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1246
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1247
|
+
topPicks: {
|
|
1248
|
+
canvasBackground: [string, string, string, string, string];
|
|
1249
|
+
elementStroke: [string, string, string, string, string];
|
|
1250
|
+
elementBackground: [string, string, string, string, string];
|
|
1251
|
+
};
|
|
1252
|
+
} | undefined;
|
|
1181
1253
|
allowWheelZoom?: boolean | undefined;
|
|
1182
1254
|
allowPinchZoom?: boolean | undefined;
|
|
1183
1255
|
pinnedScripts?: string[] | undefined;
|
|
@@ -1262,10 +1334,13 @@ export declare const actionToggleHandTool: {
|
|
|
1262
1334
|
value: NormalizedZoomValue;
|
|
1263
1335
|
}>;
|
|
1264
1336
|
openMenu: "canvas" | "shape" | null;
|
|
1265
|
-
openPopup: "
|
|
1266
|
-
openSidebar:
|
|
1337
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1338
|
+
openSidebar: {
|
|
1339
|
+
name: string;
|
|
1340
|
+
tab?: string | undefined;
|
|
1341
|
+
} | null;
|
|
1267
1342
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1268
|
-
|
|
1343
|
+
defaultSidebarDockedPreference: boolean;
|
|
1269
1344
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1270
1345
|
previousSelectedElementIds: {
|
|
1271
1346
|
[id: string]: boolean;
|
|
@@ -1301,11 +1376,16 @@ export declare const actionToggleHandTool: {
|
|
|
1301
1376
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1302
1377
|
linkOpacity: number;
|
|
1303
1378
|
trayModeEnabled: boolean;
|
|
1304
|
-
colorPalette
|
|
1305
|
-
canvasBackground
|
|
1306
|
-
elementBackground
|
|
1307
|
-
elementStroke
|
|
1308
|
-
|
|
1379
|
+
colorPalette?: {
|
|
1380
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1381
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1382
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1383
|
+
topPicks: {
|
|
1384
|
+
canvasBackground: [string, string, string, string, string];
|
|
1385
|
+
elementStroke: [string, string, string, string, string];
|
|
1386
|
+
elementBackground: [string, string, string, string, string];
|
|
1387
|
+
};
|
|
1388
|
+
} | undefined;
|
|
1309
1389
|
allowWheelZoom?: boolean | undefined;
|
|
1310
1390
|
allowPinchZoom?: boolean | undefined;
|
|
1311
1391
|
pinnedScripts?: string[] | undefined;
|