@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,12 +1,1160 @@
1
- export declare const actionChangeStrokeColor: import("./types").Action;
2
- export declare const actionChangeBackgroundColor: import("./types").Action;
3
- export declare const actionChangeFillStyle: import("./types").Action;
4
- export declare const actionChangeStrokeWidth: import("./types").Action;
5
- export declare const actionChangeSloppiness: import("./types").Action;
6
- export declare const actionChangeStrokeStyle: import("./types").Action;
7
- export declare const actionChangeOpacity: import("./types").Action;
8
- export declare const actionChangeFontSize: import("./types").Action;
9
- export declare const actionChangeFontFamily: import("./types").Action;
10
- export declare const actionChangeTextAlign: import("./types").Action;
11
- export declare const actionChangeSharpness: import("./types").Action;
12
- export declare const actionChangeArrowhead: import("./types").Action;
1
+ /// <reference types="react" />
2
+ import { AppState } from "../../src/types";
3
+ import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement, TextAlign } from "../element/types";
4
+ export declare const actionChangeStrokeColor: {
5
+ name: "changeStrokeColor";
6
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
7
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
8
+ } & {
9
+ keyTest?: undefined;
10
+ };
11
+ export declare const actionChangeBackgroundColor: {
12
+ name: "changeBackgroundColor";
13
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
14
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
15
+ } & {
16
+ keyTest?: undefined;
17
+ };
18
+ export declare const actionChangeFillStyle: {
19
+ name: "changeFillStyle";
20
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
21
+ elements: ExcalidrawElement[];
22
+ appState: {
23
+ currentItemFillStyle: any;
24
+ isLoading: boolean;
25
+ errorMessage: string | null;
26
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
29
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
30
+ isBindingEnabled: boolean;
31
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
32
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
33
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
34
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
35
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
36
+ elementLocked: boolean;
37
+ exportBackground: boolean;
38
+ exportEmbedScene: boolean;
39
+ exportWithDarkMode: boolean;
40
+ exportScale: number;
41
+ currentItemStrokeColor: string;
42
+ currentItemBackgroundColor: string;
43
+ currentItemStrokeWidth: number;
44
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
45
+ currentItemRoughness: number;
46
+ currentItemOpacity: number;
47
+ currentItemFontFamily: number;
48
+ currentItemFontSize: number;
49
+ currentItemTextAlign: TextAlign;
50
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
51
+ currentItemStartArrowhead: Arrowhead | null;
52
+ currentItemEndArrowhead: Arrowhead | null;
53
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
54
+ viewBackgroundColor: string;
55
+ scrollX: number;
56
+ scrollY: number;
57
+ cursorButton: "up" | "down";
58
+ scrolledOutside: boolean;
59
+ name: string;
60
+ isResizing: boolean;
61
+ isRotating: boolean;
62
+ zoom: Readonly<{
63
+ value: import("../../src/types").NormalizedZoomValue;
64
+ translation: Readonly<{
65
+ x: number;
66
+ y: number;
67
+ }>;
68
+ }>;
69
+ openMenu: "canvas" | "shape" | null;
70
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
71
+ lastPointerDownWith: import("../element/types").PointerType;
72
+ selectedElementIds: {
73
+ [id: string]: boolean;
74
+ };
75
+ previousSelectedElementIds: {
76
+ [id: string]: boolean;
77
+ };
78
+ shouldCacheIgnoreZoom: boolean;
79
+ showHelpDialog: boolean;
80
+ toastMessage: string | null;
81
+ zenModeEnabled: boolean;
82
+ theme: string;
83
+ gridSize: number | null;
84
+ viewModeEnabled: boolean;
85
+ selectedGroupIds: {
86
+ [groupId: string]: boolean;
87
+ };
88
+ editingGroupId: string | null;
89
+ width: number;
90
+ height: number;
91
+ offsetTop: number;
92
+ offsetLeft: number;
93
+ isLibraryOpen: boolean;
94
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
95
+ collaborators: Map<string, import("../../src/types").Collaborator>;
96
+ showStats: boolean;
97
+ currentChartType: import("../element/types").ChartType;
98
+ pasteDialog: {
99
+ shown: false;
100
+ data: null;
101
+ } | {
102
+ shown: true;
103
+ data: import("../charts").Spreadsheet;
104
+ };
105
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
106
+ };
107
+ commitToHistory: true;
108
+ };
109
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
110
+ } & {
111
+ keyTest?: undefined;
112
+ };
113
+ export declare const actionChangeStrokeWidth: {
114
+ name: "changeStrokeWidth";
115
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
116
+ elements: ExcalidrawElement[];
117
+ appState: {
118
+ currentItemStrokeWidth: any;
119
+ isLoading: boolean;
120
+ errorMessage: string | null;
121
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
122
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
123
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
124
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
125
+ isBindingEnabled: boolean;
126
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
127
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
128
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
129
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
130
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
131
+ elementLocked: boolean;
132
+ exportBackground: boolean;
133
+ exportEmbedScene: boolean;
134
+ exportWithDarkMode: boolean;
135
+ exportScale: number;
136
+ currentItemStrokeColor: string;
137
+ currentItemBackgroundColor: string;
138
+ currentItemFillStyle: import("../element/types").FillStyle;
139
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
140
+ currentItemRoughness: number;
141
+ currentItemOpacity: number;
142
+ currentItemFontFamily: number;
143
+ currentItemFontSize: number;
144
+ currentItemTextAlign: TextAlign;
145
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
146
+ currentItemStartArrowhead: Arrowhead | null;
147
+ currentItemEndArrowhead: Arrowhead | null;
148
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
149
+ viewBackgroundColor: string;
150
+ scrollX: number;
151
+ scrollY: number;
152
+ cursorButton: "up" | "down";
153
+ scrolledOutside: boolean;
154
+ name: string;
155
+ isResizing: boolean;
156
+ isRotating: boolean;
157
+ zoom: Readonly<{
158
+ value: import("../../src/types").NormalizedZoomValue;
159
+ translation: Readonly<{
160
+ x: number;
161
+ y: number;
162
+ }>;
163
+ }>;
164
+ openMenu: "canvas" | "shape" | null;
165
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
166
+ lastPointerDownWith: import("../element/types").PointerType;
167
+ selectedElementIds: {
168
+ [id: string]: boolean;
169
+ };
170
+ previousSelectedElementIds: {
171
+ [id: string]: boolean;
172
+ };
173
+ shouldCacheIgnoreZoom: boolean;
174
+ showHelpDialog: boolean;
175
+ toastMessage: string | null;
176
+ zenModeEnabled: boolean;
177
+ theme: string;
178
+ gridSize: number | null;
179
+ viewModeEnabled: boolean;
180
+ selectedGroupIds: {
181
+ [groupId: string]: boolean;
182
+ };
183
+ editingGroupId: string | null;
184
+ width: number;
185
+ height: number;
186
+ offsetTop: number;
187
+ offsetLeft: number;
188
+ isLibraryOpen: boolean;
189
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
190
+ collaborators: Map<string, import("../../src/types").Collaborator>;
191
+ showStats: boolean;
192
+ currentChartType: import("../element/types").ChartType;
193
+ pasteDialog: {
194
+ shown: false;
195
+ data: null;
196
+ } | {
197
+ shown: true;
198
+ data: import("../charts").Spreadsheet;
199
+ };
200
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
201
+ };
202
+ commitToHistory: true;
203
+ };
204
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
205
+ } & {
206
+ keyTest?: undefined;
207
+ };
208
+ export declare const actionChangeSloppiness: {
209
+ name: "changeSloppiness";
210
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
211
+ elements: ExcalidrawElement[];
212
+ appState: {
213
+ currentItemRoughness: any;
214
+ isLoading: boolean;
215
+ errorMessage: string | null;
216
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
217
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
218
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
219
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
220
+ isBindingEnabled: boolean;
221
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
222
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
223
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
224
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
225
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
226
+ elementLocked: boolean;
227
+ exportBackground: boolean;
228
+ exportEmbedScene: boolean;
229
+ exportWithDarkMode: boolean;
230
+ exportScale: number;
231
+ currentItemStrokeColor: string;
232
+ currentItemBackgroundColor: string;
233
+ currentItemFillStyle: import("../element/types").FillStyle;
234
+ currentItemStrokeWidth: number;
235
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
236
+ currentItemOpacity: number;
237
+ currentItemFontFamily: number;
238
+ currentItemFontSize: number;
239
+ currentItemTextAlign: TextAlign;
240
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
241
+ currentItemStartArrowhead: Arrowhead | null;
242
+ currentItemEndArrowhead: Arrowhead | null;
243
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
244
+ viewBackgroundColor: string;
245
+ scrollX: number;
246
+ scrollY: number;
247
+ cursorButton: "up" | "down";
248
+ scrolledOutside: boolean;
249
+ name: string;
250
+ isResizing: boolean;
251
+ isRotating: boolean;
252
+ zoom: Readonly<{
253
+ value: import("../../src/types").NormalizedZoomValue;
254
+ translation: Readonly<{
255
+ x: number;
256
+ y: number;
257
+ }>;
258
+ }>;
259
+ openMenu: "canvas" | "shape" | null;
260
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
261
+ lastPointerDownWith: import("../element/types").PointerType;
262
+ selectedElementIds: {
263
+ [id: string]: boolean;
264
+ };
265
+ previousSelectedElementIds: {
266
+ [id: string]: boolean;
267
+ };
268
+ shouldCacheIgnoreZoom: boolean;
269
+ showHelpDialog: boolean;
270
+ toastMessage: string | null;
271
+ zenModeEnabled: boolean;
272
+ theme: string;
273
+ gridSize: number | null;
274
+ viewModeEnabled: boolean;
275
+ selectedGroupIds: {
276
+ [groupId: string]: boolean;
277
+ };
278
+ editingGroupId: string | null;
279
+ width: number;
280
+ height: number;
281
+ offsetTop: number;
282
+ offsetLeft: number;
283
+ isLibraryOpen: boolean;
284
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
285
+ collaborators: Map<string, import("../../src/types").Collaborator>;
286
+ showStats: boolean;
287
+ currentChartType: import("../element/types").ChartType;
288
+ pasteDialog: {
289
+ shown: false;
290
+ data: null;
291
+ } | {
292
+ shown: true;
293
+ data: import("../charts").Spreadsheet;
294
+ };
295
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
296
+ };
297
+ commitToHistory: true;
298
+ };
299
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
300
+ } & {
301
+ keyTest?: undefined;
302
+ };
303
+ export declare const actionChangeStrokeStyle: {
304
+ name: "changeStrokeStyle";
305
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
306
+ elements: ExcalidrawElement[];
307
+ appState: {
308
+ currentItemStrokeStyle: any;
309
+ isLoading: boolean;
310
+ errorMessage: string | null;
311
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
312
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
313
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
314
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
315
+ isBindingEnabled: boolean;
316
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
317
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
318
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
319
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
320
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
321
+ elementLocked: boolean;
322
+ exportBackground: boolean;
323
+ exportEmbedScene: boolean;
324
+ exportWithDarkMode: boolean;
325
+ exportScale: number;
326
+ currentItemStrokeColor: string;
327
+ currentItemBackgroundColor: string;
328
+ currentItemFillStyle: import("../element/types").FillStyle;
329
+ currentItemStrokeWidth: number;
330
+ currentItemRoughness: number;
331
+ currentItemOpacity: number;
332
+ currentItemFontFamily: number;
333
+ currentItemFontSize: number;
334
+ currentItemTextAlign: TextAlign;
335
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
336
+ currentItemStartArrowhead: Arrowhead | null;
337
+ currentItemEndArrowhead: Arrowhead | null;
338
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
339
+ viewBackgroundColor: string;
340
+ scrollX: number;
341
+ scrollY: number;
342
+ cursorButton: "up" | "down";
343
+ scrolledOutside: boolean;
344
+ name: string;
345
+ isResizing: boolean;
346
+ isRotating: boolean;
347
+ zoom: Readonly<{
348
+ value: import("../../src/types").NormalizedZoomValue;
349
+ translation: Readonly<{
350
+ x: number;
351
+ y: number;
352
+ }>;
353
+ }>;
354
+ openMenu: "canvas" | "shape" | null;
355
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
356
+ lastPointerDownWith: import("../element/types").PointerType;
357
+ selectedElementIds: {
358
+ [id: string]: boolean;
359
+ };
360
+ previousSelectedElementIds: {
361
+ [id: string]: boolean;
362
+ };
363
+ shouldCacheIgnoreZoom: boolean;
364
+ showHelpDialog: boolean;
365
+ toastMessage: string | null;
366
+ zenModeEnabled: boolean;
367
+ theme: string;
368
+ gridSize: number | null;
369
+ viewModeEnabled: boolean;
370
+ selectedGroupIds: {
371
+ [groupId: string]: boolean;
372
+ };
373
+ editingGroupId: string | null;
374
+ width: number;
375
+ height: number;
376
+ offsetTop: number;
377
+ offsetLeft: number;
378
+ isLibraryOpen: boolean;
379
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
380
+ collaborators: Map<string, import("../../src/types").Collaborator>;
381
+ showStats: boolean;
382
+ currentChartType: import("../element/types").ChartType;
383
+ pasteDialog: {
384
+ shown: false;
385
+ data: null;
386
+ } | {
387
+ shown: true;
388
+ data: import("../charts").Spreadsheet;
389
+ };
390
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
391
+ };
392
+ commitToHistory: true;
393
+ };
394
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
395
+ } & {
396
+ keyTest?: undefined;
397
+ };
398
+ export declare const actionChangeOpacity: {
399
+ name: "changeOpacity";
400
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
401
+ elements: ExcalidrawElement[];
402
+ appState: {
403
+ currentItemOpacity: any;
404
+ isLoading: boolean;
405
+ errorMessage: string | null;
406
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
407
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
408
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
409
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
410
+ isBindingEnabled: boolean;
411
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
412
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
413
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
414
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
415
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
416
+ elementLocked: boolean;
417
+ exportBackground: boolean;
418
+ exportEmbedScene: boolean;
419
+ exportWithDarkMode: boolean;
420
+ exportScale: number;
421
+ currentItemStrokeColor: string;
422
+ currentItemBackgroundColor: string;
423
+ currentItemFillStyle: import("../element/types").FillStyle;
424
+ currentItemStrokeWidth: number;
425
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
426
+ currentItemRoughness: number;
427
+ currentItemFontFamily: number;
428
+ currentItemFontSize: number;
429
+ currentItemTextAlign: TextAlign;
430
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
431
+ currentItemStartArrowhead: Arrowhead | null;
432
+ currentItemEndArrowhead: 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("../../src/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("../../src/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: true;
488
+ };
489
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
490
+ } & {
491
+ keyTest?: undefined;
492
+ };
493
+ export declare const actionChangeFontSize: {
494
+ name: "changeFontSize";
495
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
496
+ elements: ExcalidrawElement[];
497
+ appState: {
498
+ currentItemFontSize: number;
499
+ isLoading: boolean;
500
+ errorMessage: string | null;
501
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
502
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
503
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
504
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
505
+ isBindingEnabled: boolean;
506
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
507
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
508
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
509
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
510
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
511
+ elementLocked: boolean;
512
+ exportBackground: boolean;
513
+ exportEmbedScene: boolean;
514
+ exportWithDarkMode: boolean;
515
+ exportScale: number;
516
+ currentItemStrokeColor: string;
517
+ currentItemBackgroundColor: string;
518
+ currentItemFillStyle: import("../element/types").FillStyle;
519
+ currentItemStrokeWidth: number;
520
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
521
+ currentItemRoughness: number;
522
+ currentItemOpacity: number;
523
+ currentItemFontFamily: number;
524
+ currentItemTextAlign: TextAlign;
525
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
526
+ currentItemStartArrowhead: Arrowhead | null;
527
+ currentItemEndArrowhead: Arrowhead | null;
528
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
529
+ viewBackgroundColor: string;
530
+ scrollX: number;
531
+ scrollY: number;
532
+ cursorButton: "up" | "down";
533
+ scrolledOutside: boolean;
534
+ name: string;
535
+ isResizing: boolean;
536
+ isRotating: boolean;
537
+ zoom: Readonly<{
538
+ value: import("../../src/types").NormalizedZoomValue;
539
+ translation: Readonly<{
540
+ x: number;
541
+ y: number;
542
+ }>;
543
+ }>;
544
+ openMenu: "canvas" | "shape" | null;
545
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
546
+ lastPointerDownWith: import("../element/types").PointerType;
547
+ selectedElementIds: {
548
+ [id: string]: boolean;
549
+ };
550
+ previousSelectedElementIds: {
551
+ [id: string]: boolean;
552
+ };
553
+ shouldCacheIgnoreZoom: boolean;
554
+ showHelpDialog: boolean;
555
+ toastMessage: string | null;
556
+ zenModeEnabled: boolean;
557
+ theme: string;
558
+ gridSize: number | null;
559
+ viewModeEnabled: boolean;
560
+ selectedGroupIds: {
561
+ [groupId: string]: boolean;
562
+ };
563
+ editingGroupId: string | null;
564
+ width: number;
565
+ height: number;
566
+ offsetTop: number;
567
+ offsetLeft: number;
568
+ isLibraryOpen: boolean;
569
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
570
+ collaborators: Map<string, import("../../src/types").Collaborator>;
571
+ showStats: boolean;
572
+ currentChartType: import("../element/types").ChartType;
573
+ pasteDialog: {
574
+ shown: false;
575
+ data: null;
576
+ } | {
577
+ shown: true;
578
+ data: import("../charts").Spreadsheet;
579
+ };
580
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
581
+ };
582
+ commitToHistory: boolean;
583
+ };
584
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
585
+ } & {
586
+ keyTest?: undefined;
587
+ };
588
+ export declare const actionDecreaseFontSize: {
589
+ name: "decreaseFontSize";
590
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
591
+ elements: ExcalidrawElement[];
592
+ appState: {
593
+ currentItemFontSize: number;
594
+ isLoading: boolean;
595
+ errorMessage: string | null;
596
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
597
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
598
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
599
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
600
+ isBindingEnabled: boolean;
601
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
602
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
603
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
604
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
605
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
606
+ elementLocked: boolean;
607
+ exportBackground: boolean;
608
+ exportEmbedScene: boolean;
609
+ exportWithDarkMode: boolean;
610
+ exportScale: number;
611
+ currentItemStrokeColor: string;
612
+ currentItemBackgroundColor: string;
613
+ currentItemFillStyle: import("../element/types").FillStyle;
614
+ currentItemStrokeWidth: number;
615
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
616
+ currentItemRoughness: number;
617
+ currentItemOpacity: number;
618
+ currentItemFontFamily: number;
619
+ currentItemTextAlign: TextAlign;
620
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
621
+ currentItemStartArrowhead: Arrowhead | null;
622
+ currentItemEndArrowhead: Arrowhead | null;
623
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
624
+ viewBackgroundColor: string;
625
+ scrollX: number;
626
+ scrollY: number;
627
+ cursorButton: "up" | "down";
628
+ scrolledOutside: boolean;
629
+ name: string;
630
+ isResizing: boolean;
631
+ isRotating: boolean;
632
+ zoom: Readonly<{
633
+ value: import("../../src/types").NormalizedZoomValue;
634
+ translation: Readonly<{
635
+ x: number;
636
+ y: number;
637
+ }>;
638
+ }>;
639
+ openMenu: "canvas" | "shape" | null;
640
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
641
+ lastPointerDownWith: import("../element/types").PointerType;
642
+ selectedElementIds: {
643
+ [id: string]: boolean;
644
+ };
645
+ previousSelectedElementIds: {
646
+ [id: string]: boolean;
647
+ };
648
+ shouldCacheIgnoreZoom: boolean;
649
+ showHelpDialog: boolean;
650
+ toastMessage: string | null;
651
+ zenModeEnabled: boolean;
652
+ theme: string;
653
+ gridSize: number | null;
654
+ viewModeEnabled: boolean;
655
+ selectedGroupIds: {
656
+ [groupId: string]: boolean;
657
+ };
658
+ editingGroupId: string | null;
659
+ width: number;
660
+ height: number;
661
+ offsetTop: number;
662
+ offsetLeft: number;
663
+ isLibraryOpen: boolean;
664
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
665
+ collaborators: Map<string, import("../../src/types").Collaborator>;
666
+ showStats: boolean;
667
+ currentChartType: import("../element/types").ChartType;
668
+ pasteDialog: {
669
+ shown: false;
670
+ data: null;
671
+ } | {
672
+ shown: true;
673
+ data: import("../charts").Spreadsheet;
674
+ };
675
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
676
+ };
677
+ commitToHistory: boolean;
678
+ };
679
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
680
+ } & {
681
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
682
+ };
683
+ export declare const actionIncreaseFontSize: {
684
+ name: "increaseFontSize";
685
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
686
+ elements: ExcalidrawElement[];
687
+ appState: {
688
+ currentItemFontSize: number;
689
+ isLoading: boolean;
690
+ errorMessage: string | null;
691
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
692
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
693
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
694
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
695
+ isBindingEnabled: boolean;
696
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
697
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
698
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
699
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
700
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
701
+ elementLocked: boolean;
702
+ exportBackground: boolean;
703
+ exportEmbedScene: boolean;
704
+ exportWithDarkMode: boolean;
705
+ exportScale: number;
706
+ currentItemStrokeColor: string;
707
+ currentItemBackgroundColor: string;
708
+ currentItemFillStyle: import("../element/types").FillStyle;
709
+ currentItemStrokeWidth: number;
710
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
711
+ currentItemRoughness: number;
712
+ currentItemOpacity: number;
713
+ currentItemFontFamily: number;
714
+ currentItemTextAlign: TextAlign;
715
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
716
+ currentItemStartArrowhead: Arrowhead | null;
717
+ currentItemEndArrowhead: Arrowhead | null;
718
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
719
+ viewBackgroundColor: string;
720
+ scrollX: number;
721
+ scrollY: number;
722
+ cursorButton: "up" | "down";
723
+ scrolledOutside: boolean;
724
+ name: string;
725
+ isResizing: boolean;
726
+ isRotating: boolean;
727
+ zoom: Readonly<{
728
+ value: import("../../src/types").NormalizedZoomValue;
729
+ translation: Readonly<{
730
+ x: number;
731
+ y: number;
732
+ }>;
733
+ }>;
734
+ openMenu: "canvas" | "shape" | null;
735
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
736
+ lastPointerDownWith: import("../element/types").PointerType;
737
+ selectedElementIds: {
738
+ [id: string]: boolean;
739
+ };
740
+ previousSelectedElementIds: {
741
+ [id: string]: boolean;
742
+ };
743
+ shouldCacheIgnoreZoom: boolean;
744
+ showHelpDialog: boolean;
745
+ toastMessage: string | null;
746
+ zenModeEnabled: boolean;
747
+ theme: string;
748
+ gridSize: number | null;
749
+ viewModeEnabled: boolean;
750
+ selectedGroupIds: {
751
+ [groupId: string]: boolean;
752
+ };
753
+ editingGroupId: string | null;
754
+ width: number;
755
+ height: number;
756
+ offsetTop: number;
757
+ offsetLeft: number;
758
+ isLibraryOpen: boolean;
759
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
760
+ collaborators: Map<string, import("../../src/types").Collaborator>;
761
+ showStats: boolean;
762
+ currentChartType: import("../element/types").ChartType;
763
+ pasteDialog: {
764
+ shown: false;
765
+ data: null;
766
+ } | {
767
+ shown: true;
768
+ data: import("../charts").Spreadsheet;
769
+ };
770
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
771
+ };
772
+ commitToHistory: boolean;
773
+ };
774
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
775
+ } & {
776
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
777
+ };
778
+ export declare const actionChangeFontFamily: {
779
+ name: "changeFontFamily";
780
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
781
+ elements: ExcalidrawElement[];
782
+ appState: {
783
+ currentItemFontFamily: any;
784
+ isLoading: boolean;
785
+ errorMessage: string | null;
786
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
787
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
788
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
789
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
790
+ isBindingEnabled: boolean;
791
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
792
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
793
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
794
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
795
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
796
+ elementLocked: boolean;
797
+ exportBackground: boolean;
798
+ exportEmbedScene: boolean;
799
+ exportWithDarkMode: boolean;
800
+ exportScale: number;
801
+ currentItemStrokeColor: string;
802
+ currentItemBackgroundColor: string;
803
+ currentItemFillStyle: import("../element/types").FillStyle;
804
+ currentItemStrokeWidth: number;
805
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
806
+ currentItemRoughness: number;
807
+ currentItemOpacity: number;
808
+ currentItemFontSize: number;
809
+ currentItemTextAlign: TextAlign;
810
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
811
+ currentItemStartArrowhead: Arrowhead | null;
812
+ currentItemEndArrowhead: Arrowhead | null;
813
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
814
+ viewBackgroundColor: string;
815
+ scrollX: number;
816
+ scrollY: number;
817
+ cursorButton: "up" | "down";
818
+ scrolledOutside: boolean;
819
+ name: string;
820
+ isResizing: boolean;
821
+ isRotating: boolean;
822
+ zoom: Readonly<{
823
+ value: import("../../src/types").NormalizedZoomValue;
824
+ translation: Readonly<{
825
+ x: number;
826
+ y: number;
827
+ }>;
828
+ }>;
829
+ openMenu: "canvas" | "shape" | null;
830
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
831
+ lastPointerDownWith: import("../element/types").PointerType;
832
+ selectedElementIds: {
833
+ [id: string]: boolean;
834
+ };
835
+ previousSelectedElementIds: {
836
+ [id: string]: boolean;
837
+ };
838
+ shouldCacheIgnoreZoom: boolean;
839
+ showHelpDialog: boolean;
840
+ toastMessage: string | null;
841
+ zenModeEnabled: boolean;
842
+ theme: string;
843
+ gridSize: number | null;
844
+ viewModeEnabled: boolean;
845
+ selectedGroupIds: {
846
+ [groupId: string]: boolean;
847
+ };
848
+ editingGroupId: string | null;
849
+ width: number;
850
+ height: number;
851
+ offsetTop: number;
852
+ offsetLeft: number;
853
+ isLibraryOpen: boolean;
854
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
855
+ collaborators: Map<string, import("../../src/types").Collaborator>;
856
+ showStats: boolean;
857
+ currentChartType: import("../element/types").ChartType;
858
+ pasteDialog: {
859
+ shown: false;
860
+ data: null;
861
+ } | {
862
+ shown: true;
863
+ data: import("../charts").Spreadsheet;
864
+ };
865
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
866
+ };
867
+ commitToHistory: true;
868
+ };
869
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
870
+ } & {
871
+ keyTest?: undefined;
872
+ };
873
+ export declare const actionChangeTextAlign: {
874
+ name: "changeTextAlign";
875
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
876
+ elements: ExcalidrawElement[];
877
+ appState: {
878
+ currentItemTextAlign: any;
879
+ isLoading: boolean;
880
+ errorMessage: string | null;
881
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
882
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
883
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
884
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
885
+ isBindingEnabled: boolean;
886
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
887
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
888
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
889
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
890
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
891
+ elementLocked: boolean;
892
+ exportBackground: boolean;
893
+ exportEmbedScene: boolean;
894
+ exportWithDarkMode: boolean;
895
+ exportScale: number;
896
+ currentItemStrokeColor: string;
897
+ currentItemBackgroundColor: string;
898
+ currentItemFillStyle: import("../element/types").FillStyle;
899
+ currentItemStrokeWidth: number;
900
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
901
+ currentItemRoughness: number;
902
+ currentItemOpacity: number;
903
+ currentItemFontFamily: number;
904
+ currentItemFontSize: number;
905
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
906
+ currentItemStartArrowhead: Arrowhead | null;
907
+ currentItemEndArrowhead: Arrowhead | null;
908
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
909
+ viewBackgroundColor: string;
910
+ scrollX: number;
911
+ scrollY: number;
912
+ cursorButton: "up" | "down";
913
+ scrolledOutside: boolean;
914
+ name: string;
915
+ isResizing: boolean;
916
+ isRotating: boolean;
917
+ zoom: Readonly<{
918
+ value: import("../../src/types").NormalizedZoomValue;
919
+ translation: Readonly<{
920
+ x: number;
921
+ y: number;
922
+ }>;
923
+ }>;
924
+ openMenu: "canvas" | "shape" | null;
925
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
926
+ lastPointerDownWith: import("../element/types").PointerType;
927
+ selectedElementIds: {
928
+ [id: string]: boolean;
929
+ };
930
+ previousSelectedElementIds: {
931
+ [id: string]: boolean;
932
+ };
933
+ shouldCacheIgnoreZoom: boolean;
934
+ showHelpDialog: boolean;
935
+ toastMessage: string | null;
936
+ zenModeEnabled: boolean;
937
+ theme: string;
938
+ gridSize: number | null;
939
+ viewModeEnabled: boolean;
940
+ selectedGroupIds: {
941
+ [groupId: string]: boolean;
942
+ };
943
+ editingGroupId: string | null;
944
+ width: number;
945
+ height: number;
946
+ offsetTop: number;
947
+ offsetLeft: number;
948
+ isLibraryOpen: boolean;
949
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
950
+ collaborators: Map<string, import("../../src/types").Collaborator>;
951
+ showStats: boolean;
952
+ currentChartType: import("../element/types").ChartType;
953
+ pasteDialog: {
954
+ shown: false;
955
+ data: null;
956
+ } | {
957
+ shown: true;
958
+ data: import("../charts").Spreadsheet;
959
+ };
960
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
961
+ };
962
+ commitToHistory: true;
963
+ };
964
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
965
+ } & {
966
+ keyTest?: undefined;
967
+ };
968
+ export declare const actionChangeSharpness: {
969
+ name: "changeSharpness";
970
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
971
+ elements: ExcalidrawElement[];
972
+ appState: {
973
+ currentItemStrokeSharpness: any;
974
+ currentItemLinearStrokeSharpness: any;
975
+ isLoading: boolean;
976
+ errorMessage: string | null;
977
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
978
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
979
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
980
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
981
+ isBindingEnabled: boolean;
982
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
983
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
984
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
985
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
986
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
987
+ elementLocked: boolean;
988
+ exportBackground: boolean;
989
+ exportEmbedScene: boolean;
990
+ exportWithDarkMode: boolean;
991
+ exportScale: number;
992
+ currentItemStrokeColor: string;
993
+ currentItemBackgroundColor: string;
994
+ currentItemFillStyle: import("../element/types").FillStyle;
995
+ currentItemStrokeWidth: number;
996
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
997
+ currentItemRoughness: number;
998
+ currentItemOpacity: number;
999
+ currentItemFontFamily: number;
1000
+ currentItemFontSize: number;
1001
+ currentItemTextAlign: TextAlign;
1002
+ currentItemStartArrowhead: Arrowhead | null;
1003
+ currentItemEndArrowhead: Arrowhead | null;
1004
+ viewBackgroundColor: string;
1005
+ scrollX: number;
1006
+ scrollY: number;
1007
+ cursorButton: "up" | "down";
1008
+ scrolledOutside: boolean;
1009
+ name: string;
1010
+ isResizing: boolean;
1011
+ isRotating: boolean;
1012
+ zoom: Readonly<{
1013
+ value: import("../../src/types").NormalizedZoomValue;
1014
+ translation: Readonly<{
1015
+ x: number;
1016
+ y: number;
1017
+ }>;
1018
+ }>;
1019
+ openMenu: "canvas" | "shape" | null;
1020
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1021
+ lastPointerDownWith: import("../element/types").PointerType;
1022
+ selectedElementIds: {
1023
+ [id: string]: boolean;
1024
+ };
1025
+ previousSelectedElementIds: {
1026
+ [id: string]: boolean;
1027
+ };
1028
+ shouldCacheIgnoreZoom: boolean;
1029
+ showHelpDialog: boolean;
1030
+ toastMessage: string | null;
1031
+ zenModeEnabled: boolean;
1032
+ theme: string;
1033
+ gridSize: number | null;
1034
+ viewModeEnabled: boolean;
1035
+ selectedGroupIds: {
1036
+ [groupId: string]: boolean;
1037
+ };
1038
+ editingGroupId: string | null;
1039
+ width: number;
1040
+ height: number;
1041
+ offsetTop: number;
1042
+ offsetLeft: number;
1043
+ isLibraryOpen: boolean;
1044
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1045
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1046
+ showStats: boolean;
1047
+ currentChartType: import("../element/types").ChartType;
1048
+ pasteDialog: {
1049
+ shown: false;
1050
+ data: null;
1051
+ } | {
1052
+ shown: true;
1053
+ data: import("../charts").Spreadsheet;
1054
+ };
1055
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
1056
+ };
1057
+ commitToHistory: true;
1058
+ };
1059
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
1060
+ } & {
1061
+ keyTest?: undefined;
1062
+ };
1063
+ export declare const actionChangeArrowhead: {
1064
+ name: "changeArrowhead";
1065
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: {
1066
+ position: "start" | "end";
1067
+ type: Arrowhead;
1068
+ }) => {
1069
+ elements: ExcalidrawElement[];
1070
+ appState: {
1071
+ isLoading: boolean;
1072
+ errorMessage: string | null;
1073
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1074
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1075
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1076
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1077
+ isBindingEnabled: boolean;
1078
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1079
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1080
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1081
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1082
+ elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
1083
+ elementLocked: boolean;
1084
+ exportBackground: boolean;
1085
+ exportEmbedScene: boolean;
1086
+ exportWithDarkMode: boolean;
1087
+ exportScale: number;
1088
+ currentItemStrokeColor: string;
1089
+ currentItemBackgroundColor: string;
1090
+ currentItemFillStyle: import("../element/types").FillStyle;
1091
+ currentItemStrokeWidth: number;
1092
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1093
+ currentItemRoughness: number;
1094
+ currentItemOpacity: number;
1095
+ currentItemFontFamily: number;
1096
+ currentItemFontSize: number;
1097
+ currentItemTextAlign: TextAlign;
1098
+ currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1099
+ currentItemStartArrowhead: Arrowhead | null;
1100
+ currentItemEndArrowhead: Arrowhead | null;
1101
+ currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1102
+ viewBackgroundColor: string;
1103
+ scrollX: number;
1104
+ scrollY: number;
1105
+ cursorButton: "up" | "down";
1106
+ scrolledOutside: boolean;
1107
+ name: string;
1108
+ isResizing: boolean;
1109
+ isRotating: boolean;
1110
+ zoom: Readonly<{
1111
+ value: import("../../src/types").NormalizedZoomValue;
1112
+ translation: Readonly<{
1113
+ x: number;
1114
+ y: number;
1115
+ }>;
1116
+ }>;
1117
+ openMenu: "canvas" | "shape" | null;
1118
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1119
+ lastPointerDownWith: import("../element/types").PointerType;
1120
+ selectedElementIds: {
1121
+ [id: string]: boolean;
1122
+ };
1123
+ previousSelectedElementIds: {
1124
+ [id: string]: boolean;
1125
+ };
1126
+ shouldCacheIgnoreZoom: boolean;
1127
+ showHelpDialog: boolean;
1128
+ toastMessage: string | null;
1129
+ zenModeEnabled: boolean;
1130
+ theme: string;
1131
+ gridSize: number | null;
1132
+ viewModeEnabled: boolean;
1133
+ selectedGroupIds: {
1134
+ [groupId: string]: boolean;
1135
+ };
1136
+ editingGroupId: string | null;
1137
+ width: number;
1138
+ height: number;
1139
+ offsetTop: number;
1140
+ offsetLeft: number;
1141
+ isLibraryOpen: boolean;
1142
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1143
+ collaborators: Map<string, import("../../src/types").Collaborator>;
1144
+ showStats: boolean;
1145
+ currentChartType: import("../element/types").ChartType;
1146
+ pasteDialog: {
1147
+ shown: false;
1148
+ data: null;
1149
+ } | {
1150
+ shown: true;
1151
+ data: import("../charts").Spreadsheet;
1152
+ };
1153
+ pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
1154
+ };
1155
+ commitToHistory: true;
1156
+ };
1157
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
1158
+ } & {
1159
+ keyTest?: undefined;
1160
+ };