@zsviczian/excalidraw 0.18.0-53 → 0.18.0-54

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 (67) hide show
  1. package/dist/excalidraw.development.js +50 -50
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +2 -2
  4. package/types/common/src/commonObsidianUtils.d.ts +6 -0
  5. package/types/common/src/constants.d.ts +1 -0
  6. package/types/common/src/editorInterface.d.ts +1 -1
  7. package/types/common/src/index.d.ts +1 -0
  8. package/types/common/src/utils.d.ts +7 -2
  9. package/types/common/src/visualdebug.d.ts +1 -1
  10. package/types/element/src/binding.d.ts +55 -44
  11. package/types/element/src/collision.d.ts +6 -2
  12. package/types/element/src/index.d.ts +0 -3
  13. package/types/element/src/linearElementEditor.d.ts +15 -18
  14. package/types/element/src/renderElement.d.ts +1 -1
  15. package/types/element/src/typeChecks.d.ts +2 -3
  16. package/types/element/src/types.d.ts +7 -11
  17. package/types/element/src/utils.d.ts +2 -1
  18. package/types/element/src/zindex.d.ts +7 -1
  19. package/types/excalidraw/actions/actionAddToLibrary.d.ts +16 -7
  20. package/types/excalidraw/actions/actionAlign.d.ts +6 -6
  21. package/types/excalidraw/actions/actionBoundText.d.ts +13 -7
  22. package/types/excalidraw/actions/actionCanvas.d.ts +91 -286
  23. package/types/excalidraw/actions/actionClipboard.d.ts +34 -941
  24. package/types/excalidraw/actions/actionCropEditor.d.ts +6 -3
  25. package/types/excalidraw/actions/actionDeleteSelected.d.ts +23 -16
  26. package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  27. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  28. package/types/excalidraw/actions/actionElementLink.d.ts +4 -3
  29. package/types/excalidraw/actions/actionElementLock.d.ts +11 -5
  30. package/types/excalidraw/actions/actionEmbeddable.d.ts +6 -3
  31. package/types/excalidraw/actions/actionExport.d.ts +43 -1149
  32. package/types/excalidraw/actions/actionFinalize.d.ts +10 -688
  33. package/types/excalidraw/actions/actionFlip.d.ts +2 -2
  34. package/types/excalidraw/actions/actionFrame.d.ts +26 -16
  35. package/types/excalidraw/actions/actionGroup.d.ts +12 -6
  36. package/types/excalidraw/actions/actionLinearEditor.d.ts +15 -16
  37. package/types/excalidraw/actions/actionLink.d.ts +5 -2
  38. package/types/excalidraw/actions/actionMenu.d.ts +3 -2
  39. package/types/excalidraw/actions/actionNavigate.d.ts +21 -445
  40. package/types/excalidraw/actions/actionProperties.d.ts +79 -2968
  41. package/types/excalidraw/actions/actionSelectAll.d.ts +6 -3
  42. package/types/excalidraw/actions/actionStyles.d.ts +7 -4
  43. package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  44. package/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -2
  45. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
  46. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -2
  47. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  48. package/types/excalidraw/actions/actionToggleStats.d.ts +5 -2
  49. package/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -3
  50. package/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
  51. package/types/excalidraw/actions/actionTrayMenu.d.ts +5 -2
  52. package/types/excalidraw/actions/actionZindex.d.ts +2 -2
  53. package/types/excalidraw/actions/manager.d.ts +1 -1
  54. package/types/excalidraw/actions/register.d.ts +1 -1
  55. package/types/excalidraw/actions/types.d.ts +3 -3
  56. package/types/excalidraw/appState.d.ts +4 -3
  57. package/types/excalidraw/components/App.d.ts +7 -3
  58. package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  59. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  60. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
  61. package/types/excalidraw/data/restore.d.ts +3 -3
  62. package/types/excalidraw/index.d.ts +3 -3
  63. package/types/excalidraw/obsidianUtils.d.ts +0 -5
  64. package/types/excalidraw/renderer/helpers.d.ts +1 -5
  65. package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  66. package/types/excalidraw/scene/types.d.ts +4 -0
  67. package/types/excalidraw/types.d.ts +15 -5
@@ -3,2735 +3,40 @@ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, Excalidra
3
3
  import type { AppClassProperties, AppState, Primitive } from "../types";
4
4
  export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
5
5
  export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
