@dwelle/excalidraw 0.5.0-ff7b5f2db → 0.5.0-ffade30

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