@zsviczian/excalidraw 0.13.0-obsidian-2 → 0.14.1-obsidian
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +417 -19
- package/dist/excalidraw.development.js +581 -1153
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -102
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +39 -18
- package/types/actions/actionAlign.d.ts +6 -18
- package/types/actions/actionBoundText.d.ts +15 -8
- package/types/actions/actionCanvas.d.ts +246 -76
- package/types/actions/actionClipboard.d.ts +84 -31
- package/types/actions/actionDeleteSelected.d.ts +40 -21
- package/types/actions/actionDistribute.d.ts +2 -6
- package/types/actions/actionDuplicateSelection.d.ts +1 -3
- package/types/actions/actionExport.d.ts +125 -78
- package/types/actions/actionFinalize.d.ts +27 -15
- package/types/actions/actionFlip.d.ts +2 -2
- package/types/actions/actionGroup.d.ts +4 -8
- package/types/actions/actionLinearEditor.d.ts +14 -7
- package/types/actions/actionMenu.d.ts +40 -26
- package/types/actions/actionNavigate.d.ts +1 -3
- package/types/actions/actionProperties.d.ts +182 -117
- package/types/actions/actionStyles.d.ts +13 -6
- package/types/actions/actionToggleGridMode.d.ts +14 -6
- package/types/actions/actionToggleLock.d.ts +13 -6
- package/types/actions/actionToggleStats.d.ts +13 -6
- package/types/actions/actionToggleViewMode.d.ts +14 -6
- package/types/actions/actionToggleZenMode.d.ts +14 -6
- package/types/actions/actionZindex.d.ts +4 -12
- package/types/actions/manager.d.ts +2 -1
- package/types/actions/types.d.ts +3 -5
- package/types/appState.d.ts +8 -6
- package/types/components/ActiveConfirmDialog.d.ts +24 -0
- package/types/components/App.d.ts +8 -50
- package/types/components/Button.d.ts +15 -0
- package/types/components/CollabButton.d.ts +1 -2
- package/types/components/ContextMenu.d.ts +8 -20
- package/types/components/HandButton.d.ts +10 -0
- package/types/components/JSONExportDialog.d.ts +3 -1
- package/types/components/LayerUI.d.ts +3 -3
- package/types/components/LibraryMenuHeaderContent.d.ts +23 -0
- package/types/components/LockButton.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +5 -6
- package/types/components/ToolButton.d.ts +1 -1
- package/types/components/UserList.d.ts +0 -2
- package/types/components/dropdownMenu/DropdownMenu.d.ts +66 -0
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -0
- package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -0
- package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -0
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -0
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -0
- package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -0
- package/types/components/dropdownMenu/common.d.ts +6 -0
- package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -0
- package/types/components/footer/Footer.d.ts +13 -0
- package/types/components/footer/FooterCenter.d.ts +8 -0
- package/types/components/icons.d.ts +2 -1
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -0
- package/types/components/main-menu/DefaultItems.d.ts +44 -0
- package/types/components/main-menu/MainMenu.d.ts +60 -0
- package/types/components/mainMenu/DefaultItems.d.ts +44 -0
- package/types/components/mainMenu/MainMenu.d.ts +63 -0
- package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -0
- package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -0
- package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -0
- package/types/constants.d.ts +6 -4
- package/types/element/Hyperlink.d.ts +15 -10
- package/types/element/linearElementEditor.d.ts +14 -6
- package/types/element/textElement.d.ts +7 -0
- package/types/element/textWysiwyg.d.ts +6 -1
- package/types/excalidraw-app/data/index.d.ts +5 -0
- package/types/excalidraw-app/data/localStorage.d.ts +5 -0
- package/types/keys.d.ts +2 -3
- package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -0
- package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -0
- package/types/packages/excalidraw/index.d.ts +10 -0
- package/types/renderer/easingFunctions.d.ts +6 -0
- package/types/types.d.ts +54 -26
- package/types/utils.d.ts +23 -3
|
@@ -5,9 +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
|
|
9
|
-
isInHamburgerMenu: boolean;
|
|
10
|
-
}) => JSX.Element;
|
|
8
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
11
9
|
} & {
|
|
12
10
|
keyTest?: undefined;
|
|
13
11
|
};
|
|
@@ -15,9 +13,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
15
13
|
name: "changeBackgroundColor";
|
|
16
14
|
trackEvent: false;
|
|
17
15
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
18
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
19
|
-
isInHamburgerMenu: boolean;
|
|
20
|
-
}) => JSX.Element;
|
|
16
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
21
17
|
} & {
|
|
22
18
|
keyTest?: undefined;
|
|
23
19
|
};
|
|
@@ -28,6 +24,11 @@ export declare const actionChangeFillStyle: {
|
|
|
28
24
|
elements: ExcalidrawElement[];
|
|
29
25
|
appState: {
|
|
30
26
|
currentItemFillStyle: any;
|
|
27
|
+
contextMenu: {
|
|
28
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
29
|
+
top: number;
|
|
30
|
+
left: number;
|
|
31
|
+
} | null;
|
|
31
32
|
showWelcomeScreen: boolean;
|
|
32
33
|
isLoading: boolean;
|
|
33
34
|
errorMessage: string | null;
|
|
@@ -41,16 +42,15 @@ export declare const actionChangeFillStyle: {
|
|
|
41
42
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
42
43
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
43
44
|
activeTool: {
|
|
44
|
-
|
|
45
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
45
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
46
46
|
locked: boolean;
|
|
47
|
+
} & ({
|
|
48
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
47
49
|
customType: null;
|
|
48
50
|
} | {
|
|
49
51
|
type: "custom";
|
|
50
52
|
customType: string;
|
|
51
|
-
|
|
52
|
-
locked: boolean;
|
|
53
|
-
};
|
|
53
|
+
});
|
|
54
54
|
penMode: boolean;
|
|
55
55
|
penDetected: boolean;
|
|
56
56
|
exportBackground: boolean;
|
|
@@ -83,7 +83,7 @@ export declare const actionChangeFillStyle: {
|
|
|
83
83
|
openMenu: "canvas" | "shape" | null;
|
|
84
84
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
85
85
|
openSidebar: "library" | "customSidebar" | null;
|
|
86
|
-
openDialog: "imageExport" | "help" | null;
|
|
86
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
87
87
|
isSidebarDocked: boolean;
|
|
88
88
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
89
89
|
selectedElementIds: {
|
|
@@ -101,6 +101,7 @@ export declare const actionChangeFillStyle: {
|
|
|
101
101
|
zenModeEnabled: boolean;
|
|
102
102
|
theme: string;
|
|
103
103
|
gridSize: number | null;
|
|
104
|
+
previousGridSize: number | null;
|
|
104
105
|
viewModeEnabled: boolean;
|
|
105
106
|
selectedGroupIds: {
|
|
106
107
|
[groupId: string]: boolean;
|
|
@@ -130,13 +131,13 @@ export declare const actionChangeFillStyle: {
|
|
|
130
131
|
elementBackground?: string[] | undefined;
|
|
131
132
|
elementStroke?: string[] | undefined;
|
|
132
133
|
};
|
|
134
|
+
allowWheelZoom?: boolean | undefined;
|
|
135
|
+
allowPinchZoom?: boolean | undefined;
|
|
133
136
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
134
137
|
};
|
|
135
138
|
commitToHistory: true;
|
|
136
139
|
};
|
|
137
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
138
|
-
isInHamburgerMenu: boolean;
|
|
139
|
-
}) => JSX.Element;
|
|
140
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
140
141
|
} & {
|
|
141
142
|
keyTest?: undefined;
|
|
142
143
|
};
|
|
@@ -147,6 +148,11 @@ export declare const actionChangeStrokeWidth: {
|
|
|
147
148
|
elements: ExcalidrawElement[];
|
|
148
149
|
appState: {
|
|
149
150
|
currentItemStrokeWidth: any;
|
|
151
|
+
contextMenu: {
|
|
152
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
153
|
+
top: number;
|
|
154
|
+
left: number;
|
|
155
|
+
} | null;
|
|
150
156
|
showWelcomeScreen: boolean;
|
|
151
157
|
isLoading: boolean;
|
|
152
158
|
errorMessage: string | null;
|
|
@@ -160,16 +166,15 @@ export declare const actionChangeStrokeWidth: {
|
|
|
160
166
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
161
167
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
162
168
|
activeTool: {
|
|
163
|
-
|
|
164
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
169
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
165
170
|
locked: boolean;
|
|
171
|
+
} & ({
|
|
172
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
166
173
|
customType: null;
|
|
167
174
|
} | {
|
|
168
175
|
type: "custom";
|
|
169
176
|
customType: string;
|
|
170
|
-
|
|
171
|
-
locked: boolean;
|
|
172
|
-
};
|
|
177
|
+
});
|
|
173
178
|
penMode: boolean;
|
|
174
179
|
penDetected: boolean;
|
|
175
180
|
exportBackground: boolean;
|
|
@@ -202,7 +207,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
202
207
|
openMenu: "canvas" | "shape" | null;
|
|
203
208
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
204
209
|
openSidebar: "library" | "customSidebar" | null;
|
|
205
|
-
openDialog: "imageExport" | "help" | null;
|
|
210
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
206
211
|
isSidebarDocked: boolean;
|
|
207
212
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
208
213
|
selectedElementIds: {
|
|
@@ -220,6 +225,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
220
225
|
zenModeEnabled: boolean;
|
|
221
226
|
theme: string;
|
|
222
227
|
gridSize: number | null;
|
|
228
|
+
previousGridSize: number | null;
|
|
223
229
|
viewModeEnabled: boolean;
|
|
224
230
|
selectedGroupIds: {
|
|
225
231
|
[groupId: string]: boolean;
|
|
@@ -249,13 +255,13 @@ export declare const actionChangeStrokeWidth: {
|
|
|
249
255
|
elementBackground?: string[] | undefined;
|
|
250
256
|
elementStroke?: string[] | undefined;
|
|
251
257
|
};
|
|
258
|
+
allowWheelZoom?: boolean | undefined;
|
|
259
|
+
allowPinchZoom?: boolean | undefined;
|
|
252
260
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
253
261
|
};
|
|
254
262
|
commitToHistory: true;
|
|
255
263
|
};
|
|
256
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
257
|
-
isInHamburgerMenu: boolean;
|
|
258
|
-
}) => JSX.Element;
|
|
264
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
259
265
|
} & {
|
|
260
266
|
keyTest?: undefined;
|
|
261
267
|
};
|
|
@@ -266,6 +272,11 @@ export declare const actionChangeSloppiness: {
|
|
|
266
272
|
elements: ExcalidrawElement[];
|
|
267
273
|
appState: {
|
|
268
274
|
currentItemRoughness: any;
|
|
275
|
+
contextMenu: {
|
|
276
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
277
|
+
top: number;
|
|
278
|
+
left: number;
|
|
279
|
+
} | null;
|
|
269
280
|
showWelcomeScreen: boolean;
|
|
270
281
|
isLoading: boolean;
|
|
271
282
|
errorMessage: string | null;
|
|
@@ -279,16 +290,15 @@ export declare const actionChangeSloppiness: {
|
|
|
279
290
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
280
291
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
281
292
|
activeTool: {
|
|
282
|
-
|
|
283
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
293
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
284
294
|
locked: boolean;
|
|
295
|
+
} & ({
|
|
296
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
285
297
|
customType: null;
|
|
286
298
|
} | {
|
|
287
299
|
type: "custom";
|
|
288
300
|
customType: string;
|
|
289
|
-
|
|
290
|
-
locked: boolean;
|
|
291
|
-
};
|
|
301
|
+
});
|
|
292
302
|
penMode: boolean;
|
|
293
303
|
penDetected: boolean;
|
|
294
304
|
exportBackground: boolean;
|
|
@@ -321,7 +331,7 @@ export declare const actionChangeSloppiness: {
|
|
|
321
331
|
openMenu: "canvas" | "shape" | null;
|
|
322
332
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
323
333
|
openSidebar: "library" | "customSidebar" | null;
|
|
324
|
-
openDialog: "imageExport" | "help" | null;
|
|
334
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
325
335
|
isSidebarDocked: boolean;
|
|
326
336
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
327
337
|
selectedElementIds: {
|
|
@@ -339,6 +349,7 @@ export declare const actionChangeSloppiness: {
|
|
|
339
349
|
zenModeEnabled: boolean;
|
|
340
350
|
theme: string;
|
|
341
351
|
gridSize: number | null;
|
|
352
|
+
previousGridSize: number | null;
|
|
342
353
|
viewModeEnabled: boolean;
|
|
343
354
|
selectedGroupIds: {
|
|
344
355
|
[groupId: string]: boolean;
|
|
@@ -368,13 +379,13 @@ export declare const actionChangeSloppiness: {
|
|
|
368
379
|
elementBackground?: string[] | undefined;
|
|
369
380
|
elementStroke?: string[] | undefined;
|
|
370
381
|
};
|
|
382
|
+
allowWheelZoom?: boolean | undefined;
|
|
383
|
+
allowPinchZoom?: boolean | undefined;
|
|
371
384
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
372
385
|
};
|
|
373
386
|
commitToHistory: true;
|
|
374
387
|
};
|
|
375
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
376
|
-
isInHamburgerMenu: boolean;
|
|
377
|
-
}) => JSX.Element;
|
|
388
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
378
389
|
} & {
|
|
379
390
|
keyTest?: undefined;
|
|
380
391
|
};
|
|
@@ -385,6 +396,11 @@ export declare const actionChangeStrokeStyle: {
|
|
|
385
396
|
elements: ExcalidrawElement[];
|
|
386
397
|
appState: {
|
|
387
398
|
currentItemStrokeStyle: any;
|
|
399
|
+
contextMenu: {
|
|
400
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
401
|
+
top: number;
|
|
402
|
+
left: number;
|
|
403
|
+
} | null;
|
|
388
404
|
showWelcomeScreen: boolean;
|
|
389
405
|
isLoading: boolean;
|
|
390
406
|
errorMessage: string | null;
|
|
@@ -398,16 +414,15 @@ export declare const actionChangeStrokeStyle: {
|
|
|
398
414
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
399
415
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
400
416
|
activeTool: {
|
|
401
|
-
|
|
402
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
417
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
403
418
|
locked: boolean;
|
|
419
|
+
} & ({
|
|
420
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
404
421
|
customType: null;
|
|
405
422
|
} | {
|
|
406
423
|
type: "custom";
|
|
407
424
|
customType: string;
|
|
408
|
-
|
|
409
|
-
locked: boolean;
|
|
410
|
-
};
|
|
425
|
+
});
|
|
411
426
|
penMode: boolean;
|
|
412
427
|
penDetected: boolean;
|
|
413
428
|
exportBackground: boolean;
|
|
@@ -440,7 +455,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
440
455
|
openMenu: "canvas" | "shape" | null;
|
|
441
456
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
442
457
|
openSidebar: "library" | "customSidebar" | null;
|
|
443
|
-
openDialog: "imageExport" | "help" | null;
|
|
458
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
444
459
|
isSidebarDocked: boolean;
|
|
445
460
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
446
461
|
selectedElementIds: {
|
|
@@ -458,6 +473,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
458
473
|
zenModeEnabled: boolean;
|
|
459
474
|
theme: string;
|
|
460
475
|
gridSize: number | null;
|
|
476
|
+
previousGridSize: number | null;
|
|
461
477
|
viewModeEnabled: boolean;
|
|
462
478
|
selectedGroupIds: {
|
|
463
479
|
[groupId: string]: boolean;
|
|
@@ -487,13 +503,13 @@ export declare const actionChangeStrokeStyle: {
|
|
|
487
503
|
elementBackground?: string[] | undefined;
|
|
488
504
|
elementStroke?: string[] | undefined;
|
|
489
505
|
};
|
|
506
|
+
allowWheelZoom?: boolean | undefined;
|
|
507
|
+
allowPinchZoom?: boolean | undefined;
|
|
490
508
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
491
509
|
};
|
|
492
510
|
commitToHistory: true;
|
|
493
511
|
};
|
|
494
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
495
|
-
isInHamburgerMenu: boolean;
|
|
496
|
-
}) => JSX.Element;
|
|
512
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
497
513
|
} & {
|
|
498
514
|
keyTest?: undefined;
|
|
499
515
|
};
|
|
@@ -504,6 +520,11 @@ export declare const actionChangeOpacity: {
|
|
|
504
520
|
elements: ExcalidrawElement[];
|
|
505
521
|
appState: {
|
|
506
522
|
currentItemOpacity: any;
|
|
523
|
+
contextMenu: {
|
|
524
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
525
|
+
top: number;
|
|
526
|
+
left: number;
|
|
527
|
+
} | null;
|
|
507
528
|
showWelcomeScreen: boolean;
|
|
508
529
|
isLoading: boolean;
|
|
509
530
|
errorMessage: string | null;
|
|
@@ -517,16 +538,15 @@ export declare const actionChangeOpacity: {
|
|
|
517
538
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
518
539
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
519
540
|
activeTool: {
|
|
520
|
-
|
|
521
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
541
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
522
542
|
locked: boolean;
|
|
543
|
+
} & ({
|
|
544
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
523
545
|
customType: null;
|
|
524
546
|
} | {
|
|
525
547
|
type: "custom";
|
|
526
548
|
customType: string;
|
|
527
|
-
|
|
528
|
-
locked: boolean;
|
|
529
|
-
};
|
|
549
|
+
});
|
|
530
550
|
penMode: boolean;
|
|
531
551
|
penDetected: boolean;
|
|
532
552
|
exportBackground: boolean;
|
|
@@ -559,7 +579,7 @@ export declare const actionChangeOpacity: {
|
|
|
559
579
|
openMenu: "canvas" | "shape" | null;
|
|
560
580
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
561
581
|
openSidebar: "library" | "customSidebar" | null;
|
|
562
|
-
openDialog: "imageExport" | "help" | null;
|
|
582
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
563
583
|
isSidebarDocked: boolean;
|
|
564
584
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
565
585
|
selectedElementIds: {
|
|
@@ -577,6 +597,7 @@ export declare const actionChangeOpacity: {
|
|
|
577
597
|
zenModeEnabled: boolean;
|
|
578
598
|
theme: string;
|
|
579
599
|
gridSize: number | null;
|
|
600
|
+
previousGridSize: number | null;
|
|
580
601
|
viewModeEnabled: boolean;
|
|
581
602
|
selectedGroupIds: {
|
|
582
603
|
[groupId: string]: boolean;
|
|
@@ -606,13 +627,13 @@ export declare const actionChangeOpacity: {
|
|
|
606
627
|
elementBackground?: string[] | undefined;
|
|
607
628
|
elementStroke?: string[] | undefined;
|
|
608
629
|
};
|
|
630
|
+
allowWheelZoom?: boolean | undefined;
|
|
631
|
+
allowPinchZoom?: boolean | undefined;
|
|
609
632
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
610
633
|
};
|
|
611
634
|
commitToHistory: true;
|
|
612
635
|
};
|
|
613
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
614
|
-
isInHamburgerMenu: boolean;
|
|
615
|
-
}) => JSX.Element;
|
|
636
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
616
637
|
} & {
|
|
617
638
|
keyTest?: undefined;
|
|
618
639
|
};
|
|
@@ -623,6 +644,11 @@ export declare const actionChangeFontSize: {
|
|
|
623
644
|
elements: ExcalidrawElement[];
|
|
624
645
|
appState: {
|
|
625
646
|
currentItemFontSize: number;
|
|
647
|
+
contextMenu: {
|
|
648
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
649
|
+
top: number;
|
|
650
|
+
left: number;
|
|
651
|
+
} | null;
|
|
626
652
|
showWelcomeScreen: boolean;
|
|
627
653
|
isLoading: boolean;
|
|
628
654
|
errorMessage: string | null;
|
|
@@ -636,16 +662,15 @@ export declare const actionChangeFontSize: {
|
|
|
636
662
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
637
663
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
638
664
|
activeTool: {
|
|
639
|
-
|
|
640
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
665
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
641
666
|
locked: boolean;
|
|
667
|
+
} & ({
|
|
668
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
642
669
|
customType: null;
|
|
643
670
|
} | {
|
|
644
671
|
type: "custom";
|
|
645
672
|
customType: string;
|
|
646
|
-
|
|
647
|
-
locked: boolean;
|
|
648
|
-
};
|
|
673
|
+
});
|
|
649
674
|
penMode: boolean;
|
|
650
675
|
penDetected: boolean;
|
|
651
676
|
exportBackground: boolean;
|
|
@@ -678,7 +703,7 @@ export declare const actionChangeFontSize: {
|
|
|
678
703
|
openMenu: "canvas" | "shape" | null;
|
|
679
704
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
680
705
|
openSidebar: "library" | "customSidebar" | null;
|
|
681
|
-
openDialog: "imageExport" | "help" | null;
|
|
706
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
682
707
|
isSidebarDocked: boolean;
|
|
683
708
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
684
709
|
selectedElementIds: {
|
|
@@ -696,6 +721,7 @@ export declare const actionChangeFontSize: {
|
|
|
696
721
|
zenModeEnabled: boolean;
|
|
697
722
|
theme: string;
|
|
698
723
|
gridSize: number | null;
|
|
724
|
+
previousGridSize: number | null;
|
|
699
725
|
viewModeEnabled: boolean;
|
|
700
726
|
selectedGroupIds: {
|
|
701
727
|
[groupId: string]: boolean;
|
|
@@ -725,13 +751,13 @@ export declare const actionChangeFontSize: {
|
|
|
725
751
|
elementBackground?: string[] | undefined;
|
|
726
752
|
elementStroke?: string[] | undefined;
|
|
727
753
|
};
|
|
754
|
+
allowWheelZoom?: boolean | undefined;
|
|
755
|
+
allowPinchZoom?: boolean | undefined;
|
|
728
756
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
729
757
|
};
|
|
730
758
|
commitToHistory: boolean;
|
|
731
759
|
};
|
|
732
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
733
|
-
isInHamburgerMenu: boolean;
|
|
734
|
-
}) => JSX.Element;
|
|
760
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
735
761
|
} & {
|
|
736
762
|
keyTest?: undefined;
|
|
737
763
|
};
|
|
@@ -742,6 +768,11 @@ export declare const actionDecreaseFontSize: {
|
|
|
742
768
|
elements: ExcalidrawElement[];
|
|
743
769
|
appState: {
|
|
744
770
|
currentItemFontSize: number;
|
|
771
|
+
contextMenu: {
|
|
772
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
773
|
+
top: number;
|
|
774
|
+
left: number;
|
|
775
|
+
} | null;
|
|
745
776
|
showWelcomeScreen: boolean;
|
|
746
777
|
isLoading: boolean;
|
|
747
778
|
errorMessage: string | null;
|
|
@@ -755,16 +786,15 @@ export declare const actionDecreaseFontSize: {
|
|
|
755
786
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
756
787
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
757
788
|
activeTool: {
|
|
758
|
-
|
|
759
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
789
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
760
790
|
locked: boolean;
|
|
791
|
+
} & ({
|
|
792
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
761
793
|
customType: null;
|
|
762
794
|
} | {
|
|
763
795
|
type: "custom";
|
|
764
796
|
customType: string;
|
|
765
|
-
|
|
766
|
-
locked: boolean;
|
|
767
|
-
};
|
|
797
|
+
});
|
|
768
798
|
penMode: boolean;
|
|
769
799
|
penDetected: boolean;
|
|
770
800
|
exportBackground: boolean;
|
|
@@ -797,7 +827,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
797
827
|
openMenu: "canvas" | "shape" | null;
|
|
798
828
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
799
829
|
openSidebar: "library" | "customSidebar" | null;
|
|
800
|
-
openDialog: "imageExport" | "help" | null;
|
|
830
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
801
831
|
isSidebarDocked: boolean;
|
|
802
832
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
803
833
|
selectedElementIds: {
|
|
@@ -815,6 +845,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
815
845
|
zenModeEnabled: boolean;
|
|
816
846
|
theme: string;
|
|
817
847
|
gridSize: number | null;
|
|
848
|
+
previousGridSize: number | null;
|
|
818
849
|
viewModeEnabled: boolean;
|
|
819
850
|
selectedGroupIds: {
|
|
820
851
|
[groupId: string]: boolean;
|
|
@@ -844,6 +875,8 @@ export declare const actionDecreaseFontSize: {
|
|
|
844
875
|
elementBackground?: string[] | undefined;
|
|
845
876
|
elementStroke?: string[] | undefined;
|
|
846
877
|
};
|
|
878
|
+
allowWheelZoom?: boolean | undefined;
|
|
879
|
+
allowPinchZoom?: boolean | undefined;
|
|
847
880
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
848
881
|
};
|
|
849
882
|
commitToHistory: boolean;
|
|
@@ -859,6 +892,11 @@ export declare const actionIncreaseFontSize: {
|
|
|
859
892
|
elements: ExcalidrawElement[];
|
|
860
893
|
appState: {
|
|
861
894
|
currentItemFontSize: number;
|
|
895
|
+
contextMenu: {
|
|
896
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
897
|
+
top: number;
|
|
898
|
+
left: number;
|
|
899
|
+
} | null;
|
|
862
900
|
showWelcomeScreen: boolean;
|
|
863
901
|
isLoading: boolean;
|
|
864
902
|
errorMessage: string | null;
|
|
@@ -872,16 +910,15 @@ export declare const actionIncreaseFontSize: {
|
|
|
872
910
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
873
911
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
874
912
|
activeTool: {
|
|
875
|
-
|
|
876
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
913
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
877
914
|
locked: boolean;
|
|
915
|
+
} & ({
|
|
916
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
878
917
|
customType: null;
|
|
879
918
|
} | {
|
|
880
919
|
type: "custom";
|
|
881
920
|
customType: string;
|
|
882
|
-
|
|
883
|
-
locked: boolean;
|
|
884
|
-
};
|
|
921
|
+
});
|
|
885
922
|
penMode: boolean;
|
|
886
923
|
penDetected: boolean;
|
|
887
924
|
exportBackground: boolean;
|
|
@@ -914,7 +951,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
914
951
|
openMenu: "canvas" | "shape" | null;
|
|
915
952
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
916
953
|
openSidebar: "library" | "customSidebar" | null;
|
|
917
|
-
openDialog: "imageExport" | "help" | null;
|
|
954
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
918
955
|
isSidebarDocked: boolean;
|
|
919
956
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
920
957
|
selectedElementIds: {
|
|
@@ -932,6 +969,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
932
969
|
zenModeEnabled: boolean;
|
|
933
970
|
theme: string;
|
|
934
971
|
gridSize: number | null;
|
|
972
|
+
previousGridSize: number | null;
|
|
935
973
|
viewModeEnabled: boolean;
|
|
936
974
|
selectedGroupIds: {
|
|
937
975
|
[groupId: string]: boolean;
|
|
@@ -961,6 +999,8 @@ export declare const actionIncreaseFontSize: {
|
|
|
961
999
|
elementBackground?: string[] | undefined;
|
|
962
1000
|
elementStroke?: string[] | undefined;
|
|
963
1001
|
};
|
|
1002
|
+
allowWheelZoom?: boolean | undefined;
|
|
1003
|
+
allowPinchZoom?: boolean | undefined;
|
|
964
1004
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
965
1005
|
};
|
|
966
1006
|
commitToHistory: boolean;
|
|
@@ -976,6 +1016,11 @@ export declare const actionChangeFontFamily: {
|
|
|
976
1016
|
elements: ExcalidrawElement[];
|
|
977
1017
|
appState: {
|
|
978
1018
|
currentItemFontFamily: any;
|
|
1019
|
+
contextMenu: {
|
|
1020
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1021
|
+
top: number;
|
|
1022
|
+
left: number;
|
|
1023
|
+
} | null;
|
|
979
1024
|
showWelcomeScreen: boolean;
|
|
980
1025
|
isLoading: boolean;
|
|
981
1026
|
errorMessage: string | null;
|
|
@@ -989,16 +1034,15 @@ export declare const actionChangeFontFamily: {
|
|
|
989
1034
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
990
1035
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
991
1036
|
activeTool: {
|
|
992
|
-
|
|
993
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
1037
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
994
1038
|
locked: boolean;
|
|
1039
|
+
} & ({
|
|
1040
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
995
1041
|
customType: null;
|
|
996
1042
|
} | {
|
|
997
1043
|
type: "custom";
|
|
998
1044
|
customType: string;
|
|
999
|
-
|
|
1000
|
-
locked: boolean;
|
|
1001
|
-
};
|
|
1045
|
+
});
|
|
1002
1046
|
penMode: boolean;
|
|
1003
1047
|
penDetected: boolean;
|
|
1004
1048
|
exportBackground: boolean;
|
|
@@ -1031,7 +1075,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1031
1075
|
openMenu: "canvas" | "shape" | null;
|
|
1032
1076
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1033
1077
|
openSidebar: "library" | "customSidebar" | null;
|
|
1034
|
-
openDialog: "imageExport" | "help" | null;
|
|
1078
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1035
1079
|
isSidebarDocked: boolean;
|
|
1036
1080
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1037
1081
|
selectedElementIds: {
|
|
@@ -1049,6 +1093,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1049
1093
|
zenModeEnabled: boolean;
|
|
1050
1094
|
theme: string;
|
|
1051
1095
|
gridSize: number | null;
|
|
1096
|
+
previousGridSize: number | null;
|
|
1052
1097
|
viewModeEnabled: boolean;
|
|
1053
1098
|
selectedGroupIds: {
|
|
1054
1099
|
[groupId: string]: boolean;
|
|
@@ -1078,13 +1123,13 @@ export declare const actionChangeFontFamily: {
|
|
|
1078
1123
|
elementBackground?: string[] | undefined;
|
|
1079
1124
|
elementStroke?: string[] | undefined;
|
|
1080
1125
|
};
|
|
1126
|
+
allowWheelZoom?: boolean | undefined;
|
|
1127
|
+
allowPinchZoom?: boolean | undefined;
|
|
1081
1128
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1082
1129
|
};
|
|
1083
1130
|
commitToHistory: true;
|
|
1084
1131
|
};
|
|
1085
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
1086
|
-
isInHamburgerMenu: boolean;
|
|
1087
|
-
}) => JSX.Element;
|
|
1132
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1088
1133
|
} & {
|
|
1089
1134
|
keyTest?: undefined;
|
|
1090
1135
|
};
|
|
@@ -1095,6 +1140,11 @@ export declare const actionChangeTextAlign: {
|
|
|
1095
1140
|
elements: ExcalidrawElement[];
|
|
1096
1141
|
appState: {
|
|
1097
1142
|
currentItemTextAlign: any;
|
|
1143
|
+
contextMenu: {
|
|
1144
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1145
|
+
top: number;
|
|
1146
|
+
left: number;
|
|
1147
|
+
} | null;
|
|
1098
1148
|
showWelcomeScreen: boolean;
|
|
1099
1149
|
isLoading: boolean;
|
|
1100
1150
|
errorMessage: string | null;
|
|
@@ -1108,16 +1158,15 @@ export declare const actionChangeTextAlign: {
|
|
|
1108
1158
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1109
1159
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1110
1160
|
activeTool: {
|
|
1111
|
-
|
|
1112
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
1161
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1113
1162
|
locked: boolean;
|
|
1163
|
+
} & ({
|
|
1164
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1114
1165
|
customType: null;
|
|
1115
1166
|
} | {
|
|
1116
1167
|
type: "custom";
|
|
1117
1168
|
customType: string;
|
|
1118
|
-
|
|
1119
|
-
locked: boolean;
|
|
1120
|
-
};
|
|
1169
|
+
});
|
|
1121
1170
|
penMode: boolean;
|
|
1122
1171
|
penDetected: boolean;
|
|
1123
1172
|
exportBackground: boolean;
|
|
@@ -1150,7 +1199,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1150
1199
|
openMenu: "canvas" | "shape" | null;
|
|
1151
1200
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1152
1201
|
openSidebar: "library" | "customSidebar" | null;
|
|
1153
|
-
openDialog: "imageExport" | "help" | null;
|
|
1202
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1154
1203
|
isSidebarDocked: boolean;
|
|
1155
1204
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1156
1205
|
selectedElementIds: {
|
|
@@ -1168,6 +1217,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1168
1217
|
zenModeEnabled: boolean;
|
|
1169
1218
|
theme: string;
|
|
1170
1219
|
gridSize: number | null;
|
|
1220
|
+
previousGridSize: number | null;
|
|
1171
1221
|
viewModeEnabled: boolean;
|
|
1172
1222
|
selectedGroupIds: {
|
|
1173
1223
|
[groupId: string]: boolean;
|
|
@@ -1197,13 +1247,13 @@ export declare const actionChangeTextAlign: {
|
|
|
1197
1247
|
elementBackground?: string[] | undefined;
|
|
1198
1248
|
elementStroke?: string[] | undefined;
|
|
1199
1249
|
};
|
|
1250
|
+
allowWheelZoom?: boolean | undefined;
|
|
1251
|
+
allowPinchZoom?: boolean | undefined;
|
|
1200
1252
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1201
1253
|
};
|
|
1202
1254
|
commitToHistory: true;
|
|
1203
1255
|
};
|
|
1204
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
1205
|
-
isInHamburgerMenu: boolean;
|
|
1206
|
-
}) => JSX.Element;
|
|
1256
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1207
1257
|
} & {
|
|
1208
1258
|
keyTest?: undefined;
|
|
1209
1259
|
};
|
|
@@ -1215,6 +1265,11 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1215
1265
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
1216
1266
|
elements: ExcalidrawElement[];
|
|
1217
1267
|
appState: {
|
|
1268
|
+
contextMenu: {
|
|
1269
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1270
|
+
top: number;
|
|
1271
|
+
left: number;
|
|
1272
|
+
} | null;
|
|
1218
1273
|
showWelcomeScreen: boolean;
|
|
1219
1274
|
isLoading: boolean;
|
|
1220
1275
|
errorMessage: string | null;
|
|
@@ -1228,16 +1283,15 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1228
1283
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1229
1284
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1230
1285
|
activeTool: {
|
|
1231
|
-
|
|
1232
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
1286
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1233
1287
|
locked: boolean;
|
|
1288
|
+
} & ({
|
|
1289
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1234
1290
|
customType: null;
|
|
1235
1291
|
} | {
|
|
1236
1292
|
type: "custom";
|
|
1237
1293
|
customType: string;
|
|
1238
|
-
|
|
1239
|
-
locked: boolean;
|
|
1240
|
-
};
|
|
1294
|
+
});
|
|
1241
1295
|
penMode: boolean;
|
|
1242
1296
|
penDetected: boolean;
|
|
1243
1297
|
exportBackground: boolean;
|
|
@@ -1271,7 +1325,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1271
1325
|
openMenu: "canvas" | "shape" | null;
|
|
1272
1326
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1273
1327
|
openSidebar: "library" | "customSidebar" | null;
|
|
1274
|
-
openDialog: "imageExport" | "help" | null;
|
|
1328
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1275
1329
|
isSidebarDocked: boolean;
|
|
1276
1330
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1277
1331
|
selectedElementIds: {
|
|
@@ -1289,6 +1343,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1289
1343
|
zenModeEnabled: boolean;
|
|
1290
1344
|
theme: string;
|
|
1291
1345
|
gridSize: number | null;
|
|
1346
|
+
previousGridSize: number | null;
|
|
1292
1347
|
viewModeEnabled: boolean;
|
|
1293
1348
|
selectedGroupIds: {
|
|
1294
1349
|
[groupId: string]: boolean;
|
|
@@ -1318,13 +1373,13 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1318
1373
|
elementBackground?: string[] | undefined;
|
|
1319
1374
|
elementStroke?: string[] | undefined;
|
|
1320
1375
|
};
|
|
1376
|
+
allowWheelZoom?: boolean | undefined;
|
|
1377
|
+
allowPinchZoom?: boolean | undefined;
|
|
1321
1378
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1322
1379
|
};
|
|
1323
1380
|
commitToHistory: true;
|
|
1324
1381
|
};
|
|
1325
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
1326
|
-
isInHamburgerMenu: boolean;
|
|
1327
|
-
}) => JSX.Element;
|
|
1382
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1328
1383
|
} & {
|
|
1329
1384
|
keyTest?: undefined;
|
|
1330
1385
|
};
|
|
@@ -1335,6 +1390,11 @@ export declare const actionChangeRoundness: {
|
|
|
1335
1390
|
elements: ExcalidrawElement[];
|
|
1336
1391
|
appState: {
|
|
1337
1392
|
currentItemRoundness: any;
|
|
1393
|
+
contextMenu: {
|
|
1394
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1395
|
+
top: number;
|
|
1396
|
+
left: number;
|
|
1397
|
+
} | null;
|
|
1338
1398
|
showWelcomeScreen: boolean;
|
|
1339
1399
|
isLoading: boolean;
|
|
1340
1400
|
errorMessage: string | null;
|
|
@@ -1348,16 +1408,15 @@ export declare const actionChangeRoundness: {
|
|
|
1348
1408
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1349
1409
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1350
1410
|
activeTool: {
|
|
1351
|
-
|
|
1352
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
1411
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1353
1412
|
locked: boolean;
|
|
1413
|
+
} & ({
|
|
1414
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1354
1415
|
customType: null;
|
|
1355
1416
|
} | {
|
|
1356
1417
|
type: "custom";
|
|
1357
1418
|
customType: string;
|
|
1358
|
-
|
|
1359
|
-
locked: boolean;
|
|
1360
|
-
};
|
|
1419
|
+
});
|
|
1361
1420
|
penMode: boolean;
|
|
1362
1421
|
penDetected: boolean;
|
|
1363
1422
|
exportBackground: boolean;
|
|
@@ -1390,7 +1449,7 @@ export declare const actionChangeRoundness: {
|
|
|
1390
1449
|
openMenu: "canvas" | "shape" | null;
|
|
1391
1450
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1392
1451
|
openSidebar: "library" | "customSidebar" | null;
|
|
1393
|
-
openDialog: "imageExport" | "help" | null;
|
|
1452
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1394
1453
|
isSidebarDocked: boolean;
|
|
1395
1454
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1396
1455
|
selectedElementIds: {
|
|
@@ -1408,6 +1467,7 @@ export declare const actionChangeRoundness: {
|
|
|
1408
1467
|
zenModeEnabled: boolean;
|
|
1409
1468
|
theme: string;
|
|
1410
1469
|
gridSize: number | null;
|
|
1470
|
+
previousGridSize: number | null;
|
|
1411
1471
|
viewModeEnabled: boolean;
|
|
1412
1472
|
selectedGroupIds: {
|
|
1413
1473
|
[groupId: string]: boolean;
|
|
@@ -1437,13 +1497,13 @@ export declare const actionChangeRoundness: {
|
|
|
1437
1497
|
elementBackground?: string[] | undefined;
|
|
1438
1498
|
elementStroke?: string[] | undefined;
|
|
1439
1499
|
};
|
|
1500
|
+
allowWheelZoom?: boolean | undefined;
|
|
1501
|
+
allowPinchZoom?: boolean | undefined;
|
|
1440
1502
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1441
1503
|
};
|
|
1442
1504
|
commitToHistory: true;
|
|
1443
1505
|
};
|
|
1444
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
1445
|
-
isInHamburgerMenu: boolean;
|
|
1446
|
-
}) => JSX.Element;
|
|
1506
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1447
1507
|
} & {
|
|
1448
1508
|
keyTest?: undefined;
|
|
1449
1509
|
};
|
|
@@ -1456,6 +1516,11 @@ export declare const actionChangeArrowhead: {
|
|
|
1456
1516
|
}) => {
|
|
1457
1517
|
elements: ExcalidrawElement[];
|
|
1458
1518
|
appState: {
|
|
1519
|
+
contextMenu: {
|
|
1520
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1521
|
+
top: number;
|
|
1522
|
+
left: number;
|
|
1523
|
+
} | null;
|
|
1459
1524
|
showWelcomeScreen: boolean;
|
|
1460
1525
|
isLoading: boolean;
|
|
1461
1526
|
errorMessage: string | null;
|
|
@@ -1469,16 +1534,15 @@ export declare const actionChangeArrowhead: {
|
|
|
1469
1534
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1470
1535
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1471
1536
|
activeTool: {
|
|
1472
|
-
|
|
1473
|
-
lastActiveToolBeforeEraser: import("../../src/types").LastActiveToolBeforeEraser;
|
|
1537
|
+
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1474
1538
|
locked: boolean;
|
|
1539
|
+
} & ({
|
|
1540
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1475
1541
|
customType: null;
|
|
1476
1542
|
} | {
|
|
1477
1543
|
type: "custom";
|
|
1478
1544
|
customType: string;
|
|
1479
|
-
|
|
1480
|
-
locked: boolean;
|
|
1481
|
-
};
|
|
1545
|
+
});
|
|
1482
1546
|
penMode: boolean;
|
|
1483
1547
|
penDetected: boolean;
|
|
1484
1548
|
exportBackground: boolean;
|
|
@@ -1512,7 +1576,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1512
1576
|
openMenu: "canvas" | "shape" | null;
|
|
1513
1577
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1514
1578
|
openSidebar: "library" | "customSidebar" | null;
|
|
1515
|
-
openDialog: "imageExport" | "help" | null;
|
|
1579
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1516
1580
|
isSidebarDocked: boolean;
|
|
1517
1581
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1518
1582
|
selectedElementIds: {
|
|
@@ -1530,6 +1594,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1530
1594
|
zenModeEnabled: boolean;
|
|
1531
1595
|
theme: string;
|
|
1532
1596
|
gridSize: number | null;
|
|
1597
|
+
previousGridSize: number | null;
|
|
1533
1598
|
viewModeEnabled: boolean;
|
|
1534
1599
|
selectedGroupIds: {
|
|
1535
1600
|
[groupId: string]: boolean;
|
|
@@ -1559,13 +1624,13 @@ export declare const actionChangeArrowhead: {
|
|
|
1559
1624
|
elementBackground?: string[] | undefined;
|
|
1560
1625
|
elementStroke?: string[] | undefined;
|
|
1561
1626
|
};
|
|
1627
|
+
allowWheelZoom?: boolean | undefined;
|
|
1628
|
+
allowPinchZoom?: boolean | undefined;
|
|
1562
1629
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1563
1630
|
};
|
|
1564
1631
|
commitToHistory: true;
|
|
1565
1632
|
};
|
|
1566
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
1567
|
-
isInHamburgerMenu: boolean;
|
|
1568
|
-
}) => JSX.Element;
|
|
1633
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1569
1634
|
} & {
|
|
1570
1635
|
keyTest?: undefined;
|
|
1571
1636
|
};
|