6
- export declare const actionChangeStrokeColor: {
7
- name: "changeStrokeColor";
8
- label: string;
9
- trackEvent: false;
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => any;
11
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
12
- } & {
13
- keyTest?: undefined;
14
- };
15
- export declare const actionChangeBackgroundColor: {
16
- name: "changeBackgroundColor";
17
- label: string;
18
- trackEvent: false;
19
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
20
- appState: any;
21
- captureUpdate: "EVENTUALLY";
22
- elements?: undefined;
23
- } | {
24
- elements: ExcalidrawElement[];
25
- appState: any;
26
- captureUpdate: "IMMEDIATELY";
27
- };
28
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
29
- } & {
30
- keyTest?: undefined;
31
- };
32
- export declare const actionChangeFillStyle: {
33
- name: "changeFillStyle";
34
- label: string;
35
- trackEvent: false;
36
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
37
- elements: ExcalidrawElement[];
38
- appState: {
39
- currentItemFillStyle: any;
40
- contextMenu: {
41
- items: import("../components/ContextMenu").ContextMenuItems;
42
- top: number;
43
- left: number;
44
- } | null;
45
- showWelcomeScreen: boolean;
46
- isLoading: boolean;
47
- errorMessage: import("react").ReactNode;
48
- activeEmbeddable: {
49
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
50
- state: "active" | "hover";
51
- } | null;
52
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
53
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
54
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
55
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
56
- isBindingEnabled: boolean;
57
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
58
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
59
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
60
- frameRendering: {
61
- enabled: boolean;
62
- name: boolean;
63
- outline: boolean;
64
- clip: boolean;
65
- markerName: boolean;
66
- markerEnabled: boolean;
67
- };
68
- editingFrame: string | null;
69
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
70
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
71
- activeTool: {
72
- lastActiveTool: import("../types").ActiveTool | null;
73
- locked: boolean;
74
- fromSelection: boolean;
75
- } & import("../types").ActiveTool;
76
- preferredSelectionTool: {
77
- type: "selection" | "lasso";
78
- initialized: boolean;
79
- };
80
- penMode: boolean;
81
- penDetected: boolean;
82
- exportBackground: boolean;
83
- exportEmbedScene: boolean;
84
- exportWithDarkMode: boolean;
85
- exportScale: number;
86
- currentItemStrokeColor: string;
87
- currentItemBackgroundColor: string;
88
- currentItemStrokeWidth: number;
89
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
90
- currentItemRoughness: number;
91
- currentItemOpacity: number;
92
- currentItemFontFamily: number;
93
- currentItemFontSize: number;
94
- currentItemTextAlign: string;
95
- currentItemStartArrowhead: Arrowhead | null;
96
- currentItemEndArrowhead: Arrowhead | null;
97
- currentHoveredFontFamily: number | null;
98
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
99
- currentItemArrowType: "round" | "sharp" | "elbow";
100
- currentItemFrameRole: ("marker" | null) | undefined;
101
- viewBackgroundColor: string;
102
- scrollX: number;
103
- scrollY: number;
104
- cursorButton: "up" | "down";
105
- scrolledOutside: boolean;
106
- name: string | null;
107
- isResizing: boolean;
108
- isRotating: boolean;
109
- zoom: Readonly<{
110
- value: import("../types").NormalizedZoomValue;
111
- }>;
112
- openMenu: "canvas" | "shape" | null;
113
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
114
- openSidebar: {
115
- name: string;
116
- tab?: string | undefined;
117
- } | null;
118
- openDialog: {
119
- name: "help" | "imageExport" | "jsonExport";
120
- } | {
121
- name: "ttd";
122
- tab: "mermaid" | "text-to-diagram";
123
- } | {
124
- name: "commandPalette";
125
- } | {
126
- name: "elementLinkSelector";
127
- sourceElementId: string;
128
- } | null;
129
- defaultSidebarDockedPreference: boolean;
130
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
131
- selectedElementIds: Readonly<{
132
- [id: string]: true;
133
- }>;
134
- hoveredElementIds: Readonly<{
135
- [id: string]: true;
136
- }>;
137
- previousSelectedElementIds: {
138
- [id: string]: true;
139
- };
140
- selectedElementsAreBeingDragged: boolean;
141
- shouldCacheIgnoreZoom: boolean;
142
- toast: {
143
- message: string;
144
- closable?: boolean | undefined;
145
- duration?: number | undefined;
146
- } | null;
147
- zenModeEnabled: boolean;
148
- theme: import("@excalidraw/element/types").Theme;
149
- gridSize: number;
150
- gridStep: number;
151
- gridModeEnabled: boolean;
152
- viewModeEnabled: boolean;
153
- selectedGroupIds: {
154
- [groupId: string]: boolean;
155
- };
156
- editingGroupId: string | null;
157
- width: number;
158
- height: number;
159
- offsetTop: number;
160
- offsetLeft: number;
161
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
162
- collaborators: Map<import("../types").SocketId, Readonly<{
163
- pointer?: import("../types").CollaboratorPointer | undefined;
164
- button?: "up" | "down" | undefined;
165
- selectedElementIds?: Readonly<{
166
- [id: string]: true;
167
- }> | undefined;
168
- username?: string | null | undefined;
169
- userState?: import("@excalidraw/common").UserIdleState | undefined;
170
- color?: {
171
- background: string;
172
- stroke: string;
173
- } | undefined;
174
- avatarUrl?: string | undefined;
175
- id?: string | undefined;
176
- socketId?: import("../types").SocketId | undefined;
177
- isCurrentUser?: boolean | undefined;
178
- isInCall?: boolean | undefined;
179
- isSpeaking?: boolean | undefined;
180
- isMuted?: boolean | undefined;
181
- }>>;
182
- stats: {
183
- open: boolean;
184
- panels: number;
185
- };
186
- currentChartType: import("@excalidraw/element/types").ChartType;
187
- pasteDialog: {
188
- shown: false;
189
- data: null;
190
- } | {
191
- shown: true;
192
- data: import("../charts").Spreadsheet;
193
- };
194
- showHyperlinkPopup: false | "info" | "editor";
195
- linkOpacity: number;
196
- colorPalette?: {
197
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
198
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
199
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
200
- topPicks: {
201
- canvasBackground: [string, string, string, string, string];
202
- elementStroke: [string, string, string, string, string];
203
- elementBackground: [string, string, string, string, string];
204
- };
205
- } | undefined;
206
- allowWheelZoom?: boolean | undefined;
207
- allowPinchZoom?: boolean | undefined;
208
- disableContextMenu: boolean;
209
- pinnedScripts?: string[] | undefined;
210
- customPens?: any[] | undefined;
211
- currentStrokeOptions?: any;
212
- resetCustomPen?: any;
213
- gridColor: {
214
- Bold: string;
215
- Regular: string;
216
- };
217
- gridDirection: {
218
- horizontal: boolean;
219
- vertical: boolean;
220
- };
221
- highlightSearchResult: boolean;
222
- dynamicStyle: {
223
- [x: string]: string;
224
- };
225
- frameColor: {
226
- stroke: string;
227
- fill: string;
228
- nameColor: string;
229
- };
230
- invertBindingBehaviour: boolean;
231
- selectedLinearElement: LinearElementEditor | null;
232
- snapLines: readonly import("../snapping").SnapLine[];
233
- originSnapOffset: {
234
- x: number;
235
- y: number;
236
- } | null;
237
- objectsSnapModeEnabled: boolean;
238
- userToFollow: import("../types").UserToFollow | null;
239
- followedBy: Set<import("../types").SocketId>;
240
- isCropping: boolean;
241
- croppingElementId: string | null;
242
- searchMatches: Readonly<{
243
- focusedId: string | null;
244
- matches: readonly import("../types").SearchMatch[];
245
- }> | null;
246
- activeLockedId: string | null;
247
- lockedMultiSelections: {
248
- [groupId: string]: true;
249
- };
250
- };
251
- captureUpdate: "IMMEDIATELY";
252
- };
253
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
254
- } & {
255
- keyTest?: undefined;
256
- };
257
- export declare const actionChangeStrokeWidth: {
258
- name: "changeStrokeWidth";
259
- label: string;
260
- trackEvent: false;
261
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
262
- elements: ExcalidrawElement[];
263
- appState: {
264
- currentItemStrokeWidth: any;
265
- contextMenu: {
266
- items: import("../components/ContextMenu").ContextMenuItems;
267
- top: number;
268
- left: number;
269
- } | null;
270
- showWelcomeScreen: boolean;
271
- isLoading: boolean;
272
- errorMessage: import("react").ReactNode;
273
- activeEmbeddable: {
274
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
275
- state: "active" | "hover";
276
- } | null;
277
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
278
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
279
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
280
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
281
- isBindingEnabled: boolean;
282
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
283
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
284
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
285
- frameRendering: {
286
- enabled: boolean;
287
- name: boolean;
288
- outline: boolean;
289
- clip: boolean;
290
- markerName: boolean;
291
- markerEnabled: boolean;
292
- };
293
- editingFrame: string | null;
294
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
295
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
296
- activeTool: {
297
- lastActiveTool: import("../types").ActiveTool | null;
298
- locked: boolean;
299
- fromSelection: boolean;
300
- } & import("../types").ActiveTool;
301
- preferredSelectionTool: {
302
- type: "selection" | "lasso";
303
- initialized: boolean;
304
- };
305
- penMode: boolean;
306
- penDetected: boolean;
307
- exportBackground: boolean;
308
- exportEmbedScene: boolean;
309
- exportWithDarkMode: boolean;
310
- exportScale: number;
311
- currentItemStrokeColor: string;
312
- currentItemBackgroundColor: string;
313
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
314
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
315
- currentItemRoughness: number;
316
- currentItemOpacity: number;
317
- currentItemFontFamily: number;
318
- currentItemFontSize: number;
319
- currentItemTextAlign: string;
320
- currentItemStartArrowhead: Arrowhead | null;
321
- currentItemEndArrowhead: Arrowhead | null;
322
- currentHoveredFontFamily: number | null;
323
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
324
- currentItemArrowType: "round" | "sharp" | "elbow";
325
- currentItemFrameRole: ("marker" | null) | undefined;
326
- viewBackgroundColor: string;
327
- scrollX: number;
328
- scrollY: number;
329
- cursorButton: "up" | "down";
330
- scrolledOutside: boolean;
331
- name: string | null;
332
- isResizing: boolean;
333
- isRotating: boolean;
334
- zoom: Readonly<{
335
- value: import("../types").NormalizedZoomValue;
336
- }>;
337
- openMenu: "canvas" | "shape" | null;
338
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
339
- openSidebar: {
340
- name: string;
341
- tab?: string | undefined;
342
- } | null;
343
- openDialog: {
344
- name: "help" | "imageExport" | "jsonExport";
345
- } | {
346
- name: "ttd";
347
- tab: "mermaid" | "text-to-diagram";
348
- } | {
349
- name: "commandPalette";
350
- } | {
351
- name: "elementLinkSelector";
352
- sourceElementId: string;
353
- } | null;
354
- defaultSidebarDockedPreference: boolean;
355
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
356
- selectedElementIds: Readonly<{
357
- [id: string]: true;
358
- }>;
359
- hoveredElementIds: Readonly<{
360
- [id: string]: true;
361
- }>;
362
- previousSelectedElementIds: {
363
- [id: string]: true;
364
- };
365
- selectedElementsAreBeingDragged: boolean;
366
- shouldCacheIgnoreZoom: boolean;
367
- toast: {
368
- message: string;
369
- closable?: boolean | undefined;
370
- duration?: number | undefined;
371
- } | null;
372
- zenModeEnabled: boolean;
373
- theme: import("@excalidraw/element/types").Theme;
374
- gridSize: number;
375
- gridStep: number;
376
- gridModeEnabled: boolean;
377
- viewModeEnabled: boolean;
378
- selectedGroupIds: {
379
- [groupId: string]: boolean;
380
- };
381
- editingGroupId: string | null;
382
- width: number;
383
- height: number;
384
- offsetTop: number;
385
- offsetLeft: number;
386
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
387
- collaborators: Map<import("../types").SocketId, Readonly<{
388
- pointer?: import("../types").CollaboratorPointer | undefined;
389
- button?: "up" | "down" | undefined;
390
- selectedElementIds?: Readonly<{
391
- [id: string]: true;
392
- }> | undefined;
393
- username?: string | null | undefined;
394
- userState?: import("@excalidraw/common").UserIdleState | undefined;
395
- color?: {
396
- background: string;
397
- stroke: string;
398
- } | undefined;
399
- avatarUrl?: string | undefined;
400
- id?: string | undefined;
401
- socketId?: import("../types").SocketId | undefined;
402
- isCurrentUser?: boolean | undefined;
403
- isInCall?: boolean | undefined;
404
- isSpeaking?: boolean | undefined;
405
- isMuted?: boolean | undefined;
406
- }>>;
407
- stats: {
408
- open: boolean;
409
- panels: number;
410
- };
411
- currentChartType: import("@excalidraw/element/types").ChartType;
412
- pasteDialog: {
413
- shown: false;
414
- data: null;
415
- } | {
416
- shown: true;
417
- data: import("../charts").Spreadsheet;
418
- };
419
- showHyperlinkPopup: false | "info" | "editor";
420
- linkOpacity: number;
421
- colorPalette?: {
422
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
423
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
424
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
425
- topPicks: {
426
- canvasBackground: [string, string, string, string, string];
427
- elementStroke: [string, string, string, string, string];
428
- elementBackground: [string, string, string, string, string];
429
- };
430
- } | undefined;
431
- allowWheelZoom?: boolean | undefined;
432
- allowPinchZoom?: boolean | undefined;
433
- disableContextMenu: boolean;
434
- pinnedScripts?: string[] | undefined;
435
- customPens?: any[] | undefined;
436
- currentStrokeOptions?: any;
437
- resetCustomPen?: any;
438
- gridColor: {
439
- Bold: string;
440
- Regular: string;
441
- };
442
- gridDirection: {
443
- horizontal: boolean;
444
- vertical: boolean;
445
- };
446
- highlightSearchResult: boolean;
447
- dynamicStyle: {
448
- [x: string]: string;
449
- };
450
- frameColor: {
451
- stroke: string;
452
- fill: string;
453
- nameColor: string;
454
- };
455
- invertBindingBehaviour: boolean;
456
- selectedLinearElement: LinearElementEditor | null;
457
- snapLines: readonly import("../snapping").SnapLine[];
458
- originSnapOffset: {
459
- x: number;
460
- y: number;
461
- } | null;
462
- objectsSnapModeEnabled: boolean;
463
- userToFollow: import("../types").UserToFollow | null;
464
- followedBy: Set<import("../types").SocketId>;
465
- isCropping: boolean;
466
- croppingElementId: string | null;
467
- searchMatches: Readonly<{
468
- focusedId: string | null;
469
- matches: readonly import("../types").SearchMatch[];
470
- }> | null;
471
- activeLockedId: string | null;
472
- lockedMultiSelections: {
473
- [groupId: string]: true;
474
- };
475
- };
476
- captureUpdate: "IMMEDIATELY";
477
- };
478
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
479
- } & {
480
- keyTest?: undefined;
481
- };
482
- export declare const actionChangeSloppiness: {
483
- name: "changeSloppiness";
484
- label: string;
485
- trackEvent: false;
486
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
487
- elements: ExcalidrawElement[];
488
- appState: {
489
- currentItemRoughness: any;
490
- contextMenu: {
491
- items: import("../components/ContextMenu").ContextMenuItems;
492
- top: number;
493
- left: number;
494
- } | null;
495
- showWelcomeScreen: boolean;
496
- isLoading: boolean;
497
- errorMessage: import("react").ReactNode;
498
- activeEmbeddable: {
499
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
500
- state: "active" | "hover";
501
- } | null;
502
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
503
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
504
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
505
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
506
- isBindingEnabled: boolean;
507
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
508
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
509
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
510
- frameRendering: {
511
- enabled: boolean;
512
- name: boolean;
513
- outline: boolean;
514
- clip: boolean;
515
- markerName: boolean;
516
- markerEnabled: boolean;
517
- };
518
- editingFrame: string | null;
519
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
520
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
521
- activeTool: {
522
- lastActiveTool: import("../types").ActiveTool | null;
523
- locked: boolean;
524
- fromSelection: boolean;
525
- } & import("../types").ActiveTool;
526
- preferredSelectionTool: {
527
- type: "selection" | "lasso";
528
- initialized: boolean;
529
- };
530
- penMode: boolean;
531
- penDetected: boolean;
532
- exportBackground: boolean;
533
- exportEmbedScene: boolean;
534
- exportWithDarkMode: boolean;
535
- exportScale: number;
536
- currentItemStrokeColor: string;
537
- currentItemBackgroundColor: string;
538
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
539
- currentItemStrokeWidth: number;
540
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
541
- currentItemOpacity: number;
542
- currentItemFontFamily: number;
543
- currentItemFontSize: number;
544
- currentItemTextAlign: string;
545
- currentItemStartArrowhead: Arrowhead | null;
546
- currentItemEndArrowhead: Arrowhead | null;
547
- currentHoveredFontFamily: number | null;
548
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
549
- currentItemArrowType: "round" | "sharp" | "elbow";
550
- currentItemFrameRole: ("marker" | null) | undefined;
551
- viewBackgroundColor: string;
552
- scrollX: number;
553
- scrollY: number;
554
- cursorButton: "up" | "down";
555
- scrolledOutside: boolean;
556
- name: string | null;
557
- isResizing: boolean;
558
- isRotating: boolean;
559
- zoom: Readonly<{
560
- value: import("../types").NormalizedZoomValue;
561
- }>;
562
- openMenu: "canvas" | "shape" | null;
563
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
564
- openSidebar: {
565
- name: string;
566
- tab?: string | undefined;
567
- } | null;
568
- openDialog: {
569
- name: "help" | "imageExport" | "jsonExport";
570
- } | {
571
- name: "ttd";
572
- tab: "mermaid" | "text-to-diagram";
573
- } | {
574
- name: "commandPalette";
575
- } | {
576
- name: "elementLinkSelector";
577
- sourceElementId: string;
578
- } | null;
579
- defaultSidebarDockedPreference: boolean;
580
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
581
- selectedElementIds: Readonly<{
582
- [id: string]: true;
583
- }>;
584
- hoveredElementIds: Readonly<{
585
- [id: string]: true;
586
- }>;
587
- previousSelectedElementIds: {
588
- [id: string]: true;
589
- };
590
- selectedElementsAreBeingDragged: boolean;
591
- shouldCacheIgnoreZoom: boolean;
592
- toast: {
593
- message: string;
594
- closable?: boolean | undefined;
595
- duration?: number | undefined;
596
- } | null;
597
- zenModeEnabled: boolean;
598
- theme: import("@excalidraw/element/types").Theme;
599
- gridSize: number;
600
- gridStep: number;
601
- gridModeEnabled: boolean;
602
- viewModeEnabled: boolean;
603
- selectedGroupIds: {
604
- [groupId: string]: boolean;
605
- };
606
- editingGroupId: string | null;
607
- width: number;
608
- height: number;
609
- offsetTop: number;
610
- offsetLeft: number;
611
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
612
- collaborators: Map<import("../types").SocketId, Readonly<{
613
- pointer?: import("../types").CollaboratorPointer | undefined;
614
- button?: "up" | "down" | undefined;
615
- selectedElementIds?: Readonly<{
616
- [id: string]: true;
617
- }> | undefined;
618
- username?: string | null | undefined;
619
- userState?: import("@excalidraw/common").UserIdleState | undefined;
620
- color?: {
621
- background: string;
622
- stroke: string;
623
- } | undefined;
624
- avatarUrl?: string | undefined;
625
- id?: string | undefined;
626
- socketId?: import("../types").SocketId | undefined;
627
- isCurrentUser?: boolean | undefined;
628
- isInCall?: boolean | undefined;
629
- isSpeaking?: boolean | undefined;
630
- isMuted?: boolean | undefined;
631
- }>>;
632
- stats: {
633
- open: boolean;
634
- panels: number;
635
- };
636
- currentChartType: import("@excalidraw/element/types").ChartType;
637
- pasteDialog: {
638
- shown: false;
639
- data: null;
640
- } | {
641
- shown: true;
642
- data: import("../charts").Spreadsheet;
643
- };
644
- showHyperlinkPopup: false | "info" | "editor";
645
- linkOpacity: number;
646
- colorPalette?: {
647
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
648
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
649
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
650
- topPicks: {
651
- canvasBackground: [string, string, string, string, string];
652
- elementStroke: [string, string, string, string, string];
653
- elementBackground: [string, string, string, string, string];
654
- };
655
- } | undefined;
656
- allowWheelZoom?: boolean | undefined;
657
- allowPinchZoom?: boolean | undefined;
658
- disableContextMenu: boolean;
659
- pinnedScripts?: string[] | undefined;
660
- customPens?: any[] | undefined;
661
- currentStrokeOptions?: any;
662
- resetCustomPen?: any;
663
- gridColor: {
664
- Bold: string;
665
- Regular: string;
666
- };
667
- gridDirection: {
668
- horizontal: boolean;
669
- vertical: boolean;
670
- };
671
- highlightSearchResult: boolean;
672
- dynamicStyle: {
673
- [x: string]: string;
674
- };
675
- frameColor: {
676
- stroke: string;
677
- fill: string;
678
- nameColor: string;
679
- };
680
- invertBindingBehaviour: boolean;
681
- selectedLinearElement: LinearElementEditor | null;
682
- snapLines: readonly import("../snapping").SnapLine[];
683
- originSnapOffset: {
684
- x: number;
685
- y: number;
686
- } | null;
687
- objectsSnapModeEnabled: boolean;
688
- userToFollow: import("../types").UserToFollow | null;
689
- followedBy: Set<import("../types").SocketId>;
690
- isCropping: boolean;
691
- croppingElementId: string | null;
692
- searchMatches: Readonly<{
693
- focusedId: string | null;
694
- matches: readonly import("../types").SearchMatch[];
695
- }> | null;
696
- activeLockedId: string | null;
697
- lockedMultiSelections: {
698
- [groupId: string]: true;
699
- };
700
- };
701
- captureUpdate: "IMMEDIATELY";
702
- };
703
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
704
- } & {
705
- keyTest?: undefined;
706
- };
707
- export declare const actionChangeStrokeStyle: {
708
- name: "changeStrokeStyle";
709
- label: string;
710
- trackEvent: false;
711
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
712
- elements: ExcalidrawElement[];
713
- appState: {
714
- currentItemStrokeStyle: any;
715
- contextMenu: {
716
- items: import("../components/ContextMenu").ContextMenuItems;
717
- top: number;
718
- left: number;
719
- } | null;
720
- showWelcomeScreen: boolean;
721
- isLoading: boolean;
722
- errorMessage: import("react").ReactNode;
723
- activeEmbeddable: {
724
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
725
- state: "active" | "hover";
726
- } | null;
727
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
728
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
729
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
730
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
731
- isBindingEnabled: boolean;
732
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
733
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
734
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
735
- frameRendering: {
736
- enabled: boolean;
737
- name: boolean;
738
- outline: boolean;
739
- clip: boolean;
740
- markerName: boolean;
741
- markerEnabled: boolean;
742
- };
743
- editingFrame: string | null;
744
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
745
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
746
- activeTool: {
747
- lastActiveTool: import("../types").ActiveTool | null;
748
- locked: boolean;
749
- fromSelection: boolean;
750
- } & import("../types").ActiveTool;
751
- preferredSelectionTool: {
752
- type: "selection" | "lasso";
753
- initialized: boolean;
754
- };
755
- penMode: boolean;
756
- penDetected: boolean;
757
- exportBackground: boolean;
758
- exportEmbedScene: boolean;
759
- exportWithDarkMode: boolean;
760
- exportScale: number;
761
- currentItemStrokeColor: string;
762
- currentItemBackgroundColor: string;
763
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
764
- currentItemStrokeWidth: number;
765
- currentItemRoughness: number;
766
- currentItemOpacity: number;
767
- currentItemFontFamily: number;
768
- currentItemFontSize: number;
769
- currentItemTextAlign: string;
770
- currentItemStartArrowhead: Arrowhead | null;
771
- currentItemEndArrowhead: Arrowhead | null;
772
- currentHoveredFontFamily: number | null;
773
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
774
- currentItemArrowType: "round" | "sharp" | "elbow";
775
- currentItemFrameRole: ("marker" | null) | undefined;
776
- viewBackgroundColor: string;
777
- scrollX: number;
778
- scrollY: number;
779
- cursorButton: "up" | "down";
780
- scrolledOutside: boolean;
781
- name: string | null;
782
- isResizing: boolean;
783
- isRotating: boolean;
784
- zoom: Readonly<{
785
- value: import("../types").NormalizedZoomValue;
786
- }>;
787
- openMenu: "canvas" | "shape" | null;
788
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
789
- openSidebar: {
790
- name: string;
791
- tab?: string | undefined;
792
- } | null;
793
- openDialog: {
794
- name: "help" | "imageExport" | "jsonExport";
795
- } | {
796
- name: "ttd";
797
- tab: "mermaid" | "text-to-diagram";
798
- } | {
799
- name: "commandPalette";
800
- } | {
801
- name: "elementLinkSelector";
802
- sourceElementId: string;
803
- } | null;
804
- defaultSidebarDockedPreference: boolean;
805
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
806
- selectedElementIds: Readonly<{
807
- [id: string]: true;
808
- }>;
809
- hoveredElementIds: Readonly<{
810
- [id: string]: true;
811
- }>;
812
- previousSelectedElementIds: {
813
- [id: string]: true;
814
- };
815
- selectedElementsAreBeingDragged: boolean;
816
- shouldCacheIgnoreZoom: boolean;
817
- toast: {
818
- message: string;
819
- closable?: boolean | undefined;
820
- duration?: number | undefined;
821
- } | null;
822
- zenModeEnabled: boolean;
823
- theme: import("@excalidraw/element/types").Theme;
824
- gridSize: number;
825
- gridStep: number;
826
- gridModeEnabled: boolean;
827
- viewModeEnabled: boolean;
828
- selectedGroupIds: {
829
- [groupId: string]: boolean;
830
- };
831
- editingGroupId: string | null;
832
- width: number;
833
- height: number;
834
- offsetTop: number;
835
- offsetLeft: number;
836
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
837
- collaborators: Map<import("../types").SocketId, Readonly<{
838
- pointer?: import("../types").CollaboratorPointer | undefined;
839
- button?: "up" | "down" | undefined;
840
- selectedElementIds?: Readonly<{
841
- [id: string]: true;
842
- }> | undefined;
843
- username?: string | null | undefined;
844
- userState?: import("@excalidraw/common").UserIdleState | undefined;
845
- color?: {
846
- background: string;
847
- stroke: string;
848
- } | undefined;
849
- avatarUrl?: string | undefined;
850
- id?: string | undefined;
851
- socketId?: import("../types").SocketId | undefined;
852
- isCurrentUser?: boolean | undefined;
853
- isInCall?: boolean | undefined;
854
- isSpeaking?: boolean | undefined;
855
- isMuted?: boolean | undefined;
856
- }>>;
857
- stats: {
858
- open: boolean;
859
- panels: number;
860
- };
861
- currentChartType: import("@excalidraw/element/types").ChartType;
862
- pasteDialog: {
863
- shown: false;
864
- data: null;
865
- } | {
866
- shown: true;
867
- data: import("../charts").Spreadsheet;
868
- };
869
- showHyperlinkPopup: false | "info" | "editor";
870
- linkOpacity: number;
871
- colorPalette?: {
872
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
873
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
874
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
875
- topPicks: {
876
- canvasBackground: [string, string, string, string, string];
877
- elementStroke: [string, string, string, string, string];
878
- elementBackground: [string, string, string, string, string];
879
- };
880
- } | undefined;
881
- allowWheelZoom?: boolean | undefined;
882
- allowPinchZoom?: boolean | undefined;
883
- disableContextMenu: boolean;
884
- pinnedScripts?: string[] | undefined;
885
- customPens?: any[] | undefined;
886
- currentStrokeOptions?: any;
887
- resetCustomPen?: any;
888
- gridColor: {
889
- Bold: string;
890
- Regular: string;
891
- };
892
- gridDirection: {
893
- horizontal: boolean;
894
- vertical: boolean;
895
- };
896
- highlightSearchResult: boolean;
897
- dynamicStyle: {
898
- [x: string]: string;
899
- };
900
- frameColor: {
901
- stroke: string;
902
- fill: string;
903
- nameColor: string;
904
- };
905
- invertBindingBehaviour: boolean;
906
- selectedLinearElement: LinearElementEditor | null;
907
- snapLines: readonly import("../snapping").SnapLine[];
908
- originSnapOffset: {
909
- x: number;
910
- y: number;
911
- } | null;
912
- objectsSnapModeEnabled: boolean;
913
- userToFollow: import("../types").UserToFollow | null;
914
- followedBy: Set<import("../types").SocketId>;
915
- isCropping: boolean;
916
- croppingElementId: string | null;
917
- searchMatches: Readonly<{
918
- focusedId: string | null;
919
- matches: readonly import("../types").SearchMatch[];
920
- }> | null;
921
- activeLockedId: string | null;
922
- lockedMultiSelections: {
923
- [groupId: string]: true;
924
- };
925
- };
926
- captureUpdate: "IMMEDIATELY";
927
- };
928
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
929
- } & {
930
- keyTest?: undefined;
931
- };
932
- export declare const actionChangeOpacity: {
933
- name: "changeOpacity";
934
- label: string;
935
- trackEvent: false;
936
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
937
- elements: ExcalidrawElement[];
938
- appState: {
939
- currentItemOpacity: any;
940
- contextMenu: {
941
- items: import("../components/ContextMenu").ContextMenuItems;
942
- top: number;
943
- left: number;
944
- } | null;
945
- showWelcomeScreen: boolean;
946
- isLoading: boolean;
947
- errorMessage: import("react").ReactNode;
948
- activeEmbeddable: {
949
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
950
- state: "active" | "hover";
951
- } | null;
952
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
953
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
954
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
955
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
956
- isBindingEnabled: boolean;
957
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
958
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
959
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
960
- frameRendering: {
961
- enabled: boolean;
962
- name: boolean;
963
- outline: boolean;
964
- clip: boolean;
965
- markerName: boolean;
966
- markerEnabled: boolean;
967
- };
968
- editingFrame: string | null;
969
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
970
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
971
- activeTool: {
972
- lastActiveTool: import("../types").ActiveTool | null;
973
- locked: boolean;
974
- fromSelection: boolean;
975
- } & import("../types").ActiveTool;
976
- preferredSelectionTool: {
977
- type: "selection" | "lasso";
978
- initialized: boolean;
979
- };
980
- penMode: boolean;
981
- penDetected: boolean;
982
- exportBackground: boolean;
983
- exportEmbedScene: boolean;
984
- exportWithDarkMode: boolean;
985
- exportScale: number;
986
- currentItemStrokeColor: string;
987
- currentItemBackgroundColor: string;
988
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
989
- currentItemStrokeWidth: number;
990
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
991
- currentItemRoughness: number;
992
- currentItemFontFamily: number;
993
- currentItemFontSize: number;
994
- currentItemTextAlign: string;
995
- currentItemStartArrowhead: Arrowhead | null;
996
- currentItemEndArrowhead: Arrowhead | null;
997
- currentHoveredFontFamily: number | null;
998
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
999
- currentItemArrowType: "round" | "sharp" | "elbow";
1000
- currentItemFrameRole: ("marker" | null) | undefined;
1001
- viewBackgroundColor: string;
1002
- scrollX: number;
1003
- scrollY: number;
1004
- cursorButton: "up" | "down";
1005
- scrolledOutside: boolean;
1006
- name: string | null;
1007
- isResizing: boolean;
1008
- isRotating: boolean;
1009
- zoom: Readonly<{
1010
- value: import("../types").NormalizedZoomValue;
1011
- }>;
1012
- openMenu: "canvas" | "shape" | null;
1013
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1014
- openSidebar: {
1015
- name: string;
1016
- tab?: string | undefined;
1017
- } | null;
1018
- openDialog: {
1019
- name: "help" | "imageExport" | "jsonExport";
1020
- } | {
1021
- name: "ttd";
1022
- tab: "mermaid" | "text-to-diagram";
1023
- } | {
1024
- name: "commandPalette";
1025
- } | {
1026
- name: "elementLinkSelector";
1027
- sourceElementId: string;
1028
- } | null;
1029
- defaultSidebarDockedPreference: boolean;
1030
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1031
- selectedElementIds: Readonly<{
1032
- [id: string]: true;
1033
- }>;
1034
- hoveredElementIds: Readonly<{
1035
- [id: string]: true;
1036
- }>;
1037
- previousSelectedElementIds: {
1038
- [id: string]: true;
1039
- };
1040
- selectedElementsAreBeingDragged: boolean;
1041
- shouldCacheIgnoreZoom: boolean;
1042
- toast: {
1043
- message: string;
1044
- closable?: boolean | undefined;
1045
- duration?: number | undefined;
1046
- } | null;
1047
- zenModeEnabled: boolean;
1048
- theme: import("@excalidraw/element/types").Theme;
1049
- gridSize: number;
1050
- gridStep: number;
1051
- gridModeEnabled: boolean;
1052
- viewModeEnabled: boolean;
1053
- selectedGroupIds: {
1054
- [groupId: string]: boolean;
1055
- };
1056
- editingGroupId: string | null;
1057
- width: number;
1058
- height: number;
1059
- offsetTop: number;
1060
- offsetLeft: number;
1061
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1062
- collaborators: Map<import("../types").SocketId, Readonly<{
1063
- pointer?: import("../types").CollaboratorPointer | undefined;
1064
- button?: "up" | "down" | undefined;
1065
- selectedElementIds?: Readonly<{
1066
- [id: string]: true;
1067
- }> | undefined;
1068
- username?: string | null | undefined;
1069
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1070
- color?: {
1071
- background: string;
1072
- stroke: string;
1073
- } | undefined;
1074
- avatarUrl?: string | undefined;
1075
- id?: string | undefined;
1076
- socketId?: import("../types").SocketId | undefined;
1077
- isCurrentUser?: boolean | undefined;
1078
- isInCall?: boolean | undefined;
1079
- isSpeaking?: boolean | undefined;
1080
- isMuted?: boolean | undefined;
1081
- }>>;
1082
- stats: {
1083
- open: boolean;
1084
- panels: number;
1085
- };
1086
- currentChartType: import("@excalidraw/element/types").ChartType;
1087
- pasteDialog: {
1088
- shown: false;
1089
- data: null;
1090
- } | {
1091
- shown: true;
1092
- data: import("../charts").Spreadsheet;
1093
- };
1094
- showHyperlinkPopup: false | "info" | "editor";
1095
- linkOpacity: number;
1096
- colorPalette?: {
1097
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1098
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1099
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1100
- topPicks: {
1101
- canvasBackground: [string, string, string, string, string];
1102
- elementStroke: [string, string, string, string, string];
1103
- elementBackground: [string, string, string, string, string];
1104
- };
1105
- } | undefined;
1106
- allowWheelZoom?: boolean | undefined;
1107
- allowPinchZoom?: boolean | undefined;
1108
- disableContextMenu: boolean;
1109
- pinnedScripts?: string[] | undefined;
1110
- customPens?: any[] | undefined;
1111
- currentStrokeOptions?: any;
1112
- resetCustomPen?: any;
1113
- gridColor: {
1114
- Bold: string;
1115
- Regular: string;
1116
- };
1117
- gridDirection: {
1118
- horizontal: boolean;
1119
- vertical: boolean;
1120
- };
1121
- highlightSearchResult: boolean;
1122
- dynamicStyle: {
1123
- [x: string]: string;
1124
- };
1125
- frameColor: {
1126
- stroke: string;
1127
- fill: string;
1128
- nameColor: string;
1129
- };
1130
- invertBindingBehaviour: boolean;
1131
- selectedLinearElement: LinearElementEditor | null;
1132
- snapLines: readonly import("../snapping").SnapLine[];
1133
- originSnapOffset: {
1134
- x: number;
1135
- y: number;
1136
- } | null;
1137
- objectsSnapModeEnabled: boolean;
1138
- userToFollow: import("../types").UserToFollow | null;
1139
- followedBy: Set<import("../types").SocketId>;
1140
- isCropping: boolean;
1141
- croppingElementId: string | null;
1142
- searchMatches: Readonly<{
1143
- focusedId: string | null;
1144
- matches: readonly import("../types").SearchMatch[];
1145
- }> | null;
1146
- activeLockedId: string | null;
1147
- lockedMultiSelections: {
1148
- [groupId: string]: true;
1149
- };
1150
- };
1151
- captureUpdate: "IMMEDIATELY";
1152
- };
1153
- PanelComponent: ({ app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1154
- } & {
1155
- keyTest?: undefined;
1156
- };
1157
- export declare const getFontSize: (size: number, zoom: number) => number;
1158
- export declare const actionChangeFontSize: {
1159
- name: "changeFontSize";
1160
- label: string;
1161
- trackEvent: false;
1162
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1163
- elements: ExcalidrawElement[];
1164
- appState: {
1165
- currentItemFontSize: number;
1166
- contextMenu: {
1167
- items: import("../components/ContextMenu").ContextMenuItems;
1168
- top: number;
1169
- left: number;
1170
- } | null;
1171
- showWelcomeScreen: boolean;
1172
- isLoading: boolean;
1173
- errorMessage: import("react").ReactNode;
1174
- activeEmbeddable: {
1175
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1176
- state: "active" | "hover";
1177
- } | null;
1178
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1179
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1180
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1181
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1182
- isBindingEnabled: boolean;
1183
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1184
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1185
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1186
- frameRendering: {
1187
- enabled: boolean;
1188
- name: boolean;
1189
- outline: boolean;
1190
- clip: boolean;
1191
- markerName: boolean;
1192
- markerEnabled: boolean;
1193
- };
1194
- editingFrame: string | null;
1195
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1196
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1197
- activeTool: {
1198
- lastActiveTool: import("../types").ActiveTool | null;
1199
- locked: boolean;
1200
- fromSelection: boolean;
1201
- } & import("../types").ActiveTool;
1202
- preferredSelectionTool: {
1203
- type: "selection" | "lasso";
1204
- initialized: boolean;
1205
- };
1206
- penMode: boolean;
1207
- penDetected: boolean;
1208
- exportBackground: boolean;
1209
- exportEmbedScene: boolean;
1210
- exportWithDarkMode: boolean;
1211
- exportScale: number;
1212
- currentItemStrokeColor: string;
1213
- currentItemBackgroundColor: string;
1214
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1215
- currentItemStrokeWidth: number;
1216
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1217
- currentItemRoughness: number;
1218
- currentItemOpacity: number;
1219
- currentItemFontFamily: number;
1220
- currentItemTextAlign: string;
1221
- currentItemStartArrowhead: Arrowhead | null;
1222
- currentItemEndArrowhead: Arrowhead | null;
1223
- currentHoveredFontFamily: number | null;
1224
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1225
- currentItemArrowType: "round" | "sharp" | "elbow";
1226
- currentItemFrameRole: ("marker" | null) | undefined;
1227
- viewBackgroundColor: string;
1228
- scrollX: number;
1229
- scrollY: number;
1230
- cursorButton: "up" | "down";
1231
- scrolledOutside: boolean;
1232
- name: string | null;
1233
- isResizing: boolean;
1234
- isRotating: boolean;
1235
- zoom: Readonly<{
1236
- value: import("../types").NormalizedZoomValue;
1237
- }>;
1238
- openMenu: "canvas" | "shape" | null;
1239
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1240
- openSidebar: {
1241
- name: string;
1242
- tab?: string | undefined;
1243
- } | null;
1244
- openDialog: {
1245
- name: "help" | "imageExport" | "jsonExport";
1246
- } | {
1247
- name: "ttd";
1248
- tab: "mermaid" | "text-to-diagram";
1249
- } | {
1250
- name: "commandPalette";
1251
- } | {
1252
- name: "elementLinkSelector";
1253
- sourceElementId: string;
1254
- } | null;
1255
- defaultSidebarDockedPreference: boolean;
1256
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1257
- selectedElementIds: Readonly<{
1258
- [id: string]: true;
1259
- }>;
1260
- hoveredElementIds: Readonly<{
1261
- [id: string]: true;
1262
- }>;
1263
- previousSelectedElementIds: {
1264
- [id: string]: true;
1265
- };
1266
- selectedElementsAreBeingDragged: boolean;
1267
- shouldCacheIgnoreZoom: boolean;
1268
- toast: {
1269
- message: string;
1270
- closable?: boolean | undefined;
1271
- duration?: number | undefined;
1272
- } | null;
1273
- zenModeEnabled: boolean;
1274
- theme: import("@excalidraw/element/types").Theme;
1275
- gridSize: number;
1276
- gridStep: number;
1277
- gridModeEnabled: boolean;
1278
- viewModeEnabled: boolean;
1279
- selectedGroupIds: {
1280
- [groupId: string]: boolean;
1281
- };
1282
- editingGroupId: string | null;
1283
- width: number;
1284
- height: number;
1285
- offsetTop: number;
1286
- offsetLeft: number;
1287
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1288
- collaborators: Map<import("../types").SocketId, Readonly<{
1289
- pointer?: import("../types").CollaboratorPointer | undefined;
1290
- button?: "up" | "down" | undefined;
1291
- selectedElementIds?: Readonly<{
1292
- [id: string]: true;
1293
- }> | undefined;
1294
- username?: string | null | undefined;
1295
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1296
- color?: {
1297
- background: string;
1298
- stroke: string;
1299
- } | undefined;
1300
- avatarUrl?: string | undefined;
1301
- id?: string | undefined;
1302
- socketId?: import("../types").SocketId | undefined;
1303
- isCurrentUser?: boolean | undefined;
1304
- isInCall?: boolean | undefined;
1305
- isSpeaking?: boolean | undefined;
1306
- isMuted?: boolean | undefined;
1307
- }>>;
1308
- stats: {
1309
- open: boolean;
1310
- panels: number;
1311
- };
1312
- currentChartType: import("@excalidraw/element/types").ChartType;
1313
- pasteDialog: {
1314
- shown: false;
1315
- data: null;
1316
- } | {
1317
- shown: true;
1318
- data: import("../charts").Spreadsheet;
1319
- };
1320
- showHyperlinkPopup: false | "info" | "editor";
1321
- linkOpacity: number;
1322
- colorPalette?: {
1323
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1324
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1325
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1326
- topPicks: {
1327
- canvasBackground: [string, string, string, string, string];
1328
- elementStroke: [string, string, string, string, string];
1329
- elementBackground: [string, string, string, string, string];
1330
- };
1331
- } | undefined;
1332
- allowWheelZoom?: boolean | undefined;
1333
- allowPinchZoom?: boolean | undefined;
1334
- disableContextMenu: boolean;
1335
- pinnedScripts?: string[] | undefined;
1336
- customPens?: any[] | undefined;
1337
- currentStrokeOptions?: any;
1338
- resetCustomPen?: any;
1339
- gridColor: {
1340
- Bold: string;
1341
- Regular: string;
1342
- };
1343
- gridDirection: {
1344
- horizontal: boolean;
1345
- vertical: boolean;
1346
- };
1347
- highlightSearchResult: boolean;
1348
- dynamicStyle: {
1349
- [x: string]: string;
1350
- };
1351
- frameColor: {
1352
- stroke: string;
1353
- fill: string;
1354
- nameColor: string;
1355
- };
1356
- invertBindingBehaviour: boolean;
1357
- selectedLinearElement: LinearElementEditor | null;
1358
- snapLines: readonly import("../snapping").SnapLine[];
1359
- originSnapOffset: {
1360
- x: number;
1361
- y: number;
1362
- } | null;
1363
- objectsSnapModeEnabled: boolean;
1364
- userToFollow: import("../types").UserToFollow | null;
1365
- followedBy: Set<import("../types").SocketId>;
1366
- isCropping: boolean;
1367
- croppingElementId: string | null;
1368
- searchMatches: Readonly<{
1369
- focusedId: string | null;
1370
- matches: readonly import("../types").SearchMatch[];
1371
- }> | null;
1372
- activeLockedId: string | null;
1373
- lockedMultiSelections: {
1374
- [groupId: string]: true;
1375
- };
1376
- };
1377
- captureUpdate: "IMMEDIATELY";
1378
- };
1379
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1380
- } & {
1381
- keyTest?: undefined;
1382
- };
1383
- export declare const actionDecreaseFontSize: {
1384
- name: "decreaseFontSize";
1385
- label: string;
1386
- icon: import("react/jsx-runtime").JSX.Element;
1387
- trackEvent: false;
1388
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1389
- elements: ExcalidrawElement[];
1390
- appState: {
1391
- currentItemFontSize: number;
1392
- contextMenu: {
1393
- items: import("../components/ContextMenu").ContextMenuItems;
1394
- top: number;
1395
- left: number;
1396
- } | null;
1397
- showWelcomeScreen: boolean;
1398
- isLoading: boolean;
1399
- errorMessage: import("react").ReactNode;
1400
- activeEmbeddable: {
1401
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1402
- state: "active" | "hover";
1403
- } | null;
1404
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1405
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1406
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1407
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1408
- isBindingEnabled: boolean;
1409
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1410
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1411
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1412
- frameRendering: {
1413
- enabled: boolean;
1414
- name: boolean;
1415
- outline: boolean;
1416
- clip: boolean;
1417
- markerName: boolean;
1418
- markerEnabled: boolean;
1419
- };
1420
- editingFrame: string | null;
1421
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1422
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1423
- activeTool: {
1424
- lastActiveTool: import("../types").ActiveTool | null;
1425
- locked: boolean;
1426
- fromSelection: boolean;
1427
- } & import("../types").ActiveTool;
1428
- preferredSelectionTool: {
1429
- type: "selection" | "lasso";
1430
- initialized: boolean;
1431
- };
1432
- penMode: boolean;
1433
- penDetected: boolean;
1434
- exportBackground: boolean;
1435
- exportEmbedScene: boolean;
1436
- exportWithDarkMode: boolean;
1437
- exportScale: number;
1438
- currentItemStrokeColor: string;
1439
- currentItemBackgroundColor: string;
1440
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1441
- currentItemStrokeWidth: number;
1442
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1443
- currentItemRoughness: number;
1444
- currentItemOpacity: number;
1445
- currentItemFontFamily: number;
1446
- currentItemTextAlign: string;
1447
- currentItemStartArrowhead: Arrowhead | null;
1448
- currentItemEndArrowhead: Arrowhead | null;
1449
- currentHoveredFontFamily: number | null;
1450
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1451
- currentItemArrowType: "round" | "sharp" | "elbow";
1452
- currentItemFrameRole: ("marker" | null) | undefined;
1453
- viewBackgroundColor: string;
1454
- scrollX: number;
1455
- scrollY: number;
1456
- cursorButton: "up" | "down";
1457
- scrolledOutside: boolean;
1458
- name: string | null;
1459
- isResizing: boolean;
1460
- isRotating: boolean;
1461
- zoom: Readonly<{
1462
- value: import("../types").NormalizedZoomValue;
1463
- }>;
1464
- openMenu: "canvas" | "shape" | null;
1465
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1466
- openSidebar: {
1467
- name: string;
1468
- tab?: string | undefined;
1469
- } | null;
1470
- openDialog: {
1471
- name: "help" | "imageExport" | "jsonExport";
1472
- } | {
1473
- name: "ttd";
1474
- tab: "mermaid" | "text-to-diagram";
1475
- } | {
1476
- name: "commandPalette";
1477
- } | {
1478
- name: "elementLinkSelector";
1479
- sourceElementId: string;
1480
- } | null;
1481
- defaultSidebarDockedPreference: boolean;
1482
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1483
- selectedElementIds: Readonly<{
1484
- [id: string]: true;
1485
- }>;
1486
- hoveredElementIds: Readonly<{
1487
- [id: string]: true;
1488
- }>;
1489
- previousSelectedElementIds: {
1490
- [id: string]: true;
1491
- };
1492
- selectedElementsAreBeingDragged: boolean;
1493
- shouldCacheIgnoreZoom: boolean;
1494
- toast: {
1495
- message: string;
1496
- closable?: boolean | undefined;
1497
- duration?: number | undefined;
1498
- } | null;
1499
- zenModeEnabled: boolean;
1500
- theme: import("@excalidraw/element/types").Theme;
1501
- gridSize: number;
1502
- gridStep: number;
1503
- gridModeEnabled: boolean;
1504
- viewModeEnabled: boolean;
1505
- selectedGroupIds: {
1506
- [groupId: string]: boolean;
1507
- };
1508
- editingGroupId: string | null;
1509
- width: number;
1510
- height: number;
1511
- offsetTop: number;
1512
- offsetLeft: number;
1513
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1514
- collaborators: Map<import("../types").SocketId, Readonly<{
1515
- pointer?: import("../types").CollaboratorPointer | undefined;
1516
- button?: "up" | "down" | undefined;
1517
- selectedElementIds?: Readonly<{
1518
- [id: string]: true;
1519
- }> | undefined;
1520
- username?: string | null | undefined;
1521
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1522
- color?: {
1523
- background: string;
1524
- stroke: string;
1525
- } | undefined;
1526
- avatarUrl?: string | undefined;
1527
- id?: string | undefined;
1528
- socketId?: import("../types").SocketId | undefined;
1529
- isCurrentUser?: boolean | undefined;
1530
- isInCall?: boolean | undefined;
1531
- isSpeaking?: boolean | undefined;
1532
- isMuted?: boolean | undefined;
1533
- }>>;
1534
- stats: {
1535
- open: boolean;
1536
- panels: number;
1537
- };
1538
- currentChartType: import("@excalidraw/element/types").ChartType;
1539
- pasteDialog: {
1540
- shown: false;
1541
- data: null;
1542
- } | {
1543
- shown: true;
1544
- data: import("../charts").Spreadsheet;
1545
- };
1546
- showHyperlinkPopup: false | "info" | "editor";
1547
- linkOpacity: number;
1548
- colorPalette?: {
1549
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1550
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1551
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1552
- topPicks: {
1553
- canvasBackground: [string, string, string, string, string];
1554
- elementStroke: [string, string, string, string, string];
1555
- elementBackground: [string, string, string, string, string];
1556
- };
1557
- } | undefined;
1558
- allowWheelZoom?: boolean | undefined;
1559
- allowPinchZoom?: boolean | undefined;
1560
- disableContextMenu: boolean;
1561
- pinnedScripts?: string[] | undefined;
1562
- customPens?: any[] | undefined;
1563
- currentStrokeOptions?: any;
1564
- resetCustomPen?: any;
1565
- gridColor: {
1566
- Bold: string;
1567
- Regular: string;
1568
- };
1569
- gridDirection: {
1570
- horizontal: boolean;
1571
- vertical: boolean;
1572
- };
1573
- highlightSearchResult: boolean;
1574
- dynamicStyle: {
1575
- [x: string]: string;
1576
- };
1577
- frameColor: {
1578
- stroke: string;
1579
- fill: string;
1580
- nameColor: string;
1581
- };
1582
- invertBindingBehaviour: boolean;
1583
- selectedLinearElement: LinearElementEditor | null;
1584
- snapLines: readonly import("../snapping").SnapLine[];
1585
- originSnapOffset: {
1586
- x: number;
1587
- y: number;
1588
- } | null;
1589
- objectsSnapModeEnabled: boolean;
1590
- userToFollow: import("../types").UserToFollow | null;
1591
- followedBy: Set<import("../types").SocketId>;
1592
- isCropping: boolean;
1593
- croppingElementId: string | null;
1594
- searchMatches: Readonly<{
1595
- focusedId: string | null;
1596
- matches: readonly import("../types").SearchMatch[];
1597
- }> | null;
1598
- activeLockedId: string | null;
1599
- lockedMultiSelections: {
1600
- [groupId: string]: true;
1601
- };
1602
- };
1603
- captureUpdate: "IMMEDIATELY";
1604
- };
1605
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1606
- } & {
1607
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1608
- };
1609
- export declare const actionIncreaseFontSize: {
1610
- name: "increaseFontSize";
1611
- label: string;
1612
- icon: import("react/jsx-runtime").JSX.Element;
1613
- trackEvent: false;
1614
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1615
- elements: ExcalidrawElement[];
1616
- appState: {
1617
- currentItemFontSize: number;
1618
- contextMenu: {
1619
- items: import("../components/ContextMenu").ContextMenuItems;
1620
- top: number;
1621
- left: number;
1622
- } | null;
1623
- showWelcomeScreen: boolean;
1624
- isLoading: boolean;
1625
- errorMessage: import("react").ReactNode;
1626
- activeEmbeddable: {
1627
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1628
- state: "active" | "hover";
1629
- } | null;
1630
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1631
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1632
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1633
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1634
- isBindingEnabled: boolean;
1635
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1636
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1637
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1638
- frameRendering: {
1639
- enabled: boolean;
1640
- name: boolean;
1641
- outline: boolean;
1642
- clip: boolean;
1643
- markerName: boolean;
1644
- markerEnabled: boolean;
1645
- };
1646
- editingFrame: string | null;
1647
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1648
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1649
- activeTool: {
1650
- lastActiveTool: import("../types").ActiveTool | null;
1651
- locked: boolean;
1652
- fromSelection: boolean;
1653
- } & import("../types").ActiveTool;
1654
- preferredSelectionTool: {
1655
- type: "selection" | "lasso";
1656
- initialized: boolean;
1657
- };
1658
- penMode: boolean;
1659
- penDetected: boolean;
1660
- exportBackground: boolean;
1661
- exportEmbedScene: boolean;
1662
- exportWithDarkMode: boolean;
1663
- exportScale: number;
1664
- currentItemStrokeColor: string;
1665
- currentItemBackgroundColor: string;
1666
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1667
- currentItemStrokeWidth: number;
1668
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1669
- currentItemRoughness: number;
1670
- currentItemOpacity: number;
1671
- currentItemFontFamily: number;
1672
- currentItemTextAlign: string;
1673
- currentItemStartArrowhead: Arrowhead | null;
1674
- currentItemEndArrowhead: Arrowhead | null;
1675
- currentHoveredFontFamily: number | null;
1676
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1677
- currentItemArrowType: "round" | "sharp" | "elbow";
1678
- currentItemFrameRole: ("marker" | null) | undefined;
1679
- viewBackgroundColor: string;
1680
- scrollX: number;
1681
- scrollY: number;
1682
- cursorButton: "up" | "down";
1683
- scrolledOutside: boolean;
1684
- name: string | null;
1685
- isResizing: boolean;
1686
- isRotating: boolean;
1687
- zoom: Readonly<{
1688
- value: import("../types").NormalizedZoomValue;
1689
- }>;
1690
- openMenu: "canvas" | "shape" | null;
1691
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1692
- openSidebar: {
1693
- name: string;
1694
- tab?: string | undefined;
1695
- } | null;
1696
- openDialog: {
1697
- name: "help" | "imageExport" | "jsonExport";
1698
- } | {
1699
- name: "ttd";
1700
- tab: "mermaid" | "text-to-diagram";
1701
- } | {
1702
- name: "commandPalette";
1703
- } | {
1704
- name: "elementLinkSelector";
1705
- sourceElementId: string;
1706
- } | null;
1707
- defaultSidebarDockedPreference: boolean;
1708
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1709
- selectedElementIds: Readonly<{
1710
- [id: string]: true;
1711
- }>;
1712
- hoveredElementIds: Readonly<{
1713
- [id: string]: true;
1714
- }>;
1715
- previousSelectedElementIds: {
1716
- [id: string]: true;
1717
- };
1718
- selectedElementsAreBeingDragged: boolean;
1719
- shouldCacheIgnoreZoom: boolean;
1720
- toast: {
1721
- message: string;
1722
- closable?: boolean | undefined;
1723
- duration?: number | undefined;
1724
- } | null;
1725
- zenModeEnabled: boolean;
1726
- theme: import("@excalidraw/element/types").Theme;
1727
- gridSize: number;
1728
- gridStep: number;
1729
- gridModeEnabled: boolean;
1730
- viewModeEnabled: boolean;
1731
- selectedGroupIds: {
1732
- [groupId: string]: boolean;
1733
- };
1734
- editingGroupId: string | null;
1735
- width: number;
1736
- height: number;
1737
- offsetTop: number;
1738
- offsetLeft: number;
1739
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1740
- collaborators: Map<import("../types").SocketId, Readonly<{
1741
- pointer?: import("../types").CollaboratorPointer | undefined;
1742
- button?: "up" | "down" | undefined;
1743
- selectedElementIds?: Readonly<{
1744
- [id: string]: true;
1745
- }> | undefined;
1746
- username?: string | null | undefined;
1747
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1748
- color?: {
1749
- background: string;
1750
- stroke: string;
1751
- } | undefined;
1752
- avatarUrl?: string | undefined;
1753
- id?: string | undefined;
1754
- socketId?: import("../types").SocketId | undefined;
1755
- isCurrentUser?: boolean | undefined;
1756
- isInCall?: boolean | undefined;
1757
- isSpeaking?: boolean | undefined;
1758
- isMuted?: boolean | undefined;
1759
- }>>;
1760
- stats: {
1761
- open: boolean;
1762
- panels: number;
1763
- };
1764
- currentChartType: import("@excalidraw/element/types").ChartType;
1765
- pasteDialog: {
1766
- shown: false;
1767
- data: null;
1768
- } | {
1769
- shown: true;
1770
- data: import("../charts").Spreadsheet;
1771
- };
1772
- showHyperlinkPopup: false | "info" | "editor";
1773
- linkOpacity: number;
1774
- colorPalette?: {
1775
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1776
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1777
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1778
- topPicks: {
1779
- canvasBackground: [string, string, string, string, string];
1780
- elementStroke: [string, string, string, string, string];
1781
- elementBackground: [string, string, string, string, string];
1782
- };
1783
- } | undefined;
1784
- allowWheelZoom?: boolean | undefined;
1785
- allowPinchZoom?: boolean | undefined;
1786
- disableContextMenu: boolean;
1787
- pinnedScripts?: string[] | undefined;
1788
- customPens?: any[] | undefined;
1789
- currentStrokeOptions?: any;
1790
- resetCustomPen?: any;
1791
- gridColor: {
1792
- Bold: string;
1793
- Regular: string;
1794
- };
1795
- gridDirection: {
1796
- horizontal: boolean;
1797
- vertical: boolean;
1798
- };
1799
- highlightSearchResult: boolean;
1800
- dynamicStyle: {
1801
- [x: string]: string;
1802
- };
1803
- frameColor: {
1804
- stroke: string;
1805
- fill: string;
1806
- nameColor: string;
1807
- };
1808
- invertBindingBehaviour: boolean;
1809
- selectedLinearElement: LinearElementEditor | null;
1810
- snapLines: readonly import("../snapping").SnapLine[];
1811
- originSnapOffset: {
1812
- x: number;
1813
- y: number;
1814
- } | null;
1815
- objectsSnapModeEnabled: boolean;
1816
- userToFollow: import("../types").UserToFollow | null;
1817
- followedBy: Set<import("../types").SocketId>;
1818
- isCropping: boolean;
1819
- croppingElementId: string | null;
1820
- searchMatches: Readonly<{
1821
- focusedId: string | null;
1822
- matches: readonly import("../types").SearchMatch[];
1823
- }> | null;
1824
- activeLockedId: string | null;
1825
- lockedMultiSelections: {
1826
- [groupId: string]: true;
1827
- };
1828
- };
1829
- captureUpdate: "IMMEDIATELY";
1830
- };
1831
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1832
- } & {
1833
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1834
- };
1835
- export declare const actionChangeFontFamily: {
1836
- name: "changeFontFamily";
1837
- label: string;
1838
- trackEvent: false;
1839
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1840
- appState: {
1841
- currentItemFontFamily: number;
1842
- currentHoveredFontFamily: number | null;
1843
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1844
- contextMenu: {
1845
- items: import("../components/ContextMenu").ContextMenuItems;
1846
- top: number;
1847
- left: number;
1848
- } | null;
1849
- showWelcomeScreen: boolean;
1850
- isLoading: boolean;
1851
- errorMessage: import("react").ReactNode;
1852
- activeEmbeddable: {
1853
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1854
- state: "active" | "hover";
1855
- } | null;
1856
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1857
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1858
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1859
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1860
- isBindingEnabled: boolean;
1861
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1862
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1863
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1864
- frameRendering: {
1865
- enabled: boolean;
1866
- name: boolean;
1867
- outline: boolean;
1868
- clip: boolean;
1869
- markerName: boolean;
1870
- markerEnabled: boolean;
1871
- };
1872
- editingFrame: string | null;
1873
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1874
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1875
- activeTool: {
1876
- lastActiveTool: import("../types").ActiveTool | null;
1877
- locked: boolean;
1878
- fromSelection: boolean;
1879
- } & import("../types").ActiveTool;
1880
- preferredSelectionTool: {
1881
- type: "selection" | "lasso";
1882
- initialized: boolean;
1883
- };
1884
- penMode: boolean;
1885
- penDetected: boolean;
1886
- exportBackground: boolean;
1887
- exportEmbedScene: boolean;
1888
- exportWithDarkMode: boolean;
1889
- exportScale: number;
1890
- currentItemStrokeColor: string;
1891
- currentItemBackgroundColor: string;
1892
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1893
- currentItemStrokeWidth: number;
1894
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1895
- currentItemRoughness: number;
1896
- currentItemOpacity: number;
1897
- currentItemFontSize: number;
1898
- currentItemTextAlign: string;
1899
- currentItemStartArrowhead: Arrowhead | null;
1900
- currentItemEndArrowhead: Arrowhead | null;
1901
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1902
- currentItemArrowType: "round" | "sharp" | "elbow";
1903
- currentItemFrameRole: ("marker" | null) | undefined;
1904
- viewBackgroundColor: string;
1905
- scrollX: number;
1906
- scrollY: number;
1907
- cursorButton: "up" | "down";
1908
- scrolledOutside: boolean;
1909
- name: string | null;
1910
- isResizing: boolean;
1911
- isRotating: boolean;
1912
- zoom: Readonly<{
1913
- value: import("../types").NormalizedZoomValue;
1914
- }>;
1915
- openMenu: "canvas" | "shape" | null;
1916
- openSidebar: {
1917
- name: string;
1918
- tab?: string | undefined;
1919
- } | null;
1920
- openDialog: {
1921
- name: "help" | "imageExport" | "jsonExport";
1922
- } | {
1923
- name: "ttd";
1924
- tab: "mermaid" | "text-to-diagram";
1925
- } | {
1926
- name: "commandPalette";
1927
- } | {
1928
- name: "elementLinkSelector";
1929
- sourceElementId: string;
1930
- } | null;
1931
- defaultSidebarDockedPreference: boolean;
1932
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1933
- selectedElementIds: Readonly<{
1934
- [id: string]: true;
1935
- }>;
1936
- hoveredElementIds: Readonly<{
1937
- [id: string]: true;
1938
- }>;
1939
- previousSelectedElementIds: {
1940
- [id: string]: true;
1941
- };
1942
- selectedElementsAreBeingDragged: boolean;
1943
- shouldCacheIgnoreZoom: boolean;
1944
- toast: {
1945
- message: string;
1946
- closable?: boolean | undefined;
1947
- duration?: number | undefined;
1948
- } | null;
1949
- zenModeEnabled: boolean;
1950
- theme: import("@excalidraw/element/types").Theme;
1951
- gridSize: number;
1952
- gridStep: number;
1953
- gridModeEnabled: boolean;
1954
- viewModeEnabled: boolean;
1955
- selectedGroupIds: {
1956
- [groupId: string]: boolean;
1957
- };
1958
- editingGroupId: string | null;
1959
- width: number;
1960
- height: number;
1961
- offsetTop: number;
1962
- offsetLeft: number;
1963
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1964
- collaborators: Map<import("../types").SocketId, Readonly<{
1965
- pointer?: import("../types").CollaboratorPointer | undefined;
1966
- button?: "up" | "down" | undefined;
1967
- selectedElementIds?: Readonly<{
1968
- [id: string]: true;
1969
- }> | undefined;
1970
- username?: string | null | undefined;
1971
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1972
- color?: {
1973
- background: string;
1974
- stroke: string;
1975
- } | undefined;
1976
- avatarUrl?: string | undefined;
1977
- id?: string | undefined;
1978
- socketId?: import("../types").SocketId | undefined;
1979
- isCurrentUser?: boolean | undefined;
1980
- isInCall?: boolean | undefined;
1981
- isSpeaking?: boolean | undefined;
1982
- isMuted?: boolean | undefined;
1983
- }>>;
1984
- stats: {
1985
- open: boolean;
1986
- panels: number;
1987
- };
1988
- currentChartType: import("@excalidraw/element/types").ChartType;
1989
- pasteDialog: {
1990
- shown: false;
1991
- data: null;
1992
- } | {
1993
- shown: true;
1994
- data: import("../charts").Spreadsheet;
1995
- };
1996
- showHyperlinkPopup: false | "info" | "editor";
1997
- linkOpacity: number;
1998
- colorPalette?: {
1999
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2000
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
2001
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
2002
- topPicks: {
2003
- canvasBackground: [string, string, string, string, string];
2004
- elementStroke: [string, string, string, string, string];
2005
- elementBackground: [string, string, string, string, string];
2006
- };
2007
- } | undefined;
2008
- allowWheelZoom?: boolean | undefined;
2009
- allowPinchZoom?: boolean | undefined;
2010
- disableContextMenu: boolean;
2011
- pinnedScripts?: string[] | undefined;
2012
- customPens?: any[] | undefined;
2013
- currentStrokeOptions?: any;
2014
- resetCustomPen?: any;
2015
- gridColor: {
2016
- Bold: string;
2017
- Regular: string;
2018
- };
2019
- gridDirection: {
2020
- horizontal: boolean;
2021
- vertical: boolean;
2022
- };
2023
- highlightSearchResult: boolean;
2024
- dynamicStyle: {
2025
- [x: string]: string;
2026
- };
2027
- frameColor: {
2028
- stroke: string;
2029
- fill: string;
2030
- nameColor: string;
2031
- };
2032
- invertBindingBehaviour: boolean;
2033
- selectedLinearElement: LinearElementEditor | null;
2034
- snapLines: readonly import("../snapping").SnapLine[];
2035
- originSnapOffset: {
2036
- x: number;
2037
- y: number;
2038
- } | null;
2039
- objectsSnapModeEnabled: boolean;
2040
- userToFollow: import("../types").UserToFollow | null;
2041
- followedBy: Set<import("../types").SocketId>;
2042
- isCropping: boolean;
2043
- croppingElementId: string | null;
2044
- searchMatches: Readonly<{
2045
- focusedId: string | null;
2046
- matches: readonly import("../types").SearchMatch[];
2047
- }> | null;
2048
- activeLockedId: string | null;
2049
- lockedMultiSelections: {
2050
- [groupId: string]: true;
2051
- };
2052
- };
2053
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
2054
- } | {
2055
- elements: ExcalidrawElement[];
2056
- appState: {
2057
- currentItemFontFamily: number;
2058
- currentHoveredFontFamily: number | null;
2059
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2060
- contextMenu: {
2061
- items: import("../components/ContextMenu").ContextMenuItems;
2062
- top: number;
2063
- left: number;
2064
- } | null;
2065
- showWelcomeScreen: boolean;
2066
- isLoading: boolean;
2067
- errorMessage: import("react").ReactNode;
2068
- activeEmbeddable: {
2069
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2070
- state: "active" | "hover";
2071
- } | null;
2072
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2073
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2074
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2075
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2076
- isBindingEnabled: boolean;
2077
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2078
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2079
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2080
- frameRendering: {
2081
- enabled: boolean;
2082
- name: boolean;
2083
- outline: boolean;
2084
- clip: boolean;
2085
- markerName: boolean;
2086
- markerEnabled: boolean;
2087
- };
2088
- editingFrame: string | null;
2089
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2090
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2091
- activeTool: {
2092
- lastActiveTool: import("../types").ActiveTool | null;
2093
- locked: boolean;
2094
- fromSelection: boolean;
2095
- } & import("../types").ActiveTool;
2096
- preferredSelectionTool: {
2097
- type: "selection" | "lasso";
2098
- initialized: boolean;
2099
- };
2100
- penMode: boolean;
2101
- penDetected: boolean;
2102
- exportBackground: boolean;
2103
- exportEmbedScene: boolean;
2104
- exportWithDarkMode: boolean;
2105
- exportScale: number;
2106
- currentItemStrokeColor: string;
2107
- currentItemBackgroundColor: string;
2108
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2109
- currentItemStrokeWidth: number;
2110
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2111
- currentItemRoughness: number;
2112
- currentItemOpacity: number;
2113
- currentItemFontSize: number;
2114
- currentItemTextAlign: string;
2115
- currentItemStartArrowhead: Arrowhead | null;
2116
- currentItemEndArrowhead: Arrowhead | null;
2117
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2118
- currentItemArrowType: "round" | "sharp" | "elbow";
2119
- currentItemFrameRole: ("marker" | null) | undefined;
2120
- viewBackgroundColor: string;
2121
- scrollX: number;
2122
- scrollY: number;
2123
- cursorButton: "up" | "down";
2124
- scrolledOutside: boolean;
2125
- name: string | null;
2126
- isResizing: boolean;
2127
- isRotating: boolean;
2128
- zoom: Readonly<{
2129
- value: import("../types").NormalizedZoomValue;
2130
- }>;
2131
- openMenu: "canvas" | "shape" | null;
2132
- openSidebar: {
2133
- name: string;
2134
- tab?: string | undefined;
2135
- } | null;
2136
- openDialog: {
2137
- name: "help" | "imageExport" | "jsonExport";
2138
- } | {
2139
- name: "ttd";
2140
- tab: "mermaid" | "text-to-diagram";
2141
- } | {
2142
- name: "commandPalette";
2143
- } | {
2144
- name: "elementLinkSelector";
2145
- sourceElementId: string;
2146
- } | null;
2147
- defaultSidebarDockedPreference: boolean;
2148
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2149
- selectedElementIds: Readonly<{
2150
- [id: string]: true;
2151
- }>;
2152
- hoveredElementIds: Readonly<{
2153
- [id: string]: true;
2154
- }>;
2155
- previousSelectedElementIds: {
2156
- [id: string]: true;
2157
- };
2158
- selectedElementsAreBeingDragged: boolean;
2159
- shouldCacheIgnoreZoom: boolean;
2160
- toast: {
2161
- message: string;
2162
- closable?: boolean | undefined;
2163
- duration?: number | undefined;
2164
- } | null;
2165
- zenModeEnabled: boolean;
2166
- theme: import("@excalidraw/element/types").Theme;
2167
- gridSize: number;
2168
- gridStep: number;
2169
- gridModeEnabled: boolean;
2170
- viewModeEnabled: boolean;
2171
- selectedGroupIds: {
2172
- [groupId: string]: boolean;
2173
- };
2174
- editingGroupId: string | null;
2175
- width: number;
2176
- height: number;
2177
- offsetTop: number;
2178
- offsetLeft: number;
2179
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2180
- collaborators: Map<import("../types").SocketId, Readonly<{
2181
- pointer?: import("../types").CollaboratorPointer | undefined;
2182
- button?: "up" | "down" | undefined;
2183
- selectedElementIds?: Readonly<{
2184
- [id: string]: true;
2185
- }> | undefined;
2186
- username?: string | null | undefined;
2187
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2188
- color?: {
2189
- background: string;
2190
- stroke: string;
2191
- } | undefined;
2192
- avatarUrl?: string | undefined;
2193
- id?: string | undefined;
2194
- socketId?: import("../types").SocketId | undefined;
2195
- isCurrentUser?: boolean | undefined;
2196
- isInCall?: boolean | undefined;
2197
- isSpeaking?: boolean | undefined;
2198
- isMuted?: boolean | undefined;
2199
- }>>;
2200
- stats: {
2201
- open: boolean;
2202
- panels: number;
2203
- };
2204
- currentChartType: import("@excalidraw/element/types").ChartType;
2205
- pasteDialog: {
2206
- shown: false;
2207
- data: null;
2208
- } | {
2209
- shown: true;
2210
- data: import("../charts").Spreadsheet;
2211
- };
2212
- showHyperlinkPopup: false | "info" | "editor";
2213
- linkOpacity: number;
2214
- colorPalette?: {
2215
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2216
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
2217
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
2218
- topPicks: {
2219
- canvasBackground: [string, string, string, string, string];
2220
- elementStroke: [string, string, string, string, string];
2221
- elementBackground: [string, string, string, string, string];
2222
- };
2223
- } | undefined;
2224
- allowWheelZoom?: boolean | undefined;
2225
- allowPinchZoom?: boolean | undefined;
2226
- disableContextMenu: boolean;
2227
- pinnedScripts?: string[] | undefined;
2228
- customPens?: any[] | undefined;
2229
- currentStrokeOptions?: any;
2230
- resetCustomPen?: any;
2231
- gridColor: {
2232
- Bold: string;
2233
- Regular: string;
2234
- };
2235
- gridDirection: {
2236
- horizontal: boolean;
2237
- vertical: boolean;
2238
- };
2239
- highlightSearchResult: boolean;
2240
- dynamicStyle: {
2241
- [x: string]: string;
2242
- };
2243
- frameColor: {
2244
- stroke: string;
2245
- fill: string;
2246
- nameColor: string;
2247
- };
2248
- invertBindingBehaviour: boolean;
2249
- selectedLinearElement: LinearElementEditor | null;
2250
- snapLines: readonly import("../snapping").SnapLine[];
2251
- originSnapOffset: {
2252
- x: number;
2253
- y: number;
2254
- } | null;
2255
- objectsSnapModeEnabled: boolean;
2256
- userToFollow: import("../types").UserToFollow | null;
2257
- followedBy: Set<import("../types").SocketId>;
2258
- isCropping: boolean;
2259
- croppingElementId: string | null;
2260
- searchMatches: Readonly<{
2261
- focusedId: string | null;
2262
- matches: readonly import("../types").SearchMatch[];
2263
- }> | null;
2264
- activeLockedId: string | null;
2265
- lockedMultiSelections: {
2266
- [groupId: string]: true;
2267
- };
2268
- };
2269
- captureUpdate: "NEVER";
2270
- };
2271
- PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2272
- } & {
2273
- keyTest?: undefined;
2274
- };
2275
- export declare const actionChangeTextAlign: {
2276
- name: "changeTextAlign";
2277
- label: string;
2278
- trackEvent: false;
2279
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2280
- elements: ExcalidrawElement[];
2281
- appState: {
2282
- currentItemTextAlign: any;
2283
- contextMenu: {
2284
- items: import("../components/ContextMenu").ContextMenuItems;
2285
- top: number;
2286
- left: number;
2287
- } | null;
2288
- showWelcomeScreen: boolean;
2289
- isLoading: boolean;
2290
- errorMessage: import("react").ReactNode;
2291
- activeEmbeddable: {
2292
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2293
- state: "active" | "hover";
2294
- } | null;
2295
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2296
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2297
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2298
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2299
- isBindingEnabled: boolean;
2300
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2301
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2302
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2303
- frameRendering: {
2304
- enabled: boolean;
2305
- name: boolean;
2306
- outline: boolean;
2307
- clip: boolean;
2308
- markerName: boolean;
2309
- markerEnabled: boolean;
2310
- };
2311
- editingFrame: string | null;
2312
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2313
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2314
- activeTool: {
2315
- lastActiveTool: import("../types").ActiveTool | null;
2316
- locked: boolean;
2317
- fromSelection: boolean;
2318
- } & import("../types").ActiveTool;
2319
- preferredSelectionTool: {
2320
- type: "selection" | "lasso";
2321
- initialized: boolean;
2322
- };
2323
- penMode: boolean;
2324
- penDetected: boolean;
2325
- exportBackground: boolean;
2326
- exportEmbedScene: boolean;
2327
- exportWithDarkMode: boolean;
2328
- exportScale: number;
2329
- currentItemStrokeColor: string;
2330
- currentItemBackgroundColor: string;
2331
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2332
- currentItemStrokeWidth: number;
2333
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2334
- currentItemRoughness: number;
2335
- currentItemOpacity: number;
2336
- currentItemFontFamily: number;
2337
- currentItemFontSize: number;
2338
- currentItemStartArrowhead: Arrowhead | null;
2339
- currentItemEndArrowhead: Arrowhead | null;
2340
- currentHoveredFontFamily: number | null;
2341
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2342
- currentItemArrowType: "round" | "sharp" | "elbow";
2343
- currentItemFrameRole: ("marker" | null) | undefined;
2344
- viewBackgroundColor: string;
2345
- scrollX: number;
2346
- scrollY: number;
2347
- cursorButton: "up" | "down";
2348
- scrolledOutside: boolean;
2349
- name: string | null;
2350
- isResizing: boolean;
2351
- isRotating: boolean;
2352
- zoom: Readonly<{
2353
- value: import("../types").NormalizedZoomValue;
2354
- }>;
2355
- openMenu: "canvas" | "shape" | null;
2356
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2357
- openSidebar: {
2358
- name: string;
2359
- tab?: string | undefined;
2360
- } | null;
2361
- openDialog: {
2362
- name: "help" | "imageExport" | "jsonExport";
2363
- } | {
2364
- name: "ttd";
2365
- tab: "mermaid" | "text-to-diagram";
2366
- } | {
2367
- name: "commandPalette";
2368
- } | {
2369
- name: "elementLinkSelector";
2370
- sourceElementId: string;
2371
- } | null;
2372
- defaultSidebarDockedPreference: boolean;
2373
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2374
- selectedElementIds: Readonly<{
2375
- [id: string]: true;
2376
- }>;
2377
- hoveredElementIds: Readonly<{
2378
- [id: string]: true;
2379
- }>;
2380
- previousSelectedElementIds: {
2381
- [id: string]: true;
2382
- };
2383
- selectedElementsAreBeingDragged: boolean;
2384
- shouldCacheIgnoreZoom: boolean;
2385
- toast: {
2386
- message: string;
2387
- closable?: boolean | undefined;
2388
- duration?: number | undefined;
2389
- } | null;
2390
- zenModeEnabled: boolean;
2391
- theme: import("@excalidraw/element/types").Theme;
2392
- gridSize: number;
2393
- gridStep: number;
2394
- gridModeEnabled: boolean;
2395
- viewModeEnabled: boolean;
2396
- selectedGroupIds: {
2397
- [groupId: string]: boolean;
2398
- };
2399
- editingGroupId: string | null;
2400
- width: number;
2401
- height: number;
2402
- offsetTop: number;
2403
- offsetLeft: number;
2404
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2405
- collaborators: Map<import("../types").SocketId, Readonly<{
2406
- pointer?: import("../types").CollaboratorPointer | undefined;
2407
- button?: "up" | "down" | undefined;
2408
- selectedElementIds?: Readonly<{
2409
- [id: string]: true;
2410
- }> | undefined;
2411
- username?: string | null | undefined;
2412
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2413
- color?: {
2414
- background: string;
2415
- stroke: string;
2416
- } | undefined;
2417
- avatarUrl?: string | undefined;
2418
- id?: string | undefined;
2419
- socketId?: import("../types").SocketId | undefined;
2420
- isCurrentUser?: boolean | undefined;
2421
- isInCall?: boolean | undefined;
2422
- isSpeaking?: boolean | undefined;
2423
- isMuted?: boolean | undefined;
2424
- }>>;
2425
- stats: {
2426
- open: boolean;
2427
- panels: number;
2428
- };
2429
- currentChartType: import("@excalidraw/element/types").ChartType;
2430
- pasteDialog: {
2431
- shown: false;
2432
- data: null;
2433
- } | {
2434
- shown: true;
2435
- data: import("../charts").Spreadsheet;
2436
- };
2437
- showHyperlinkPopup: false | "info" | "editor";
2438
- linkOpacity: number;
2439
- colorPalette?: {
2440
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2441
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
2442
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
2443
- topPicks: {
2444
- canvasBackground: [string, string, string, string, string];
2445
- elementStroke: [string, string, string, string, string];
2446
- elementBackground: [string, string, string, string, string];
2447
- };
2448
- } | undefined;
2449
- allowWheelZoom?: boolean | undefined;
2450
- allowPinchZoom?: boolean | undefined;
2451
- disableContextMenu: boolean;
2452
- pinnedScripts?: string[] | undefined;
2453
- customPens?: any[] | undefined;
2454
- currentStrokeOptions?: any;
2455
- resetCustomPen?: any;
2456
- gridColor: {
2457
- Bold: string;
2458
- Regular: string;
2459
- };
2460
- gridDirection: {
2461
- horizontal: boolean;
2462
- vertical: boolean;
2463
- };
2464
- highlightSearchResult: boolean;
2465
- dynamicStyle: {
2466
- [x: string]: string;
2467
- };
2468
- frameColor: {
2469
- stroke: string;
2470
- fill: string;
2471
- nameColor: string;
2472
- };
2473
- invertBindingBehaviour: boolean;
2474
- selectedLinearElement: LinearElementEditor | null;
2475
- snapLines: readonly import("../snapping").SnapLine[];
2476
- originSnapOffset: {
2477
- x: number;
2478
- y: number;
2479
- } | null;
2480
- objectsSnapModeEnabled: boolean;
2481
- userToFollow: import("../types").UserToFollow | null;
2482
- followedBy: Set<import("../types").SocketId>;
2483
- isCropping: boolean;
2484
- croppingElementId: string | null;
2485
- searchMatches: Readonly<{
2486
- focusedId: string | null;
2487
- matches: readonly import("../types").SearchMatch[];
2488
- }> | null;
2489
- activeLockedId: string | null;
2490
- lockedMultiSelections: {
2491
- [groupId: string]: true;
2492
- };
2493
- };
2494
- captureUpdate: "IMMEDIATELY";
2495
- };
2496
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2497
- } & {
2498
- keyTest?: undefined;
2499
- };
2500
- export declare const actionChangeVerticalAlign: {
2501
- name: "changeVerticalAlign";
2502
- label: string;
2503
- trackEvent: {
2504
- category: "element";
2505
- };
2506
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2507
- elements: ExcalidrawElement[];
2508
- appState: {
2509
- contextMenu: {
2510
- items: import("../components/ContextMenu").ContextMenuItems;
2511
- top: number;
2512
- left: number;
2513
- } | null;
2514
- showWelcomeScreen: boolean;
2515
- isLoading: boolean;
2516
- errorMessage: import("react").ReactNode;
2517
- activeEmbeddable: {
2518
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2519
- state: "active" | "hover";
2520
- } | null;
2521
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2522
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2523
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2524
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2525
- isBindingEnabled: boolean;
2526
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2527
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2528
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2529
- frameRendering: {
2530
- enabled: boolean;
2531
- name: boolean;
2532
- outline: boolean;
2533
- clip: boolean;
2534
- markerName: boolean;
2535
- markerEnabled: boolean;
2536
- };
2537
- editingFrame: string | null;
2538
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2539
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2540
- activeTool: {
2541
- lastActiveTool: import("../types").ActiveTool | null;
2542
- locked: boolean;
2543
- fromSelection: boolean;
2544
- } & import("../types").ActiveTool;
2545
- preferredSelectionTool: {
2546
- type: "selection" | "lasso";
2547
- initialized: boolean;
2548
- };
2549
- penMode: boolean;
2550
- penDetected: boolean;
2551
- exportBackground: boolean;
2552
- exportEmbedScene: boolean;
2553
- exportWithDarkMode: boolean;
2554
- exportScale: number;
2555
- currentItemStrokeColor: string;
2556
- currentItemBackgroundColor: string;
2557
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2558
- currentItemStrokeWidth: number;
2559
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2560
- currentItemRoughness: number;
2561
- currentItemOpacity: number;
2562
- currentItemFontFamily: number;
2563
- currentItemFontSize: number;
2564
- currentItemTextAlign: string;
2565
- currentItemStartArrowhead: Arrowhead | null;
2566
- currentItemEndArrowhead: Arrowhead | null;
2567
- currentHoveredFontFamily: number | null;
2568
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2569
- currentItemArrowType: "round" | "sharp" | "elbow";
2570
- currentItemFrameRole: ("marker" | null) | undefined;
2571
- viewBackgroundColor: string;
2572
- scrollX: number;
2573
- scrollY: number;
2574
- cursorButton: "up" | "down";
2575
- scrolledOutside: boolean;
2576
- name: string | null;
2577
- isResizing: boolean;
2578
- isRotating: boolean;
2579
- zoom: Readonly<{
2580
- value: import("../types").NormalizedZoomValue;
2581
- }>;
2582
- openMenu: "canvas" | "shape" | null;
2583
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2584
- openSidebar: {
2585
- name: string;
2586
- tab?: string | undefined;
2587
- } | null;
2588
- openDialog: {
2589
- name: "help" | "imageExport" | "jsonExport";
2590
- } | {
2591
- name: "ttd";
2592
- tab: "mermaid" | "text-to-diagram";
2593
- } | {
2594
- name: "commandPalette";
2595
- } | {
2596
- name: "elementLinkSelector";
2597
- sourceElementId: string;
2598
- } | null;
2599
- defaultSidebarDockedPreference: boolean;
2600
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2601
- selectedElementIds: Readonly<{
2602
- [id: string]: true;
2603
- }>;
2604
- hoveredElementIds: Readonly<{
2605
- [id: string]: true;
2606
- }>;
2607
- previousSelectedElementIds: {
2608
- [id: string]: true;
2609
- };
2610
- selectedElementsAreBeingDragged: boolean;
2611
- shouldCacheIgnoreZoom: boolean;
2612
- toast: {
2613
- message: string;
2614
- closable?: boolean | undefined;
2615
- duration?: number | undefined;
2616
- } | null;
2617
- zenModeEnabled: boolean;
2618
- theme: import("@excalidraw/element/types").Theme;
2619
- gridSize: number;
2620
- gridStep: number;
2621
- gridModeEnabled: boolean;
2622
- viewModeEnabled: boolean;
2623
- selectedGroupIds: {
2624
- [groupId: string]: boolean;
2625
- };
2626
- editingGroupId: string | null;
2627
- width: number;
2628
- height: number;
2629
- offsetTop: number;
2630
- offsetLeft: number;
2631
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2632
- collaborators: Map<import("../types").SocketId, Readonly<{
2633
- pointer?: import("../types").CollaboratorPointer | undefined;
2634
- button?: "up" | "down" | undefined;
2635
- selectedElementIds?: Readonly<{
2636
- [id: string]: true;
2637
- }> | undefined;
2638
- username?: string | null | undefined;
2639
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2640
- color?: {
2641
- background: string;
2642
- stroke: string;
2643
- } | undefined;
2644
- avatarUrl?: string | undefined;
2645
- id?: string | undefined;
2646
- socketId?: import("../types").SocketId | undefined;
2647
- isCurrentUser?: boolean | undefined;
2648
- isInCall?: boolean | undefined;
2649
- isSpeaking?: boolean | undefined;
2650
- isMuted?: boolean | undefined;
2651
- }>>;
2652
- stats: {
2653
- open: boolean;
2654
- panels: number;
2655
- };
2656
- currentChartType: import("@excalidraw/element/types").ChartType;
2657
- pasteDialog: {
2658
- shown: false;
2659
- data: null;
2660
- } | {
2661
- shown: true;
2662
- data: import("../charts").Spreadsheet;
2663
- };
2664
- showHyperlinkPopup: false | "info" | "editor";
2665
- linkOpacity: number;
2666
- colorPalette?: {
2667
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2668
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
2669
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
2670
- topPicks: {
2671
- canvasBackground: [string, string, string, string, string];
2672
- elementStroke: [string, string, string, string, string];
2673
- elementBackground: [string, string, string, string, string];
2674
- };
2675
- } | undefined;
2676
- allowWheelZoom?: boolean | undefined;
2677
- allowPinchZoom?: boolean | undefined;
2678
- disableContextMenu: boolean;
2679
- pinnedScripts?: string[] | undefined;
2680
- customPens?: any[] | undefined;
2681
- currentStrokeOptions?: any;
2682
- resetCustomPen?: any;
2683
- gridColor: {
2684
- Bold: string;
2685
- Regular: string;
2686
- };
2687
- gridDirection: {
2688
- horizontal: boolean;
2689
- vertical: boolean;
2690
- };
2691
- highlightSearchResult: boolean;
2692
- dynamicStyle: {
2693
- [x: string]: string;
2694
- };
2695
- frameColor: {
2696
- stroke: string;
2697
- fill: string;
2698
- nameColor: string;
2699
- };
2700
- invertBindingBehaviour: boolean;
2701
- selectedLinearElement: LinearElementEditor | null;
2702
- snapLines: readonly import("../snapping").SnapLine[];
2703
- originSnapOffset: {
2704
- x: number;
2705
- y: number;
2706
- } | null;
2707
- objectsSnapModeEnabled: boolean;
2708
- userToFollow: import("../types").UserToFollow | null;
2709
- followedBy: Set<import("../types").SocketId>;
2710
- isCropping: boolean;
2711
- croppingElementId: string | null;
2712
- searchMatches: Readonly<{
2713
- focusedId: string | null;
2714
- matches: readonly import("../types").SearchMatch[];
2715
- }> | null;
2716
- activeLockedId: string | null;
2717
- lockedMultiSelections: {
2718
- [groupId: string]: true;
2719
- };
2720
- };
2721
- captureUpdate: "IMMEDIATELY";
2722
- };
2723
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2724
- } & {
2725
- keyTest?: undefined;
6
+ export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
7
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
8
+ };
9
+ export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
10
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
11
+ };
12
+ export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
13
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
14
+ };
15
+ export declare const actionChangeStrokeWidth: import("./types").Action<number> & {
16
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
17
+ };
18
+ export declare const actionChangeSloppiness: import("./types").Action<number> & {
19
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
20
+ };
21
+ export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
22
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
2726
23
  };
