@zsviczian/excalidraw 0.14.0-obsidian → 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/dist/excalidraw.development.js +149 -116
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +21 -15
- package/types/actions/actionBoundText.d.ts +7 -5
- package/types/actions/actionCanvas.d.ts +185 -47
- package/types/actions/actionClipboard.d.ts +35 -25
- package/types/actions/actionDeleteSelected.d.ts +21 -15
- package/types/actions/actionExport.d.ts +63 -45
- package/types/actions/actionFinalize.d.ts +14 -10
- package/types/actions/actionLinearEditor.d.ts +7 -5
- package/types/actions/actionMenu.d.ts +21 -15
- package/types/actions/actionProperties.d.ts +91 -65
- package/types/actions/actionStyles.d.ts +7 -5
- package/types/actions/actionToggleGridMode.d.ts +7 -5
- package/types/actions/actionToggleLock.d.ts +7 -5
- package/types/actions/actionToggleStats.d.ts +7 -5
- package/types/actions/actionToggleViewMode.d.ts +7 -5
- package/types/actions/actionToggleZenMode.d.ts +7 -5
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +8 -6
- package/types/components/ActiveConfirmDialog.d.ts +24 -0
- package/types/components/App.d.ts +1 -0
- package/types/components/HandButton.d.ts +10 -0
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/LockButton.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +2 -1
- package/types/components/ToolButton.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenu.d.ts +7 -5
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +7 -3
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -3
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +3 -2
- package/types/components/dropdownMenu/common.d.ts +6 -0
- package/types/components/icons.d.ts +1 -0
- package/types/components/main-menu/MainMenu.d.ts +10 -5
- package/types/constants.d.ts +6 -1
- package/types/element/Hyperlink.d.ts +7 -5
- package/types/element/linearElementEditor.d.ts +8 -5
- package/types/keys.d.ts +0 -3
- package/types/types.d.ts +13 -7
- package/types/utils.d.ts +6 -3
package/package.json
CHANGED
|
@@ -27,16 +27,15 @@ export declare const actionAddToLibrary: {
|
|
|
27
27
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
29
29
|
activeTool: {
|
|
30
|
-
|
|
31
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
30
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
32
31
|
locked: boolean;
|
|
32
|
+
} & ({
|
|
33
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
33
34
|
customType: null;
|
|
34
35
|
} | {
|
|
35
36
|
type: "custom";
|
|
36
37
|
customType: string;
|
|
37
|
-
|
|
38
|
-
locked: boolean;
|
|
39
|
-
};
|
|
38
|
+
});
|
|
40
39
|
penMode: boolean;
|
|
41
40
|
penDetected: boolean;
|
|
42
41
|
exportBackground: boolean;
|
|
@@ -83,6 +82,7 @@ export declare const actionAddToLibrary: {
|
|
|
83
82
|
zenModeEnabled: boolean;
|
|
84
83
|
theme: string;
|
|
85
84
|
gridSize: number | null;
|
|
85
|
+
previousGridSize: number | null;
|
|
86
86
|
viewModeEnabled: boolean;
|
|
87
87
|
selectedGroupIds: {
|
|
88
88
|
[groupId: string]: boolean;
|
|
@@ -112,6 +112,8 @@ export declare const actionAddToLibrary: {
|
|
|
112
112
|
elementBackground?: string[] | undefined;
|
|
113
113
|
elementStroke?: string[] | undefined;
|
|
114
114
|
};
|
|
115
|
+
allowWheelZoom?: boolean | undefined;
|
|
116
|
+
allowPinchZoom?: boolean | undefined;
|
|
115
117
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
116
118
|
};
|
|
117
119
|
} | {
|
|
@@ -135,16 +137,15 @@ export declare const actionAddToLibrary: {
|
|
|
135
137
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
136
138
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
137
139
|
activeTool: {
|
|
138
|
-
|
|
139
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
140
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
140
141
|
locked: boolean;
|
|
142
|
+
} & ({
|
|
143
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
141
144
|
customType: null;
|
|
142
145
|
} | {
|
|
143
146
|
type: "custom";
|
|
144
147
|
customType: string;
|
|
145
|
-
|
|
146
|
-
locked: boolean;
|
|
147
|
-
};
|
|
148
|
+
});
|
|
148
149
|
penMode: boolean;
|
|
149
150
|
penDetected: boolean;
|
|
150
151
|
exportBackground: boolean;
|
|
@@ -196,6 +197,7 @@ export declare const actionAddToLibrary: {
|
|
|
196
197
|
zenModeEnabled: boolean;
|
|
197
198
|
theme: string;
|
|
198
199
|
gridSize: number | null;
|
|
200
|
+
previousGridSize: number | null;
|
|
199
201
|
viewModeEnabled: boolean;
|
|
200
202
|
selectedGroupIds: {
|
|
201
203
|
[groupId: string]: boolean;
|
|
@@ -225,6 +227,8 @@ export declare const actionAddToLibrary: {
|
|
|
225
227
|
elementBackground?: string[] | undefined;
|
|
226
228
|
elementStroke?: string[] | undefined;
|
|
227
229
|
};
|
|
230
|
+
allowWheelZoom?: boolean | undefined;
|
|
231
|
+
allowPinchZoom?: boolean | undefined;
|
|
228
232
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
229
233
|
};
|
|
230
234
|
}> | {
|
|
@@ -248,16 +252,15 @@ export declare const actionAddToLibrary: {
|
|
|
248
252
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
249
253
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
250
254
|
activeTool: {
|
|
251
|
-
|
|
252
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
255
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
253
256
|
locked: boolean;
|
|
257
|
+
} & ({
|
|
258
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
254
259
|
customType: null;
|
|
255
260
|
} | {
|
|
256
261
|
type: "custom";
|
|
257
262
|
customType: string;
|
|
258
|
-
|
|
259
|
-
locked: boolean;
|
|
260
|
-
};
|
|
263
|
+
});
|
|
261
264
|
penMode: boolean;
|
|
262
265
|
penDetected: boolean;
|
|
263
266
|
exportBackground: boolean;
|
|
@@ -309,6 +312,7 @@ export declare const actionAddToLibrary: {
|
|
|
309
312
|
zenModeEnabled: boolean;
|
|
310
313
|
theme: string;
|
|
311
314
|
gridSize: number | null;
|
|
315
|
+
previousGridSize: number | null;
|
|
312
316
|
viewModeEnabled: boolean;
|
|
313
317
|
selectedGroupIds: {
|
|
314
318
|
[groupId: string]: boolean;
|
|
@@ -338,6 +342,8 @@ export declare const actionAddToLibrary: {
|
|
|
338
342
|
elementBackground?: string[] | undefined;
|
|
339
343
|
elementStroke?: string[] | undefined;
|
|
340
344
|
};
|
|
345
|
+
allowWheelZoom?: boolean | undefined;
|
|
346
|
+
allowPinchZoom?: boolean | undefined;
|
|
341
347
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
342
348
|
};
|
|
343
349
|
};
|
|
@@ -44,16 +44,15 @@ export declare const actionBindText: {
|
|
|
44
44
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
45
45
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
46
46
|
activeTool: {
|
|
47
|
-
|
|
48
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
47
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
49
48
|
locked: boolean;
|
|
49
|
+
} & ({
|
|
50
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
50
51
|
customType: null;
|
|
51
52
|
} | {
|
|
52
53
|
type: "custom";
|
|
53
54
|
customType: string;
|
|
54
|
-
|
|
55
|
-
locked: boolean;
|
|
56
|
-
};
|
|
55
|
+
});
|
|
57
56
|
penMode: boolean;
|
|
58
57
|
penDetected: boolean;
|
|
59
58
|
exportBackground: boolean;
|
|
@@ -102,6 +101,7 @@ export declare const actionBindText: {
|
|
|
102
101
|
zenModeEnabled: boolean;
|
|
103
102
|
theme: string;
|
|
104
103
|
gridSize: number | null;
|
|
104
|
+
previousGridSize: number | null;
|
|
105
105
|
viewModeEnabled: boolean;
|
|
106
106
|
selectedGroupIds: {
|
|
107
107
|
[groupId: string]: boolean;
|
|
@@ -131,6 +131,8 @@ export declare const actionBindText: {
|
|
|
131
131
|
elementBackground?: string[] | undefined;
|
|
132
132
|
elementStroke?: string[] | undefined;
|
|
133
133
|
};
|
|
134
|
+
allowWheelZoom?: boolean | undefined;
|
|
135
|
+
allowPinchZoom?: boolean | undefined;
|
|
134
136
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
135
137
|
};
|
|
136
138
|
commitToHistory: true;
|
|
@@ -38,22 +38,23 @@ export declare const actionClearCanvas: {
|
|
|
38
38
|
data: import("../charts").Spreadsheet;
|
|
39
39
|
};
|
|
40
40
|
activeTool: {
|
|
41
|
-
|
|
42
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
41
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
43
42
|
locked: boolean;
|
|
43
|
+
} & ({
|
|
44
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
44
45
|
customType: null;
|
|
45
46
|
} | {
|
|
46
47
|
type: "custom";
|
|
47
48
|
customType: string;
|
|
48
|
-
|
|
49
|
-
locked: boolean;
|
|
50
|
-
};
|
|
49
|
+
});
|
|
51
50
|
colorPalette: {
|
|
52
51
|
canvasBackground?: string[] | undefined;
|
|
53
52
|
elementBackground?: string[] | undefined;
|
|
54
53
|
elementStroke?: string[] | undefined;
|
|
55
54
|
};
|
|
56
55
|
trayModeEnabled: boolean;
|
|
56
|
+
allowPinchZoom: boolean | undefined;
|
|
57
|
+
allowWheelZoom: boolean | undefined;
|
|
57
58
|
name: string;
|
|
58
59
|
contextMenu: {
|
|
59
60
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -116,6 +117,7 @@ export declare const actionClearCanvas: {
|
|
|
116
117
|
duration?: number | undefined;
|
|
117
118
|
} | null;
|
|
118
119
|
zenModeEnabled: boolean;
|
|
120
|
+
previousGridSize: number | null;
|
|
119
121
|
viewModeEnabled: boolean;
|
|
120
122
|
selectedGroupIds: {
|
|
121
123
|
[groupId: string]: boolean;
|
|
@@ -165,16 +167,15 @@ export declare const actionZoomIn: {
|
|
|
165
167
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
166
168
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
167
169
|
activeTool: {
|
|
168
|
-
|
|
169
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
170
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
170
171
|
locked: boolean;
|
|
172
|
+
} & ({
|
|
173
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
171
174
|
customType: null;
|
|
172
175
|
} | {
|
|
173
176
|
type: "custom";
|
|
174
177
|
customType: string;
|
|
175
|
-
|
|
176
|
-
locked: boolean;
|
|
177
|
-
};
|
|
178
|
+
});
|
|
178
179
|
penMode: boolean;
|
|
179
180
|
penDetected: boolean;
|
|
180
181
|
exportBackground: boolean;
|
|
@@ -221,6 +222,7 @@ export declare const actionZoomIn: {
|
|
|
221
222
|
zenModeEnabled: boolean;
|
|
222
223
|
theme: string;
|
|
223
224
|
gridSize: number | null;
|
|
225
|
+
previousGridSize: number | null;
|
|
224
226
|
viewModeEnabled: boolean;
|
|
225
227
|
selectedGroupIds: {
|
|
226
228
|
[groupId: string]: boolean;
|
|
@@ -250,6 +252,8 @@ export declare const actionZoomIn: {
|
|
|
250
252
|
elementBackground?: string[] | undefined;
|
|
251
253
|
elementStroke?: string[] | undefined;
|
|
252
254
|
};
|
|
255
|
+
allowWheelZoom?: boolean | undefined;
|
|
256
|
+
allowPinchZoom?: boolean | undefined;
|
|
253
257
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
254
258
|
};
|
|
255
259
|
commitToHistory: false;
|
|
@@ -290,16 +294,15 @@ export declare const actionZoomOut: {
|
|
|
290
294
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
291
295
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
292
296
|
activeTool: {
|
|
293
|
-
|
|
294
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
297
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
295
298
|
locked: boolean;
|
|
299
|
+
} & ({
|
|
300
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
296
301
|
customType: null;
|
|
297
302
|
} | {
|
|
298
303
|
type: "custom";
|
|
299
304
|
customType: string;
|
|
300
|
-
|
|
301
|
-
locked: boolean;
|
|
302
|
-
};
|
|
305
|
+
});
|
|
303
306
|
penMode: boolean;
|
|
304
307
|
penDetected: boolean;
|
|
305
308
|
exportBackground: boolean;
|
|
@@ -346,6 +349,7 @@ export declare const actionZoomOut: {
|
|
|
346
349
|
zenModeEnabled: boolean;
|
|
347
350
|
theme: string;
|
|
348
351
|
gridSize: number | null;
|
|
352
|
+
previousGridSize: number | null;
|
|
349
353
|
viewModeEnabled: boolean;
|
|
350
354
|
selectedGroupIds: {
|
|
351
355
|
[groupId: string]: boolean;
|
|
@@ -375,6 +379,8 @@ export declare const actionZoomOut: {
|
|
|
375
379
|
elementBackground?: string[] | undefined;
|
|
376
380
|
elementStroke?: string[] | undefined;
|
|
377
381
|
};
|
|
382
|
+
allowWheelZoom?: boolean | undefined;
|
|
383
|
+
allowPinchZoom?: boolean | undefined;
|
|
378
384
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
379
385
|
};
|
|
380
386
|
commitToHistory: false;
|
|
@@ -415,16 +421,15 @@ export declare const actionResetZoom: {
|
|
|
415
421
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
416
422
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
417
423
|
activeTool: {
|
|
418
|
-
|
|
419
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
424
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
420
425
|
locked: boolean;
|
|
426
|
+
} & ({
|
|
427
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
421
428
|
customType: null;
|
|
422
429
|
} | {
|
|
423
430
|
type: "custom";
|
|
424
431
|
customType: string;
|
|
425
|
-
|
|
426
|
-
locked: boolean;
|
|
427
|
-
};
|
|
432
|
+
});
|
|
428
433
|
penMode: boolean;
|
|
429
434
|
penDetected: boolean;
|
|
430
435
|
exportBackground: boolean;
|
|
@@ -471,6 +476,7 @@ export declare const actionResetZoom: {
|
|
|
471
476
|
zenModeEnabled: boolean;
|
|
472
477
|
theme: string;
|
|
473
478
|
gridSize: number | null;
|
|
479
|
+
previousGridSize: number | null;
|
|
474
480
|
viewModeEnabled: boolean;
|
|
475
481
|
selectedGroupIds: {
|
|
476
482
|
[groupId: string]: boolean;
|
|
@@ -500,6 +506,8 @@ export declare const actionResetZoom: {
|
|
|
500
506
|
elementBackground?: string[] | undefined;
|
|
501
507
|
elementStroke?: string[] | undefined;
|
|
502
508
|
};
|
|
509
|
+
allowWheelZoom?: boolean | undefined;
|
|
510
|
+
allowPinchZoom?: boolean | undefined;
|
|
503
511
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
504
512
|
};
|
|
505
513
|
commitToHistory: false;
|
|
@@ -534,16 +542,15 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
534
542
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
535
543
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
536
544
|
activeTool: {
|
|
537
|
-
|
|
538
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
545
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
539
546
|
locked: boolean;
|
|
547
|
+
} & ({
|
|
548
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
540
549
|
customType: null;
|
|
541
550
|
} | {
|
|
542
551
|
type: "custom";
|
|
543
552
|
customType: string;
|
|
544
|
-
|
|
545
|
-
locked: boolean;
|
|
546
|
-
};
|
|
553
|
+
});
|
|
547
554
|
penMode: boolean;
|
|
548
555
|
penDetected: boolean;
|
|
549
556
|
exportBackground: boolean;
|
|
@@ -590,6 +597,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
590
597
|
zenModeEnabled: boolean;
|
|
591
598
|
theme: string;
|
|
592
599
|
gridSize: number | null;
|
|
600
|
+
previousGridSize: number | null;
|
|
593
601
|
viewModeEnabled: boolean;
|
|
594
602
|
selectedGroupIds: {
|
|
595
603
|
[groupId: string]: boolean;
|
|
@@ -619,6 +627,8 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
619
627
|
elementBackground?: string[] | undefined;
|
|
620
628
|
elementStroke?: string[] | undefined;
|
|
621
629
|
};
|
|
630
|
+
allowWheelZoom?: boolean | undefined;
|
|
631
|
+
allowPinchZoom?: boolean | undefined;
|
|
622
632
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
623
633
|
};
|
|
624
634
|
commitToHistory: boolean;
|
|
@@ -653,16 +663,15 @@ export declare const actionZoomToSelected: {
|
|
|
653
663
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
654
664
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
655
665
|
activeTool: {
|
|
656
|
-
|
|
657
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
666
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
658
667
|
locked: boolean;
|
|
668
|
+
} & ({
|
|
669
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
659
670
|
customType: null;
|
|
660
671
|
} | {
|
|
661
672
|
type: "custom";
|
|
662
673
|
customType: string;
|
|
663
|
-
|
|
664
|
-
locked: boolean;
|
|
665
|
-
};
|
|
674
|
+
});
|
|
666
675
|
penMode: boolean;
|
|
667
676
|
penDetected: boolean;
|
|
668
677
|
exportBackground: boolean;
|
|
@@ -709,6 +718,7 @@ export declare const actionZoomToSelected: {
|
|
|
709
718
|
zenModeEnabled: boolean;
|
|
710
719
|
theme: string;
|
|
711
720
|
gridSize: number | null;
|
|
721
|
+
previousGridSize: number | null;
|
|
712
722
|
viewModeEnabled: boolean;
|
|
713
723
|
selectedGroupIds: {
|
|
714
724
|
[groupId: string]: boolean;
|
|
@@ -738,6 +748,8 @@ export declare const actionZoomToSelected: {
|
|
|
738
748
|
elementBackground?: string[] | undefined;
|
|
739
749
|
elementStroke?: string[] | undefined;
|
|
740
750
|
};
|
|
751
|
+
allowWheelZoom?: boolean | undefined;
|
|
752
|
+
allowPinchZoom?: boolean | undefined;
|
|
741
753
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
742
754
|
};
|
|
743
755
|
commitToHistory: boolean;
|
|
@@ -777,16 +789,15 @@ export declare const actionZoomToFit: {
|
|
|
777
789
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
778
790
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
779
791
|
activeTool: {
|
|
780
|
-
|
|
781
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
792
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
782
793
|
locked: boolean;
|
|
794
|
+
} & ({
|
|
795
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
783
796
|
customType: null;
|
|
784
797
|
} | {
|
|
785
798
|
type: "custom";
|
|
786
799
|
customType: string;
|
|
787
|
-
|
|
788
|
-
locked: boolean;
|
|
789
|
-
};
|
|
800
|
+
});
|
|
790
801
|
penMode: boolean;
|
|
791
802
|
penDetected: boolean;
|
|
792
803
|
exportBackground: boolean;
|
|
@@ -833,6 +844,7 @@ export declare const actionZoomToFit: {
|
|
|
833
844
|
zenModeEnabled: boolean;
|
|
834
845
|
theme: string;
|
|
835
846
|
gridSize: number | null;
|
|
847
|
+
previousGridSize: number | null;
|
|
836
848
|
viewModeEnabled: boolean;
|
|
837
849
|
selectedGroupIds: {
|
|
838
850
|
[groupId: string]: boolean;
|
|
@@ -862,6 +874,8 @@ export declare const actionZoomToFit: {
|
|
|
862
874
|
elementBackground?: string[] | undefined;
|
|
863
875
|
elementStroke?: string[] | undefined;
|
|
864
876
|
};
|
|
877
|
+
allowWheelZoom?: boolean | undefined;
|
|
878
|
+
allowPinchZoom?: boolean | undefined;
|
|
865
879
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
866
880
|
};
|
|
867
881
|
commitToHistory: boolean;
|
|
@@ -897,16 +911,15 @@ export declare const actionToggleTheme: {
|
|
|
897
911
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
898
912
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
899
913
|
activeTool: {
|
|
900
|
-
|
|
901
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
914
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
902
915
|
locked: boolean;
|
|
916
|
+
} & ({
|
|
917
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
903
918
|
customType: null;
|
|
904
919
|
} | {
|
|
905
920
|
type: "custom";
|
|
906
921
|
customType: string;
|
|
907
|
-
|
|
908
|
-
locked: boolean;
|
|
909
|
-
};
|
|
922
|
+
});
|
|
910
923
|
penMode: boolean;
|
|
911
924
|
penDetected: boolean;
|
|
912
925
|
exportBackground: boolean;
|
|
@@ -957,6 +970,7 @@ export declare const actionToggleTheme: {
|
|
|
957
970
|
} | null;
|
|
958
971
|
zenModeEnabled: boolean;
|
|
959
972
|
gridSize: number | null;
|
|
973
|
+
previousGridSize: number | null;
|
|
960
974
|
viewModeEnabled: boolean;
|
|
961
975
|
selectedGroupIds: {
|
|
962
976
|
[groupId: string]: boolean;
|
|
@@ -986,6 +1000,8 @@ export declare const actionToggleTheme: {
|
|
|
986
1000
|
elementBackground?: string[] | undefined;
|
|
987
1001
|
elementStroke?: string[] | undefined;
|
|
988
1002
|
};
|
|
1003
|
+
allowWheelZoom?: boolean | undefined;
|
|
1004
|
+
allowPinchZoom?: boolean | undefined;
|
|
989
1005
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
990
1006
|
};
|
|
991
1007
|
commitToHistory: false;
|
|
@@ -995,8 +1011,8 @@ export declare const actionToggleTheme: {
|
|
|
995
1011
|
} & {
|
|
996
1012
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
997
1013
|
};
|
|
998
|
-
export declare const
|
|
999
|
-
name: "
|
|
1014
|
+
export declare const actionToggleEraserTool: {
|
|
1015
|
+
name: "toggleEraserTool";
|
|
1000
1016
|
trackEvent: {
|
|
1001
1017
|
category: "toolbar";
|
|
1002
1018
|
};
|
|
@@ -1005,16 +1021,136 @@ export declare const actionErase: {
|
|
|
1005
1021
|
selectedElementIds: {};
|
|
1006
1022
|
selectedGroupIds: {};
|
|
1007
1023
|
activeTool: {
|
|
1008
|
-
|
|
1009
|
-
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
|
|
1024
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
1010
1025
|
locked: boolean;
|
|
1026
|
+
} & ({
|
|
1027
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1011
1028
|
customType: null;
|
|
1012
1029
|
} | {
|
|
1013
1030
|
type: "custom";
|
|
1014
1031
|
customType: string;
|
|
1015
|
-
|
|
1016
|
-
|
|
1032
|
+
});
|
|
1033
|
+
contextMenu: {
|
|
1034
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1035
|
+
top: number;
|
|
1036
|
+
left: number;
|
|
1037
|
+
} | null;
|
|
1038
|
+
showWelcomeScreen: boolean;
|
|
1039
|
+
isLoading: boolean;
|
|
1040
|
+
errorMessage: string | null;
|
|
1041
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1042
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1043
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
1044
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1045
|
+
isBindingEnabled: boolean;
|
|
1046
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1047
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1048
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1049
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1050
|
+
penMode: boolean;
|
|
1051
|
+
penDetected: boolean;
|
|
1052
|
+
exportBackground: boolean;
|
|
1053
|
+
exportEmbedScene: boolean;
|
|
1054
|
+
exportWithDarkMode: boolean;
|
|
1055
|
+
exportScale: number;
|
|
1056
|
+
currentItemStrokeColor: string;
|
|
1057
|
+
currentItemBackgroundColor: string;
|
|
1058
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
1059
|
+
currentItemStrokeWidth: number;
|
|
1060
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
1061
|
+
currentItemRoughness: number;
|
|
1062
|
+
currentItemOpacity: number;
|
|
1063
|
+
currentItemFontFamily: number;
|
|
1064
|
+
currentItemFontSize: number;
|
|
1065
|
+
currentItemTextAlign: string;
|
|
1066
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
1067
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1068
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1069
|
+
viewBackgroundColor: string;
|
|
1070
|
+
scrollX: number;
|
|
1071
|
+
scrollY: number;
|
|
1072
|
+
cursorButton: "up" | "down";
|
|
1073
|
+
scrolledOutside: boolean;
|
|
1074
|
+
name: string;
|
|
1075
|
+
isResizing: boolean;
|
|
1076
|
+
isRotating: boolean;
|
|
1077
|
+
zoom: Readonly<{
|
|
1078
|
+
value: NormalizedZoomValue;
|
|
1079
|
+
}>;
|
|
1080
|
+
openMenu: "canvas" | "shape" | null;
|
|
1081
|
+
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1082
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
1083
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1084
|
+
isSidebarDocked: boolean;
|
|
1085
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
1086
|
+
previousSelectedElementIds: {
|
|
1087
|
+
[id: string]: boolean;
|
|
1088
|
+
};
|
|
1089
|
+
shouldCacheIgnoreZoom: boolean;
|
|
1090
|
+
toast: {
|
|
1091
|
+
message: string;
|
|
1092
|
+
closable?: boolean | undefined;
|
|
1093
|
+
duration?: number | undefined;
|
|
1094
|
+
} | null;
|
|
1095
|
+
zenModeEnabled: boolean;
|
|
1096
|
+
theme: string;
|
|
1097
|
+
gridSize: number | null;
|
|
1098
|
+
previousGridSize: number | null;
|
|
1099
|
+
viewModeEnabled: boolean;
|
|
1100
|
+
editingGroupId: string | null;
|
|
1101
|
+
width: number;
|
|
1102
|
+
height: number;
|
|
1103
|
+
offsetTop: number;
|
|
1104
|
+
offsetLeft: number;
|
|
1105
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1106
|
+
collaborators: Map<string, import("../types").Collaborator>;
|
|
1107
|
+
showStats: boolean;
|
|
1108
|
+
currentChartType: import("../element/types").ChartType;
|
|
1109
|
+
pasteDialog: {
|
|
1110
|
+
shown: false;
|
|
1111
|
+
data: null;
|
|
1112
|
+
} | {
|
|
1113
|
+
shown: true;
|
|
1114
|
+
data: import("../charts").Spreadsheet;
|
|
1115
|
+
};
|
|
1116
|
+
pendingImageElementId: string | null;
|
|
1117
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1118
|
+
linkOpacity: number;
|
|
1119
|
+
trayModeEnabled: boolean;
|
|
1120
|
+
colorPalette: {
|
|
1121
|
+
canvasBackground?: string[] | undefined;
|
|
1122
|
+
elementBackground?: string[] | undefined;
|
|
1123
|
+
elementStroke?: string[] | undefined;
|
|
1017
1124
|
};
|
|
1125
|
+
allowWheelZoom?: boolean | undefined;
|
|
1126
|
+
allowPinchZoom?: boolean | undefined;
|
|
1127
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1128
|
+
};
|
|
1129
|
+
commitToHistory: true;
|
|
1130
|
+
};
|
|
1131
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1132
|
+
} & {
|
|
1133
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1134
|
+
};
|
|
1135
|
+
export declare const actionToggleHandTool: {
|
|
1136
|
+
name: "toggleHandTool";
|
|
1137
|
+
trackEvent: {
|
|
1138
|
+
category: "toolbar";
|
|
1139
|
+
};
|
|
1140
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1141
|
+
appState: {
|
|
1142
|
+
selectedElementIds: {};
|
|
1143
|
+
selectedGroupIds: {};
|
|
1144
|
+
activeTool: {
|
|
1145
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
1146
|
+
locked: boolean;
|
|
1147
|
+
} & ({
|
|
1148
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1149
|
+
customType: null;
|
|
1150
|
+
} | {
|
|
1151
|
+
type: "custom";
|
|
1152
|
+
customType: string;
|
|
1153
|
+
});
|
|
1018
1154
|
contextMenu: {
|
|
1019
1155
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1020
1156
|
top: number;
|
|
@@ -1080,6 +1216,7 @@ export declare const actionErase: {
|
|
|
1080
1216
|
zenModeEnabled: boolean;
|
|
1081
1217
|
theme: string;
|
|
1082
1218
|
gridSize: number | null;
|
|
1219
|
+
previousGridSize: number | null;
|
|
1083
1220
|
viewModeEnabled: boolean;
|
|
1084
1221
|
editingGroupId: string | null;
|
|
1085
1222
|
width: number;
|
|
@@ -1106,12 +1243,13 @@ export declare const actionErase: {
|
|
|
1106
1243
|
elementBackground?: string[] | undefined;
|
|
1107
1244
|
elementStroke?: string[] | undefined;
|
|
1108
1245
|
};
|
|
1246
|
+
allowWheelZoom?: boolean | undefined;
|
|
1247
|
+
allowPinchZoom?: boolean | undefined;
|
|
1109
1248
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1110
1249
|
};
|
|
1111
1250
|
commitToHistory: true;
|
|
1112
1251
|
};
|
|
1113
1252
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1114
|
-
PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1115
1253
|
} & {
|
|
1116
1254
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1117
1255
|
};
|