@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,10 +1,393 @@
1
+ /// <reference types="react" />
1
2
  import { ExcalidrawElement } from "../element/types";
2
3
  import { AppState, NormalizedZoomValue } from "../types";
3
- export declare const actionChangeViewBackgroundColor: import("./types").Action;
4
- export declare const actionClearCanvas: import("./types").Action;
5
- export declare const actionZoomIn: import("./types").Action;
6
- export declare const actionZoomOut: import("./types").Action;
7
- export declare const actionResetZoom: import("./types").Action;
4
+ export declare const actionChangeViewBackgroundColor: {
5
+ name: "changeViewBackgroundColor";
6
+ perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
7
+ appState: any;
8
+ commitToHistory: boolean;
9
+ };
10
+ PanelComponent: ({ appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
11
+ } & {
12
+ keyTest?: undefined;
13
+ };
14
+ export declare const actionClearCanvas: {
15
+ name: "clearCanvas";
16
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
17
+ elements: ExcalidrawElement[];
18
+ appState: {
19
+ files: {};
20
+ theme: string;
21
+ elementLocked: boolean;
22
+ exportBackground: boolean;
23
+ exportEmbedScene: boolean;
24
+ gridSize: number | null;
25
+ showStats: boolean;
26
+ pasteDialog: {
27
+ shown: false;
28
+ data: null;
29
+ } | {
30
+ shown: true;
31
+ data: import("../charts").Spreadsheet;
32
+ };
33
+ scrollX: number;
34
+ scrollY: number;
35
+ viewBackgroundColor: string;
36
+ zoom: Readonly<{
37
+ value: NormalizedZoomValue;
38
+ translation: Readonly<{
39
+ x: number;
40
+ y: number;
41
+ }>;
42
+ }>;
43
+ shouldCacheIgnoreZoom: boolean;
44
+ name: string;
45
+ isLoading: boolean;
46
+ errorMessage: string | null;
47
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
48
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
49
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
50
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
51
+ isBindingEnabled: boolean;
52
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
53
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
54
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
55
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
56
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
57
+ exportWithDarkMode: boolean;
58
+ exportScale: number;
59
+ currentItemStrokeColor: string;
60
+ currentItemBackgroundColor: string;
61
+ currentItemFillStyle: import("../element/types").FillStyle;
62
+ currentItemStrokeWidth: number;
63
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
64
+ currentItemRoughness: number;
65
+ currentItemOpacity: number;
66
+ currentItemFontFamily: number;
67
+ currentItemFontSize: number;
68
+ currentItemTextAlign: import("../element/types").TextAlign;
69
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
70
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
71
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
72
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
73
+ cursorButton: "up" | "down";
74
+ scrolledOutside: boolean;
75
+ isResizing: boolean;
76
+ isRotating: boolean;
77
+ openMenu: "canvas" | "shape" | null;
78
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
79
+ lastPointerDownWith: import("../element/types").PointerType;
80
+ selectedElementIds: {
81
+ [id: string]: boolean;
82
+ };
83
+ previousSelectedElementIds: {
84
+ [id: string]: boolean;
85
+ };
86
+ showHelpDialog: boolean;
87
+ toastMessage: string | null;
88
+ zenModeEnabled: boolean;
89
+ viewModeEnabled: boolean;
90
+ selectedGroupIds: {
91
+ [groupId: string]: boolean;
92
+ };
93
+ editingGroupId: string | null;
94
+ isLibraryOpen: boolean;
95
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
96
+ collaborators: Map<string, import("../types").Collaborator>;
97
+ currentChartType: import("../element/types").ChartType;
98
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
99
+ };
100
+ commitToHistory: true;
101
+ };
102
+ PanelComponent: ({ updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
103
+ } & {
104
+ keyTest?: undefined;
105
+ };
106
+ export declare const actionZoomIn: {
107
+ name: "zoomIn";
108
+ perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
109
+ appState: {
110
+ zoom: Readonly<{
111
+ value: NormalizedZoomValue;
112
+ translation: Readonly<{
113
+ x: number;
114
+ y: number;
115
+ }>;
116
+ }>;
117
+ isLoading: boolean;
118
+ errorMessage: string | null;
119
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
120
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
121
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
122
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
123
+ isBindingEnabled: boolean;
124
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
125
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
126
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
127
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
128
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
129
+ elementLocked: boolean;
130
+ exportBackground: boolean;
131
+ exportEmbedScene: boolean;
132
+ exportWithDarkMode: boolean;
133
+ exportScale: number;
134
+ currentItemStrokeColor: string;
135
+ currentItemBackgroundColor: string;
136
+ currentItemFillStyle: import("../element/types").FillStyle;
137
+ currentItemStrokeWidth: number;
138
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
139
+ currentItemRoughness: number;
140
+ currentItemOpacity: number;
141
+ currentItemFontFamily: number;
142
+ currentItemFontSize: number;
143
+ currentItemTextAlign: import("../element/types").TextAlign;
144
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
145
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
146
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
147
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
148
+ viewBackgroundColor: string;
149
+ scrollX: number;
150
+ scrollY: number;
151
+ cursorButton: "up" | "down";
152
+ scrolledOutside: boolean;
153
+ name: string;
154
+ isResizing: boolean;
155
+ isRotating: boolean;
156
+ openMenu: "canvas" | "shape" | null;
157
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
158
+ lastPointerDownWith: import("../element/types").PointerType;
159
+ selectedElementIds: {
160
+ [id: string]: boolean;
161
+ };
162
+ previousSelectedElementIds: {
163
+ [id: string]: boolean;
164
+ };
165
+ shouldCacheIgnoreZoom: boolean;
166
+ showHelpDialog: boolean;
167
+ toastMessage: string | null;
168
+ zenModeEnabled: boolean;
169
+ theme: string;
170
+ gridSize: number | null;
171
+ viewModeEnabled: boolean;
172
+ selectedGroupIds: {
173
+ [groupId: string]: boolean;
174
+ };
175
+ editingGroupId: string | null;
176
+ width: number;
177
+ height: number;
178
+ offsetTop: number;
179
+ offsetLeft: number;
180
+ isLibraryOpen: boolean;
181
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
182
+ collaborators: Map<string, import("../types").Collaborator>;
183
+ showStats: boolean;
184
+ currentChartType: import("../element/types").ChartType;
185
+ pasteDialog: {
186
+ shown: false;
187
+ data: null;
188
+ } | {
189
+ shown: true;
190
+ data: import("../charts").Spreadsheet;
191
+ };
192
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
193
+ };
194
+ commitToHistory: false;
195
+ };
196
+ PanelComponent: ({ updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
197
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
198
+ } & {
199
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
200
+ };
201
+ export declare const actionZoomOut: {
202
+ name: "zoomOut";
203
+ perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
204
+ appState: {
205
+ zoom: Readonly<{
206
+ value: NormalizedZoomValue;
207
+ translation: Readonly<{
208
+ x: number;
209
+ y: number;
210
+ }>;
211
+ }>;
212
+ isLoading: boolean;
213
+ errorMessage: string | null;
214
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
215
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
216
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | 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
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
224
+ elementLocked: boolean;
225
+ exportBackground: boolean;
226
+ exportEmbedScene: boolean;
227
+ exportWithDarkMode: boolean;
228
+ exportScale: number;
229
+ currentItemStrokeColor: string;
230
+ currentItemBackgroundColor: string;
231
+ currentItemFillStyle: import("../element/types").FillStyle;
232
+ currentItemStrokeWidth: number;
233
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
234
+ currentItemRoughness: number;
235
+ currentItemOpacity: number;
236
+ currentItemFontFamily: number;
237
+ currentItemFontSize: number;
238
+ currentItemTextAlign: import("../element/types").TextAlign;
239
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
240
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
241
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
242
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
243
+ viewBackgroundColor: string;
244
+ scrollX: number;
245
+ scrollY: number;
246
+ cursorButton: "up" | "down";
247
+ scrolledOutside: boolean;
248
+ name: string;
249
+ isResizing: boolean;
250
+ isRotating: boolean;
251
+ openMenu: "canvas" | "shape" | null;
252
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
253
+ lastPointerDownWith: import("../element/types").PointerType;
254
+ selectedElementIds: {
255
+ [id: string]: boolean;
256
+ };
257
+ previousSelectedElementIds: {
258
+ [id: string]: boolean;
259
+ };
260
+ shouldCacheIgnoreZoom: boolean;
261
+ showHelpDialog: boolean;
262
+ toastMessage: string | null;
263
+ zenModeEnabled: boolean;
264
+ theme: string;
265
+ gridSize: number | null;
266
+ viewModeEnabled: boolean;
267
+ selectedGroupIds: {
268
+ [groupId: string]: boolean;
269
+ };
270
+ editingGroupId: string | null;
271
+ width: number;
272
+ height: number;
273
+ offsetTop: number;
274
+ offsetLeft: number;
275
+ isLibraryOpen: boolean;
276
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
277
+ collaborators: Map<string, import("../types").Collaborator>;
278
+ showStats: boolean;
279
+ currentChartType: import("../element/types").ChartType;
280
+ pasteDialog: {
281
+ shown: false;
282
+ data: null;
283
+ } | {
284
+ shown: true;
285
+ data: import("../charts").Spreadsheet;
286
+ };
287
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
288
+ };
289
+ commitToHistory: false;
290
+ };
291
+ PanelComponent: ({ updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
292
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
293
+ } & {
294
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
295
+ };
296
+ export declare const actionResetZoom: {
297
+ name: "resetZoom";
298
+ perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
299
+ appState: {
300
+ zoom: Readonly<{
301
+ value: NormalizedZoomValue;
302
+ translation: Readonly<{
303
+ x: number;
304
+ y: number;
305
+ }>;
306
+ }>;
307
+ isLoading: boolean;
308
+ errorMessage: string | null;
309
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
310
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
311
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
312
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
313
+ isBindingEnabled: boolean;
314
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
315
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
316
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
317
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
318
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
319
+ elementLocked: boolean;
320
+ exportBackground: boolean;
321
+ exportEmbedScene: boolean;
322
+ exportWithDarkMode: boolean;
323
+ exportScale: number;
324
+ currentItemStrokeColor: string;
325
+ currentItemBackgroundColor: string;
326
+ currentItemFillStyle: import("../element/types").FillStyle;
327
+ currentItemStrokeWidth: number;
328
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
329
+ currentItemRoughness: number;
330
+ currentItemOpacity: number;
331
+ currentItemFontFamily: number;
332
+ currentItemFontSize: number;
333
+ currentItemTextAlign: import("../element/types").TextAlign;
334
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
335
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
336
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
337
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
338
+ viewBackgroundColor: string;
339
+ scrollX: number;
340
+ scrollY: number;
341
+ cursorButton: "up" | "down";
342
+ scrolledOutside: boolean;
343
+ name: string;
344
+ isResizing: boolean;
345
+ isRotating: boolean;
346
+ openMenu: "canvas" | "shape" | null;
347
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
348
+ lastPointerDownWith: import("../element/types").PointerType;
349
+ selectedElementIds: {
350
+ [id: string]: boolean;
351
+ };
352
+ previousSelectedElementIds: {
353
+ [id: string]: boolean;
354
+ };
355
+ shouldCacheIgnoreZoom: boolean;
356
+ showHelpDialog: boolean;
357
+ toastMessage: string | null;
358
+ zenModeEnabled: boolean;
359
+ theme: string;
360
+ gridSize: number | null;
361
+ viewModeEnabled: boolean;
362
+ selectedGroupIds: {
363
+ [groupId: string]: boolean;
364
+ };
365
+ editingGroupId: string | null;
366
+ width: number;
367
+ height: number;
368
+ offsetTop: number;
369
+ offsetLeft: number;
370
+ isLibraryOpen: boolean;
371
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
372
+ collaborators: Map<string, import("../types").Collaborator>;
373
+ showStats: boolean;
374
+ currentChartType: import("../element/types").ChartType;
375
+ pasteDialog: {
376
+ shown: false;
377
+ data: null;
378
+ } | {
379
+ shown: true;
380
+ data: import("../charts").Spreadsheet;
381
+ };
382
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
383
+ };
384
+ commitToHistory: false;
385
+ };
386
+ PanelComponent: ({ updateData, appState }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
387
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
388
+ } & {
389
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
390
+ };
8
391
  export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, zoomToSelection: boolean, maxZoom?: number, margin?: number) => {
9
392
  appState: {
10
393
  zoom: Readonly<{
@@ -93,6 +476,286 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
93
476
  };
94
477
  commitToHistory: boolean;
95
478
  };
96
- export declare const actionZoomToSelected: import("./types").Action;
97
- export declare const actionZoomToFit: import("./types").Action;
98
- export declare const actionToggleTheme: import("./types").Action;
479
+ export declare const actionZoomToSelected: {
480
+ name: "zoomToSelection";
481
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
482
+ appState: {
483
+ zoom: Readonly<{
484
+ value: NormalizedZoomValue;
485
+ translation: Readonly<{
486
+ x: number;
487
+ y: number;
488
+ }>;
489
+ }>;
490
+ scrollX: number;
491
+ scrollY: number;
492
+ isLoading: boolean;
493
+ errorMessage: string | null;
494
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
495
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
496
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
497
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
498
+ isBindingEnabled: boolean;
499
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
500
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
501
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
502
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
503
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
504
+ elementLocked: boolean;
505
+ exportBackground: boolean;
506
+ exportEmbedScene: boolean;
507
+ exportWithDarkMode: boolean;
508
+ exportScale: number;
509
+ currentItemStrokeColor: string;
510
+ currentItemBackgroundColor: string;
511
+ currentItemFillStyle: import("../element/types").FillStyle;
512
+ currentItemStrokeWidth: number;
513
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
514
+ currentItemRoughness: number;
515
+ currentItemOpacity: number;
516
+ currentItemFontFamily: number;
517
+ currentItemFontSize: number;
518
+ currentItemTextAlign: import("../element/types").TextAlign;
519
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
520
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
521
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
522
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
523
+ viewBackgroundColor: string;
524
+ cursorButton: "up" | "down";
525
+ scrolledOutside: boolean;
526
+ name: string;
527
+ isResizing: boolean;
528
+ isRotating: boolean;
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
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
555
+ collaborators: Map<string, import("../types").Collaborator>;
556
+ showStats: boolean;
557
+ currentChartType: import("../element/types").ChartType;
558
+ pasteDialog: {
559
+ shown: false;
560
+ data: null;
561
+ } | {
562
+ shown: true;
563
+ data: import("../charts").Spreadsheet;
564
+ };
565
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
566
+ };
567
+ commitToHistory: boolean;
568
+ };
569
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
570
+ } & {
571
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
572
+ };
573
+ export declare const actionZoomToFit: {
574
+ name: "zoomToFit";
575
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
576
+ appState: {
577
+ zoom: Readonly<{
578
+ value: NormalizedZoomValue;
579
+ translation: Readonly<{
580
+ x: number;
581
+ y: number;
582
+ }>;
583
+ }>;
584
+ scrollX: number;
585
+ scrollY: number;
586
+ isLoading: boolean;
587
+ errorMessage: string | null;
588
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
589
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
590
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
591
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
592
+ isBindingEnabled: boolean;
593
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
594
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
595
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
596
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
597
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
598
+ elementLocked: boolean;
599
+ exportBackground: boolean;
600
+ exportEmbedScene: boolean;
601
+ exportWithDarkMode: boolean;
602
+ exportScale: number;
603
+ currentItemStrokeColor: string;
604
+ currentItemBackgroundColor: string;
605
+ currentItemFillStyle: import("../element/types").FillStyle;
606
+ currentItemStrokeWidth: number;
607
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
608
+ currentItemRoughness: number;
609
+ currentItemOpacity: number;
610
+ currentItemFontFamily: number;
611
+ currentItemFontSize: number;
612
+ currentItemTextAlign: import("../element/types").TextAlign;
613
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
614
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
615
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
616
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
617
+ viewBackgroundColor: string;
618
+ cursorButton: "up" | "down";
619
+ scrolledOutside: boolean;
620
+ name: string;
621
+ isResizing: boolean;
622
+ isRotating: boolean;
623
+ openMenu: "canvas" | "shape" | null;
624
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
625
+ lastPointerDownWith: import("../element/types").PointerType;
626
+ selectedElementIds: {
627
+ [id: string]: boolean;
628
+ };
629
+ previousSelectedElementIds: {
630
+ [id: string]: boolean;
631
+ };
632
+ shouldCacheIgnoreZoom: boolean;
633
+ showHelpDialog: boolean;
634
+ toastMessage: string | null;
635
+ zenModeEnabled: boolean;
636
+ theme: string;
637
+ gridSize: number | null;
638
+ viewModeEnabled: boolean;
639
+ selectedGroupIds: {
640
+ [groupId: string]: boolean;
641
+ };
642
+ editingGroupId: string | null;
643
+ width: number;
644
+ height: number;
645
+ offsetTop: number;
646
+ offsetLeft: number;
647
+ isLibraryOpen: boolean;
648
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
649
+ collaborators: Map<string, import("../types").Collaborator>;
650
+ showStats: boolean;
651
+ currentChartType: import("../element/types").ChartType;
652
+ pasteDialog: {
653
+ shown: false;
654
+ data: null;
655
+ } | {
656
+ shown: true;
657
+ data: import("../charts").Spreadsheet;
658
+ };
659
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
660
+ };
661
+ commitToHistory: boolean;
662
+ };
663
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
664
+ } & {
665
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
666
+ };
667
+ export declare const actionToggleTheme: {
668
+ name: "toggleTheme";
669
+ perform: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: import("../types").AppClassProperties) => {
670
+ appState: {
671
+ theme: any;
672
+ isLoading: boolean;
673
+ errorMessage: string | null;
674
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
675
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
676
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
677
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
678
+ isBindingEnabled: boolean;
679
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
680
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
681
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
682
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
683
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
684
+ elementLocked: boolean;
685
+ exportBackground: boolean;
686
+ exportEmbedScene: boolean;
687
+ exportWithDarkMode: boolean;
688
+ exportScale: number;
689
+ currentItemStrokeColor: string;
690
+ currentItemBackgroundColor: string;
691
+ currentItemFillStyle: import("../element/types").FillStyle;
692
+ currentItemStrokeWidth: number;
693
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
694
+ currentItemRoughness: number;
695
+ currentItemOpacity: number;
696
+ currentItemFontFamily: number;
697
+ currentItemFontSize: number;
698
+ currentItemTextAlign: import("../element/types").TextAlign;
699
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
700
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
701
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
702
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
703
+ viewBackgroundColor: string;
704
+ scrollX: number;
705
+ scrollY: number;
706
+ cursorButton: "up" | "down";
707
+ scrolledOutside: boolean;
708
+ name: string;
709
+ isResizing: boolean;
710
+ isRotating: boolean;
711
+ zoom: Readonly<{
712
+ value: NormalizedZoomValue;
713
+ translation: Readonly<{
714
+ x: number;
715
+ y: number;
716
+ }>;
717
+ }>;
718
+ openMenu: "canvas" | "shape" | null;
719
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
720
+ lastPointerDownWith: import("../element/types").PointerType;
721
+ selectedElementIds: {
722
+ [id: string]: boolean;
723
+ };
724
+ previousSelectedElementIds: {
725
+ [id: string]: boolean;
726
+ };
727
+ shouldCacheIgnoreZoom: boolean;
728
+ showHelpDialog: boolean;
729
+ toastMessage: string | null;
730
+ zenModeEnabled: boolean;
731
+ gridSize: number | null;
732
+ viewModeEnabled: boolean;
733
+ selectedGroupIds: {
734
+ [groupId: string]: boolean;
735
+ };
736
+ editingGroupId: string | null;
737
+ width: number;
738
+ height: number;
739
+ offsetTop: number;
740
+ offsetLeft: number;
741
+ isLibraryOpen: boolean;
742
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
743
+ collaborators: Map<string, import("../types").Collaborator>;
744
+ showStats: boolean;
745
+ currentChartType: import("../element/types").ChartType;
746
+ pasteDialog: {
747
+ shown: false;
748
+ data: null;
749
+ } | {
750
+ shown: true;
751
+ data: import("../charts").Spreadsheet;
752
+ };
753
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
754
+ };
755
+ commitToHistory: false;
756
+ };
757
+ PanelComponent: ({ appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
758
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
759
+ } & {
760
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
761
+ };