@excalidraw/excalidraw 0.15.2-3ddcc48 → 0.15.2-5302490

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 (117) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/excalidraw-assets/locales/{es-ES-json-f2467c6a875a9e288756.js → es-ES-json-4f3da97feff33cb00e6d.js} +1 -1
  3. package/dist/excalidraw-assets/locales/{hi-IN-json-e22f4ad73126c2971850.js → hi-IN-json-3898c9c1216b44476529.js} +1 -1
  4. package/dist/excalidraw-assets/locales/{id-ID-json-0e69caf5d919807ed234.js → id-ID-json-43d505d7071a0e359681.js} +1 -1
  5. package/dist/excalidraw-assets/locales/{kk-KZ-json-106d2a41c68f69765668.js → kk-KZ-json-f648362328b839e9313f.js} +1 -1
  6. package/dist/excalidraw-assets/locales/{pa-IN-json-0fd029451b07248c5194.js → pa-IN-json-d9ee09801ed220840b2b.js} +1 -1
  7. package/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.js → vendor-ef3c5d81a00ef582b871.js} +2 -2
  8. package/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.js → vendor-a14cd58fa2db417e42b2.js} +6 -6
  9. package/dist/excalidraw.development.js +2237 -2116
  10. package/dist/excalidraw.production.min.js +1 -1
  11. package/package.json +7 -2
  12. package/types/actions/actionAddToLibrary.d.ts +51 -25
  13. package/types/actions/actionAlign.d.ts +19 -20
  14. package/types/actions/actionBoundText.d.ts +38 -20
  15. package/types/actions/actionCanvas.d.ts +182 -90
  16. package/types/actions/actionClipboard.d.ts +81 -40
  17. package/types/actions/actionDeleteSelected.d.ts +45 -22
  18. package/types/actions/actionDistribute.d.ts +5 -6
  19. package/types/actions/actionDuplicateSelection.d.ts +0 -1
  20. package/types/actions/actionElementLock.d.ts +36 -19
  21. package/types/actions/actionExport.d.ts +161 -80
  22. package/types/actions/actionFinalize.d.ts +32 -18
  23. package/types/actions/actionFlip.d.ts +2 -3
  24. package/types/actions/actionFrame.d.ts +56 -30
  25. package/types/actions/actionGroup.d.ts +246 -9
  26. package/types/actions/actionLinearEditor.d.ts +19 -11
  27. package/types/actions/actionMenu.d.ts +51 -25
  28. package/types/actions/actionProperties.d.ts +223 -105
  29. package/types/actions/actionSelectAll.d.ts +121 -2
  30. package/types/actions/actionStyles.d.ts +17 -9
  31. package/types/actions/actionToggleGridMode.d.ts +17 -9
  32. package/types/actions/actionToggleStats.d.ts +17 -9
  33. package/types/actions/actionToggleViewMode.d.ts +17 -9
  34. package/types/actions/actionToggleZenMode.d.ts +17 -9
  35. package/types/actions/types.d.ts +4 -3
  36. package/types/appState.d.ts +7 -7
  37. package/types/clipboard.d.ts +1 -0
  38. package/types/colors.d.ts +9 -9
  39. package/types/components/Actions.d.ts +2 -2
  40. package/types/components/App.d.ts +24 -7
  41. package/types/components/Button.d.ts +0 -1
  42. package/types/components/Card.d.ts +0 -1
  43. package/types/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  44. package/types/components/DefaultSidebar.d.ts +0 -1
  45. package/types/components/ExcalidrawLogo.d.ts +15 -0
  46. package/types/components/EyeDropper.d.ts +0 -1
  47. package/types/components/HintViewer.d.ts +3 -4
  48. package/types/components/JSONExportDialog.d.ts +1 -1
  49. package/types/components/LayerUI.d.ts +4 -2
  50. package/types/components/LibraryMenuHeaderContent.d.ts +0 -1
  51. package/types/components/LibraryUnit.d.ts +0 -1
  52. package/types/components/LoadingMessage.d.ts +0 -1
  53. package/types/components/MobileMenu.d.ts +4 -3
  54. package/types/components/Section.d.ts +1 -1
  55. package/types/components/Sidebar/SidebarTab.d.ts +0 -1
  56. package/types/components/Sidebar/SidebarTabTrigger.d.ts +0 -1
  57. package/types/components/Sidebar/SidebarTabTriggers.d.ts +0 -1
  58. package/types/components/Sidebar/SidebarTabs.d.ts +0 -1
  59. package/types/components/Stack.d.ts +2 -2
  60. package/types/components/Trans.d.ts +2 -1
  61. package/types/components/canvases/InteractiveCanvas.d.ts +27 -0
  62. package/types/components/canvases/StaticCanvas.d.ts +18 -0
  63. package/types/components/canvases/index.d.ts +3 -0
  64. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -1
  65. package/types/components/icons.d.ts +1 -0
  66. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -1
  67. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -1
  68. package/types/components/welcome-screen/WelcomeScreen.d.ts +0 -1
  69. package/types/constants.d.ts +17 -3
  70. package/types/data/transform.d.ts +71 -0
  71. package/types/data/url.d.ts +5 -0
  72. package/types/element/Hyperlink.d.ts +27 -13
  73. package/types/element/binding.d.ts +1 -0
  74. package/types/element/collision.d.ts +2 -2
  75. package/types/element/embeddable.d.ts +153 -0
  76. package/types/element/linearElementEditor.d.ts +20 -12
  77. package/types/element/newElement.d.ts +14 -7
  78. package/types/element/sizeHelpers.d.ts +8 -1
  79. package/types/element/textElement.d.ts +5 -7
  80. package/types/element/textWysiwyg.d.ts +1 -1
  81. package/types/element/transformHandles.d.ts +3 -3
  82. package/types/element/typeChecks.d.ts +2 -1
  83. package/types/element/types.d.ts +13 -2
  84. package/types/frame.d.ts +5 -5
  85. package/types/groups.d.ts +12 -12
  86. package/types/history.d.ts +3 -3
  87. package/types/hooks/useOutsideClick.d.ts +0 -1
  88. package/types/hooks/useScrollPosition.d.ts +0 -1
  89. package/types/i18n.d.ts +5 -2
  90. package/types/keys.d.ts +1 -0
  91. package/types/packages/excalidraw/example/initialData.d.ts +182 -70
  92. package/types/packages/excalidraw/index.d.ts +1 -0
  93. package/types/packages/excalidraw/webpack.dev.config.d.ts +5 -2
  94. package/types/packages/excalidraw/webpack.prod.config.d.ts +3 -0
  95. package/types/packages/utils.d.ts +2 -1
  96. package/types/renderer/renderElement.d.ts +10 -22
  97. package/types/renderer/renderScene.d.ts +18 -37
  98. package/types/scene/Renderer.d.ts +25 -0
  99. package/types/scene/Scene.d.ts +15 -0
  100. package/types/scene/Shape.d.ts +12 -0
  101. package/types/scene/ShapeCache.d.ts +20 -0
  102. package/types/scene/export.d.ts +1 -0
  103. package/types/scene/scroll.d.ts +1 -1
  104. package/types/scene/scrollbars.d.ts +2 -6
  105. package/types/scene/selection.d.ts +13 -3
  106. package/types/scene/types.d.ts +57 -24
  107. package/types/types.d.ts +63 -12
  108. package/types/utility-types.d.ts +3 -1
  109. package/types/utils.d.ts +13 -5
  110. /package/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.js.LICENSE.txt → vendor-ef3c5d81a00ef582b871.js.LICENSE.txt} +0 -0
  111. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{es-ES-json-f2467c6a875a9e288756.d.ts → es-ES-json-4f3da97feff33cb00e6d.d.ts} +0 -0
  112. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hi-IN-json-e22f4ad73126c2971850.d.ts → hi-IN-json-3898c9c1216b44476529.d.ts} +0 -0
  113. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{id-ID-json-0e69caf5d919807ed234.d.ts → id-ID-json-43d505d7071a0e359681.d.ts} +0 -0
  114. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kk-KZ-json-106d2a41c68f69765668.d.ts → kk-KZ-json-f648362328b839e9313f.d.ts} +0 -0
  115. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pa-IN-json-0fd029451b07248c5194.d.ts → pa-IN-json-d9ee09801ed220840b2b.d.ts} +0 -0
  116. /package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.d.ts → vendor-ef3c5d81a00ef582b871.d.ts} +0 -0
  117. /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.d.ts → vendor-a14cd58fa2db417e42b2.d.ts} +0 -0
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExcalidrawElement } from "../element/types";
3
2
  import { AppState, NormalizedZoomValue } from "../types";
