@myoc/element 0.19.521 → 0.19.522

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 (153) hide show
  1. package/dist/dev/index.js +3049 -1222
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +17 -17
  4. package/dist/types/common/src/colors.d.ts +14 -0
  5. package/dist/types/common/src/constants.d.ts +3 -0
  6. package/dist/types/common/src/keys.d.ts +2 -0
  7. package/dist/types/common/src/points.d.ts +1 -1
  8. package/dist/types/common/src/utils.d.ts +1 -1
  9. package/dist/types/element/src/Scene.d.ts +1 -1
  10. package/dist/types/element/src/align.d.ts +2 -2
  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 +17 -8
  14. package/dist/types/element/src/bounds.d.ts +5 -9
  15. package/dist/types/element/src/bucketFill.d.ts +110 -0
  16. package/dist/types/element/src/collision.d.ts +1 -1
  17. package/dist/types/element/src/comparisons.d.ts +4 -4
  18. package/dist/types/element/src/convertToShape.d.ts +23 -0
  19. package/dist/types/element/src/distribute.d.ts +2 -2
  20. package/dist/types/element/src/dragElements.d.ts +27 -0
  21. package/dist/types/element/src/duplicate.d.ts +3 -3
  22. package/dist/types/element/src/embeddable.d.ts +2 -2
  23. package/dist/types/element/src/flowchart.d.ts +7 -7
  24. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  25. package/dist/types/element/src/frame.d.ts +4 -4
  26. package/dist/types/element/src/groups.d.ts +9 -9
  27. package/dist/types/element/src/index.d.ts +4 -1
  28. package/dist/types/element/src/linearElementEditor.d.ts +17 -10
  29. package/dist/types/element/src/newElement.d.ts +13 -0
  30. package/dist/types/element/src/renderElement.d.ts +0 -3
  31. package/dist/types/element/src/resizeElements.d.ts +2 -2
  32. package/dist/types/element/src/selection.d.ts +5 -5
  33. package/dist/types/element/src/shape.d.ts +12 -0
  34. package/dist/types/element/src/sortElements.d.ts +10 -0
  35. package/dist/types/element/src/textElement.d.ts +12 -9
  36. package/dist/types/element/src/transform.d.ts +2 -2
  37. package/dist/types/element/src/typeChecks.d.ts +25 -25
  38. package/dist/types/element/src/types.d.ts +2 -1
  39. package/dist/types/element/src/zindex.d.ts +2 -2
  40. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  41. package/dist/types/excalidraw/actions/actionBoundText.d.ts +24 -8
  42. package/dist/types/excalidraw/actions/actionCanvas.d.ts +128 -961
  43. package/dist/types/excalidraw/actions/actionClipboard.d.ts +24 -8
  44. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -4
  45. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +38 -13
  46. package/dist/types/excalidraw/actions/actionDeselect.d.ts +9 -4
  47. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  48. package/dist/types/excalidraw/actions/actionElementLink.d.ts +12 -4
  49. package/dist/types/excalidraw/actions/actionElementLock.d.ts +25 -9
  50. package/dist/types/excalidraw/actions/actionExport.d.ts +26 -10
  51. package/dist/types/excalidraw/actions/actionFrame.d.ts +47 -205
  52. package/dist/types/excalidraw/actions/actionGroup.d.ts +39 -23
  53. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -6
  54. package/dist/types/excalidraw/actions/actionLink.d.ts +13 -5
  55. package/dist/types/excalidraw/actions/actionMenu.d.ts +12 -4
  56. package/dist/types/excalidraw/actions/actionProperties.d.ts +43 -24
  57. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +17 -9
  58. package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -4
  59. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  60. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +14 -6
  61. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -9
  62. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +13 -5
  63. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -5
  64. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -9
  65. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -5
  66. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +14 -6
  67. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -5
  68. package/dist/types/excalidraw/actions/index.d.ts +1 -2
  69. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  70. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  71. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  72. package/dist/types/excalidraw/appState.d.ts +10 -5
  73. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  74. package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
  75. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  76. package/dist/types/excalidraw/components/App.cursor.d.ts +30 -0
  77. package/dist/types/excalidraw/components/App.d.ts +384 -60
  78. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  79. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  80. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  81. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  82. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  83. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
  84. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  85. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  86. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  87. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  88. package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +31 -0
  89. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
  90. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  91. package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
  92. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  93. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  94. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  95. package/dist/types/excalidraw/components/LockButton.d.ts +9 -0
  96. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  97. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  98. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  99. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  100. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  101. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  102. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  103. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  104. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  105. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  106. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  107. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  108. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  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 +146 -0
  112. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  113. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  114. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -0
  115. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  116. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  117. package/dist/types/excalidraw/components/icons.d.ts +4 -1
  118. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  119. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  120. package/dist/types/excalidraw/context/tunnels.d.ts +0 -1
  121. package/dist/types/excalidraw/data/blob.d.ts +14 -6
  122. package/dist/types/excalidraw/data/index.d.ts +4 -4
  123. package/dist/types/excalidraw/data/json.d.ts +20 -12
  124. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  125. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  126. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  127. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +10 -3
  128. package/dist/types/excalidraw/scene/Renderer.d.ts +11 -11
  129. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  130. package/dist/types/excalidraw/scene/index.d.ts +1 -1
  131. package/dist/types/excalidraw/scene/types.d.ts +4 -3
  132. package/dist/types/excalidraw/snapping.d.ts +7 -7
  133. package/dist/types/excalidraw/types.d.ts +423 -27
  134. package/dist/types/excalidraw/viewport.d.ts +283 -0
  135. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
  136. package/dist/types/laser-pointer/src/state.d.ts +1 -0
  137. package/dist/types/math/src/index.d.ts +1 -0
  138. package/dist/types/math/src/pca.d.ts +79 -0
  139. package/dist/types/math/src/polygon.d.ts +25 -1
  140. package/dist/types/utils/src/export.d.ts +3 -3
  141. package/package.json +4 -4
  142. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -180
  143. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +0 -16
  144. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +0 -27
  145. package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +0 -7
  146. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  147. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  148. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -10
  149. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -12
  150. package/dist/types/excalidraw/cursor.d.ts +0 -5
  151. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  152. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  153. package/dist/types/excalidraw/scroll.d.ts +0 -46
