@zsviczian/excalidraw 0.10.0-obsidian-33 → 0.10.0-obsidian-34

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.
Files changed (43) hide show
  1. package/dist/excalidraw.development.js +136 -114
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +15 -12
  4. package/types/actions/actionAddToLibrary.d.ts +268 -1
  5. package/types/actions/actionAlign.d.ts +73 -6
  6. package/types/actions/actionCanvas.d.ts +671 -8
  7. package/types/actions/actionClipboard.d.ts +493 -4
  8. package/types/actions/actionDeleteSelected.d.ts +292 -1
  9. package/types/actions/actionDistribute.d.ts +27 -2
  10. package/types/actions/actionDuplicateSelection.d.ts +19 -1
  11. package/types/actions/actionExport.d.ts +849 -8
  12. package/types/actions/actionFinalize.d.ts +186 -1
  13. package/types/actions/actionFlip.d.ts +29 -2
  14. package/types/actions/actionGroup.d.ts +39 -2
  15. package/types/actions/actionMenu.d.ts +293 -4
  16. package/types/actions/actionNavigate.d.ts +11 -1
  17. package/types/actions/actionProperties.d.ts +1160 -12
  18. package/types/actions/actionSelectAll.d.ts +12 -1
  19. package/types/actions/actionStyles.d.ts +110 -2
  20. package/types/actions/actionToggleGridMode.d.ts +98 -1
  21. package/types/actions/actionToggleStats.d.ts +97 -1
  22. package/types/actions/actionToggleViewMode.d.ts +97 -1
  23. package/types/actions/actionToggleZenMode.d.ts +97 -1
  24. package/types/actions/actionZindex.d.ts +55 -4
  25. package/types/actions/register.d.ts +3 -1
  26. package/types/actions/types.d.ts +1 -1
  27. package/types/components/App.d.ts +4 -0
  28. package/types/components/icons.d.ts +3 -0
  29. package/types/constants.d.ts +2 -4
  30. package/types/element/newElement.d.ts +1 -1
  31. package/types/element/textElement.d.ts +7 -4
  32. package/types/element/textWysiwyg.d.ts +5 -3
  33. package/types/keys.d.ts +4 -0
  34. package/types/packages/excalidraw/example/App.d.ts +1 -0
  35. package/types/packages/excalidraw/example/index.d.ts +1 -0
  36. package/types/packages/excalidraw/example/initialData.d.ts +138 -0
  37. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +1 -0
  38. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -0
  39. package/types/packages/excalidraw/webpack.prod.config.d.ts +2 -1
  40. package/types/scene/comparisons.d.ts +1 -1
  41. package/types/shapes.d.ts +1 -1
  42. package/types/types.d.ts +2 -0
  43. package/types/utils.d.ts +1 -0
