@excalidraw/element 0.18.0-063e025 → 0.18.0-1118751

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 (154) hide show
  1. package/dist/dev/index.js +13047 -9808
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +19 -19
  4. package/dist/types/common/src/colors.d.ts +22 -0
  5. package/dist/types/common/src/constants.d.ts +54 -0
  6. package/dist/types/common/src/keys.d.ts +4 -0
  7. package/dist/types/common/src/points.d.ts +1 -1
  8. package/dist/types/common/src/random.d.ts +7 -0
  9. package/dist/types/common/src/utils.d.ts +1 -1
  10. package/dist/types/element/src/Scene.d.ts +1 -1
  11. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  12. package/dist/types/element/src/arrows/focus.d.ts +5 -2
  13. package/dist/types/element/src/binding.d.ts +15 -8
  14. package/dist/types/element/src/bucketFill.d.ts +110 -0
  15. package/dist/types/element/src/collision.d.ts +8 -5
  16. package/dist/types/element/src/comparisons.d.ts +7 -5
  17. package/dist/types/element/src/convertToShape.d.ts +23 -0
  18. package/dist/types/element/src/delta.d.ts +23 -1
  19. package/dist/types/element/src/dragElements.d.ts +27 -0
  20. package/dist/types/element/src/duplicate.d.ts +60 -0
  21. package/dist/types/element/src/flowchart.d.ts +10 -6
  22. package/dist/types/element/src/frame.d.ts +2 -2
  23. package/dist/types/element/src/groups.d.ts +1 -1
  24. package/dist/types/element/src/index.d.ts +4 -0
  25. package/dist/types/element/src/linearElementEditor.d.ts +17 -0
  26. package/dist/types/element/src/mutateElement.d.ts +1 -1
  27. package/dist/types/element/src/newElement.d.ts +37 -2
  28. package/dist/types/element/src/renderElement.d.ts +21 -4
  29. package/dist/types/element/src/selection.d.ts +1 -1
  30. package/dist/types/element/src/shape.d.ts +27 -1
  31. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  32. package/dist/types/element/src/sortElements.d.ts +10 -0
  33. package/dist/types/element/src/stickyNote.d.ts +183 -0
  34. package/dist/types/element/src/textElement.d.ts +7 -3
  35. package/dist/types/element/src/transform.d.ts +25 -6
  36. package/dist/types/element/src/typeChecks.d.ts +3 -2
  37. package/dist/types/element/src/types.d.ts +35 -6
  38. package/dist/types/element/src/utils.d.ts +15 -4
  39. package/dist/types/element/src/zindex.d.ts +1 -1
  40. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +48 -9
  41. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  42. package/dist/types/excalidraw/actions/actionBoundText.d.ts +32 -6
  43. package/dist/types/excalidraw/actions/actionCanvas.d.ts +173 -576
  44. package/dist/types/excalidraw/actions/actionClipboard.d.ts +32 -6
  45. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +16 -3
  46. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +50 -10
  47. package/dist/types/excalidraw/actions/actionDeselect.d.ts +13 -3
  48. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  49. package/dist/types/excalidraw/actions/actionElementLink.d.ts +16 -3
  50. package/dist/types/excalidraw/actions/actionElementLock.d.ts +32 -6
  51. package/dist/types/excalidraw/actions/actionExport.d.ts +34 -8
  52. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  53. package/dist/types/excalidraw/actions/actionFrame.d.ts +99 -185
  54. package/dist/types/excalidraw/actions/actionGroup.d.ts +33 -7
  55. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +68 -4
  56. package/dist/types/excalidraw/actions/actionLink.d.ts +16 -3
  57. package/dist/types/excalidraw/actions/actionMenu.d.ts +16 -3
  58. package/dist/types/excalidraw/actions/actionProperties.d.ts +45 -12
  59. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +16 -3
  60. package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -4
  61. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  62. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +16 -3
  63. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -3
  64. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +16 -3
  65. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -3
  66. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -3
  67. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -3
  68. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +17 -4
  69. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -3
  70. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  71. package/dist/types/excalidraw/actions/index.d.ts +1 -2
  72. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  73. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  74. package/dist/types/excalidraw/actions/types.d.ts +5 -1
  75. package/dist/types/excalidraw/appState.d.ts +26 -5
  76. package/dist/types/excalidraw/components/Actions.d.ts +16 -10
  77. package/dist/types/excalidraw/components/App.arrowText.d.ts +104 -0
  78. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  79. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  80. package/dist/types/excalidraw/components/App.d.ts +468 -99
  81. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  82. package/dist/types/excalidraw/components/App.duplicate.d.ts +51 -0
  83. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  84. package/dist/types/excalidraw/components/App.pan.d.ts +54 -0
  85. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  86. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  87. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  88. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +8 -2
  89. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  90. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  91. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  92. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  93. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  94. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  95. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  96. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  97. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  98. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  99. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  100. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  101. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  102. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  103. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  104. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  105. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  106. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  107. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  108. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  109. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  110. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  111. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  112. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  113. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  114. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  115. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  116. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  117. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -0
  118. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
  119. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  120. package/dist/types/excalidraw/components/icons.d.ts +5 -1
  121. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -1
  122. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  123. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  124. package/dist/types/excalidraw/data/blob.d.ts +36 -10
  125. package/dist/types/excalidraw/data/json.d.ts +18 -5
  126. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  127. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
  128. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  129. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  130. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  131. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  132. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  133. package/dist/types/excalidraw/scene/Renderer.d.ts +64 -2
  134. package/dist/types/excalidraw/scene/index.d.ts +1 -1
  135. package/dist/types/excalidraw/scene/types.d.ts +6 -1
  136. package/dist/types/excalidraw/types.d.ts +341 -21
  137. package/dist/types/excalidraw/viewport.d.ts +31 -66
  138. package/dist/types/laser-pointer/src/state.d.ts +1 -0
  139. package/dist/types/math/src/curve.d.ts +19 -12
  140. package/dist/types/math/src/index.d.ts +1 -0
  141. package/dist/types/math/src/pca.d.ts +79 -0
  142. package/dist/types/math/src/polygon.d.ts +25 -1
  143. package/dist/types/math/src/segment.d.ts +6 -0
  144. package/dist/types/utils/src/export.d.ts +1 -0
  145. package/dist/types/utils/src/shape.d.ts +2 -2
  146. package/package.json +4 -4
  147. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -173
  148. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  149. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  150. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  151. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  152. package/dist/types/excalidraw/components/shapes.d.ts +0 -270
  153. package/dist/types/excalidraw/cursor.d.ts +0 -5
  154. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