2727
- export declare const actionChangeRoundness: {
2728
- name: "changeRoundness";
24
+ export declare const actionChangeOpacity: import("./types").Action<number> & {
25
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
26
+ };
27
+ export declare const getFontSize: (size: number, zoom: number) => number;
28
+ export declare const actionChangeFontSize: import("./types").Action<number> & {
29
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
30
+ };
31
+ export declare const actionDecreaseFontSize: {
32
+ name: "decreaseFontSize";
2729
33
  label: string;
34
+ icon: import("react/jsx-runtime").JSX.Element;
2730
35
  trackEvent: false;
2731
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
36
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
2732
37
  elements: ExcalidrawElement[];
2733
38
  appState: {
2734
- currentItemRoundness: any;
39
+ currentItemFontSize: number;
2735
40
  contextMenu: {
2736
41
  items: import("../components/ContextMenu").ContextMenuItems;
2737
42
  top: number;
@@ -2750,7 +55,7 @@ export declare const actionChangeRoundness: {
2750
55
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2751
56
  isBindingEnabled: boolean;
2752
57
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2753
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
58
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2754
59
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2755
60
  frameRendering: {
2756
61
  enabled: boolean;
@@ -2786,11 +91,11 @@ export declare const actionChangeRoundness: {
2786
91
  currentItemRoughness: number;
2787
92
  currentItemOpacity: number;
2788
93
  currentItemFontFamily: number;
2789
- currentItemFontSize: number;
2790
94
  currentItemTextAlign: string;
2791
95
  currentItemStartArrowhead: Arrowhead | null;
2792
96
  currentItemEndArrowhead: Arrowhead | null;
2793
97
  currentHoveredFontFamily: number | null;
98
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2794
99
  currentItemArrowType: "round" | "sharp" | "elbow";
2795
100
  currentItemFrameRole: ("marker" | null) | undefined;
2796
101
  viewBackgroundColor: string;
@@ -2811,12 +116,14 @@ export declare const actionChangeRoundness: {
2811
116
  tab?: string | undefined;
2812
117
  } | null;
2813
118
  openDialog: {
2814
- name: "help" | "imageExport" | "jsonExport";
119
+ name: "imageExport" | "help" | "jsonExport";
2815
120
  } | {
2816
121
  name: "ttd";
2817
122
  tab: "mermaid" | "text-to-diagram";
2818
123
  } | {
2819
124
  name: "commandPalette";
125
+ } | {
126
+ name: "settings";
2820
127
  } | {
2821
128
  name: "elementLinkSelector";
2822
129
  sourceElementId: string;
@@ -2942,23 +249,23 @@ export declare const actionChangeRoundness: {
2942
249
  lockedMultiSelections: {
2943
250
  [groupId: string]: true;
2944
251
  };
252
+ bindMode: import("@excalidraw/element/types").BindMode;
2945
253
  };
2946
254
  captureUpdate: "IMMEDIATELY";
2947
255
  };
2948
- PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
256
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2949
257
  } & {
2950
- keyTest?: undefined;
258
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2951
259
  };
2952
- export declare const actionChangeArrowhead: {
2953
- name: "changeArrowhead";
260
+ export declare const actionIncreaseFontSize: {
261
+ name: "increaseFontSize";
2954
262
  label: string;
263
+ icon: import("react/jsx-runtime").JSX.Element;
2955
264
  trackEvent: false;
2956
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2957
- position: "start" | "end";
2958
- type: Arrowhead;
2959
- }) => {
265
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
2960
266
  elements: ExcalidrawElement[];
2961
267
  appState: {
268
+ currentItemFontSize: number;
2962
269
  contextMenu: {
2963
270
  items: import("../components/ContextMenu").ContextMenuItems;
2964
271
  top: number;
@@ -2977,7 +284,7 @@ export declare const actionChangeArrowhead: {
2977
284
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2978
285
  isBindingEnabled: boolean;
2979
286
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2980
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
287
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2981
288
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2982
289
  frameRendering: {
2983
290
  enabled: boolean;
@@ -3013,7 +320,6 @@ export declare const actionChangeArrowhead: {
3013
320
  currentItemRoughness: number;
3014
321
  currentItemOpacity: number;
3015
322
  currentItemFontFamily: number;
3016
- currentItemFontSize: number;
3017
323
  currentItemTextAlign: string;
3018
324
  currentItemStartArrowhead: Arrowhead | null;
3019
325
  currentItemEndArrowhead: Arrowhead | null;
@@ -3039,12 +345,14 @@ export declare const actionChangeArrowhead: {
3039
345
  tab?: string | undefined;
3040
346
  } | null;
3041
347
  openDialog: {
3042
- name: "help" | "imageExport" | "jsonExport";
348
+ name: "imageExport" | "help" | "jsonExport";
3043
349
  } | {
3044
350
  name: "ttd";
3045
351
  tab: "mermaid" | "text-to-diagram";
3046
352
  } | {
3047
353
  name: "commandPalette";
354
+ } | {
355
+ name: "settings";
3048
356
  } | {
3049
357
  name: "elementLinkSelector";
3050
358
  sourceElementId: string;
@@ -3170,246 +478,46 @@ export declare const actionChangeArrowhead: {
3170
478
  lockedMultiSelections: {
3171
479
  [groupId: string]: true;
3172
480
  };
481
+ bindMode: import("@excalidraw/element/types").BindMode;
3173
482
  };
3174
483
  captureUpdate: "IMMEDIATELY";
3175
484
  };
3176
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
485
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
3177
486
  } & {
3178
- keyTest?: undefined;
487
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
488
+ };
489
+ export declare const actionChangeFontFamily: import("./types").Action<{
490
+ currentItemFontFamily: any;
491
+ currentHoveredFontFamily: any;
492
+ }> & {
493
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
494
+ };
495
+ export declare const actionChangeTextAlign: import("./types").Action<string> & {
496
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
497
+ };
498
+ export declare const actionChangeVerticalAlign: import("./types").Action<string> & {
499
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
500
+ };
501
+ export declare const actionChangeRoundness: import("./types").Action<"round" | "sharp"> & {
502
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
503
+ };
504
+ export declare const actionChangeArrowhead: import("./types").Action<{
505
+ position: "start" | "end";
506
+ type: Arrowhead;
507
+ }> & {
508
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
3179
509
  };
3180
510
  export declare const actionChangeArrowProperties: {
3181
511
  name: "changeArrowProperties";
3182
512
  label: string;
3183
513
  trackEvent: false;
3184
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => false;
514
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => false;
3185
515
  PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
3186
516
  } & {
3187
517
  keyTest?: undefined;
3188
518
  };
3189
- export declare const actionChangeArrowType: {
3190
- name: "changeArrowType";
3191
- label: string;
3192
- trackEvent: false;
3193
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
3194
- elements: ExcalidrawElement[];
3195
- appState: {
3196
- currentItemArrowType: any;
3197
- contextMenu: {
3198
- items: import("../components/ContextMenu").ContextMenuItems;
3199
- top: number;
3200
- left: number;
3201
- } | null;
3202
- showWelcomeScreen: boolean;
3203
- isLoading: boolean;
3204
- errorMessage: import("react").ReactNode;
3205
- activeEmbeddable: {
3206
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
3207
- state: "active" | "hover";
3208
- } | null;
3209
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
3210
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3211
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
3212
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3213
- isBindingEnabled: boolean;
3214
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
3215
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
3216
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
3217
- frameRendering: {
3218
- enabled: boolean;
3219
- name: boolean;
3220
- outline: boolean;
3221
- clip: boolean;
3222
- markerName: boolean;
3223
- markerEnabled: boolean;
3224
- };
3225
- editingFrame: string | null;
3226
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
3227
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3228
- activeTool: {
3229
- lastActiveTool: import("../types").ActiveTool | null;
3230
- locked: boolean;
3231
- fromSelection: boolean;
3232
- } & import("../types").ActiveTool;
3233
- preferredSelectionTool: {
3234
- type: "selection" | "lasso";
3235
- initialized: boolean;
3236
- };
3237
- penMode: boolean;
3238
- penDetected: boolean;
3239
- exportBackground: boolean;
3240
- exportEmbedScene: boolean;
3241
- exportWithDarkMode: boolean;
3242
- exportScale: number;
3243
- currentItemStrokeColor: string;
3244
- currentItemBackgroundColor: string;
3245
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
3246
- currentItemStrokeWidth: number;
3247
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
3248
- currentItemRoughness: number;
3249
- currentItemOpacity: number;
3250
- currentItemFontFamily: number;
3251
- currentItemFontSize: number;
3252
- currentItemTextAlign: string;
3253
- currentItemStartArrowhead: Arrowhead | null;
3254
- currentItemEndArrowhead: Arrowhead | null;
3255
- currentHoveredFontFamily: number | null;
3256
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
3257
- currentItemFrameRole: ("marker" | null) | undefined;
3258
- viewBackgroundColor: string;
3259
- scrollX: number;
3260
- scrollY: number;
3261
- cursorButton: "up" | "down";
3262
- scrolledOutside: boolean;
3263
- name: string | null;
3264
- isResizing: boolean;
3265
- isRotating: boolean;
3266
- zoom: Readonly<{
3267
- value: import("../types").NormalizedZoomValue;
3268
- }>;
3269
- openMenu: "canvas" | "shape" | null;
3270
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
3271
- openSidebar: {
3272
- name: string;
3273
- tab?: string | undefined;
3274
- } | null;
3275
- openDialog: {
3276
- name: "help" | "imageExport" | "jsonExport";
3277
- } | {
3278
- name: "ttd";
3279
- tab: "mermaid" | "text-to-diagram";
3280
- } | {
3281
- name: "commandPalette";
3282
- } | {
3283
- name: "elementLinkSelector";
3284
- sourceElementId: string;
3285
- } | null;
3286
- defaultSidebarDockedPreference: boolean;
3287
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
3288
- selectedElementIds: Readonly<{
3289
- [id: string]: true;
3290
- }>;
3291
- hoveredElementIds: Readonly<{
3292
- [id: string]: true;
3293
- }>;
3294
- previousSelectedElementIds: {
3295
- [id: string]: true;
3296
- };
3297
- selectedElementsAreBeingDragged: boolean;
3298
- shouldCacheIgnoreZoom: boolean;
3299
- toast: {
3300
- message: string;
3301
- closable?: boolean | undefined;
3302
- duration?: number | undefined;
3303
- } | null;
3304
- zenModeEnabled: boolean;
3305
- theme: import("@excalidraw/element/types").Theme;
3306
- gridSize: number;
3307
- gridStep: number;
3308
- gridModeEnabled: boolean;
3309
- viewModeEnabled: boolean;
3310
- selectedGroupIds: {
3311
- [groupId: string]: boolean;
3312
- };
3313
- editingGroupId: string | null;
3314
- width: number;
3315
- height: number;
3316
- offsetTop: number;
3317
- offsetLeft: number;
3318
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
3319
- collaborators: Map<import("../types").SocketId, Readonly<{
3320
- pointer?: import("../types").CollaboratorPointer | undefined;
3321
- button?: "up" | "down" | undefined;
3322
- selectedElementIds?: Readonly<{
3323
- [id: string]: true;
3324
- }> | undefined;
3325
- username?: string | null | undefined;
3326
- userState?: import("@excalidraw/common").UserIdleState | undefined;
3327
- color?: {
3328
- background: string;
3329
- stroke: string;
3330
- } | undefined;
3331
- avatarUrl?: string | undefined;
3332
- id?: string | undefined;
3333
- socketId?: import("../types").SocketId | undefined;
3334
- isCurrentUser?: boolean | undefined;
3335
- isInCall?: boolean | undefined;
3336
- isSpeaking?: boolean | undefined;
3337
- isMuted?: boolean | undefined;
3338
- }>>;
3339
- stats: {
3340
- open: boolean;
3341
- panels: number;
3342
- };
3343
- currentChartType: import("@excalidraw/element/types").ChartType;
3344
- pasteDialog: {
3345
- shown: false;
3346
- data: null;
3347
- } | {
3348
- shown: true;
3349
- data: import("../charts").Spreadsheet;
3350
- };
3351
- showHyperlinkPopup: false | "info" | "editor";
3352
- linkOpacity: number;
3353
- colorPalette?: {
3354
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
3355
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
3356
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
3357
- topPicks: {
3358
- canvasBackground: [string, string, string, string, string];
3359
- elementStroke: [string, string, string, string, string];
3360
- elementBackground: [string, string, string, string, string];
3361
- };
3362
- } | undefined;
3363
- allowWheelZoom?: boolean | undefined;
3364
- allowPinchZoom?: boolean | undefined;
3365
- disableContextMenu: boolean;
3366
- pinnedScripts?: string[] | undefined;
3367
- customPens?: any[] | undefined;
3368
- currentStrokeOptions?: any;
3369
- resetCustomPen?: any;
3370
- gridColor: {
3371
- Bold: string;
3372
- Regular: string;
3373
- };
3374
- gridDirection: {
3375
- horizontal: boolean;
3376
- vertical: boolean;
3377
- };
3378
- highlightSearchResult: boolean;
3379
- dynamicStyle: {
3380
- [x: string]: string;
3381
- };
3382
- frameColor: {
3383
- stroke: string;
3384
- fill: string;
3385
- nameColor: string;
3386
- };
3387
- invertBindingBehaviour: boolean;
3388
- selectedLinearElement: LinearElementEditor | null;
3389
- snapLines: readonly import("../snapping").SnapLine[];
3390
- originSnapOffset: {
3391
- x: number;
3392
- y: number;
3393
- } | null;
3394
- objectsSnapModeEnabled: boolean;
3395
- userToFollow: import("../types").UserToFollow | null;
3396
- followedBy: Set<import("../types").SocketId>;
3397
- isCropping: boolean;
3398
- croppingElementId: string | null;
3399
- searchMatches: Readonly<{
3400
- focusedId: string | null;
3401
- matches: readonly import("../types").SearchMatch[];
3402
- }> | null;
3403
- activeLockedId: string | null;
3404
- lockedMultiSelections: {
3405
- [groupId: string]: true;
3406
- };
3407
- };
3408
- captureUpdate: "IMMEDIATELY";
3409
- };
3410
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
3411
- } & {
3412
- keyTest?: undefined;
519
+ export declare const actionChangeArrowType: import("./types").Action<"round" | "sharp" | "elbow"> & {
520
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
3413
521
  };
3414
522
  export declare const actionToggleFrameRole: {
3415
523
  name: "toggleFrameRole";
@@ -3418,7 +526,7 @@ export declare const actionToggleFrameRole: {
3418
526
  trackEvent: {
3419
527
  category: "element";
3420
528
  };
3421
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
529
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
3422
530
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
3423
531
  appState: Readonly<AppState>;
3424
532
  captureUpdate: "IMMEDIATELY";
@@ -3444,7 +552,7 @@ export declare const actionToggleFrameRole: {
3444
552
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3445
553
  isBindingEnabled: boolean;
3446
554
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
3447
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
555
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
3448
556
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
3449
557
  frameRendering: {
3450
558
  enabled: boolean;
@@ -3505,12 +613,14 @@ export declare const actionToggleFrameRole: {
3505
613
  tab?: string | undefined;
3506
614
  } | null;
3507
615
  openDialog: {
3508
- name: "help" | "imageExport" | "jsonExport";
616
+ name: "imageExport" | "help" | "jsonExport";
3509
617
  } | {
3510
618
  name: "ttd";
3511
619
  tab: "mermaid" | "text-to-diagram";
3512
620
  } | {
3513
621
  name: "commandPalette";
622
+ } | {
623
+ name: "settings";
3514
624
  } | {
3515
625
  name: "elementLinkSelector";
3516
626
  sourceElementId: string;
@@ -3636,6 +746,7 @@ export declare const actionToggleFrameRole: {
3636
746
  lockedMultiSelections: {
3637
747
  [groupId: string]: true;
3638
748
  };
749
+ bindMode: import("@excalidraw/element/types").BindMode;
3639
750
  };
3640
751
  captureUpdate: "IMMEDIATELY";
3641
752
  };