@@ -1,4 +1,493 @@
1
- export declare const actionCopy: import("./types").Action;
2
- export declare const actionCut: import("./types").Action;
3
- export declare const actionCopyAsSvg: import("./types").Action;
4
- export declare const actionCopyAsPng: import("./types").Action;
1
+ /// <reference types="react" />
2
+ export declare const actionCopy: {
3
+ name: "copy";
4
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
5
+ commitToHistory: false;
6
+ };
7
+ contextItemLabel: string;
8
+ keyTest: undefined;
9
+ } & {
10
+ keyTest?: undefined;
11
+ };
12
+ export declare const actionCut: {
13
+ name: "cut";
14
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => false | {
15
+ elements: import("../element/types").ExcalidrawElement[];
16
+ appState: {
17
+ editingLinearElement: null;
18
+ isLoading: boolean;
19
+ errorMessage: string | null;
20
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
21
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
23
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
+ isBindingEnabled: boolean;
25
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
26
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
27
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
29
+ elementLocked: boolean;
30
+ exportBackground: boolean;
31
+ exportEmbedScene: boolean;
32
+ exportWithDarkMode: boolean;
33
+ exportScale: number;
34
+ currentItemStrokeColor: string;
35
+ currentItemBackgroundColor: string;
36
+ currentItemFillStyle: import("../element/types").FillStyle;
37
+ currentItemStrokeWidth: number;
38
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
39
+ currentItemRoughness: number;
40
+ currentItemOpacity: number;
41
+ currentItemFontFamily: number;
42
+ currentItemFontSize: number;
43
+ currentItemTextAlign: import("../element/types").TextAlign;
44
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
45
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
46
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
47
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
48
+ viewBackgroundColor: string;
49
+ scrollX: number;
50
+ scrollY: number;
51
+ cursorButton: "up" | "down";
52
+ scrolledOutside: boolean;
53
+ name: string;
54
+ isResizing: boolean;
55
+ isRotating: boolean;
56
+ zoom: Readonly<{
57
+ value: import("../types").NormalizedZoomValue;
58
+ translation: Readonly<{
59
+ x: number;
60
+ y: number;
61
+ }>;
62
+ }>;
63
+ openMenu: "canvas" | "shape" | null;
64
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
65
+ lastPointerDownWith: import("../element/types").PointerType;
66
+ selectedElementIds: {
67
+ [id: string]: boolean;
68
+ };
69
+ previousSelectedElementIds: {
70
+ [id: string]: boolean;
71
+ };
72
+ shouldCacheIgnoreZoom: boolean;
73
+ showHelpDialog: boolean;
74
+ toastMessage: string | null;
75
+ zenModeEnabled: boolean;
76
+ theme: string;
77
+ gridSize: number | null;
78
+ viewModeEnabled: boolean;
79
+ selectedGroupIds: {
80
+ [groupId: string]: boolean;
81
+ };
82
+ editingGroupId: string | null;
83
+ width: number;
84
+ height: number;
85
+ offsetTop: number;
86
+ offsetLeft: number;
87
+ isLibraryOpen: boolean;
88
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
89
+ collaborators: Map<string, import("../types").Collaborator>;
90
+ showStats: boolean;
91
+ currentChartType: import("../element/types").ChartType;
92
+ pasteDialog: {
93
+ shown: false;
94
+ data: null;
95
+ } | {
96
+ shown: true;
97
+ data: import("../charts").Spreadsheet;
98
+ };
99
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
100
+ };
101
+ commitToHistory: false;
102
+ } | {
103
+ elements: readonly import("../element/types").ExcalidrawElement[];
104
+ appState: {
105
+ editingLinearElement: {
106
+ selectedPointsIndices: number[];
107
+ startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
108
+ endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
109
+ elementId: string & {
110
+ _brand: "excalidrawLinearElementId";
111
+ };
112
+ pointerDownState: Readonly<{
113
+ prevSelectedPointsIndices: readonly number[] | null;
114
+ lastClickedPoint: number;
115
+ }>;
116
+ isDragging: boolean;
117
+ lastUncommittedPoint: readonly [number, number] | null;
118
+ pointerOffset: Readonly<{
119
+ x: number;
120
+ y: number;
121
+ }>;
122
+ };
123
+ isLoading: boolean;
124
+ errorMessage: string | null;
125
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
126
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
127
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
128
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
129
+ isBindingEnabled: boolean;
130
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
131
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
132
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
133
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
134
+ elementLocked: boolean;
135
+ exportBackground: boolean;
136
+ exportEmbedScene: boolean;
137
+ exportWithDarkMode: boolean;
138
+ exportScale: number;
139
+ currentItemStrokeColor: string;
140
+ currentItemBackgroundColor: string;
141
+ currentItemFillStyle: import("../element/types").FillStyle;
142
+ currentItemStrokeWidth: number;
143
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
144
+ currentItemRoughness: number;
145
+ currentItemOpacity: number;
146
+ currentItemFontFamily: number;
147
+ currentItemFontSize: number;
148
+ currentItemTextAlign: import("../element/types").TextAlign;
149
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
150
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
151
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
152
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
153
+ viewBackgroundColor: string;
154
+ scrollX: number;
155
+ scrollY: number;
156
+ cursorButton: "up" | "down";
157
+ scrolledOutside: boolean;
158
+ name: string;
159
+ isResizing: boolean;
160
+ isRotating: boolean;
161
+ zoom: Readonly<{
162
+ value: import("../types").NormalizedZoomValue;
163
+ translation: Readonly<{
164
+ x: number;
165
+ y: number;
166
+ }>;
167
+ }>;
168
+ openMenu: "canvas" | "shape" | null;
169
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
170
+ lastPointerDownWith: import("../element/types").PointerType;
171
+ selectedElementIds: {
172
+ [id: string]: boolean;
173
+ };
174
+ previousSelectedElementIds: {
175
+ [id: string]: boolean;
176
+ };
177
+ shouldCacheIgnoreZoom: boolean;
178
+ showHelpDialog: boolean;
179
+ toastMessage: string | null;
180
+ zenModeEnabled: boolean;
181
+ theme: string;
182
+ gridSize: number | null;
183
+ viewModeEnabled: boolean;
184
+ selectedGroupIds: {
185
+ [groupId: string]: boolean;
186
+ };
187
+ editingGroupId: string | null;
188
+ width: number;
189
+ height: number;
190
+ offsetTop: number;
191
+ offsetLeft: number;
192
+ isLibraryOpen: boolean;
193
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
194
+ collaborators: Map<string, import("../types").Collaborator>;
195
+ showStats: boolean;
196
+ currentChartType: import("../element/types").ChartType;
197
+ pasteDialog: {
198
+ shown: false;
199
+ data: null;
200
+ } | {
201
+ shown: true;
202
+ data: import("../charts").Spreadsheet;
203
+ };
204
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
205
+ };
206
+ commitToHistory: true;
207
+ } | {
208
+ elements: import("../element/types").ExcalidrawElement[];
209
+ appState: {
210
+ elementType: "selection";
211
+ multiElement: null;
212
+ selectedElementIds: {};
213
+ isLoading: boolean;
214
+ errorMessage: string | null;
215
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
216
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
217
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
218
+ isBindingEnabled: boolean;
219
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
220
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
221
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
222
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
223
+ elementLocked: boolean;
224
+ exportBackground: boolean;
225
+ exportEmbedScene: boolean;
226
+ exportWithDarkMode: boolean;
227
+ exportScale: number;
228
+ currentItemStrokeColor: string;
229
+ currentItemBackgroundColor: string;
230
+ currentItemFillStyle: import("../element/types").FillStyle;
231
+ currentItemStrokeWidth: number;
232
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
233
+ currentItemRoughness: number;
234
+ currentItemOpacity: number;
235
+ currentItemFontFamily: number;
236
+ currentItemFontSize: number;
237
+ currentItemTextAlign: import("../element/types").TextAlign;
238
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
239
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
240
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
241
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
242
+ viewBackgroundColor: string;
243
+ scrollX: number;
244
+ scrollY: number;
245
+ cursorButton: "up" | "down";
246
+ scrolledOutside: boolean;
247
+ name: string;
248
+ isResizing: boolean;
249
+ isRotating: boolean;
250
+ zoom: Readonly<{
251
+ value: import("../types").NormalizedZoomValue;
252
+ translation: Readonly<{
253
+ x: number;
254
+ y: number;
255
+ }>;
256
+ }>;
257
+ openMenu: "canvas" | "shape" | null;
258
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
259
+ lastPointerDownWith: import("../element/types").PointerType;
260
+ previousSelectedElementIds: {
261
+ [id: string]: boolean;
262
+ };
263
+ shouldCacheIgnoreZoom: boolean;
264
+ showHelpDialog: boolean;
265
+ toastMessage: string | null;
266
+ zenModeEnabled: boolean;
267
+ theme: string;
268
+ gridSize: number | null;
269
+ viewModeEnabled: boolean;
270
+ selectedGroupIds: {
271
+ [groupId: string]: boolean;
272
+ };
273
+ editingGroupId: string | null;
274
+ width: number;
275
+ height: number;
276
+ offsetTop: number;
277
+ offsetLeft: number;
278
+ isLibraryOpen: boolean;
279
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
280
+ collaborators: Map<string, import("../types").Collaborator>;
281
+ showStats: boolean;
282
+ currentChartType: import("../element/types").ChartType;
283
+ pasteDialog: {
284
+ shown: false;
285
+ data: null;
286
+ } | {
287
+ shown: true;
288
+ data: import("../charts").Spreadsheet;
289
+ };
290
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
291
+ };
292
+ commitToHistory: boolean;
293
+ };
294
+ contextItemLabel: string;
295
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
296
+ } & {
297
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
298
+ };
299
+ export declare const actionCopyAsSvg: {
300
+ name: "copyAsSvg";
301
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
302
+ commitToHistory: false;
303
+ appState?: undefined;
304
+ } | {
305
+ appState: {
306
+ errorMessage: any;
307
+ isLoading: boolean;
308
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
309
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
310
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
311
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
312
+ isBindingEnabled: boolean;
313
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
314
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
315
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
316
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
317
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
318
+ elementLocked: boolean;
319
+ exportBackground: boolean;
320
+ exportEmbedScene: boolean;
321
+ exportWithDarkMode: boolean;
322
+ exportScale: number;
323
+ currentItemStrokeColor: string;
324
+ currentItemBackgroundColor: string;
325
+ currentItemFillStyle: import("../element/types").FillStyle;
326
+ currentItemStrokeWidth: number;
327
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
328
+ currentItemRoughness: number;
329
+ currentItemOpacity: number;
330
+ currentItemFontFamily: number;
331
+ currentItemFontSize: number;
332
+ currentItemTextAlign: import("../element/types").TextAlign;
333
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
334
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
335
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
336
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
337
+ viewBackgroundColor: string;
338
+ scrollX: number;
339
+ scrollY: number;
340
+ cursorButton: "up" | "down";
341
+ scrolledOutside: boolean;
342
+ name: string;
343
+ isResizing: boolean;
344
+ isRotating: boolean;
345
+ zoom: Readonly<{
346
+ value: import("../types").NormalizedZoomValue;
347
+ translation: Readonly<{
348
+ x: number;
349
+ y: number;
350
+ }>;
351
+ }>;
352
+ openMenu: "canvas" | "shape" | null;
353
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
354
+ lastPointerDownWith: import("../element/types").PointerType;
355
+ selectedElementIds: {
356
+ [id: string]: boolean;
357
+ };
358
+ previousSelectedElementIds: {
359
+ [id: string]: boolean;
360
+ };
361
+ shouldCacheIgnoreZoom: boolean;
362
+ showHelpDialog: boolean;
363
+ toastMessage: string | null;
364
+ zenModeEnabled: boolean;
365
+ theme: string;
366
+ gridSize: number | null;
367
+ viewModeEnabled: boolean;
368
+ selectedGroupIds: {
369
+ [groupId: string]: boolean;
370
+ };
371
+ editingGroupId: string | null;
372
+ width: number;
373
+ height: number;
374
+ offsetTop: number;
375
+ offsetLeft: number;
376
+ isLibraryOpen: boolean;
377
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
378
+ collaborators: Map<string, import("../types").Collaborator>;
379
+ showStats: boolean;
380
+ currentChartType: import("../element/types").ChartType;
381
+ pasteDialog: {
382
+ shown: false;
383
+ data: null;
384
+ } | {
385
+ shown: true;
386
+ data: import("../charts").Spreadsheet;
387
+ };
388
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
389
+ };
390
+ commitToHistory: false;
391
+ }>;
392
+ contextItemLabel: string;
393
+ } & {
394
+ keyTest?: undefined;
395
+ };
396
+ export declare const actionCopyAsPng: {
397
+ name: "copyAsPng";
398
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
399
+ commitToHistory: false;
400
+ appState?: undefined;
401
+ } | {
402
+ appState: {
403
+ errorMessage: any;
404
+ isLoading: boolean;
405
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
406
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
407
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
408
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
409
+ isBindingEnabled: boolean;
410
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
411
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
412
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
413
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
414
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
415
+ elementLocked: boolean;
416
+ exportBackground: boolean;
417
+ exportEmbedScene: boolean;
418
+ exportWithDarkMode: boolean;
419
+ exportScale: number;
420
+ currentItemStrokeColor: string;
421
+ currentItemBackgroundColor: string;
422
+ currentItemFillStyle: import("../element/types").FillStyle;
423
+ currentItemStrokeWidth: number;
424
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
425
+ currentItemRoughness: number;
426
+ currentItemOpacity: number;
427
+ currentItemFontFamily: number;
428
+ currentItemFontSize: number;
429
+ currentItemTextAlign: import("../element/types").TextAlign;
430
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
431
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
432
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
433
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
434
+ viewBackgroundColor: string;
435
+ scrollX: number;
436
+ scrollY: number;
437
+ cursorButton: "up" | "down";
438
+ scrolledOutside: boolean;
439
+ name: string;
440
+ isResizing: boolean;
441
+ isRotating: boolean;
442
+ zoom: Readonly<{
443
+ value: import("../types").NormalizedZoomValue;
444
+ translation: Readonly<{
445
+ x: number;
446
+ y: number;
447
+ }>;
448
+ }>;
449
+ openMenu: "canvas" | "shape" | null;
450
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
451
+ lastPointerDownWith: import("../element/types").PointerType;
452
+ selectedElementIds: {
453
+ [id: string]: boolean;
454
+ };
455
+ previousSelectedElementIds: {
456
+ [id: string]: boolean;
457
+ };
458
+ shouldCacheIgnoreZoom: boolean;
459
+ showHelpDialog: boolean;
460
+ toastMessage: string | null;
461
+ zenModeEnabled: boolean;
462
+ theme: string;
463
+ gridSize: number | null;
464
+ viewModeEnabled: boolean;
465
+ selectedGroupIds: {
466
+ [groupId: string]: boolean;
467
+ };
468
+ editingGroupId: string | null;
469
+ width: number;
470
+ height: number;
471
+ offsetTop: number;
472
+ offsetLeft: number;
473
+ isLibraryOpen: boolean;
474
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
475
+ collaborators: Map<string, import("../types").Collaborator>;
476
+ showStats: boolean;
477
+ currentChartType: import("../element/types").ChartType;
478
+ pasteDialog: {
479
+ shown: false;
480
+ data: null;
481
+ } | {
482
+ shown: true;
483
+ data: import("../charts").Spreadsheet;
484
+ };
485
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
486
+ };
487
+ commitToHistory: false;
488
+ }>;
489
+ contextItemLabel: string;
490
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
491
+ } & {
492
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
493
+ };