@zsviczian/excalidraw 0.10.0-obsidian-29 → 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 (49) hide show
  1. package/dist/excalidraw.development.js +140 -118
  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/align.d.ts +0 -1
  28. package/types/components/App.d.ts +4 -1
  29. package/types/components/icons.d.ts +3 -0
  30. package/types/constants.d.ts +2 -4
  31. package/types/disitrubte.d.ts +0 -1
  32. package/types/element/bounds.d.ts +4 -0
  33. package/types/element/dragElements.d.ts +2 -2
  34. package/types/element/newElement.d.ts +1 -1
  35. package/types/element/textElement.d.ts +7 -4
  36. package/types/element/textWysiwyg.d.ts +5 -3
  37. package/types/groups.d.ts +1 -0
  38. package/types/keys.d.ts +4 -0
  39. package/types/packages/excalidraw/example/App.d.ts +1 -0
  40. package/types/packages/excalidraw/example/index.d.ts +1 -0
  41. package/types/packages/excalidraw/example/initialData.d.ts +138 -0
  42. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +1 -0
  43. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -0
  44. package/types/packages/excalidraw/webpack.prod.config.d.ts +2 -1
  45. package/types/packages/utils.d.ts +1 -1
  46. package/types/scene/comparisons.d.ts +1 -1
  47. package/types/shapes.d.ts +1 -1
  48. package/types/types.d.ts +2 -1
  49. package/types/utils.d.ts +1 -0
@@ -1,9 +1,850 @@
1
+ /// <reference types="react" />
1
2
  import "../components/ToolIcon.scss";
