@excalidraw/excalidraw 0.18.0-c4c0649 → 0.18.0-d2463f87d

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 (121) 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-JCUIYZXF.js → chunk-QF5FRM6O.js} +6 -2
  6. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  7. package/dist/dev/data/{image-SLEZBMLG.js → image-SURZSZNX.js} +3 -3
  8. package/dist/dev/index.css +47 -20
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +5873 -3369
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-ZDTPSZNL.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-GCFVWREF.js → chunk-I4UNSFV6.js} +4 -4
  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 +25 -18
  21. package/dist/prod/locales/{en-MHZ26NAR.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 +18 -3
  25. package/dist/types/common/src/utils.d.ts +3 -5
  26. package/dist/types/element/src/Scene.d.ts +1 -1
  27. package/dist/types/element/src/binding.d.ts +10 -7
  28. package/dist/types/element/src/bounds.d.ts +11 -3
  29. package/dist/types/element/src/collision.d.ts +18 -12
  30. package/dist/types/element/src/cropElement.d.ts +1 -1
  31. package/dist/types/element/src/delta.d.ts +26 -6
  32. package/dist/types/element/src/distance.d.ts +2 -2
  33. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  34. package/dist/types/element/src/frame.d.ts +2 -2
  35. package/dist/types/element/src/index.d.ts +1 -3
  36. package/dist/types/element/src/linearElementEditor.d.ts +12 -22
  37. package/dist/types/element/src/mutateElement.d.ts +1 -1
  38. package/dist/types/element/src/newElement.d.ts +2 -1
  39. package/dist/types/element/src/resizeElements.d.ts +1 -0
  40. package/dist/types/element/src/selection.d.ts +1 -1
  41. package/dist/types/element/src/shape.d.ts +42 -0
  42. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  43. package/dist/types/element/src/store.d.ts +12 -8
  44. package/dist/types/element/src/transformHandles.d.ts +4 -4
  45. package/dist/types/element/src/typeChecks.d.ts +15 -1
  46. package/dist/types/element/src/types.d.ts +8 -3
  47. package/dist/types/element/src/utils.d.ts +16 -6
  48. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -12
  49. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  50. package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -8
  51. package/dist/types/excalidraw/actions/actionCanvas.d.ts +181 -142
  52. package/dist/types/excalidraw/actions/actionClipboard.d.ts +47 -28
  53. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -4
  54. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +24 -14
  55. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  56. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  57. package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -3
  58. package/dist/types/excalidraw/actions/actionElementLock.d.ts +29 -24
  59. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -4
  60. package/dist/types/excalidraw/actions/actionExport.d.ts +148 -121
  61. package/dist/types/excalidraw/actions/actionFinalize.d.ts +63 -17
  62. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  63. package/dist/types/excalidraw/actions/actionFrame.d.ts +78 -66
  64. package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -14
  65. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +500 -4
  66. package/dist/types/excalidraw/actions/actionLink.d.ts +8 -5
  67. package/dist/types/excalidraw/actions/actionMenu.d.ts +22 -13
  68. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -8
  69. package/dist/types/excalidraw/actions/actionProperties.d.ts +119 -66
  70. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -7
  71. package/dist/types/excalidraw/actions/actionStyles.d.ts +11 -8
  72. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +9 -6
  73. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +9 -6
  74. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -5
  75. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +9 -6
  76. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +9 -6
  77. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +9 -6
  78. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  79. package/dist/types/excalidraw/actions/types.d.ts +2 -1
  80. package/dist/types/excalidraw/appState.d.ts +29 -20
  81. package/dist/types/excalidraw/components/App.d.ts +13 -16
  82. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  83. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  84. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  85. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  86. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
  87. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  88. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  89. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  90. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  91. package/dist/types/excalidraw/history.d.ts +21 -5
  92. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  93. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  94. package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
  95. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  96. package/dist/types/excalidraw/types.d.ts +10 -4
  97. package/dist/types/math/src/angle.d.ts +2 -0
  98. package/dist/types/math/src/constants.d.ts +3 -0
  99. package/dist/types/math/src/curve.d.ts +32 -0
  100. package/dist/types/math/src/index.d.ts +1 -0
  101. package/dist/types/math/src/point.d.ts +1 -1
  102. package/dist/types/math/src/rectangle.d.ts +2 -0
  103. package/dist/types/math/src/vector.d.ts +4 -2
  104. package/history.ts +108 -45
  105. package/package.json +12 -9
  106. package/dist/dev/chunk-HNRFOURL.js +0 -23482
  107. package/dist/dev/chunk-HNRFOURL.js.map +0 -7
  108. package/dist/dev/chunk-JCUIYZXF.js.map +0 -7
  109. package/dist/dev/chunk-VKWYDXFZ.js +0 -7
  110. package/dist/dev/chunk-VKWYDXFZ.js.map +0 -7
  111. package/dist/prod/chunk-G6SRO7HP.js +0 -7
  112. package/dist/prod/chunk-M3D5LUUK.js +0 -33
  113. package/dist/prod/data/image-PMKVN4IF.js +0 -1
  114. package/dist/types/element/src/Shape.d.ts +0 -17
  115. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  116. package/dist/types/element/src/shapes.d.ts +0 -23
  117. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  118. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  119. package/dist/types/utils/src/collision.d.ts +0 -8
  120. /package/dist/dev/data/{image-SLEZBMLG.js.map → image-SURZSZNX.js.map} +0 -0
  121. /package/dist/dev/locales/{en-ZDTPSZNL.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -14,13 +14,13 @@ export declare const actionGroup: {
14
14
  captureUpdate: "EVENTUALLY";
15
15
  } | {
16
16
  appState: {
17
+ editingGroupId: string | null;
17
18
  selectedElementIds: Readonly<{
18
19
  [id: string]: true;
19
20
  }>;
20
21
  selectedGroupIds: {
21
22
  [groupId: string]: boolean;
22
23
  };
23
- editingGroupId: string | null;
24
24
  contextMenu: {
25
25
  items: import("../components/ContextMenu").ContextMenuItems;
26
26
  top: number;
@@ -31,7 +31,7 @@ export declare const actionGroup: {
31
31
  errorMessage: import("react").ReactNode;
32
32
  activeEmbeddable: {
33
33
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
34
- state: "hover" | "active";
34
+ state: "active" | "hover";
35
35
  } | null;
36
36
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
37
37
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -98,7 +98,7 @@ export declare const actionGroup: {
98
98
  name: "imageExport" | "help" | "jsonExport";
99
99
  } | {
100
100
  name: "ttd";
101
- tab: "text-to-diagram" | "mermaid";
101
+ tab: "mermaid" | "text-to-diagram";
102
102
  } | {
103
103
  name: "commandPalette";
104
104
  } | {
@@ -163,8 +163,7 @@ export declare const actionGroup: {
163
163
  shown: true;
164
164
  data: import("../charts").Spreadsheet;
165
165
  };
166
- pendingImageElementId: string | null;
167
- showHyperlinkPopup: false | "info" | "editor";
166
+ showHyperlinkPopup: false | "editor" | "info";
168
167
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
169
168
  snapLines: readonly import("../snapping").SnapLine[];
170
169
  originSnapOffset: {
@@ -180,15 +179,19 @@ export declare const actionGroup: {
180
179
  focusedId: string | null;
181
180
  matches: readonly import("../types").SearchMatch[];
182
181
  }> | null;
182
+ activeLockedId: string | null;
183
+ lockedMultiSelections: {
184
+ [groupId: string]: true;
185
+ };
183
186
  };
184
187
  elements: OrderedExcalidrawElement[];
185
188
  captureUpdate: "IMMEDIATELY";
186
189
  };
187
190
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
188
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
191
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
189
192
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
190
193
  } & {
191
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
194
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
192
195
  };
193
196
  export declare const actionUngroup: {
194
197
  name: "ungroup";
@@ -203,13 +206,13 @@ export declare const actionUngroup: {
203
206
  captureUpdate: "EVENTUALLY";
204
207
  } | {
205
208
  appState: {
209
+ editingGroupId: string | null;
206
210
  selectedElementIds: Readonly<{
207
211
  [id: string]: true;
208
212
  }>;
209
213
  selectedGroupIds: {
210
214
  [groupId: string]: boolean;
211
215
  };
212
- editingGroupId: string | null;
213
216
  contextMenu: {
214
217
  items: import("../components/ContextMenu").ContextMenuItems;
215
218
  top: number;
@@ -220,7 +223,7 @@ export declare const actionUngroup: {
220
223
  errorMessage: import("react").ReactNode;
221
224
  activeEmbeddable: {
222
225
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
223
- state: "hover" | "active";
226
+ state: "active" | "hover";
224
227
  } | null;
225
228
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
226
229
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -287,7 +290,7 @@ export declare const actionUngroup: {
287
290
  name: "imageExport" | "help" | "jsonExport";
288
291
  } | {
289
292
  name: "ttd";
290
- tab: "text-to-diagram" | "mermaid";
293
+ tab: "mermaid" | "text-to-diagram";
291
294
  } | {
292
295
  name: "commandPalette";
293
296
  } | {
@@ -352,8 +355,7 @@ export declare const actionUngroup: {
352
355
  shown: true;
353
356
  data: import("../charts").Spreadsheet;
354
357
  };
355
- pendingImageElementId: string | null;
356
- showHyperlinkPopup: false | "info" | "editor";
358
+ showHyperlinkPopup: false | "editor" | "info";
357
359
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
358
360
  snapLines: readonly import("../snapping").SnapLine[];
359
361
  originSnapOffset: {
@@ -369,13 +371,17 @@ export declare const actionUngroup: {
369
371
  focusedId: string | null;
370
372
  matches: readonly import("../types").SearchMatch[];
371
373
  }> | null;
374
+ activeLockedId: string | null;
375
+ lockedMultiSelections: {
376
+ [groupId: string]: true;
377
+ };
372
378
  };
373
379
  elements: OrderedExcalidrawElement[];
374
380
  captureUpdate: "IMMEDIATELY";
375
381
  };
376
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
382
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
377
383
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
378
384
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
379
385
  } & {
380
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
386
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
381
387
  };
@@ -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;
@@ -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,8 +161,7 @@ export declare const actionToggleLinearEditor: {
161
161
  shown: true;
162
162
  data: import("../charts").Spreadsheet;
163
163
  };
164
- pendingImageElementId: string | null;
165
- showHyperlinkPopup: false | "info" | "editor";
164
+ showHyperlinkPopup: false | "editor" | "info";
166
165
  selectedLinearElement: LinearElementEditor | null;
167
166
  snapLines: readonly import("../snapping").SnapLine[];
168
167
  originSnapOffset: {
@@ -178,6 +177,10 @@ export declare const actionToggleLinearEditor: {
178
177
  focusedId: string | null;
179
178
  matches: readonly import("../types").SearchMatch[];
180
179
  }> | null;
180
+ activeLockedId: string | null;
181
+ lockedMultiSelections: {
182
+ [groupId: string]: true;
183
+ };
181
184
  };
182
185
  captureUpdate: "IMMEDIATELY";
183
186
  };
@@ -185,3 +188,496 @@ export declare const actionToggleLinearEditor: {
185
188
  } & {
186
189
  keyTest?: undefined;
187
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
+ };