@excalidraw/excalidraw 0.18.0-195a743 → 0.18.0-1b287a8ba

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