@@ -130,12 +130,17 @@ export declare const actionLoadScene: {
130
130
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
131
131
  isBindingEnabled: boolean;
132
132
  isMidpointSnappingEnabled: boolean;
133
+ gridModeEnabled: boolean;
133
134
  suggestedBinding: {
134
135
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
135
136
  midPoint?: import("@excalidraw/math").GlobalPoint;
136
137
  } | null;
138
+ hoveredArrowTextAnchor: {
139
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
140
+ anchor: "start" | "end" | "label";
141
+ } | null;
137
142
  isRotating: boolean;
138
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
143
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
139
144
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
140
145
  snapLines: readonly import("../snapping").SnapLine[];
141
146
  zenModeEnabled: boolean;
@@ -153,10 +158,9 @@ export declare const actionLoadScene: {
153
158
  shouldCacheIgnoreZoom: boolean;
154
159
  exportScale: number;
155
160
  currentItemArrowType: "sharp" | "round" | "elbow";
156
- bindMode: import("@excalidraw/element/types").BindMode;
157
161
  gridSize: number;
162
+ bindMode: import("@excalidraw/element/types").BindMode;
158
163
  viewModeOnly: boolean;
159
- gridModeEnabled: boolean;
160
164
  objectsSnapModeEnabled: boolean;
161
165
  wheelZoomsOnDefault?: boolean | undefined;
162
166
  selectedElementsAreBeingDragged: boolean;
@@ -184,7 +188,7 @@ export declare const actionLoadScene: {
184
188
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
185
189
  boxSelectionMode: import("../types").BoxSelectionMode;
186
190
  bindingPreference: "enabled" | "disabled";
187
- editingFrame: string | null;
191
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
188
192
  preferredSelectionTool: {
189
193
  type: "selection" | "lasso";
190
194
  initialized: boolean;
@@ -208,6 +212,7 @@ export declare const actionLoadScene: {
208
212
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
209
213
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
210
214
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
215
+ scrollConstraints: import("../types").ScrollConstraints | null;
211
216
  cursorButton: "up" | "down";
212
217
  scrolledOutside: boolean;
213
218
  isResizing: boolean;
@@ -237,11 +242,14 @@ export declare const actionLoadScene: {
237
242
  x: number;
238
243
  y: number;
239
244
  } | null;
240
- userToFollow: import("../types").UserToFollow | null;
241
- followedBy: Set<import("../types").SocketId>;
242
245
  lockedMultiSelections: {
243
246
  [groupId: string]: true;
244
247
  };
248
+ colorTopPicks: {
249
+ elementStroke: readonly string[] | null;
250
+ elementBackground: readonly string[] | null;
251
+ bucketFill: readonly string[] | null;
252
+ };
245
253
  };
246
254
  files: BinaryFiles;
247
255
  captureUpdate: "IMMEDIATELY";
@@ -284,6 +292,10 @@ export declare const actionLoadScene: {
284
292
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
285
293
  midPoint?: import("@excalidraw/math").GlobalPoint;
286
294
  } | null;
295
+ hoveredArrowTextAnchor: {
296
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
297
+ anchor: "start" | "end" | "label";
298
+ } | null;
287
299
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
288
300
  frameRendering: {
289
301
  enabled: boolean;
@@ -291,8 +303,8 @@ export declare const actionLoadScene: {
291
303
  outline: boolean;
292
304
  clip: boolean;
293
305
  };
294
- editingFrame: string | null;
295
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
306
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
307
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
296
308
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
297
309
  activeTool: {
298
310
  lastActiveTool: import("../types").ActiveTool | null;
@@ -328,6 +340,7 @@ export declare const actionLoadScene: {
328
340
  viewBackgroundColor: string;
329
341
  scrollX: number;
330
342
  scrollY: number;
343
+ scrollConstraints: import("../types").ScrollConstraints | null;
331
344
  cursorButton: "up" | "down";
332
345
  scrolledOutside: boolean;
333
346
  name: string | null;
@@ -399,8 +412,6 @@ export declare const actionLoadScene: {
399
412
  y: number;
400
413
  } | null;
401
414
  objectsSnapModeEnabled: boolean;
402
- userToFollow: import("../types").UserToFollow | null;
403
- followedBy: Set<import("../types").SocketId>;
404
415
  isCropping: boolean;
405
416
  croppingElementId: ExcalidrawElement["id"] | null;
406
417
  searchMatches: Readonly<{
@@ -412,6 +423,11 @@ export declare const actionLoadScene: {
412
423
  [groupId: string]: true;
413
424
  };
414
425
  bindMode: import("@excalidraw/element/types").BindMode;
426
+ colorTopPicks: {
427
+ elementStroke: readonly string[] | null;
428
+ elementBackground: readonly string[] | null;
429
+ bucketFill: readonly string[] | null;
430
+ };
415
431
  };
416
432
  files: BinaryFiles;
417
433
  captureUpdate: "EVENTUALLY";
@@ -1,12 +1,12 @@
1
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
2
- import type { AppClassProperties, AppState } from "../types";
2
+ import type { AppClassProperties, UIAppState } from "../types";
3
3
  export declare const actionSelectAllElementsInFrame: {
4
4
  name: "selectAllElementsInFrame";
5
5
  label: string;
6
6
  trackEvent: {
7
7
  category: "canvas";
8
8
  };
9
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
10
10
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
11
  appState: {
12
12
  selectedElementIds: Record<string, true>;
@@ -46,6 +46,10 @@ export declare const actionSelectAllElementsInFrame: {
46
46
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
47
47
  midPoint?: import("@excalidraw/math").GlobalPoint;
48
48
  } | null;
49
+ hoveredArrowTextAnchor: {
50
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
51
+ anchor: "start" | "end" | "label";
52
+ } | null;
49
53
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
50
54
  frameRendering: {
51
55
  enabled: boolean;
@@ -53,8 +57,8 @@ export declare const actionSelectAllElementsInFrame: {
53
57
  outline: boolean;
54
58
  clip: boolean;
55
59
  };
56
- editingFrame: string | null;
57
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
60
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
61
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
58
62
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
59
63
  activeTool: {
60
64
  lastActiveTool: import("../types").ActiveTool | null;
@@ -90,6 +94,7 @@ export declare const actionSelectAllElementsInFrame: {
90
94
  viewBackgroundColor: string;
91
95
  scrollX: number;
92
96
  scrollY: number;
97
+ scrollConstraints: import("../types").ScrollConstraints | null;
93
98
  cursorButton: "up" | "down";
94
99
  scrolledOutside: boolean;
95
100
  name: string | null;
@@ -158,8 +163,6 @@ export declare const actionSelectAllElementsInFrame: {
158
163
  y: number;
159
164
  } | null;
160
165
  objectsSnapModeEnabled: boolean;
161
- userToFollow: import("../types").UserToFollow | null;
162
- followedBy: Set<import("../types").SocketId>;
163
166
  isCropping: boolean;
164
167
  croppingElementId: ExcalidrawElement["id"] | null;
165
168
  searchMatches: Readonly<{
@@ -171,14 +174,19 @@ export declare const actionSelectAllElementsInFrame: {
171
174
  [groupId: string]: true;
172
175
  };
173
176
  bindMode: import("@excalidraw/element/types").BindMode;
177
+ colorTopPicks: {
178
+ elementStroke: readonly string[] | null;
179
+ elementBackground: readonly string[] | null;
180
+ bucketFill: readonly string[] | null;
181
+ };
174
182
  };
175
183
  captureUpdate: "IMMEDIATELY";
176
184
  } | {
177
185
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
178
- appState: Readonly<AppState>;
186
+ appState: Readonly<import("../types").AppState>;
179
187
  captureUpdate: "EVENTUALLY";
180
188
  };
181
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
189
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
182
190
  } & {
183
191
  keyTest?: undefined;
184
192
  };
@@ -188,7 +196,7 @@ export declare const actionRemoveAllElementsFromFrame: {
188
196
  trackEvent: {
189
197
  category: "history";
190
198
  };
191
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
199
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
192
200
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
193
201
  appState: {
194
202
  selectedElementIds: {
@@ -230,6 +238,10 @@ export declare const actionRemoveAllElementsFromFrame: {
230
238
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
231
239
  midPoint?: import("@excalidraw/math").GlobalPoint;
232
240
  } | null;
241
+ hoveredArrowTextAnchor: {
242
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
243
+ anchor: "start" | "end" | "label";
244
+ } | null;
233
245
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
234
246
  frameRendering: {
235
247
  enabled: boolean;
@@ -237,8 +249,8 @@ export declare const actionRemoveAllElementsFromFrame: {
237
249
  outline: boolean;
238
250
  clip: boolean;
239
251
  };
240
- editingFrame: string | null;
241
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
252
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
253
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
242
254
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
243
255
  activeTool: {
244
256
  lastActiveTool: import("../types").ActiveTool | null;
@@ -274,6 +286,7 @@ export declare const actionRemoveAllElementsFromFrame: {
274
286
  viewBackgroundColor: string;
275
287
  scrollX: number;
276
288
  scrollY: number;
289
+ scrollConstraints: import("../types").ScrollConstraints | null;
277
290
  cursorButton: "up" | "down";
278
291
  scrolledOutside: boolean;
279
292
  name: string | null;
@@ -342,8 +355,6 @@ export declare const actionRemoveAllElementsFromFrame: {
342
355
  y: number;
343
356
  } | null;
344
357
  objectsSnapModeEnabled: boolean;
345
- userToFollow: import("../types").UserToFollow | null;
346
- followedBy: Set<import("../types").SocketId>;
347
358
  isCropping: boolean;
348
359
  croppingElementId: ExcalidrawElement["id"] | null;
349
360
  searchMatches: Readonly<{
@@ -355,14 +366,19 @@ export declare const actionRemoveAllElementsFromFrame: {
355
366
  [groupId: string]: true;
356
367
  };
357
368
  bindMode: import("@excalidraw/element/types").BindMode;
369
+ colorTopPicks: {
370
+ elementStroke: readonly string[] | null;
371
+ elementBackground: readonly string[] | null;
372
+ bucketFill: readonly string[] | null;
373
+ };
358
374
  };
359
375
  captureUpdate: "IMMEDIATELY";
360
376
  } | {
361
377
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
362
- appState: Readonly<AppState>;
378
+ appState: Readonly<import("../types").AppState>;
363
379
  captureUpdate: "EVENTUALLY";
364
380
  };
365
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
381
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
366
382
  } & {
367
383
  keyTest?: undefined;
368
384
  };
@@ -373,7 +389,7 @@ export declare const actionupdateFrameRendering: {
373
389
  trackEvent: {
374
390
  category: "canvas";
375
391
  };
376
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
392
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
377
393
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
378
394
  appState: {
379
395
  frameRendering: {
@@ -418,9 +434,13 @@ export declare const actionupdateFrameRendering: {
418
434
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
419
435
  midPoint?: import("@excalidraw/math").GlobalPoint;
420
436
  } | null;
437
+ hoveredArrowTextAnchor: {
438
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
439
+ anchor: "start" | "end" | "label";
440
+ } | null;
421
441
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
422
- editingFrame: string | null;
423
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
442
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
443
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
424
444
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
425
445
  activeTool: {
426
446
  lastActiveTool: import("../types").ActiveTool | null;
@@ -456,6 +476,7 @@ export declare const actionupdateFrameRendering: {
456
476
  viewBackgroundColor: string;
457
477
  scrollX: number;
458
478
  scrollY: number;
479
+ scrollConstraints: import("../types").ScrollConstraints | null;
459
480
  cursorButton: "up" | "down";
460
481
  scrolledOutside: boolean;
461
482
  name: string | null;
@@ -527,8 +548,6 @@ export declare const actionupdateFrameRendering: {
527
548
  y: number;
528
549
  } | null;
529
550
  objectsSnapModeEnabled: boolean;
530
- userToFollow: import("../types").UserToFollow | null;
531
- followedBy: Set<import("../types").SocketId>;
532
551
  isCropping: boolean;
533
552
  croppingElementId: ExcalidrawElement["id"] | null;
534
553
  searchMatches: Readonly<{
@@ -540,194 +559,17 @@ export declare const actionupdateFrameRendering: {
540
559
  [groupId: string]: true;
541
560
  };
542
561
  bindMode: import("@excalidraw/element/types").BindMode;
543
- };
544
- captureUpdate: "EVENTUALLY";
545
- };
546
- checked: (appState: AppState) => boolean;
547
- } & {
548
- keyTest?: undefined;
549
- };
550
- export declare const actionSetFrameAsActiveTool: {
551
- name: "setFrameAsActiveTool";
552
- label: string;
553
- trackEvent: {
554
- category: "toolbar";
555
- };
556
- icon: import("react/jsx-runtime").JSX.Element;
557
- viewMode: false;
558
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
559
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
560
- appState: {
561
- activeTool: {
562
- lastActiveTool: import("../types").ActiveTool | null;
563
- locked: boolean;
564
- fromSelection: boolean;
565
- } & import("../types").ActiveTool;
566
- contextMenu: {
567
- items: import("../components/ContextMenu").ContextMenuItems;
568
- top: number;
569
- left: number;
570
- } | null;
571
- showWelcomeScreen: boolean;
572
- isLoading: boolean;
573
- myocSimplifiedMode: boolean;
574
- dontResizeLimitMBs: number;
575
- hideMainMenus: boolean;
576
- wheelZoomsOnDefault?: boolean;
577
- arrangeConfiguration: {
578
- algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
579
- gap: number;
580
- };
581
- normaliseConfiguration: {
582
- mode: import("../types").NormaliseMode;
583
- metric: import("../types").NormaliseMetric;
584
- };
585
- errorMessage: React.ReactNode;
586
- activeEmbeddable: {
587
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
588
- state: "hover" | "active";
589
- } | null;
590
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
591
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
592
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
593
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
594
- isBindingEnabled: boolean;
595
- boxSelectionMode: import("../types").BoxSelectionMode;
596
- bindingPreference: "enabled" | "disabled";
597
- isMidpointSnappingEnabled: boolean;
598
- suggestedBinding: {
599
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
600
- midPoint?: import("@excalidraw/math").GlobalPoint;
601
- } | null;
602
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
603
- frameRendering: {
604
- enabled: boolean;
605
- name: boolean;
606
- outline: boolean;
607
- clip: boolean;
608
- };
609
- editingFrame: string | null;
610
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
611
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
612
- preferredSelectionTool: {
613
- type: "selection" | "lasso";
614
- initialized: boolean;
615
- };
616
- penMode: boolean;
617
- penDetected: boolean;
618
- exportBackground: boolean;
619
- exportEmbedScene: boolean;
620
- exportWithDarkMode: boolean;
621
- exportScale: number;
622
- currentItemStrokeColor: string;
623
- currentItemBackgroundColor: string;
624
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
625
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
626
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
627
- currentItemRoughness: number;
628
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
629
- currentItemOpacity: number;
630
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
631
- currentItemFontSize: number;
632
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
633
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
634
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
635
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
636
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
637
- currentItemArrowType: "sharp" | "round" | "elbow";
638
- viewBackgroundColor: string;
639
- scrollX: number;
640
- scrollY: number;
641
- cursorButton: "up" | "down";
642
- scrolledOutside: boolean;
643
- name: string | null;
644
- isResizing: boolean;
645
- isRotating: boolean;
646
- zoom: import("../types").Zoom;
647
- openMenu: "canvas" | null;
648
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
649
- openSidebar: {
650
- name: import("../types").SidebarName;
651
- tab?: import("../types").SidebarTabName;
652
- } | null;
653
- openDialog: null | {
654
- name: "imageExport" | "help" | "jsonExport";
655
- } | {
656
- name: "settings";
657
- } | {
658
- name: "elementLinkSelector";
659
- sourceElementId: ExcalidrawElement["id"];
660
- } | {
661
- name: "charts";
662
- data: import("../charts").Spreadsheet;
663
- rawText: string;
664
- };
665
- defaultSidebarDockedPreference: boolean;
666
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
667
- selectedElementIds: Readonly<{
668
- [id: string]: true;
669
- }>;
670
- hoveredElementIds: Readonly<{
671
- [id: string]: true;
672
- }>;
673
- previousSelectedElementIds: {
674
- [id: string]: true;
675
- };
676
- selectedElementsAreBeingDragged: boolean;
677
- shouldCacheIgnoreZoom: boolean;
678
- toast: {
679
- message: React.ReactNode;
680
- closable?: boolean;
681
- duration?: number;
682
- } | null;
683
- zenModeEnabled: boolean;
684
- theme: import("@excalidraw/element/types").Theme;
685
- gridSize: number;
686
- gridStep: number;
687
- gridModeEnabled: boolean;
688
- viewModeEnabled: boolean;
689
- viewModeOnly: boolean;
690
- selectedGroupIds: {
691
- [groupId: string]: boolean;
692
- };
693
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
694
- width: number;
695
- height: number;
696
- offsetTop: number;
697
- offsetLeft: number;
698
- fileHandle: FileSystemFileHandle | null;
699
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
700
- stats: {
701
- open: boolean;
702
- panels: number;
703
- };
704
- showHyperlinkPopup: false | "info" | "editor";
705
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
706
- snapLines: readonly import("../snapping").SnapLine[];
707
- originSnapOffset: {
708
- x: number;
709
- y: number;
710
- } | null;
711
- objectsSnapModeEnabled: boolean;
712
- userToFollow: import("../types").UserToFollow | null;
713
- followedBy: Set<import("../types").SocketId>;
714
- isCropping: boolean;
715
- croppingElementId: ExcalidrawElement["id"] | null;
716
- searchMatches: Readonly<{
717
- focusedId: ExcalidrawElement["id"] | null;
718
- matches: readonly import("../types").SearchMatch[];
719
- }> | null;
720
- activeLockedId: string | null;
721
- lockedMultiSelections: {
722
- [groupId: string]: true;
562
+ colorTopPicks: {
563
+ elementStroke: readonly string[] | null;
564
+ elementBackground: readonly string[] | null;
565
+ bucketFill: readonly string[] | null;
723
566
  };
724
- bindMode: import("@excalidraw/element/types").BindMode;
725
567
  };
726
568
  captureUpdate: "EVENTUALLY";
727
569
  };
728
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false;
570
+ checked: (appState: Readonly<UIAppState>) => boolean;
729
571
  } & {
730
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false) | undefined;
572
+ keyTest?: undefined;
731
573
  };
732
574
  export declare const actionWrapSelectionInFrame: {
733
575
  name: "wrapSelectionInFrame";
@@ -735,8 +577,8 @@ export declare const actionWrapSelectionInFrame: {
735
577
  trackEvent: {
736
578
  category: "element";
737
579
  };
738
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
739
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
580
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
581
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
740
582
  elements: ((Readonly<{
741
583
  id: string;
742
584
  x: number;