@myoc/excalidraw 0.18.16 → 0.18.18

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 (179) hide show
  1. package/dist/dev/{chunk-3HLOFB5F.js → chunk-MAGRVBVM.js} +13453 -10629
  2. package/dist/dev/chunk-MAGRVBVM.js.map +7 -0
  3. package/dist/dev/{chunk-PEI7EPYO.js → chunk-QO4EFL6B.js} +15 -5
  4. package/dist/dev/chunk-QO4EFL6B.js.map +7 -0
  5. package/dist/dev/chunk-WUH7JFG4.js +7 -0
  6. package/dist/dev/chunk-WUH7JFG4.js.map +7 -0
  7. package/dist/dev/data/{image-XPEIZ6XQ.js → image-BBHDGXQ3.js} +3 -3
  8. package/dist/dev/index.css +101 -24
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +6587 -7610
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-R455UJTM.js → en-2WXBKZE2.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/chunk-4Z2WWUCC.js +7 -0
  16. package/dist/prod/chunk-KZXLT4YB.js +12 -0
  17. package/dist/prod/chunk-YBT3HBS6.js +33 -0
  18. package/dist/prod/data/image-JFILZTP3.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +18 -17
  21. package/dist/prod/locales/{en-YWERZJD6.js → en-XFR6MADM.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +19 -2
  25. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  26. package/dist/types/common/src/font-metadata.d.ts +4 -2
  27. package/dist/types/common/src/index.d.ts +1 -0
  28. package/dist/types/common/src/points.d.ts +1 -1
  29. package/dist/types/common/src/utility-types.d.ts +5 -0
  30. package/dist/types/common/src/utils.d.ts +17 -7
  31. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  32. package/dist/types/element/src/align.d.ts +3 -3
  33. package/dist/types/element/src/arrange.d.ts +2 -1
  34. package/dist/types/element/src/binding.d.ts +21 -14
  35. package/dist/types/element/src/bounds.d.ts +11 -5
  36. package/dist/types/element/src/collision.d.ts +18 -12
  37. package/dist/types/element/src/cropElement.d.ts +1 -1
  38. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +63 -38
  39. package/dist/types/element/src/distance.d.ts +2 -2
  40. package/dist/types/element/src/dragElements.d.ts +3 -2
  41. package/dist/types/element/src/elbowArrow.d.ts +2 -2
  42. package/dist/types/element/src/flowchart.d.ts +3 -2
  43. package/dist/types/element/src/fractionalIndex.d.ts +9 -3
  44. package/dist/types/element/src/frame.d.ts +4 -3
  45. package/dist/types/element/src/heading.d.ts +2 -2
  46. package/dist/types/element/src/index.d.ts +43 -2
  47. package/dist/types/element/src/linearElementEditor.d.ts +21 -32
  48. package/dist/types/element/src/mutateElement.d.ts +11 -3
  49. package/dist/types/element/src/newElement.d.ts +4 -3
  50. package/dist/types/element/src/resizeElements.d.ts +5 -4
  51. package/dist/types/element/src/resizeTest.d.ts +2 -2
  52. package/dist/types/element/src/selection.d.ts +1 -6
  53. package/dist/types/element/src/shape.d.ts +42 -0
  54. package/dist/types/element/src/shapes.d.ts +10 -10
  55. package/dist/types/element/src/sizeHelpers.d.ts +2 -2
  56. package/dist/types/element/src/store.d.ts +231 -0
  57. package/dist/types/element/src/textElement.d.ts +4 -3
  58. package/dist/types/element/src/typeChecks.d.ts +19 -1
  59. package/dist/types/element/src/types.d.ts +15 -2
  60. package/dist/types/element/src/utils.d.ts +5 -1
  61. package/dist/types/element/src/zindex.d.ts +1 -1
  62. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +42 -51
  63. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  64. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  65. package/dist/types/excalidraw/actions/actionBoundText.d.ts +28 -34
  66. package/dist/types/excalidraw/actions/actionCanvas.d.ts +187 -223
  67. package/dist/types/excalidraw/actions/actionClipboard.d.ts +87 -104
  68. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -17
  69. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +41 -49
  70. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  71. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  72. package/dist/types/excalidraw/actions/actionElementLink.d.ts +14 -17
  73. package/dist/types/excalidraw/actions/actionElementLock.d.ts +43 -50
  74. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +14 -17
  75. package/dist/types/excalidraw/actions/actionExport.d.ts +219 -246
  76. package/dist/types/excalidraw/actions/actionFinalize.d.ts +74 -40
  77. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  78. package/dist/types/excalidraw/actions/actionFrame.d.ts +100 -112
  79. package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -40
  80. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  81. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +506 -16
  82. package/dist/types/excalidraw/actions/actionLink.d.ts +14 -17
  83. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -51
  84. package/dist/types/excalidraw/actions/actionNavigate.d.ts +27 -33
  85. package/dist/types/excalidraw/actions/actionProperties.d.ts +206 -243
  86. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +16 -19
  87. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/actionStyles.d.ts +18 -21
  89. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -19
  90. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -19
  91. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -200
  92. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  93. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -19
  94. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -19
  95. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -19
  96. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  97. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  98. package/dist/types/excalidraw/appState.d.ts +40 -31
  99. package/dist/types/excalidraw/components/App.d.ts +15 -17
  100. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  101. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  102. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  103. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  105. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  106. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  107. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  108. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  109. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  110. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  111. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  112. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  113. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  114. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  117. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  118. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  119. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  124. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  125. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  126. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  127. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  128. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  129. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  130. package/dist/types/excalidraw/components/icons.d.ts +3 -0
  131. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  132. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  133. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  134. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  135. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  136. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  137. package/dist/types/excalidraw/history.d.ts +30 -22
  138. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  139. package/dist/types/excalidraw/index.d.ts +9 -9
  140. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  141. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  142. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  143. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  144. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  145. package/dist/types/excalidraw/snapping.d.ts +2 -2
  146. package/dist/types/excalidraw/types.d.ts +25 -10
  147. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  148. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  149. package/dist/types/math/src/angle.d.ts +3 -1
  150. package/dist/types/math/src/constants.d.ts +3 -0
  151. package/dist/types/math/src/curve.d.ts +34 -0
  152. package/dist/types/math/src/ellipse.d.ts +3 -3
  153. package/dist/types/math/src/index.d.ts +1 -0
  154. package/dist/types/math/src/point.d.ts +3 -3
  155. package/dist/types/math/src/polygon.d.ts +2 -2
  156. package/dist/types/math/src/segment.d.ts +5 -5
  157. package/dist/types/math/src/utils.d.ts +2 -0
  158. package/dist/types/math/src/vector.d.ts +8 -2
  159. package/dist/types/utils/src/bbox.d.ts +1 -1
  160. package/dist/types/utils/src/index.d.ts +1 -1
  161. package/dist/types/utils/src/shape.d.ts +12 -12
  162. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  163. package/history.ts +147 -110
  164. package/package.json +4 -4
  165. package/dist/dev/chunk-3HLOFB5F.js.map +0 -7
  166. package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
  167. package/dist/dev/chunk-QQGTICP4.js +0 -7
  168. package/dist/dev/chunk-QQGTICP4.js.map +0 -7
  169. package/dist/prod/chunk-7HNFGNL7.js +0 -7
  170. package/dist/prod/chunk-KKQVTSHB.js +0 -33
  171. package/dist/prod/chunk-KZWZ7WHC.js +0 -12
  172. package/dist/prod/data/image-QD7FUQED.js +0 -1
  173. package/dist/types/element/src/Shape.d.ts +0 -17
  174. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  175. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  176. package/dist/types/excalidraw/store.d.ts +0 -129
  177. package/dist/types/utils/src/collision.d.ts +0 -8
  178. /package/dist/dev/data/{image-XPEIZ6XQ.js.map → image-BBHDGXQ3.js.map} +0 -0
  179. /package/dist/dev/locales/{en-R455UJTM.js.map → en-2WXBKZE2.js.map} +0 -0
@@ -1,7 +1,6 @@
1
1
  import type { History } from "../history";
2
- import type { Store } from "../store";
3
2
  import type { Action } from "./types";
4
- type ActionCreator = (history: History, store: Store) => Action;
3
+ type ActionCreator = (history: History) => Action;
5
4
  export declare const createUndoAction: ActionCreator;
6
5
  export declare const createRedoAction: ActionCreator;
7
6
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
2
+ import { LinearElementEditor } from "@excalidraw/element";
3
3
  import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
4
4
  export declare const actionToggleLinearEditor: {
5
5
  name: "toggleLinearEditor";
@@ -39,7 +39,7 @@ export declare const actionToggleLinearEditor: {
39
39
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
40
  isBindingEnabled: boolean;
41
41
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
42
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
42
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
43
43
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
44
44
  frameRendering: {
45
45
  enabled: boolean;
@@ -75,7 +75,7 @@ export declare const actionToggleLinearEditor: {
75
75
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
76
76
  currentHoveredFontFamily: number | null;
77
77
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
78
- currentItemArrowType: "round" | "sharp" | "elbow";
78
+ currentItemArrowType: "sharp" | "round" | "elbow";
79
79
  viewBackgroundColor: string;
80
80
  scrollX: number;
81
81
  scrollY: number;
@@ -87,7 +87,7 @@ export declare const actionToggleLinearEditor: {
87
87
  zoom: Readonly<{
88
88
  value: import("../types").NormalizedZoomValue;
89
89
  }>;
90
- openMenu: "shape" | "canvas" | null;
90
+ openMenu: "canvas" | "shape" | null;
91
91
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
92
92
  openSidebar: {
93
93
  name: string;
@@ -169,8 +169,7 @@ export declare const actionToggleLinearEditor: {
169
169
  shown: true;
170
170
  data: import("../charts").Spreadsheet;
171
171
  };
172
- pendingImageElementId: string | null;
173
- showHyperlinkPopup: false | "editor" | "info";
172
+ showHyperlinkPopup: false | "info" | "editor";
174
173
  selectedLinearElement: LinearElementEditor | null;
175
174
  snapLines: readonly import("../snapping").SnapLine[];
176
175
  originSnapOffset: {
@@ -182,16 +181,14 @@ export declare const actionToggleLinearEditor: {
182
181
  followedBy: Set<import("../types").SocketId>;
183
182
  isCropping: boolean;
184
183
  croppingElementId: string | null;
185
- searchMatches: readonly {
186
- id: string;
187
- focus: boolean;
188
- matchedLines: {
189
- offsetX: number;
190
- offsetY: number;
191
- width: number;
192
- height: number;
193
- }[];
194
- }[];
184
+ searchMatches: Readonly<{
185
+ focusedId: string | null;
186
+ matches: readonly import("../types").SearchMatch[];
187
+ }> | null;
188
+ activeLockedId: string | null;
189
+ lockedMultiSelections: {
190
+ [groupId: string]: true;
191
+ };
195
192
  };
196
193
  captureUpdate: "IMMEDIATELY";
197
194
  };
@@ -199,3 +196,496 @@ export declare const actionToggleLinearEditor: {
199
196
  } & {
200
197
  keyTest?: undefined;
201
198
  };
199
+ export declare const actionTogglePolygon: {
200
+ name: "togglePolygon";
201
+ category: string;
202
+ icon: import("react/jsx-runtime").JSX.Element;
203
+ keywords: string[];
204
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
205
+ trackEvent: {
206
+ category: "element";
207
+ };
208
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
209
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): false | {
210
+ elements: ((Readonly<{
211
+ id: string;
212
+ x: number;
213
+ y: number;
214
+ strokeColor: string;
215
+ backgroundColor: string;
216
+ fillStyle: import("@excalidraw/element/types").FillStyle;
217
+ strokeWidth: number;
218
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
219
+ roundness: {
220
+ type: import("@excalidraw/element/types").RoundnessType;
221
+ value?: number | undefined;
222
+ } | null;
223
+ roughness: number;
224
+ opacity: number;
225
+ width: number;
226
+ height: number;
227
+ angle: import("@excalidraw/math").Radians;
228
+ seed: number;
229
+ version: number;
230
+ versionNonce: number;
231
+ index: import("@excalidraw/element/types").FractionalIndex | null;
232
+ isDeleted: boolean;
233
+ groupIds: readonly string[];
234
+ frameId: string | null;
235
+ boundElements: readonly Readonly<{
236
+ id: string;
237
+ type: "text" | "arrow";
238
+ }>[] | null;
239
+ updated: number;
240
+ link: string | null;
241
+ locked: boolean;
242
+ customData?: Record<string, any> | undefined;
243
+ }> & {
244
+ type: "selection";
245
+ } & {
246
+ index: import("@excalidraw/element/types").FractionalIndex;
247
+ }) | (Readonly<{
248
+ id: string;
249
+ x: number;
250
+ y: number;
251
+ strokeColor: string;
252
+ backgroundColor: string;
253
+ fillStyle: import("@excalidraw/element/types").FillStyle;
254
+ strokeWidth: number;
255
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
256
+ roundness: {
257
+ type: import("@excalidraw/element/types").RoundnessType;
258
+ value?: number | undefined;
259
+ } | null;
260
+ roughness: number;
261
+ opacity: number;
262
+ width: number;
263
+ height: number;
264
+ angle: import("@excalidraw/math").Radians;
265
+ seed: number;
266
+ version: number;
267
+ versionNonce: number;
268
+ index: import("@excalidraw/element/types").FractionalIndex | null;
269
+ isDeleted: boolean;
270
+ groupIds: readonly string[];
271
+ frameId: string | null;
272
+ boundElements: readonly Readonly<{
273
+ id: string;
274
+ type: "text" | "arrow";
275
+ }>[] | null;
276
+ updated: number;
277
+ link: string | null;
278
+ locked: boolean;
279
+ customData?: Record<string, any> | undefined;
280
+ }> & {
281
+ type: "rectangle";
282
+ } & {
283
+ index: import("@excalidraw/element/types").FractionalIndex;
284
+ }) | (Readonly<{
285
+ id: string;
286
+ x: number;
287
+ y: number;
288
+ strokeColor: string;
289
+ backgroundColor: string;
290
+ fillStyle: import("@excalidraw/element/types").FillStyle;
291
+ strokeWidth: number;
292
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
293
+ roundness: {
294
+ type: import("@excalidraw/element/types").RoundnessType;
295
+ value?: number | undefined;
296
+ } | null;
297
+ roughness: number;
298
+ opacity: number;
299
+ width: number;
300
+ height: number;
301
+ angle: import("@excalidraw/math").Radians;
302
+ seed: number;
303
+ version: number;
304
+ versionNonce: number;
305
+ index: import("@excalidraw/element/types").FractionalIndex | null;
306
+ isDeleted: boolean;
307
+ groupIds: readonly string[];
308
+ frameId: string | null;
309
+ boundElements: readonly Readonly<{
310
+ id: string;
311
+ type: "text" | "arrow";
312
+ }>[] | null;
313
+ updated: number;
314
+ link: string | null;
315
+ locked: boolean;
316
+ customData?: Record<string, any> | undefined;
317
+ }> & {
318
+ type: "diamond";
319
+ } & {
320
+ index: import("@excalidraw/element/types").FractionalIndex;
321
+ }) | (Readonly<{
322
+ id: string;
323
+ x: number;
324
+ y: number;
325
+ strokeColor: string;
326
+ backgroundColor: string;
327
+ fillStyle: import("@excalidraw/element/types").FillStyle;
328
+ strokeWidth: number;
329
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
330
+ roundness: {
331
+ type: import("@excalidraw/element/types").RoundnessType;
332
+ value?: number | undefined;
333
+ } | null;
334
+ roughness: number;
335
+ opacity: number;
336
+ width: number;
337
+ height: number;
338
+ angle: import("@excalidraw/math").Radians;
339
+ seed: number;
340
+ version: number;
341
+ versionNonce: number;
342
+ index: import("@excalidraw/element/types").FractionalIndex | null;
343
+ isDeleted: boolean;
344
+ groupIds: readonly string[];
345
+ frameId: string | null;
346
+ boundElements: readonly Readonly<{
347
+ id: string;
348
+ type: "text" | "arrow";
349
+ }>[] | null;
350
+ updated: number;
351
+ link: string | null;
352
+ locked: boolean;
353
+ customData?: Record<string, any> | undefined;
354
+ }> & {
355
+ type: "ellipse";
356
+ } & {
357
+ index: import("@excalidraw/element/types").FractionalIndex;
358
+ }) | (Readonly<{
359
+ id: string;
360
+ x: number;
361
+ y: number;
362
+ strokeColor: string;
363
+ backgroundColor: string;
364
+ fillStyle: import("@excalidraw/element/types").FillStyle;
365
+ strokeWidth: number;
366
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
367
+ roundness: {
368
+ type: import("@excalidraw/element/types").RoundnessType;
369
+ value?: number | undefined;
370
+ } | null;
371
+ roughness: number;
372
+ opacity: number;
373
+ width: number;
374
+ height: number;
375
+ angle: import("@excalidraw/math").Radians;
376
+ seed: number;
377
+ version: number;
378
+ versionNonce: number;
379
+ index: import("@excalidraw/element/types").FractionalIndex | null;
380
+ isDeleted: boolean;
381
+ groupIds: readonly string[];
382
+ frameId: string | null;
383
+ boundElements: readonly Readonly<{
384
+ id: string;
385
+ type: "text" | "arrow";
386
+ }>[] | null;
387
+ updated: number;
388
+ link: string | null;
389
+ locked: boolean;
390
+ customData?: Record<string, any> | undefined;
391
+ }> & Readonly<{
392
+ type: "text";
393
+ fontSize: number;
394
+ fontFamily: number;
395
+ text: string;
396
+ textAlign: string;
397
+ verticalAlign: string;
398
+ containerId: string | null;
399
+ originalText: string;
400
+ autoResize: boolean;
401
+ lineHeight: number & {
402
+ _brand: "unitlessLineHeight";
403
+ };
404
+ }> & {
405
+ index: import("@excalidraw/element/types").FractionalIndex;
406
+ }) | (Readonly<{
407
+ id: string;
408
+ x: number;
409
+ y: number;
410
+ strokeColor: string;
411
+ backgroundColor: string;
412
+ fillStyle: import("@excalidraw/element/types").FillStyle;
413
+ strokeWidth: number;
414
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
415
+ roundness: {
416
+ type: import("@excalidraw/element/types").RoundnessType;
417
+ value?: number | undefined;
418
+ } | null;
419
+ roughness: number;
420
+ opacity: number;
421
+ width: number;
422
+ height: number;
423
+ angle: import("@excalidraw/math").Radians;
424
+ seed: number;
425
+ version: number;
426
+ versionNonce: number;
427
+ index: import("@excalidraw/element/types").FractionalIndex | null;
428
+ isDeleted: boolean;
429
+ groupIds: readonly string[];
430
+ frameId: string | null;
431
+ boundElements: readonly Readonly<{
432
+ id: string;
433
+ type: "text" | "arrow";
434
+ }>[] | null;
435
+ updated: number;
436
+ link: string | null;
437
+ locked: boolean;
438
+ customData?: Record<string, any> | undefined;
439
+ }> & Readonly<{
440
+ type: "line" | "arrow";
441
+ points: readonly import("@excalidraw/math").LocalPoint[];
442
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
443
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
444
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
445
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
446
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
447
+ }> & {
448
+ index: import("@excalidraw/element/types").FractionalIndex;
449
+ }) | (Readonly<{
450
+ id: string;
451
+ x: number;
452
+ y: number;
453
+ strokeColor: string;
454
+ backgroundColor: string;
455
+ fillStyle: import("@excalidraw/element/types").FillStyle;
456
+ strokeWidth: number;
457
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
458
+ roundness: {
459
+ type: import("@excalidraw/element/types").RoundnessType;
460
+ value?: number | undefined;
461
+ } | null;
462
+ roughness: number;
463
+ opacity: number;
464
+ width: number;
465
+ height: number;
466
+ angle: import("@excalidraw/math").Radians;
467
+ seed: number;
468
+ version: number;
469
+ versionNonce: number;
470
+ index: import("@excalidraw/element/types").FractionalIndex | null;
471
+ isDeleted: boolean;
472
+ groupIds: readonly string[];
473
+ frameId: string | null;
474
+ boundElements: readonly Readonly<{
475
+ id: string;
476
+ type: "text" | "arrow";
477
+ }>[] | null;
478
+ updated: number;
479
+ link: string | null;
480
+ locked: boolean;
481
+ customData?: Record<string, any> | undefined;
482
+ }> & Readonly<{
483
+ type: "freedraw";
484
+ points: readonly import("@excalidraw/math").LocalPoint[];
485
+ pressures: readonly number[];
486
+ simulatePressure: boolean;
487
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
488
+ }> & {
489
+ index: import("@excalidraw/element/types").FractionalIndex;
490
+ }) | (Readonly<{
491
+ id: string;
492
+ x: number;
493
+ y: number;
494
+ strokeColor: string;
495
+ backgroundColor: string;
496
+ fillStyle: import("@excalidraw/element/types").FillStyle;
497
+ strokeWidth: number;
498
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
499
+ roundness: {
500
+ type: import("@excalidraw/element/types").RoundnessType;
501
+ value?: number | undefined;
502
+ } | null;
503
+ roughness: number;
504
+ opacity: number;
505
+ width: number;
506
+ height: number;
507
+ angle: import("@excalidraw/math").Radians;
508
+ seed: number;
509
+ version: number;
510
+ versionNonce: number;
511
+ index: import("@excalidraw/element/types").FractionalIndex | null;
512
+ isDeleted: boolean;
513
+ groupIds: readonly string[];
514
+ frameId: string | null;
515
+ boundElements: readonly Readonly<{
516
+ id: string;
517
+ type: "text" | "arrow";
518
+ }>[] | null;
519
+ updated: number;
520
+ link: string | null;
521
+ locked: boolean;
522
+ customData?: Record<string, any> | undefined;
523
+ }> & Readonly<{
524
+ type: "image";
525
+ fileId: import("@excalidraw/element/types").FileId | null;
526
+ status: "error" | "pending" | "saved";
527
+ scale: [number, number];
528
+ crop: import("@excalidraw/element/types").ImageCrop | null;
529
+ }> & {
530
+ index: import("@excalidraw/element/types").FractionalIndex;
531
+ }) | (Readonly<{
532
+ id: string;
533
+ x: number;
534
+ y: number;
535
+ strokeColor: string;
536
+ backgroundColor: string;
537
+ fillStyle: import("@excalidraw/element/types").FillStyle;
538
+ strokeWidth: number;
539
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
540
+ roundness: {
541
+ type: import("@excalidraw/element/types").RoundnessType;
542
+ value?: number | undefined;
543
+ } | null;
544
+ roughness: number;
545
+ opacity: number;
546
+ width: number;
547
+ height: number;
548
+ angle: import("@excalidraw/math").Radians;
549
+ seed: number;
550
+ version: number;
551
+ versionNonce: number;
552
+ index: import("@excalidraw/element/types").FractionalIndex | null;
553
+ isDeleted: boolean;
554
+ groupIds: readonly string[];
555
+ frameId: string | null;
556
+ boundElements: readonly Readonly<{
557
+ id: string;
558
+ type: "text" | "arrow";
559
+ }>[] | null;
560
+ updated: number;
561
+ link: string | null;
562
+ locked: boolean;
563
+ customData?: Record<string, any> | undefined;
564
+ }> & {
565
+ type: "frame";
566
+ name: string | null;
567
+ } & {
568
+ index: import("@excalidraw/element/types").FractionalIndex;
569
+ }) | (Readonly<{
570
+ id: string;
571
+ x: number;
572
+ y: number;
573
+ strokeColor: string;
574
+ backgroundColor: string;
575
+ fillStyle: import("@excalidraw/element/types").FillStyle;
576
+ strokeWidth: number;
577
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
578
+ roundness: {
579
+ type: import("@excalidraw/element/types").RoundnessType;
580
+ value?: number | undefined;
581
+ } | null;
582
+ roughness: number;
583
+ opacity: number;
584
+ width: number;
585
+ height: number;
586
+ angle: import("@excalidraw/math").Radians;
587
+ seed: number;
588
+ version: number;
589
+ versionNonce: number;
590
+ index: import("@excalidraw/element/types").FractionalIndex | null;
591
+ isDeleted: boolean;
592
+ groupIds: readonly string[];
593
+ frameId: string | null;
594
+ boundElements: readonly Readonly<{
595
+ id: string;
596
+ type: "text" | "arrow";
597
+ }>[] | null;
598
+ updated: number;
599
+ link: string | null;
600
+ locked: boolean;
601
+ customData?: Record<string, any> | undefined;
602
+ }> & {
603
+ type: "magicframe";
604
+ name: string | null;
605
+ } & {
606
+ index: import("@excalidraw/element/types").FractionalIndex;
607
+ }) | (Readonly<{
608
+ id: string;
609
+ x: number;
610
+ y: number;
611
+ strokeColor: string;
612
+ backgroundColor: string;
613
+ fillStyle: import("@excalidraw/element/types").FillStyle;
614
+ strokeWidth: number;
615
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
616
+ roundness: {
617
+ type: import("@excalidraw/element/types").RoundnessType;
618
+ value?: number | undefined;
619
+ } | null;
620
+ roughness: number;
621
+ opacity: number;
622
+ width: number;
623
+ height: number;
624
+ angle: import("@excalidraw/math").Radians;
625
+ seed: number;
626
+ version: number;
627
+ versionNonce: number;
628
+ index: import("@excalidraw/element/types").FractionalIndex | null;
629
+ isDeleted: boolean;
630
+ groupIds: readonly string[];
631
+ frameId: string | null;
632
+ boundElements: readonly Readonly<{
633
+ id: string;
634
+ type: "text" | "arrow";
635
+ }>[] | null;
636
+ updated: number;
637
+ link: string | null;
638
+ locked: boolean;
639
+ customData?: Record<string, any> | undefined;
640
+ }> & Readonly<{
641
+ type: "iframe";
642
+ customData?: {
643
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
644
+ } | undefined;
645
+ }> & {
646
+ index: import("@excalidraw/element/types").FractionalIndex;
647
+ }) | (Readonly<{
648
+ id: string;
649
+ x: number;
650
+ y: number;
651
+ strokeColor: string;
652
+ backgroundColor: string;
653
+ fillStyle: import("@excalidraw/element/types").FillStyle;
654
+ strokeWidth: number;
655
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
656
+ roundness: {
657
+ type: import("@excalidraw/element/types").RoundnessType;
658
+ value?: number | undefined;
659
+ } | null;
660
+ roughness: number;
661
+ opacity: number;
662
+ width: number;
663
+ height: number;
664
+ angle: import("@excalidraw/math").Radians;
665
+ seed: number;
666
+ version: number;
667
+ versionNonce: number;
668
+ index: import("@excalidraw/element/types").FractionalIndex | null;
669
+ isDeleted: boolean;
670
+ groupIds: readonly string[];
671
+ frameId: string | null;
672
+ boundElements: readonly Readonly<{
673
+ id: string;
674
+ type: "text" | "arrow";
675
+ }>[] | null;
676
+ updated: number;
677
+ link: string | null;
678
+ locked: boolean;
679
+ customData?: Record<string, any> | undefined;
680
+ }> & Readonly<{
681
+ type: "embeddable";
682
+ }> & {
683
+ index: import("@excalidraw/element/types").FractionalIndex;
684
+ }))[];
685
+ appState: Readonly<import("../types").AppState>;
686
+ captureUpdate: "IMMEDIATELY";
687
+ };
688
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
689
+ } & {
690
+ keyTest?: undefined;
691
+ };
@@ -34,7 +34,7 @@ export declare const actionLink: {
34
34
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
35
35
  isBindingEnabled: boolean;
36
36
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
37
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
38
38
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
39
39
  frameRendering: {
40
40
  enabled: boolean;
@@ -45,7 +45,7 @@ export declare const actionLink: {
45
45
  editingFrame: string | null;
46
46
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
47
47
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
48
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
49
49
  activeTool: {
50
50
  lastActiveTool: import("../types").ActiveTool | null;
51
51
  locked: boolean;
@@ -71,7 +71,7 @@ export declare const actionLink: {
71
71
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
72
  currentHoveredFontFamily: number | null;
73
73
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
74
- currentItemArrowType: "round" | "sharp" | "elbow";
74
+ currentItemArrowType: "sharp" | "round" | "elbow";
75
75
  viewBackgroundColor: string;
76
76
  scrollX: number;
77
77
  scrollY: number;
@@ -164,8 +164,7 @@ export declare const actionLink: {
164
164
  shown: true;
165
165
  data: import("../charts").Spreadsheet;
166
166
  };
167
- pendingImageElementId: string | null;
168
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
167
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
169
168
  snapLines: readonly import("../snapping").SnapLine[];
170
169
  originSnapOffset: {
171
170
  x: number;
@@ -176,16 +175,14 @@ export declare const actionLink: {
176
175
  followedBy: Set<import("../types").SocketId>;
177
176
  isCropping: boolean;
178
177
  croppingElementId: string | null;
179
- searchMatches: readonly {
180
- id: string;
181
- focus: boolean;
182
- matchedLines: {
183
- offsetX: number;
184
- offsetY: number;
185
- width: number;
186
- height: number;
187
- }[];
188
- }[];
178
+ searchMatches: Readonly<{
179
+ focusedId: string | null;
180
+ matches: readonly import("../types").SearchMatch[];
181
+ }> | null;
182
+ activeLockedId: string | null;
183
+ lockedMultiSelections: {
184
+ [groupId: string]: true;
185
+ };
189
186
  };
190
187
  captureUpdate: "IMMEDIATELY";
191
188
  };
@@ -193,9 +190,9 @@ export declare const actionLink: {
193
190
  category: "hyperlink";
194
191
  action: string;
195
192
  };
196
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
193
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
197
194
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
198
195
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
199
196
  } & {
200
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
197
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
201
198
  };