2
- export declare const actionChangeProjectName: import("./types").Action;
3
- export declare const actionChangeExportScale: import("./types").Action;
4
- export declare const actionChangeExportBackground: import("./types").Action;
5
- export declare const actionChangeExportEmbedScene: import("./types").Action;
6
- export declare const actionSaveToActiveFile: import("./types").Action;
7
- export declare const actionSaveFileToDisk: import("./types").Action;
8
- export declare const actionLoadScene: import("./types").Action;
9
- export declare const actionExportWithDarkMode: import("./types").Action;
3
+ export declare const actionChangeProjectName: {
4
+ name: "changeProjectName";
5
+ perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
6
+ appState: {
7
+ name: any;
8
+ isLoading: boolean;
9
+ errorMessage: string | null;
10
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
11
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
12
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
13
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
14
+ isBindingEnabled: boolean;
15
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
16
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
17
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
18
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
19
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
20
+ elementLocked: boolean;
21
+ exportBackground: boolean;
22
+ exportEmbedScene: boolean;
23
+ exportWithDarkMode: boolean;
24
+ exportScale: number;
25
+ currentItemStrokeColor: string;
26
+ currentItemBackgroundColor: string;
27
+ currentItemFillStyle: import("../element/types").FillStyle;
28
+ currentItemStrokeWidth: number;
29
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
30
+ currentItemRoughness: number;
31
+ currentItemOpacity: number;
32
+ currentItemFontFamily: number;
33
+ currentItemFontSize: number;
34
+ currentItemTextAlign: import("../element/types").TextAlign;
35
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
36
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
37
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
38
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
39
+ viewBackgroundColor: string;
40
+ scrollX: number;
41
+ scrollY: number;
42
+ cursorButton: "up" | "down";
43
+ scrolledOutside: boolean;
44
+ isResizing: boolean;
45
+ isRotating: boolean;
46
+ zoom: Readonly<{
47
+ value: import("../types").NormalizedZoomValue;
48
+ translation: Readonly<{
49
+ x: number;
50
+ y: number;
51
+ }>;
52
+ }>;
53
+ openMenu: "canvas" | "shape" | null;
54
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
55
+ lastPointerDownWith: import("../element/types").PointerType;
56
+ selectedElementIds: {
57
+ [id: string]: boolean;
58
+ };
59
+ previousSelectedElementIds: {
60
+ [id: string]: boolean;
61
+ };
62
+ shouldCacheIgnoreZoom: boolean;
63
+ showHelpDialog: boolean;
64
+ toastMessage: string | null;
65
+ zenModeEnabled: boolean;
66
+ theme: string;
67
+ gridSize: number | null;
68
+ viewModeEnabled: boolean;
69
+ selectedGroupIds: {
70
+ [groupId: string]: boolean;
71
+ };
72
+ editingGroupId: string | null;
73
+ width: number;
74
+ height: number;
75
+ offsetTop: number;
76
+ offsetLeft: number;
77
+ isLibraryOpen: boolean;
78
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
79
+ collaborators: Map<string, import("../types").Collaborator>;
80
+ showStats: boolean;
81
+ currentChartType: import("../element/types").ChartType;
82
+ pasteDialog: {
83
+ shown: false;
84
+ data: null;
85
+ } | {
86
+ shown: true;
87
+ data: import("../charts").Spreadsheet;
88
+ };
89
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
90
+ };
91
+ commitToHistory: false;
92
+ };
93
+ PanelComponent: ({ appState, updateData, appProps }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
94
+ } & {
95
+ keyTest?: undefined;
96
+ };
97
+ export declare const actionChangeExportScale: {
98
+ name: "changeExportScale";
99
+ perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
100
+ appState: {
101
+ exportScale: any;
102
+ isLoading: boolean;
103
+ errorMessage: string | null;
104
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
105
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
106
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
107
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
108
+ isBindingEnabled: boolean;
109
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
110
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
111
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
112
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
113
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
114
+ elementLocked: boolean;
115
+ exportBackground: boolean;
116
+ exportEmbedScene: boolean;
117
+ exportWithDarkMode: boolean;
118
+ currentItemStrokeColor: string;
119
+ currentItemBackgroundColor: string;
120
+ currentItemFillStyle: import("../element/types").FillStyle;
121
+ currentItemStrokeWidth: number;
122
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
123
+ currentItemRoughness: number;
124
+ currentItemOpacity: number;
125
+ currentItemFontFamily: number;
126
+ currentItemFontSize: number;
127
+ currentItemTextAlign: import("../element/types").TextAlign;
128
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
129
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
130
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
131
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
132
+ viewBackgroundColor: string;
133
+ scrollX: number;
134
+ scrollY: number;
135
+ cursorButton: "up" | "down";
136
+ scrolledOutside: boolean;
137
+ name: string;
138
+ isResizing: boolean;
139
+ isRotating: boolean;
140
+ zoom: Readonly<{
141
+ value: import("../types").NormalizedZoomValue;
142
+ translation: Readonly<{
143
+ x: number;
144
+ y: number;
145
+ }>;
146
+ }>;
147
+ openMenu: "canvas" | "shape" | null;
148
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
149
+ lastPointerDownWith: import("../element/types").PointerType;
150
+ selectedElementIds: {
151
+ [id: string]: boolean;
152
+ };
153
+ previousSelectedElementIds: {
154
+ [id: string]: boolean;
155
+ };
156
+ shouldCacheIgnoreZoom: boolean;
157
+ showHelpDialog: boolean;
158
+ toastMessage: string | null;
159
+ zenModeEnabled: boolean;
160
+ theme: string;
161
+ gridSize: number | null;
162
+ viewModeEnabled: boolean;
163
+ selectedGroupIds: {
164
+ [groupId: string]: boolean;
165
+ };
166
+ editingGroupId: string | null;
167
+ width: number;
168
+ height: number;
169
+ offsetTop: number;
170
+ offsetLeft: number;
171
+ isLibraryOpen: boolean;
172
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
173
+ collaborators: Map<string, import("../types").Collaborator>;
174
+ showStats: boolean;
175
+ currentChartType: import("../element/types").ChartType;
176
+ pasteDialog: {
177
+ shown: false;
178
+ data: null;
179
+ } | {
180
+ shown: true;
181
+ data: import("../charts").Spreadsheet;
182
+ };
183
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
184
+ };
185
+ commitToHistory: false;
186
+ };
187
+ PanelComponent: ({ elements: allElements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
188
+ } & {
189
+ keyTest?: undefined;
190
+ };
191
+ export declare const actionChangeExportBackground: {
192
+ name: "changeExportBackground";
193
+ perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
194
+ appState: {
195
+ exportBackground: any;
196
+ isLoading: boolean;
197
+ errorMessage: string | null;
198
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
199
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
200
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
201
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
202
+ isBindingEnabled: boolean;
203
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
204
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
205
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
206
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
207
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
208
+ elementLocked: boolean;
209
+ exportEmbedScene: boolean;
210
+ exportWithDarkMode: boolean;
211
+ exportScale: number;
212
+ currentItemStrokeColor: string;
213
+ currentItemBackgroundColor: string;
214
+ currentItemFillStyle: import("../element/types").FillStyle;
215
+ currentItemStrokeWidth: number;
216
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
217
+ currentItemRoughness: number;
218
+ currentItemOpacity: number;
219
+ currentItemFontFamily: number;
220
+ currentItemFontSize: number;
221
+ currentItemTextAlign: import("../element/types").TextAlign;
222
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
223
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
224
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
225
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
226
+ viewBackgroundColor: string;
227
+ scrollX: number;
228
+ scrollY: number;
229
+ cursorButton: "up" | "down";
230
+ scrolledOutside: boolean;
231
+ name: string;
232
+ isResizing: boolean;
233
+ isRotating: boolean;
234
+ zoom: Readonly<{
235
+ value: import("../types").NormalizedZoomValue;
236
+ translation: Readonly<{
237
+ x: number;
238
+ y: number;
239
+ }>;
240
+ }>;
241
+ openMenu: "canvas" | "shape" | null;
242
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
243
+ lastPointerDownWith: import("../element/types").PointerType;
244
+ selectedElementIds: {
245
+ [id: string]: boolean;
246
+ };
247
+ previousSelectedElementIds: {
248
+ [id: string]: boolean;
249
+ };
250
+ shouldCacheIgnoreZoom: boolean;
251
+ showHelpDialog: boolean;
252
+ toastMessage: string | null;
253
+ zenModeEnabled: boolean;
254
+ theme: string;
255
+ gridSize: number | null;
256
+ viewModeEnabled: boolean;
257
+ selectedGroupIds: {
258
+ [groupId: string]: boolean;
259
+ };
260
+ editingGroupId: string | null;
261
+ width: number;
262
+ height: number;
263
+ offsetTop: number;
264
+ offsetLeft: number;
265
+ isLibraryOpen: boolean;
266
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
267
+ collaborators: Map<string, import("../types").Collaborator>;
268
+ showStats: boolean;
269
+ currentChartType: import("../element/types").ChartType;
270
+ pasteDialog: {
271
+ shown: false;
272
+ data: null;
273
+ } | {
274
+ shown: true;
275
+ data: import("../charts").Spreadsheet;
276
+ };
277
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
278
+ };
279
+ commitToHistory: false;
280
+ };
281
+ PanelComponent: ({ appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
282
+ } & {
283
+ keyTest?: undefined;
284
+ };
285
+ export declare const actionChangeExportEmbedScene: {
286
+ name: "changeExportEmbedScene";
287
+ perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
288
+ appState: {
289
+ exportEmbedScene: any;
290
+ isLoading: boolean;
291
+ errorMessage: string | null;
292
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
293
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
294
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
295
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
296
+ isBindingEnabled: boolean;
297
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
298
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
299
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
300
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
301
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
302
+ elementLocked: boolean;
303
+ exportBackground: boolean;
304
+ exportWithDarkMode: boolean;
305
+ exportScale: number;
306
+ currentItemStrokeColor: string;
307
+ currentItemBackgroundColor: string;
308
+ currentItemFillStyle: import("../element/types").FillStyle;
309
+ currentItemStrokeWidth: number;
310
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
311
+ currentItemRoughness: number;
312
+ currentItemOpacity: number;
313
+ currentItemFontFamily: number;
314
+ currentItemFontSize: number;
315
+ currentItemTextAlign: import("../element/types").TextAlign;
316
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
317
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
318
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
319
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
320
+ viewBackgroundColor: string;
321
+ scrollX: number;
322
+ scrollY: number;
323
+ cursorButton: "up" | "down";
324
+ scrolledOutside: boolean;
325
+ name: string;
326
+ isResizing: boolean;
327
+ isRotating: boolean;
328
+ zoom: Readonly<{
329
+ value: import("../types").NormalizedZoomValue;
330
+ translation: Readonly<{
331
+ x: number;
332
+ y: number;
333
+ }>;
334
+ }>;
335
+ openMenu: "canvas" | "shape" | null;
336
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
337
+ lastPointerDownWith: import("../element/types").PointerType;
338
+ selectedElementIds: {
339
+ [id: string]: boolean;
340
+ };
341
+ previousSelectedElementIds: {
342
+ [id: string]: boolean;
343
+ };
344
+ shouldCacheIgnoreZoom: boolean;
345
+ showHelpDialog: boolean;
346
+ toastMessage: string | null;
347
+ zenModeEnabled: boolean;
348
+ theme: string;
349
+ gridSize: number | null;
350
+ viewModeEnabled: boolean;
351
+ selectedGroupIds: {
352
+ [groupId: string]: boolean;
353
+ };
354
+ editingGroupId: string | null;
355
+ width: number;
356
+ height: number;
357
+ offsetTop: number;
358
+ offsetLeft: number;
359
+ isLibraryOpen: boolean;
360
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
361
+ collaborators: Map<string, import("../types").Collaborator>;
362
+ showStats: boolean;
363
+ currentChartType: import("../element/types").ChartType;
364
+ pasteDialog: {
365
+ shown: false;
366
+ data: null;
367
+ } | {
368
+ shown: true;
369
+ data: import("../charts").Spreadsheet;
370
+ };
371
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
372
+ };
373
+ commitToHistory: false;
374
+ };
375
+ PanelComponent: ({ appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
376
+ } & {
377
+ keyTest?: undefined;
378
+ };
379
+ export declare const actionSaveToActiveFile: {
380
+ name: "saveToActiveFile";
381
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
382
+ commitToHistory: false;
383
+ appState: {
384
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
385
+ toastMessage: string | null;
386
+ isLoading: boolean;
387
+ errorMessage: string | null;
388
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
389
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
390
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
391
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
392
+ isBindingEnabled: boolean;
393
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
394
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
395
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
396
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
397
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
398
+ elementLocked: boolean;
399
+ exportBackground: boolean;
400
+ exportEmbedScene: boolean;
401
+ exportWithDarkMode: boolean;
402
+ exportScale: number;
403
+ currentItemStrokeColor: string;
404
+ currentItemBackgroundColor: string;
405
+ currentItemFillStyle: import("../element/types").FillStyle;
406
+ currentItemStrokeWidth: number;
407
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
408
+ currentItemRoughness: number;
409
+ currentItemOpacity: number;
410
+ currentItemFontFamily: number;
411
+ currentItemFontSize: number;
412
+ currentItemTextAlign: import("../element/types").TextAlign;
413
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
414
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
415
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
416
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
417
+ viewBackgroundColor: string;
418
+ scrollX: number;
419
+ scrollY: number;
420
+ cursorButton: "up" | "down";
421
+ scrolledOutside: boolean;
422
+ name: string;
423
+ isResizing: boolean;
424
+ isRotating: boolean;
425
+ zoom: Readonly<{
426
+ value: import("../types").NormalizedZoomValue;
427
+ translation: Readonly<{
428
+ x: number;
429
+ y: number;
430
+ }>;
431
+ }>;
432
+ openMenu: "canvas" | "shape" | null;
433
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
434
+ lastPointerDownWith: import("../element/types").PointerType;
435
+ selectedElementIds: {
436
+ [id: string]: boolean;
437
+ };
438
+ previousSelectedElementIds: {
439
+ [id: string]: boolean;
440
+ };
441
+ shouldCacheIgnoreZoom: boolean;
442
+ showHelpDialog: boolean;
443
+ zenModeEnabled: boolean;
444
+ theme: string;
445
+ gridSize: number | null;
446
+ viewModeEnabled: boolean;
447
+ selectedGroupIds: {
448
+ [groupId: string]: boolean;
449
+ };
450
+ editingGroupId: string | null;
451
+ width: number;
452
+ height: number;
453
+ offsetTop: number;
454
+ offsetLeft: number;
455
+ isLibraryOpen: boolean;
456
+ collaborators: Map<string, import("../types").Collaborator>;
457
+ showStats: boolean;
458
+ currentChartType: import("../element/types").ChartType;
459
+ pasteDialog: {
460
+ shown: false;
461
+ data: null;
462
+ } | {
463
+ shown: true;
464
+ data: import("../charts").Spreadsheet;
465
+ };
466
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
467
+ };
468
+ } | {
469
+ commitToHistory: false;
470
+ appState?: undefined;
471
+ }>;
472
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
473
+ PanelComponent: ({ updateData, appState }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
474
+ } & {
475
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
476
+ };
477
+ export declare const actionSaveFileToDisk: {
478
+ name: "saveFileToDisk";
479
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
480
+ commitToHistory: false;
481
+ appState: {
482
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
483
+ isLoading: boolean;
484
+ errorMessage: string | null;
485
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
486
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
487
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
488
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
489
+ isBindingEnabled: boolean;
490
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
491
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
492
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
493
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
494
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
495
+ elementLocked: boolean;
496
+ exportBackground: boolean;
497
+ exportEmbedScene: boolean;
498
+ exportWithDarkMode: boolean;
499
+ exportScale: number;
500
+ currentItemStrokeColor: string;
501
+ currentItemBackgroundColor: string;
502
+ currentItemFillStyle: import("../element/types").FillStyle;
503
+ currentItemStrokeWidth: number;
504
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
505
+ currentItemRoughness: number;
506
+ currentItemOpacity: number;
507
+ currentItemFontFamily: number;
508
+ currentItemFontSize: number;
509
+ currentItemTextAlign: import("../element/types").TextAlign;
510
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
511
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
512
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
513
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
514
+ viewBackgroundColor: string;
515
+ scrollX: number;
516
+ scrollY: number;
517
+ cursorButton: "up" | "down";
518
+ scrolledOutside: boolean;
519
+ name: string;
520
+ isResizing: boolean;
521
+ isRotating: boolean;
522
+ zoom: Readonly<{
523
+ value: import("../types").NormalizedZoomValue;
524
+ translation: Readonly<{
525
+ x: number;
526
+ y: number;
527
+ }>;
528
+ }>;
529
+ openMenu: "canvas" | "shape" | null;
530
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
531
+ lastPointerDownWith: import("../element/types").PointerType;
532
+ selectedElementIds: {
533
+ [id: string]: boolean;
534
+ };
535
+ previousSelectedElementIds: {
536
+ [id: string]: boolean;
537
+ };
538
+ shouldCacheIgnoreZoom: boolean;
539
+ showHelpDialog: boolean;
540
+ toastMessage: string | null;
541
+ zenModeEnabled: boolean;
542
+ theme: string;
543
+ gridSize: number | null;
544
+ viewModeEnabled: boolean;
545
+ selectedGroupIds: {
546
+ [groupId: string]: boolean;
547
+ };
548
+ editingGroupId: string | null;
549
+ width: number;
550
+ height: number;
551
+ offsetTop: number;
552
+ offsetLeft: number;
553
+ isLibraryOpen: boolean;
554
+ collaborators: Map<string, import("../types").Collaborator>;
555
+ showStats: boolean;
556
+ currentChartType: import("../element/types").ChartType;
557
+ pasteDialog: {
558
+ shown: false;
559
+ data: null;
560
+ } | {
561
+ shown: true;
562
+ data: import("../charts").Spreadsheet;
563
+ };
564
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
565
+ };
566
+ } | {
567
+ commitToHistory: false;
568
+ appState?: undefined;
569
+ }>;
570
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
571
+ PanelComponent: ({ updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
572
+ } & {
573
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
574
+ };
575
+ export declare const actionLoadScene: {
576
+ name: "loadScene";
577
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
578
+ elements: import("../element/types").ExcalidrawElement[];
579
+ appState: {
580
+ scrollX: number;
581
+ scrollY: number;
582
+ viewBackgroundColor: string;
583
+ zoom: Readonly<{
584
+ value: import("../types").NormalizedZoomValue;
585
+ translation: Readonly<{
586
+ x: number;
587
+ y: number;
588
+ }>;
589
+ }>;
590
+ shouldCacheIgnoreZoom: boolean;
591
+ theme: string;
592
+ name: string;
593
+ isLoading: boolean;
594
+ errorMessage: string | null;
595
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
596
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
597
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
598
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
599
+ isBindingEnabled: boolean;
600
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
601
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
602
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
603
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
604
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
605
+ elementLocked: boolean;
606
+ exportBackground: boolean;
607
+ exportEmbedScene: boolean;
608
+ exportWithDarkMode: boolean;
609
+ exportScale: number;
610
+ currentItemStrokeColor: string;
611
+ currentItemBackgroundColor: string;
612
+ currentItemFillStyle: import("../element/types").FillStyle;
613
+ currentItemStrokeWidth: number;
614
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
615
+ currentItemRoughness: number;
616
+ currentItemOpacity: number;
617
+ currentItemFontFamily: number;
618
+ currentItemFontSize: number;
619
+ currentItemTextAlign: import("../element/types").TextAlign;
620
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
621
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
622
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
623
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
624
+ cursorButton: "up" | "down";
625
+ scrolledOutside: boolean;
626
+ isResizing: boolean;
627
+ isRotating: boolean;
628
+ openMenu: "canvas" | "shape" | null;
629
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
630
+ lastPointerDownWith: import("../element/types").PointerType;
631
+ selectedElementIds: {
632
+ [id: string]: boolean;
633
+ };
634
+ previousSelectedElementIds: {
635
+ [id: string]: boolean;
636
+ };
637
+ showHelpDialog: boolean;
638
+ toastMessage: string | null;
639
+ zenModeEnabled: boolean;
640
+ gridSize: number | null;
641
+ viewModeEnabled: boolean;
642
+ selectedGroupIds: {
643
+ [groupId: string]: boolean;
644
+ };
645
+ editingGroupId: string | null;
646
+ isLibraryOpen: boolean;
647
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
648
+ collaborators: Map<string, import("../types").Collaborator>;
649
+ showStats: boolean;
650
+ currentChartType: import("../element/types").ChartType;
651
+ pasteDialog: {
652
+ shown: false;
653
+ data: null;
654
+ } | {
655
+ shown: true;
656
+ data: import("../charts").Spreadsheet;
657
+ };
658
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
659
+ };
660
+ files: import("../types").BinaryFiles;
661
+ commitToHistory: true;
662
+ } | {
663
+ elements: readonly import("../element/types").ExcalidrawElement[];
664
+ appState: {
665
+ errorMessage: any;
666
+ isLoading: boolean;
667
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
668
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
669
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
670
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
671
+ isBindingEnabled: boolean;
672
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
673
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
674
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
675
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
676
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
677
+ elementLocked: boolean;
678
+ exportBackground: boolean;
679
+ exportEmbedScene: boolean;
680
+ exportWithDarkMode: boolean;
681
+ exportScale: number;
682
+ currentItemStrokeColor: string;
683
+ currentItemBackgroundColor: string;
684
+ currentItemFillStyle: import("../element/types").FillStyle;
685
+ currentItemStrokeWidth: number;
686
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
687
+ currentItemRoughness: number;
688
+ currentItemOpacity: number;
689
+ currentItemFontFamily: number;
690
+ currentItemFontSize: number;
691
+ currentItemTextAlign: import("../element/types").TextAlign;
692
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
693
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
694
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
695
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
696
+ viewBackgroundColor: string;
697
+ scrollX: number;
698
+ scrollY: number;
699
+ cursorButton: "up" | "down";
700
+ scrolledOutside: boolean;
701
+ name: string;
702
+ isResizing: boolean;
703
+ isRotating: boolean;
704
+ zoom: Readonly<{
705
+ value: import("../types").NormalizedZoomValue;
706
+ translation: Readonly<{
707
+ x: number;
708
+ y: number;
709
+ }>;
710
+ }>;
711
+ openMenu: "canvas" | "shape" | null;
712
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
713
+ lastPointerDownWith: import("../element/types").PointerType;
714
+ selectedElementIds: {
715
+ [id: string]: boolean;
716
+ };
717
+ previousSelectedElementIds: {
718
+ [id: string]: boolean;
719
+ };
720
+ shouldCacheIgnoreZoom: boolean;
721
+ showHelpDialog: boolean;
722
+ toastMessage: string | null;
723
+ zenModeEnabled: boolean;
724
+ theme: string;
725
+ gridSize: number | null;
726
+ viewModeEnabled: boolean;
727
+ selectedGroupIds: {
728
+ [groupId: string]: boolean;
729
+ };
730
+ editingGroupId: string | null;
731
+ width: number;
732
+ height: number;
733
+ offsetTop: number;
734
+ offsetLeft: number;
735
+ isLibraryOpen: boolean;
736
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
737
+ collaborators: Map<string, import("../types").Collaborator>;
738
+ showStats: boolean;
739
+ currentChartType: import("../element/types").ChartType;
740
+ pasteDialog: {
741
+ shown: false;
742
+ data: null;
743
+ } | {
744
+ shown: true;
745
+ data: import("../charts").Spreadsheet;
746
+ };
747
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
748
+ };
749
+ files: import("../types").BinaryFiles;
750
+ commitToHistory: false;
751
+ }>;
752
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
753
+ PanelComponent: ({ updateData, appState }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
754
+ } & {
755
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
756
+ };
757
+ export declare const actionExportWithDarkMode: {
758
+ name: "exportWithDarkMode";
759
+ perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
760
+ appState: {
761
+ exportWithDarkMode: any;
762
+ isLoading: boolean;
763
+ errorMessage: string | null;
764
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
765
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
766
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
767
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
768
+ isBindingEnabled: boolean;
769
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
770
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
771
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
772
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
773
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
774
+ elementLocked: boolean;
775
+ exportBackground: boolean;
776
+ exportEmbedScene: boolean;
777
+ exportScale: number;
778
+ currentItemStrokeColor: string;
779
+ currentItemBackgroundColor: string;
780
+ currentItemFillStyle: import("../element/types").FillStyle;
781
+ currentItemStrokeWidth: number;
782
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
783
+ currentItemRoughness: number;
784
+ currentItemOpacity: number;
785
+ currentItemFontFamily: number;
786
+ currentItemFontSize: number;
787
+ currentItemTextAlign: import("../element/types").TextAlign;
788
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
789
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
790
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
791
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
792
+ viewBackgroundColor: string;
793
+ scrollX: number;
794
+ scrollY: number;
795
+ cursorButton: "up" | "down";
796
+ scrolledOutside: boolean;
797
+ name: string;
798
+ isResizing: boolean;
799
+ isRotating: boolean;
800
+ zoom: Readonly<{
801
+ value: import("../types").NormalizedZoomValue;
802
+ translation: Readonly<{
803
+ x: number;
804
+ y: number;
805
+ }>;
806
+ }>;
807
+ openMenu: "canvas" | "shape" | null;
808
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
809
+ lastPointerDownWith: import("../element/types").PointerType;
810
+ selectedElementIds: {
811
+ [id: string]: boolean;
812
+ };
813
+ previousSelectedElementIds: {
814
+ [id: string]: boolean;
815
+ };
816
+ shouldCacheIgnoreZoom: boolean;
817
+ showHelpDialog: boolean;
818
+ toastMessage: string | null;
819
+ zenModeEnabled: boolean;
820
+ theme: string;
821
+ gridSize: number | null;
822
+ viewModeEnabled: boolean;
823
+ selectedGroupIds: {
824
+ [groupId: string]: boolean;
825
+ };
826
+ editingGroupId: string | null;
827
+ width: number;
828
+ height: number;
829
+ offsetTop: number;
830
+ offsetLeft: number;
831
+ isLibraryOpen: boolean;
832
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
833
+ collaborators: Map<string, import("../types").Collaborator>;
834
+ showStats: boolean;
835
+ currentChartType: import("../element/types").ChartType;
836
+ pasteDialog: {
837
+ shown: false;
838
+ data: null;
839
+ } | {
840
+ shown: true;
841
+ data: import("../charts").Spreadsheet;
842
+ };
843
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
844
+ };
845
+ commitToHistory: false;
846
+ };
847
+ PanelComponent: ({ appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
848
+ } & {
849
+ keyTest?: undefined;
850
+ };