4
3
  export declare const actionChangeViewBackgroundColor: {
@@ -23,7 +22,7 @@ export declare const actionClearCanvas: {
23
22
  elements: ExcalidrawElement[];
24
23
  appState: {
25
24
  files: {};
26
- theme: string;
25
+ theme: import("../element/types").Theme;
27
26
  penMode: boolean;
28
27
  penDetected: boolean;
29
28
  exportBackground: boolean;
@@ -41,13 +40,19 @@ export declare const actionClearCanvas: {
41
40
  lastActiveTool: import("../types").LastActiveTool;
42
41
  locked: boolean;
43
42
  } & ({
44
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
43
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
45
44
  customType: null;
46
45
  } | {
47
46
  type: "custom";
48
47
  customType: string;
49
48
  });
50
49
  name: string;
50
+ toast: {
51
+ message: string;
52
+ closable?: boolean | undefined;
53
+ duration?: number | undefined;
54
+ } | null;
55
+ collaborators: Map<string, import("../types").Collaborator>;
51
56
  contextMenu: {
52
57
  items: import("../components/ContextMenu").ContextMenuItems;
53
58
  top: number;
@@ -56,6 +61,10 @@ export declare const actionClearCanvas: {
56
61
  showWelcomeScreen: boolean;
57
62
  isLoading: boolean;
58
63
  errorMessage: import("react").ReactNode;
64
+ activeEmbeddable: {
65
+ element: import("../element/types").NonDeletedExcalidrawElement;
66
+ state: "active" | "hover";
67
+ } | null;
59
68
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
60
69
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
61
70
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -64,7 +73,12 @@ export declare const actionClearCanvas: {
64
73
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
65
74
  suggestedBindings: import("../element/binding").SuggestedBinding[];
66
75
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
67
- shouldRenderFrames: boolean;
76
+ frameRendering: {
77
+ enabled: boolean;
78
+ name: boolean;
79
+ outline: boolean;
80
+ clip: boolean;
81
+ };
68
82
  editingFrame: string | null;
69
83
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
70
84
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -103,19 +117,14 @@ export declare const actionClearCanvas: {
103
117
  openDialog: "imageExport" | "help" | "jsonExport" | null;
104
118
  defaultSidebarDockedPreference: boolean;
105
119
  lastPointerDownWith: import("../element/types").PointerType;
106
- selectedElementIds: {
107
- [id: string]: boolean;
108
- };
120
+ selectedElementIds: Readonly<{
121
+ [id: string]: true;
122
+ }>;
109
123
  previousSelectedElementIds: {
110
- [id: string]: boolean;
124
+ [id: string]: true;
111
125
  };
112
126
  selectedElementsAreBeingDragged: boolean;
113
127
  shouldCacheIgnoreZoom: boolean;
114
- toast: {
115
- message: string;
116
- closable?: boolean | undefined;
117
- duration?: number | undefined;
118
- } | null;
119
128
  zenModeEnabled: boolean;
120
129
  viewModeEnabled: boolean;
121
130
  selectedGroupIds: {
@@ -123,10 +132,9 @@ export declare const actionClearCanvas: {
123
132
  };
124
133
  editingGroupId: string | null;
125
134
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
126
- collaborators: Map<string, import("../types").Collaborator>;
127
135
  currentChartType: import("../element/types").ChartType;
128
136
  pendingImageElementId: string | null;
129
- showHyperlinkPopup: false | "info" | "editor";
137
+ showHyperlinkPopup: false | "editor" | "info";
130
138
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
131
139
  };
132
140
  commitToHistory: true;
@@ -155,6 +163,10 @@ export declare const actionZoomIn: {
155
163
  showWelcomeScreen: boolean;
156
164
  isLoading: boolean;
157
165
  errorMessage: import("react").ReactNode;
166
+ activeEmbeddable: {
167
+ element: import("../element/types").NonDeletedExcalidrawElement;
168
+ state: "active" | "hover";
169
+ } | null;
158
170
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
159
171
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
160
172
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -163,7 +175,12 @@ export declare const actionZoomIn: {
163
175
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
164
176
  suggestedBindings: import("../element/binding").SuggestedBinding[];
165
177
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
166
- shouldRenderFrames: boolean;
178
+ frameRendering: {
179
+ enabled: boolean;
180
+ name: boolean;
181
+ outline: boolean;
182
+ clip: boolean;
183
+ };
167
184
  editingFrame: string | null;
168
185
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
169
186
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -172,7 +189,7 @@ export declare const actionZoomIn: {
172
189
  lastActiveTool: import("../types").LastActiveTool;
173
190
  locked: boolean;
174
191
  } & ({
175
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
192
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
176
193
  customType: null;
177
194
  } | {
178
195
  type: "custom";
@@ -212,11 +229,11 @@ export declare const actionZoomIn: {
212
229
  openDialog: "imageExport" | "help" | "jsonExport" | null;
213
230
  defaultSidebarDockedPreference: boolean;
214
231
  lastPointerDownWith: import("../element/types").PointerType;
215
- selectedElementIds: {
216
- [id: string]: boolean;
217
- };
232
+ selectedElementIds: Readonly<{
233
+ [id: string]: true;
234
+ }>;
218
235
  previousSelectedElementIds: {
219
- [id: string]: boolean;
236
+ [id: string]: true;
220
237
  };
221
238
  selectedElementsAreBeingDragged: boolean;
222
239
  shouldCacheIgnoreZoom: boolean;
@@ -226,7 +243,7 @@ export declare const actionZoomIn: {
226
243
  duration?: number | undefined;
227
244
  } | null;
228
245
  zenModeEnabled: boolean;
229
- theme: string;
246
+ theme: import("../element/types").Theme;
230
247
  gridSize: number | null;
231
248
  viewModeEnabled: boolean;
232
249
  selectedGroupIds: {
@@ -249,7 +266,7 @@ export declare const actionZoomIn: {
249
266
  data: import("../charts").Spreadsheet;
250
267
  };
251
268
  pendingImageElementId: string | null;
252
- showHyperlinkPopup: false | "info" | "editor";
269
+ showHyperlinkPopup: false | "editor" | "info";
253
270
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
254
271
  };
255
272
  commitToHistory: false;
@@ -280,6 +297,10 @@ export declare const actionZoomOut: {
280
297
  showWelcomeScreen: boolean;
281
298
  isLoading: boolean;
282
299
  errorMessage: import("react").ReactNode;
300
+ activeEmbeddable: {
301
+ element: import("../element/types").NonDeletedExcalidrawElement;
302
+ state: "active" | "hover";
303
+ } | null;
283
304
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
284
305
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
285
306
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -288,7 +309,12 @@ export declare const actionZoomOut: {
288
309
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
289
310
  suggestedBindings: import("../element/binding").SuggestedBinding[];
290
311
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
291
- shouldRenderFrames: boolean;
312
+ frameRendering: {
313
+ enabled: boolean;
314
+ name: boolean;
315
+ outline: boolean;
316
+ clip: boolean;
317
+ };
292
318
  editingFrame: string | null;
293
319
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
294
320
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -297,7 +323,7 @@ export declare const actionZoomOut: {
297
323
  lastActiveTool: import("../types").LastActiveTool;
298
324
  locked: boolean;
299
325
  } & ({
300
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
326
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
301
327
  customType: null;
302
328
  } | {
303
329
  type: "custom";
@@ -337,11 +363,11 @@ export declare const actionZoomOut: {
337
363
  openDialog: "imageExport" | "help" | "jsonExport" | null;
338
364
  defaultSidebarDockedPreference: boolean;
339
365
  lastPointerDownWith: import("../element/types").PointerType;
340
- selectedElementIds: {
341
- [id: string]: boolean;
342
- };
366
+ selectedElementIds: Readonly<{
367
+ [id: string]: true;
368
+ }>;
343
369
  previousSelectedElementIds: {
344
- [id: string]: boolean;
370
+ [id: string]: true;
345
371
  };
346
372
  selectedElementsAreBeingDragged: boolean;
347
373
  shouldCacheIgnoreZoom: boolean;
@@ -351,7 +377,7 @@ export declare const actionZoomOut: {
351
377
  duration?: number | undefined;
352
378
  } | null;
353
379
  zenModeEnabled: boolean;
354
- theme: string;
380
+ theme: import("../element/types").Theme;
355
381
  gridSize: number | null;
356
382
  viewModeEnabled: boolean;
357
383
  selectedGroupIds: {
@@ -374,7 +400,7 @@ export declare const actionZoomOut: {
374
400
  data: import("../charts").Spreadsheet;
375
401
  };
376
402
  pendingImageElementId: string | null;
377
- showHyperlinkPopup: false | "info" | "editor";
403
+ showHyperlinkPopup: false | "editor" | "info";
378
404
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
379
405
  };
380
406
  commitToHistory: false;
@@ -405,6 +431,10 @@ export declare const actionResetZoom: {
405
431
  showWelcomeScreen: boolean;
406
432
  isLoading: boolean;
407
433
  errorMessage: import("react").ReactNode;
434
+ activeEmbeddable: {
435
+ element: import("../element/types").NonDeletedExcalidrawElement;
436
+ state: "active" | "hover";
437
+ } | null;
408
438
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
409
439
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
410
440
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -413,7 +443,12 @@ export declare const actionResetZoom: {
413
443
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
414
444
  suggestedBindings: import("../element/binding").SuggestedBinding[];
415
445
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
416
- shouldRenderFrames: boolean;
446
+ frameRendering: {
447
+ enabled: boolean;
448
+ name: boolean;
449
+ outline: boolean;
450
+ clip: boolean;
451
+ };
417
452
  editingFrame: string | null;
418
453
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
419
454
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -422,7 +457,7 @@ export declare const actionResetZoom: {
422
457
  lastActiveTool: import("../types").LastActiveTool;
423
458
  locked: boolean;
424
459
  } & ({
425
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
460
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
426
461
  customType: null;
427
462
  } | {
428
463
  type: "custom";
@@ -462,11 +497,11 @@ export declare const actionResetZoom: {
462
497
  openDialog: "imageExport" | "help" | "jsonExport" | null;
463
498
  defaultSidebarDockedPreference: boolean;
464
499
  lastPointerDownWith: import("../element/types").PointerType;
465
- selectedElementIds: {
466
- [id: string]: boolean;
467
- };
500
+ selectedElementIds: Readonly<{
501
+ [id: string]: true;
502
+ }>;
468
503
  previousSelectedElementIds: {
469
- [id: string]: boolean;
504
+ [id: string]: true;
470
505
  };
471
506
  selectedElementsAreBeingDragged: boolean;
472
507
  shouldCacheIgnoreZoom: boolean;
@@ -476,7 +511,7 @@ export declare const actionResetZoom: {
476
511
  duration?: number | undefined;
477
512
  } | null;
478
513
  zenModeEnabled: boolean;
479
- theme: string;
514
+ theme: import("../element/types").Theme;
480
515
  gridSize: number | null;
481
516
  viewModeEnabled: boolean;
482
517
  selectedGroupIds: {
@@ -499,7 +534,7 @@ export declare const actionResetZoom: {
499
534
  data: import("../charts").Spreadsheet;
500
535
  };
501
536
  pendingImageElementId: string | null;
502
- showHyperlinkPopup: false | "info" | "editor";
537
+ showHyperlinkPopup: false | "editor" | "info";
503
538
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
504
539
  };
505
540
  commitToHistory: false;
@@ -531,6 +566,10 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
531
566
  showWelcomeScreen: boolean;
532
567
  isLoading: boolean;
533
568
  errorMessage: import("react").ReactNode;
569
+ activeEmbeddable: {
570
+ element: import("../element/types").NonDeletedExcalidrawElement;
571
+ state: "active" | "hover";
572
+ } | null;
534
573
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
535
574
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
536
575
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -539,7 +578,12 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
539
578
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
540
579
  suggestedBindings: import("../element/binding").SuggestedBinding[];
541
580
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
542
- shouldRenderFrames: boolean;
581
+ frameRendering: {
582
+ enabled: boolean;
583
+ name: boolean;
584
+ outline: boolean;
585
+ clip: boolean;
586
+ };
543
587
  editingFrame: string | null;
544
588
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
545
589
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -548,7 +592,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
548
592
  lastActiveTool: import("../types").LastActiveTool;
549
593
  locked: boolean;
550
594
  } & ({
551
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
595
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
552
596
  customType: null;
553
597
  } | {
554
598
  type: "custom";
@@ -588,11 +632,11 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
588
632
  openDialog: "imageExport" | "help" | "jsonExport" | null;
589
633
  defaultSidebarDockedPreference: boolean;
590
634
  lastPointerDownWith: import("../element/types").PointerType;
591
- selectedElementIds: {
592
- [id: string]: boolean;
593
- };
635
+ selectedElementIds: Readonly<{
636
+ [id: string]: true;
637
+ }>;
594
638
  previousSelectedElementIds: {
595
- [id: string]: boolean;
639
+ [id: string]: true;
596
640
  };
597
641
  selectedElementsAreBeingDragged: boolean;
598
642
  shouldCacheIgnoreZoom: boolean;
@@ -602,7 +646,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
602
646
  duration?: number | undefined;
603
647
  } | null;
604
648
  zenModeEnabled: boolean;
605
- theme: string;
649
+ theme: import("../element/types").Theme;
606
650
  gridSize: number | null;
607
651
  viewModeEnabled: boolean;
608
652
  selectedGroupIds: {
@@ -625,7 +669,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
625
669
  data: import("../charts").Spreadsheet;
626
670
  };
627
671
  pendingImageElementId: string | null;
628
- showHyperlinkPopup: false | "info" | "editor";
672
+ showHyperlinkPopup: false | "editor" | "info";
629
673
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
630
674
  };
631
675
  commitToHistory: boolean;
@@ -635,7 +679,7 @@ export declare const actionZoomToFitSelectionInViewport: {
635
679
  trackEvent: {
636
680
  category: "canvas";
637
681
  };
638
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
682
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
639
683
  appState: {
640
684
  scrollX: number;
641
685
  scrollY: number;
@@ -650,6 +694,10 @@ export declare const actionZoomToFitSelectionInViewport: {
650
694
  showWelcomeScreen: boolean;
651
695
  isLoading: boolean;
652
696
  errorMessage: import("react").ReactNode;
697
+ activeEmbeddable: {
698
+ element: import("../element/types").NonDeletedExcalidrawElement;
699
+ state: "active" | "hover";
700
+ } | null;
653
701
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
654
702
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
655
703
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -658,7 +706,12 @@ export declare const actionZoomToFitSelectionInViewport: {
658
706
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
659
707
  suggestedBindings: import("../element/binding").SuggestedBinding[];
660
708
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
661
- shouldRenderFrames: boolean;
709
+ frameRendering: {
710
+ enabled: boolean;
711
+ name: boolean;
712
+ outline: boolean;
713
+ clip: boolean;
714
+ };
662
715
  editingFrame: string | null;
663
716
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
664
717
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -667,7 +720,7 @@ export declare const actionZoomToFitSelectionInViewport: {
667
720
  lastActiveTool: import("../types").LastActiveTool;
668
721
  locked: boolean;
669
722
  } & ({
670
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
723
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
671
724
  customType: null;
672
725
  } | {
673
726
  type: "custom";
@@ -707,11 +760,11 @@ export declare const actionZoomToFitSelectionInViewport: {
707
760
  openDialog: "imageExport" | "help" | "jsonExport" | null;
708
761
  defaultSidebarDockedPreference: boolean;
709
762
  lastPointerDownWith: import("../element/types").PointerType;
710
- selectedElementIds: {
711
- [id: string]: boolean;
712
- };
763
+ selectedElementIds: Readonly<{
764
+ [id: string]: true;
765
+ }>;
713
766
  previousSelectedElementIds: {
714
- [id: string]: boolean;
767
+ [id: string]: true;
715
768
  };
716
769
  selectedElementsAreBeingDragged: boolean;
717
770
  shouldCacheIgnoreZoom: boolean;
@@ -721,7 +774,7 @@ export declare const actionZoomToFitSelectionInViewport: {
721
774
  duration?: number | undefined;
722
775
  } | null;
723
776
  zenModeEnabled: boolean;
724
- theme: string;
777
+ theme: import("../element/types").Theme;
725
778
  gridSize: number | null;
726
779
  viewModeEnabled: boolean;
727
780
  selectedGroupIds: {
@@ -744,7 +797,7 @@ export declare const actionZoomToFitSelectionInViewport: {
744
797
  data: import("../charts").Spreadsheet;
745
798
  };
746
799
  pendingImageElementId: string | null;
747
- showHyperlinkPopup: false | "info" | "editor";
800
+ showHyperlinkPopup: false | "editor" | "info";
748
801
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
749
802
  };
750
803
  commitToHistory: boolean;
@@ -758,7 +811,7 @@ export declare const actionZoomToFitSelection: {
758
811
  trackEvent: {
759
812
  category: "canvas";
760
813
  };
761
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
814
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
762
815
  appState: {
763
816
  scrollX: number;
764
817
  scrollY: number;
@@ -773,6 +826,10 @@ export declare const actionZoomToFitSelection: {
773
826
  showWelcomeScreen: boolean;
774
827
  isLoading: boolean;
775
828
  errorMessage: import("react").ReactNode;
829
+ activeEmbeddable: {
830
+ element: import("../element/types").NonDeletedExcalidrawElement;
831
+ state: "active" | "hover";
832
+ } | null;
776
833
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
777
834
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
778
835
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -781,7 +838,12 @@ export declare const actionZoomToFitSelection: {
781
838
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
782
839
  suggestedBindings: import("../element/binding").SuggestedBinding[];
783
840
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
784
- shouldRenderFrames: boolean;
841
+ frameRendering: {
842
+ enabled: boolean;
843
+ name: boolean;
844
+ outline: boolean;
845
+ clip: boolean;
846
+ };
785
847
  editingFrame: string | null;
786
848
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
787
849
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -790,7 +852,7 @@ export declare const actionZoomToFitSelection: {
790
852
  lastActiveTool: import("../types").LastActiveTool;
791
853
  locked: boolean;
792
854
  } & ({
793
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
855
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
794
856
  customType: null;
795
857
  } | {
796
858
  type: "custom";
@@ -830,11 +892,11 @@ export declare const actionZoomToFitSelection: {
830
892
  openDialog: "imageExport" | "help" | "jsonExport" | null;
831
893
  defaultSidebarDockedPreference: boolean;
832
894
  lastPointerDownWith: import("../element/types").PointerType;
833
- selectedElementIds: {
834
- [id: string]: boolean;
835
- };
895
+ selectedElementIds: Readonly<{
896
+ [id: string]: true;
897
+ }>;
836
898
  previousSelectedElementIds: {
837
- [id: string]: boolean;
899
+ [id: string]: true;
838
900
  };
839
901
  selectedElementsAreBeingDragged: boolean;
840
902
  shouldCacheIgnoreZoom: boolean;
@@ -844,7 +906,7 @@ export declare const actionZoomToFitSelection: {
844
906
  duration?: number | undefined;
845
907
  } | null;
846
908
  zenModeEnabled: boolean;
847
- theme: string;
909
+ theme: import("../element/types").Theme;
848
910
  gridSize: number | null;
849
911
  viewModeEnabled: boolean;
850
912
  selectedGroupIds: {
@@ -867,7 +929,7 @@ export declare const actionZoomToFitSelection: {
867
929
  data: import("../charts").Spreadsheet;
868
930
  };
869
931
  pendingImageElementId: string | null;
870
- showHyperlinkPopup: false | "info" | "editor";
932
+ showHyperlinkPopup: false | "editor" | "info";
871
933
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
872
934
  };
873
935
  commitToHistory: boolean;
@@ -897,6 +959,10 @@ export declare const actionZoomToFit: {
897
959
  showWelcomeScreen: boolean;
898
960
  isLoading: boolean;
899
961
  errorMessage: import("react").ReactNode;
962
+ activeEmbeddable: {
963
+ element: import("../element/types").NonDeletedExcalidrawElement;
964
+ state: "active" | "hover";
965
+ } | null;
900
966
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
901
967
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
902
968
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -905,7 +971,12 @@ export declare const actionZoomToFit: {
905
971
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
906
972
  suggestedBindings: import("../element/binding").SuggestedBinding[];
907
973
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
908
- shouldRenderFrames: boolean;
974
+ frameRendering: {
975
+ enabled: boolean;
976
+ name: boolean;
977
+ outline: boolean;
978
+ clip: boolean;
979
+ };
909
980
  editingFrame: string | null;
910
981
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
911
982
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -914,7 +985,7 @@ export declare const actionZoomToFit: {
914
985
  lastActiveTool: import("../types").LastActiveTool;
915
986
  locked: boolean;
916
987
  } & ({
917
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
988
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
918
989
  customType: null;
919
990
  } | {
920
991
  type: "custom";
@@ -954,11 +1025,11 @@ export declare const actionZoomToFit: {
954
1025
  openDialog: "imageExport" | "help" | "jsonExport" | null;
955
1026
  defaultSidebarDockedPreference: boolean;
956
1027
  lastPointerDownWith: import("../element/types").PointerType;
957
- selectedElementIds: {
958
- [id: string]: boolean;
959
- };
1028
+ selectedElementIds: Readonly<{
1029
+ [id: string]: true;
1030
+ }>;
960
1031
  previousSelectedElementIds: {
961
- [id: string]: boolean;
1032
+ [id: string]: true;
962
1033
  };
963
1034
  selectedElementsAreBeingDragged: boolean;
964
1035
  shouldCacheIgnoreZoom: boolean;
@@ -968,7 +1039,7 @@ export declare const actionZoomToFit: {
968
1039
  duration?: number | undefined;
969
1040
  } | null;
970
1041
  zenModeEnabled: boolean;
971
- theme: string;
1042
+ theme: import("../element/types").Theme;
972
1043
  gridSize: number | null;
973
1044
  viewModeEnabled: boolean;
974
1045
  selectedGroupIds: {
@@ -991,7 +1062,7 @@ export declare const actionZoomToFit: {
991
1062
  data: import("../charts").Spreadsheet;
992
1063
  };
993
1064
  pendingImageElementId: string | null;
994
- showHyperlinkPopup: false | "info" | "editor";
1065
+ showHyperlinkPopup: false | "editor" | "info";
995
1066
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
996
1067
  };
997
1068
  commitToHistory: boolean;
@@ -1017,6 +1088,10 @@ export declare const actionToggleTheme: {
1017
1088
  showWelcomeScreen: boolean;
1018
1089
  isLoading: boolean;
1019
1090
  errorMessage: import("react").ReactNode;
1091
+ activeEmbeddable: {
1092
+ element: import("../element/types").NonDeletedExcalidrawElement;
1093
+ state: "active" | "hover";
1094
+ } | null;
1020
1095
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1021
1096
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1022
1097
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -1025,7 +1100,12 @@ export declare const actionToggleTheme: {
1025
1100
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1026
1101
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1027
1102
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1028
- shouldRenderFrames: boolean;
1103
+ frameRendering: {
1104
+ enabled: boolean;
1105
+ name: boolean;
1106
+ outline: boolean;
1107
+ clip: boolean;
1108
+ };
1029
1109
  editingFrame: string | null;
1030
1110
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1031
1111
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1034,7 +1114,7 @@ export declare const actionToggleTheme: {
1034
1114
  lastActiveTool: import("../types").LastActiveTool;
1035
1115
  locked: boolean;
1036
1116
  } & ({
1037
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1117
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1038
1118
  customType: null;
1039
1119
  } | {
1040
1120
  type: "custom";
@@ -1079,11 +1159,11 @@ export declare const actionToggleTheme: {
1079
1159
  openDialog: "imageExport" | "help" | "jsonExport" | null;
1080
1160
  defaultSidebarDockedPreference: boolean;
1081
1161
  lastPointerDownWith: import("../element/types").PointerType;
1082
- selectedElementIds: {
1083
- [id: string]: boolean;
1084
- };
1162
+ selectedElementIds: Readonly<{
1163
+ [id: string]: true;
1164
+ }>;
1085
1165
  previousSelectedElementIds: {
1086
- [id: string]: boolean;
1166
+ [id: string]: true;
1087
1167
  };
1088
1168
  selectedElementsAreBeingDragged: boolean;
1089
1169
  shouldCacheIgnoreZoom: boolean;
@@ -1115,7 +1195,7 @@ export declare const actionToggleTheme: {
1115
1195
  data: import("../charts").Spreadsheet;
1116
1196
  };
1117
1197
  pendingImageElementId: string | null;
1118
- showHyperlinkPopup: false | "info" | "editor";
1198
+ showHyperlinkPopup: false | "editor" | "info";
1119
1199
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1120
1200
  };
1121
1201
  commitToHistory: false;
@@ -1134,11 +1214,12 @@ export declare const actionToggleEraserTool: {
1134
1214
  appState: {
1135
1215
  selectedElementIds: {};
1136
1216
  selectedGroupIds: {};
1217
+ activeEmbeddable: null;
1137
1218
  activeTool: {
1138
1219
  lastActiveTool: import("../types").LastActiveTool;
1139
1220
  locked: boolean;
1140
1221
  } & ({
1141
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1222
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1142
1223
  customType: null;
1143
1224
  } | {
1144
1225
  type: "custom";
@@ -1160,7 +1241,12 @@ export declare const actionToggleEraserTool: {
1160
1241
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1161
1242
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1162
1243
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1163
- shouldRenderFrames: boolean;
1244
+ frameRendering: {
1245
+ enabled: boolean;
1246
+ name: boolean;
1247
+ outline: boolean;
1248
+ clip: boolean;
1249
+ };
1164
1250
  editingFrame: string | null;
1165
1251
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1166
1252
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1205,7 +1291,7 @@ export declare const actionToggleEraserTool: {
1205
1291
  defaultSidebarDockedPreference: boolean;
1206
1292
  lastPointerDownWith: import("../element/types").PointerType;
1207
1293
  previousSelectedElementIds: {
1208
- [id: string]: boolean;
1294
+ [id: string]: true;
1209
1295
  };
1210
1296
  selectedElementsAreBeingDragged: boolean;
1211
1297
  shouldCacheIgnoreZoom: boolean;
@@ -1215,7 +1301,7 @@ export declare const actionToggleEraserTool: {
1215
1301
  duration?: number | undefined;
1216
1302
  } | null;
1217
1303
  zenModeEnabled: boolean;
1218
- theme: string;
1304
+ theme: import("../element/types").Theme;
1219
1305
  gridSize: number | null;
1220
1306
  viewModeEnabled: boolean;
1221
1307
  editingGroupId: string | null;
@@ -1235,7 +1321,7 @@ export declare const actionToggleEraserTool: {
1235
1321
  data: import("../charts").Spreadsheet;
1236
1322
  };
1237
1323
  pendingImageElementId: string | null;
1238
- showHyperlinkPopup: false | "info" | "editor";
1324
+ showHyperlinkPopup: false | "editor" | "info";
1239
1325
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1240
1326
  };
1241
1327
  commitToHistory: true;
@@ -1253,11 +1339,12 @@ export declare const actionToggleHandTool: {
1253
1339
  appState: {
1254
1340
  selectedElementIds: {};
1255
1341
  selectedGroupIds: {};
1342
+ activeEmbeddable: null;
1256
1343
  activeTool: {
1257
1344
  lastActiveTool: import("../types").LastActiveTool;
1258
1345
  locked: boolean;
1259
1346
  } & ({
1260
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1347
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1261
1348
  customType: null;
1262
1349
  } | {
1263
1350
  type: "custom";
@@ -1279,7 +1366,12 @@ export declare const actionToggleHandTool: {
1279
1366
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1280
1367
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1281
1368
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1282
- shouldRenderFrames: boolean;
1369
+ frameRendering: {
1370
+ enabled: boolean;
1371
+ name: boolean;
1372
+ outline: boolean;
1373
+ clip: boolean;
1374
+ };
1283
1375
  editingFrame: string | null;
1284
1376
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1285
1377
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1324,7 +1416,7 @@ export declare const actionToggleHandTool: {
1324
1416
  defaultSidebarDockedPreference: boolean;
1325
1417
  lastPointerDownWith: import("../element/types").PointerType;
1326
1418
  previousSelectedElementIds: {
1327
- [id: string]: boolean;
1419
+ [id: string]: true;
1328
1420
  };
1329
1421
  selectedElementsAreBeingDragged: boolean;
1330
1422
  shouldCacheIgnoreZoom: boolean;
@@ -1334,7 +1426,7 @@ export declare const actionToggleHandTool: {
1334
1426
  duration?: number | undefined;
1335
1427
  } | null;
1336
1428
  zenModeEnabled: boolean;
1337
- theme: string;
1429
+ theme: import("../element/types").Theme;
1338
1430
  gridSize: number | null;
1339
1431
  viewModeEnabled: boolean;
1340
1432
  editingGroupId: string | null;
@@ -1354,7 +1446,7 @@ export declare const actionToggleHandTool: {
1354
1446
  data: import("../charts").Spreadsheet;
1355
1447
  };
1356
1448
  pendingImageElementId: string | null;
1357
- showHyperlinkPopup: false | "info" | "editor";
1449
+ showHyperlinkPopup: false | "editor" | "info";
1358
1450
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1359
1451
  };
1360
1452
  commitToHistory: true;