@@ -135,10 +135,15 @@ export declare const actionLoadScene: {
135
135
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
136
136
  isBindingEnabled: boolean;
137
137
  isMidpointSnappingEnabled: boolean;
138
+ gridModeEnabled: boolean;
138
139
  suggestedBinding: {
139
140
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
140
141
  midPoint?: import("@excalidraw/math").GlobalPoint;
141
142
  } | null;
143
+ hoveredArrowTextAnchor: {
144
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
145
+ anchor: "start" | "end" | "label";
146
+ } | null;
142
147
  isRotating: boolean;
143
148
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
144
149
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
@@ -158,8 +163,8 @@ export declare const actionLoadScene: {
158
163
  shouldCacheIgnoreZoom: boolean;
159
164
  exportScale: number;
160
165
  currentItemArrowType: "sharp" | "round" | "elbow";
161
- bindMode: import("@excalidraw/element/types").BindMode;
162
166
  gridSize: number;
167
+ bindMode: import("@excalidraw/element/types").BindMode;
163
168
  contextMenu: {
164
169
  items: import("../components/ContextMenu").ContextMenuItems;
165
170
  top: number;
@@ -171,7 +176,8 @@ export declare const actionLoadScene: {
171
176
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
172
177
  boxSelectionMode: import("../types").BoxSelectionMode;
173
178
  bindingPreference: "enabled" | "disabled";
174
- editingFrame: string | null;
179
+ inputDevice: import("../types").InputDevice;
180
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
175
181
  preferredSelectionTool: {
176
182
  type: "selection" | "lasso";
177
183
  initialized: boolean;
@@ -182,6 +188,8 @@ export declare const actionLoadScene: {
182
188
  exportEmbedScene: boolean;
183
189
  exportWithDarkMode: boolean;
184
190
  currentItemStrokeColor: string;
191
+ currentItemStickynoteStrokeColor: string;
192
+ currentItemStickynoteBackgroundColor: string;
185
193
  currentItemBackgroundColor: string;
186
194
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
187
195
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -218,7 +226,6 @@ export declare const actionLoadScene: {
218
226
  duration?: number;
219
227
  } | null;
220
228
  gridStep: number;
221
- gridModeEnabled: boolean;
222
229
  fileHandle: FileSystemFileHandle | null;
223
230
  stats: {
224
231
  open: boolean;
@@ -230,11 +237,17 @@ export declare const actionLoadScene: {
230
237
  y: number;
231
238
  } | null;
232
239
  objectsSnapModeEnabled: boolean;
233
- userToFollow: import("../types").UserToFollow | null;
234
- followedBy: Set<import("../types").SocketId>;
235
240
  lockedMultiSelections: {
236
241
  [groupId: string]: true;
237
242
  };
243
+ colorTopPicks: {
244
+ elementStroke: readonly string[] | null;
245
+ elementBackground: readonly string[] | null;
246
+ bucketFill: readonly string[] | null;
247
+ stickyNoteStroke: readonly string[] | null;
248
+ stickyNoteBackground: readonly string[] | null;
249
+ };
250
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
238
251
  };
239
252
  files: BinaryFiles;
240
253
  captureUpdate: "IMMEDIATELY";
@@ -261,10 +274,15 @@ export declare const actionLoadScene: {
261
274
  boxSelectionMode: import("../types").BoxSelectionMode;
262
275
  bindingPreference: "enabled" | "disabled";
263
276
  isMidpointSnappingEnabled: boolean;
277
+ inputDevice: import("../types").InputDevice;
264
278
  suggestedBinding: {
265
279
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
266
280
  midPoint?: import("@excalidraw/math").GlobalPoint;
267
281
  } | null;
282
+ hoveredArrowTextAnchor: {
283
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
284
+ anchor: "start" | "end" | "label";
285
+ } | null;
268
286
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
269
287
  frameRendering: {
270
288
  enabled: boolean;
@@ -272,7 +290,7 @@ export declare const actionLoadScene: {
272
290
  outline: boolean;
273
291
  clip: boolean;
274
292
  };
275
- editingFrame: string | null;
293
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
276
294
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
277
295
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
278
296
  activeTool: {
@@ -291,6 +309,8 @@ export declare const actionLoadScene: {
291
309
  exportWithDarkMode: boolean;
292
310
  exportScale: number;
293
311
  currentItemStrokeColor: string;
312
+ currentItemStickynoteStrokeColor: string;
313
+ currentItemStickynoteBackgroundColor: string;
294
314
  currentItemBackgroundColor: string;
295
315
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
296
316
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -385,8 +405,6 @@ export declare const actionLoadScene: {
385
405
  y: number;
386
406
  } | null;
387
407
  objectsSnapModeEnabled: boolean;
388
- userToFollow: import("../types").UserToFollow | null;
389
- followedBy: Set<import("../types").SocketId>;
390
408
  isCropping: boolean;
391
409
  croppingElementId: ExcalidrawElement["id"] | null;
392
410
  searchMatches: Readonly<{
@@ -398,6 +416,14 @@ export declare const actionLoadScene: {
398
416
  [groupId: string]: true;
399
417
  };
400
418
  bindMode: import("@excalidraw/element/types").BindMode;
419
+ colorTopPicks: {
420
+ elementStroke: readonly string[] | null;
421
+ elementBackground: readonly string[] | null;
422
+ bucketFill: readonly string[] | null;
423
+ stickyNoteStroke: readonly string[] | null;
424
+ stickyNoteBackground: readonly string[] | null;
425
+ };
426
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
401
427
  };
402
428
  files: BinaryFiles;
403
429
  captureUpdate: "EVENTUALLY";
@@ -6,6 +6,7 @@ type FormData = {
6
6
  x: number;
7
7
  y: number;
8
8
  };
9
+ hitBoundText?: boolean;
9
10
  };
10
11
  export declare const actionFinalize: import("./types").Action<FormData> & {
11
12
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
@@ -30,10 +30,15 @@ export declare const actionSelectAllElementsInFrame: {
30
30
  boxSelectionMode: import("../types").BoxSelectionMode;
31
31
  bindingPreference: "enabled" | "disabled";
32
32
  isMidpointSnappingEnabled: boolean;
33
+ inputDevice: import("../types").InputDevice;
33
34
  suggestedBinding: {
34
35
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
36
  midPoint?: import("@excalidraw/math").GlobalPoint;
36
37
  } | null;
38
+ hoveredArrowTextAnchor: {
39
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
40
+ anchor: "start" | "end" | "label";
41
+ } | null;
37
42
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
38
43
  frameRendering: {
39
44
  enabled: boolean;
@@ -41,7 +46,7 @@ export declare const actionSelectAllElementsInFrame: {
41
46
  outline: boolean;
42
47
  clip: boolean;
43
48
  };
44
- editingFrame: string | null;
49
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
45
50
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
46
51
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
47
52
  activeTool: {
@@ -60,6 +65,8 @@ export declare const actionSelectAllElementsInFrame: {
60
65
  exportWithDarkMode: boolean;
61
66
  exportScale: number;
62
67
  currentItemStrokeColor: string;
68
+ currentItemStickynoteStrokeColor: string;
69
+ currentItemStickynoteBackgroundColor: string;
63
70
  currentItemBackgroundColor: string;
64
71
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
65
72
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -151,8 +158,6 @@ export declare const actionSelectAllElementsInFrame: {
151
158
  y: number;
152
159
  } | null;
153
160
  objectsSnapModeEnabled: boolean;
154
- userToFollow: import("../types").UserToFollow | null;
155
- followedBy: Set<import("../types").SocketId>;
156
161
  isCropping: boolean;
157
162
  croppingElementId: ExcalidrawElement["id"] | null;
158
163
  searchMatches: Readonly<{
@@ -164,6 +169,14 @@ export declare const actionSelectAllElementsInFrame: {
164
169
  [groupId: string]: true;
165
170
  };
166
171
  bindMode: import("@excalidraw/element/types").BindMode;
172
+ colorTopPicks: {
173
+ elementStroke: readonly string[] | null;
174
+ elementBackground: readonly string[] | null;
175
+ bucketFill: readonly string[] | null;
176
+ stickyNoteStroke: readonly string[] | null;
177
+ stickyNoteBackground: readonly string[] | null;
178
+ };
179
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
167
180
  };
168
181
  captureUpdate: "IMMEDIATELY";
169
182
  } | {
@@ -207,10 +220,15 @@ export declare const actionRemoveAllElementsFromFrame: {
207
220
  boxSelectionMode: import("../types").BoxSelectionMode;
208
221
  bindingPreference: "enabled" | "disabled";
209
222
  isMidpointSnappingEnabled: boolean;
223
+ inputDevice: import("../types").InputDevice;
210
224
  suggestedBinding: {
211
225
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
212
226
  midPoint?: import("@excalidraw/math").GlobalPoint;
213
227
  } | null;
228
+ hoveredArrowTextAnchor: {
229
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
230
+ anchor: "start" | "end" | "label";
231
+ } | null;
214
232
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
215
233
  frameRendering: {
216
234
  enabled: boolean;
@@ -218,7 +236,7 @@ export declare const actionRemoveAllElementsFromFrame: {
218
236
  outline: boolean;
219
237
  clip: boolean;
220
238
  };
221
- editingFrame: string | null;
239
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
222
240
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
223
241
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
224
242
  activeTool: {
@@ -237,6 +255,8 @@ export declare const actionRemoveAllElementsFromFrame: {
237
255
  exportWithDarkMode: boolean;
238
256
  exportScale: number;
239
257
  currentItemStrokeColor: string;
258
+ currentItemStickynoteStrokeColor: string;
259
+ currentItemStickynoteBackgroundColor: string;
240
260
  currentItemBackgroundColor: string;
241
261
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
242
262
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -328,8 +348,6 @@ export declare const actionRemoveAllElementsFromFrame: {
328
348
  y: number;
329
349
  } | null;
330
350
  objectsSnapModeEnabled: boolean;
331
- userToFollow: import("../types").UserToFollow | null;
332
- followedBy: Set<import("../types").SocketId>;
333
351
  isCropping: boolean;
334
352
  croppingElementId: ExcalidrawElement["id"] | null;
335
353
  searchMatches: Readonly<{
@@ -341,6 +359,14 @@ export declare const actionRemoveAllElementsFromFrame: {
341
359
  [groupId: string]: true;
342
360
  };
343
361
  bindMode: import("@excalidraw/element/types").BindMode;
362
+ colorTopPicks: {
363
+ elementStroke: readonly string[] | null;
364
+ elementBackground: readonly string[] | null;
365
+ bucketFill: readonly string[] | null;
366
+ stickyNoteStroke: readonly string[] | null;
367
+ stickyNoteBackground: readonly string[] | null;
368
+ };
369
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
344
370
  };
345
371
  captureUpdate: "IMMEDIATELY";
346
372
  } | {
@@ -388,12 +414,17 @@ export declare const actionupdateFrameRendering: {
388
414
  boxSelectionMode: import("../types").BoxSelectionMode;
389
415
  bindingPreference: "enabled" | "disabled";
390
416
  isMidpointSnappingEnabled: boolean;
417
+ inputDevice: import("../types").InputDevice;
391
418
  suggestedBinding: {
392
419
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
393
420
  midPoint?: import("@excalidraw/math").GlobalPoint;
394
421
  } | null;
422
+ hoveredArrowTextAnchor: {
423
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
424
+ anchor: "start" | "end" | "label";
425
+ } | null;
395
426
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
396
- editingFrame: string | null;
427
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
397
428
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
398
429
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
399
430
  activeTool: {
@@ -412,6 +443,8 @@ export declare const actionupdateFrameRendering: {
412
443
  exportWithDarkMode: boolean;
413
444
  exportScale: number;
414
445
  currentItemStrokeColor: string;
446
+ currentItemStickynoteStrokeColor: string;
447
+ currentItemStickynoteBackgroundColor: string;
415
448
  currentItemBackgroundColor: string;
416
449
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
417
450
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -506,8 +539,6 @@ export declare const actionupdateFrameRendering: {
506
539
  y: number;
507
540
  } | null;
508
541
  objectsSnapModeEnabled: boolean;
509
- userToFollow: import("../types").UserToFollow | null;
510
- followedBy: Set<import("../types").SocketId>;
511
542
  isCropping: boolean;
512
543
  croppingElementId: ExcalidrawElement["id"] | null;
513
544
  searchMatches: Readonly<{
@@ -519,6 +550,14 @@ export declare const actionupdateFrameRendering: {
519
550
  [groupId: string]: true;
520
551
  };
521
552
  bindMode: import("@excalidraw/element/types").BindMode;
553
+ colorTopPicks: {
554
+ elementStroke: readonly string[] | null;
555
+ elementBackground: readonly string[] | null;
556
+ bucketFill: readonly string[] | null;
557
+ stickyNoteStroke: readonly string[] | null;
558
+ stickyNoteBackground: readonly string[] | null;
559
+ };
560
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
522
561
  };
523
562
  captureUpdate: "EVENTUALLY";
524
563
  };
@@ -526,181 +565,6 @@ export declare const actionupdateFrameRendering: {
526
565
  } & {
527
566
  keyTest?: undefined;
528
567
  };
529
- export declare const actionSetFrameAsActiveTool: {
530
- name: "setFrameAsActiveTool";
531
- label: string;
532
- trackEvent: {
533
- category: "toolbar";
534
- };
535
- icon: import("react/jsx-runtime").JSX.Element;
536
- viewMode: false;
537
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
538
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
539
- appState: {
540
- activeTool: {
541
- lastActiveTool: import("../types").ActiveTool | null;
542
- locked: boolean;
543
- fromSelection: boolean;
544
- } & import("../types").ActiveTool;
545
- contextMenu: {
546
- items: import("../components/ContextMenu").ContextMenuItems;
547
- top: number;
548
- left: number;
549
- } | null;
550
- showWelcomeScreen: boolean;
551
- isLoading: boolean;
552
- errorMessage: React.ReactNode;
553
- activeEmbeddable: {
554
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
555
- state: "hover" | "active";
556
- } | null;
557
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
558
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
559
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
560
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
561
- isBindingEnabled: boolean;
562
- boxSelectionMode: import("../types").BoxSelectionMode;
563
- bindingPreference: "enabled" | "disabled";
564
- isMidpointSnappingEnabled: boolean;
565
- suggestedBinding: {
566
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
567
- midPoint?: import("@excalidraw/math").GlobalPoint;
568
- } | null;
569
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
570
- frameRendering: {
571
- enabled: boolean;
572
- name: boolean;
573
- outline: boolean;
574
- clip: boolean;
575
- };
576
- editingFrame: string | null;
577
- elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
578
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
579
- preferredSelectionTool: {
580
- type: "selection" | "lasso";
581
- initialized: boolean;
582
- };
583
- penMode: boolean;
584
- penDetected: boolean;
585
- exportBackground: boolean;
586
- exportEmbedScene: boolean;
587
- exportWithDarkMode: boolean;
588
- exportScale: number;
589
- currentItemStrokeColor: string;
590
- currentItemBackgroundColor: string;
591
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
592
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
593
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
594
- currentItemRoughness: number;
595
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
596
- currentItemOpacity: number;
597
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
598
- currentItemFontSize: number;
599
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
600
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
601
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
602
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
603
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
604
- currentItemArrowType: "sharp" | "round" | "elbow";
605
- viewBackgroundColor: string;
606
- scrollX: number;
607
- scrollY: number;
608
- scrollConstraints: import("../types").ScrollConstraints | null;
609
- cursorButton: "up" | "down";
610
- scrolledOutside: boolean;
611
- name: string | null;
612
- isResizing: boolean;
613
- isRotating: boolean;
614
- zoom: import("../types").Zoom;
615
- openMenu: "canvas" | null;
616
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
617
- openSidebar: {
618
- name: import("../types").SidebarName;
619
- tab?: import("../types").SidebarTabName;
620
- } | null;
621
- openDialog: null | {
622
- name: "imageExport" | "help" | "jsonExport";
623
- } | {
624
- name: "ttd";
625
- tab: "text-to-diagram" | "mermaid";
626
- } | {
627
- name: "commandPalette";
628
- } | {
629
- name: "settings";
630
- } | {
631
- name: "elementLinkSelector";
632
- sourceElementId: ExcalidrawElement["id"];
633
- } | {
634
- name: "charts";
635
- data: import("../charts").Spreadsheet;
636
- rawText: string;
637
- };
638
- defaultSidebarDockedPreference: boolean;
639
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
640
- selectedElementIds: Readonly<{
641
- [id: string]: true;
642
- }>;
643
- hoveredElementIds: Readonly<{
644
- [id: string]: true;
645
- }>;
646
- previousSelectedElementIds: {
647
- [id: string]: true;
648
- };
649
- selectedElementsAreBeingDragged: boolean;
650
- shouldCacheIgnoreZoom: boolean;
651
- toast: {
652
- message: React.ReactNode;
653
- closable?: boolean;
654
- duration?: number;
655
- } | null;
656
- zenModeEnabled: boolean;
657
- theme: import("@excalidraw/element/types").Theme;
658
- gridSize: number;
659
- gridStep: number;
660
- gridModeEnabled: boolean;
661
- viewModeEnabled: boolean;
662
- selectedGroupIds: {
663
- [groupId: string]: boolean;
664
- };
665
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
666
- width: number;
667
- height: number;
668
- offsetTop: number;
669
- offsetLeft: number;
670
- fileHandle: FileSystemFileHandle | null;
671
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
672
- stats: {
673
- open: boolean;
674
- panels: number;
675
- };
676
- showHyperlinkPopup: false | "info" | "editor";
677
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
678
- snapLines: readonly import("../snapping").SnapLine[];
679
- originSnapOffset: {
680
- x: number;
681
- y: number;
682
- } | null;
683
- objectsSnapModeEnabled: boolean;
684
- userToFollow: import("../types").UserToFollow | null;
685
- followedBy: Set<import("../types").SocketId>;
686
- isCropping: boolean;
687
- croppingElementId: ExcalidrawElement["id"] | null;
688
- searchMatches: Readonly<{
689
- focusedId: ExcalidrawElement["id"] | null;
690
- matches: readonly import("../types").SearchMatch[];
691
- }> | null;
692
- activeLockedId: string | null;
693
- lockedMultiSelections: {
694
- [groupId: string]: true;
695
- };
696
- bindMode: import("@excalidraw/element/types").BindMode;
697
- };
698
- captureUpdate: "EVENTUALLY";
699
- };
700
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
701
- } & {
702
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
703
- };
704
568
  export declare const actionWrapSelectionInFrame: {
705
569
  name: "wrapSelectionInFrame";
706
570
  label: string;
@@ -736,6 +600,7 @@ export declare const actionWrapSelectionInFrame: {
736
600
  frameId: string | null;
737
601
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
738
602
  updated: number;
603
+ created: number | null;
739
604
  link: string | null;
740
605
  locked: boolean;
741
606
  customData?: Record<string, any>;
@@ -775,6 +640,7 @@ export declare const actionWrapSelectionInFrame: {
775
640
  frameId: string | null;
776
641
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
777
642
  updated: number;
643
+ created: number | null;
778
644
  link: string | null;
779
645
  locked: boolean;
780
646
  customData?: Record<string, any>;
@@ -809,6 +675,7 @@ export declare const actionWrapSelectionInFrame: {
809
675
  frameId: string | null;
810
676
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
811
677
  updated: number;
678
+ created: number | null;
812
679
  link: string | null;
813
680
  locked: boolean;
814
681
  customData?: Record<string, any>;
@@ -843,6 +710,43 @@ export declare const actionWrapSelectionInFrame: {
843
710
  frameId: string | null;
844
711
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
845
712
  updated: number;
713
+ created: number | null;
714
+ link: string | null;
715
+ locked: boolean;
716
+ customData?: Record<string, any>;
717
+ }> & Readonly<{
718
+ type: "stickynote";
719
+ baseHeight: number;
720
+ }> & {
721
+ index: import("@excalidraw/element/types").FractionalIndex;
722
+ }) | (Readonly<{
723
+ id: string;
724
+ x: number;
725
+ y: number;
726
+ strokeColor: string;
727
+ backgroundColor: string;
728
+ fillStyle: import("@excalidraw/element/types").FillStyle;
729
+ strokeWidth: number;
730
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
731
+ roundness: null | {
732
+ type: import("@excalidraw/element/types").RoundnessType;
733
+ value?: number;
734
+ };
735
+ roughness: number;
736
+ opacity: number;
737
+ width: number;
738
+ height: number;
739
+ angle: import("@excalidraw/math").Radians;
740
+ seed: number;
741
+ version: number;
742
+ versionNonce: number;
743
+ index: import("@excalidraw/element/types").FractionalIndex | null;
744
+ isDeleted: boolean;
745
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
746
+ frameId: string | null;
747
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
748
+ updated: number;
749
+ created: number | null;
846
750
  link: string | null;
847
751
  locked: boolean;
848
752
  customData?: Record<string, any>;
@@ -877,6 +781,7 @@ export declare const actionWrapSelectionInFrame: {
877
781
  frameId: string | null;
878
782
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
879
783
  updated: number;
784
+ created: number | null;
880
785
  link: string | null;
881
786
  locked: boolean;
882
787
  customData?: Record<string, any>;
@@ -911,6 +816,7 @@ export declare const actionWrapSelectionInFrame: {
911
816
  frameId: string | null;
912
817
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
913
818
  updated: number;
819
+ created: number | null;
914
820
  link: string | null;
915
821
  locked: boolean;
916
822
  customData?: Record<string, any>;
@@ -945,6 +851,7 @@ export declare const actionWrapSelectionInFrame: {
945
851
  frameId: string | null;
946
852
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
947
853
  updated: number;
854
+ created: number | null;
948
855
  link: string | null;
949
856
  locked: boolean;
950
857
  customData?: Record<string, any>;
@@ -982,6 +889,7 @@ export declare const actionWrapSelectionInFrame: {
982
889
  frameId: string | null;
983
890
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
984
891
  updated: number;
892
+ created: number | null;
985
893
  link: string | null;
986
894
  locked: boolean;
987
895
  customData?: Record<string, any>;
@@ -1020,6 +928,7 @@ export declare const actionWrapSelectionInFrame: {
1020
928
  frameId: string | null;
1021
929
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1022
930
  updated: number;
931
+ created: number | null;
1023
932
  link: string | null;
1024
933
  locked: boolean;
1025
934
  customData?: Record<string, any>;
@@ -1055,6 +964,7 @@ export declare const actionWrapSelectionInFrame: {
1055
964
  frameId: string | null;
1056
965
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1057
966
  updated: number;
967
+ created: number | null;
1058
968
  link: string | null;
1059
969
  locked: boolean;
1060
970
  customData?: Record<string, any>;
@@ -1090,6 +1000,7 @@ export declare const actionWrapSelectionInFrame: {
1090
1000
  frameId: string | null;
1091
1001
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1092
1002
  updated: number;
1003
+ created: number | null;
1093
1004
  link: string | null;
1094
1005
  locked: boolean;
1095
1006
  customData?: Record<string, any>;
@@ -1097,15 +1008,17 @@ export declare const actionWrapSelectionInFrame: {
1097
1008
  type: "text";
1098
1009
  fontSize: number;
1099
1010
  fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1011
+ baseFontSize: number | null;
1100
1012
  text: string;
1101
1013
  textAlign: import("@excalidraw/element/types").TextAlign;
1102
1014
  verticalAlign: import("@excalidraw/element/types").VerticalAlign;
1103
- containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
1015
+ containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
1104
1016
  originalText: string;
1105
1017
  autoResize: boolean;
1106
1018
  lineHeight: number & {
1107
1019
  _brand: "unitlessLineHeight";
1108
1020
  };
1021
+ labelPosition?: number | null;
1109
1022
  }> & {
1110
1023
  index: import("@excalidraw/element/types").FractionalIndex;
1111
1024
  }) | (Readonly<{
@@ -1135,6 +1048,7 @@ export declare const actionWrapSelectionInFrame: {
1135
1048
  frameId: string | null;
1136
1049
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1137
1050
  updated: number;
1051
+ created: number | null;
1138
1052
  link: string | null;
1139
1053
  locked: boolean;
1140
1054
  customData?: Record<string, any>;