@excalidraw/excalidraw 0.18.0-6fc8502 → 0.18.0-864353b

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 (164) hide show
  1. package/dist/dev/{chunk-X3RYHLJU.js → chunk-7YMZV3TY.js} +14 -4
  2. package/dist/dev/chunk-7YMZV3TY.js.map +7 -0
  3. package/dist/dev/chunk-BBNNHA7I.js +7 -0
  4. package/dist/dev/chunk-BBNNHA7I.js.map +7 -0
  5. package/dist/dev/{chunk-KYBDXI6F.js → chunk-LL55DS44.js} +15037 -10099
  6. package/dist/dev/chunk-LL55DS44.js.map +7 -0
  7. package/dist/dev/data/{image-NKFINVKH.js → image-OFYK7EOY.js} +3 -3
  8. package/dist/dev/index.css +100 -22
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +3531 -6486
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-CKWC2GMK.js → en-KIY5SGI3.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-F44EGBV2.js +33 -0
  16. package/dist/prod/{chunk-IUH5AXLB.js → chunk-OUULIERA.js} +4 -4
  17. package/dist/prod/chunk-UH6Q3EIV.js +7 -0
  18. package/dist/prod/data/image-CUOH64HE.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +18 -17
  21. package/dist/prod/locales/{en-SBO6ZHT2.js → en-GCLCIHXH.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 +11 -1
  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 +22 -4
  30. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  31. package/dist/types/element/src/ShapeCache.d.ts +1 -1
  32. package/dist/types/element/src/align.d.ts +3 -3
  33. package/dist/types/element/src/binding.d.ts +19 -12
  34. package/dist/types/element/src/bounds.d.ts +2 -2
  35. package/dist/types/element/src/collision.d.ts +1 -1
  36. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  37. package/dist/types/element/src/dragElements.d.ts +3 -2
  38. package/dist/types/element/src/duplicate.d.ts +10 -13
  39. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  40. package/dist/types/element/src/flowchart.d.ts +3 -2
  41. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  42. package/dist/types/element/src/frame.d.ts +5 -4
  43. package/dist/types/element/src/index.d.ts +45 -2
  44. package/dist/types/element/src/linearElementEditor.d.ts +20 -31
  45. package/dist/types/element/src/mutateElement.d.ts +10 -2
  46. package/dist/types/element/src/newElement.d.ts +4 -3
  47. package/dist/types/element/src/resizeElements.d.ts +4 -4
  48. package/dist/types/element/src/selection.d.ts +11 -5
  49. package/dist/types/element/src/shapes.d.ts +5 -1
  50. package/dist/types/element/src/sizeHelpers.d.ts +2 -2
  51. package/dist/types/element/src/store.d.ts +227 -0
  52. package/dist/types/element/src/textElement.d.ts +5 -3
  53. package/dist/types/element/src/transformHandles.d.ts +4 -4
  54. package/dist/types/element/src/typeChecks.d.ts +15 -1
  55. package/dist/types/element/src/types.d.ts +14 -1
  56. package/dist/types/element/src/zindex.d.ts +1 -1
  57. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +39 -45
  58. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  59. package/dist/types/excalidraw/actions/actionBoundText.d.ts +26 -30
  60. package/dist/types/excalidraw/actions/actionCanvas.d.ts +262 -288
  61. package/dist/types/excalidraw/actions/actionClipboard.d.ts +81 -92
  62. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -15
  63. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +38 -43
  64. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  65. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  66. package/dist/types/excalidraw/actions/actionElementLink.d.ts +13 -15
  67. package/dist/types/excalidraw/actions/actionElementLock.d.ts +41 -46
  68. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -15
  69. package/dist/types/excalidraw/actions/actionExport.d.ts +210 -228
  70. package/dist/types/excalidraw/actions/actionFinalize.d.ts +72 -36
  71. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  72. package/dist/types/excalidraw/actions/actionFrame.d.ts +96 -104
  73. package/dist/types/excalidraw/actions/actionGroup.d.ts +32 -36
  74. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  75. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +505 -14
  76. package/dist/types/excalidraw/actions/actionLink.d.ts +13 -15
  77. package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -45
  78. package/dist/types/excalidraw/actions/actionNavigate.d.ts +25 -29
  79. package/dist/types/excalidraw/actions/actionProperties.d.ts +192 -214
  80. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +15 -17
  81. package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -19
  82. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +15 -17
  83. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +15 -17
  84. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +15 -190
  85. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  86. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +15 -17
  87. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +15 -17
  88. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +15 -17
  89. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  90. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  91. package/dist/types/excalidraw/appState.d.ts +38 -29
  92. package/dist/types/excalidraw/components/App.d.ts +24 -11
  93. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  94. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  95. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  96. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  97. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  98. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  99. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  100. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  101. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  102. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  103. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  104. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  105. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  106. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  107. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  108. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  109. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  110. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  111. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  117. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  118. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  119. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  120. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  121. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  122. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  123. package/dist/types/excalidraw/components/icons.d.ts +3 -0
  124. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  125. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  126. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  127. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  128. package/dist/types/excalidraw/eraser/index.d.ts +14 -0
  129. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  130. package/dist/types/excalidraw/history.d.ts +14 -22
  131. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  132. package/dist/types/excalidraw/index.d.ts +9 -9
  133. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  134. package/dist/types/excalidraw/lasso/utils.d.ts +1 -2
  135. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  136. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  137. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  138. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  139. package/dist/types/excalidraw/scene/types.d.ts +2 -0
  140. package/dist/types/excalidraw/snapping.d.ts +2 -2
  141. package/dist/types/excalidraw/types.d.ts +28 -6
  142. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  143. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  144. package/dist/types/math/src/angle.d.ts +2 -0
  145. package/dist/types/math/src/curve.d.ts +2 -0
  146. package/dist/types/math/src/point.d.ts +1 -1
  147. package/dist/types/math/src/types.d.ts +1 -0
  148. package/dist/types/math/src/vector.d.ts +4 -0
  149. package/dist/types/utils/src/bbox.d.ts +1 -1
  150. package/dist/types/utils/src/index.d.ts +1 -1
  151. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  152. package/history.ts +68 -94
  153. package/package.json +3 -3
  154. package/dist/dev/chunk-H7XJ5UVD.js +0 -7
  155. package/dist/dev/chunk-H7XJ5UVD.js.map +0 -7
  156. package/dist/dev/chunk-KYBDXI6F.js.map +0 -7
  157. package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
  158. package/dist/prod/chunk-CAN5RS4P.js +0 -31
  159. package/dist/prod/chunk-KJYFYP64.js +0 -7
  160. package/dist/prod/data/image-5XD47O4X.js +0 -1
  161. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  162. package/dist/types/excalidraw/store.d.ts +0 -129
  163. /package/dist/dev/data/{image-NKFINVKH.js.map → image-OFYK7EOY.js.map} +0 -0
  164. /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-KIY5SGI3.js.map} +0 -0
@@ -27,7 +27,7 @@ export declare const actionCopy: {
27
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
29
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
30
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
31
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
@@ -38,7 +38,7 @@ export declare const actionCopy: {
38
38
  editingFrame: string | null;
39
39
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
40
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
41
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
42
42
  activeTool: {
43
43
  lastActiveTool: import("../types").ActiveTool | null;
44
44
  locked: boolean;
@@ -76,7 +76,7 @@ export declare const actionCopy: {
76
76
  zoom: Readonly<{
77
77
  value: import("../types").NormalizedZoomValue;
78
78
  }>;
79
- openMenu: "shape" | "canvas" | null;
79
+ openMenu: "canvas" | "shape" | null;
80
80
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
81
  openSidebar: {
82
82
  name: string;
@@ -159,8 +159,8 @@ export declare const actionCopy: {
159
159
  data: import("../charts").Spreadsheet;
160
160
  };
161
161
  pendingImageElementId: string | null;
162
- showHyperlinkPopup: false | "editor" | "info";
163
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
162
+ showHyperlinkPopup: false | "info" | "editor";
163
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
164
164
  snapLines: readonly import("../snapping").SnapLine[];
165
165
  originSnapOffset: {
166
166
  x: number;
@@ -171,16 +171,14 @@ export declare const actionCopy: {
171
171
  followedBy: Set<import("../types").SocketId>;
172
172
  isCropping: boolean;
173
173
  croppingElementId: string | null;
174
- searchMatches: readonly {
175
- id: string;
176
- focus: boolean;
177
- matchedLines: {
178
- offsetX: number;
179
- offsetY: number;
180
- width: number;
181
- height: number;
182
- }[];
183
- }[];
174
+ searchMatches: Readonly<{
175
+ focusedId: string | null;
176
+ matches: readonly import("../types").SearchMatch[];
177
+ }> | null;
178
+ activeLockedId: string | null;
179
+ lockedMultiSelections: {
180
+ [groupId: string]: true;
181
+ };
184
182
  };
185
183
  } | {
186
184
  captureUpdate: "EVENTUALLY";
@@ -217,7 +215,7 @@ export declare const actionPaste: {
217
215
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
218
216
  isBindingEnabled: boolean;
219
217
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
220
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
218
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
221
219
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
222
220
  frameRendering: {
223
221
  enabled: boolean;
@@ -228,7 +226,7 @@ export declare const actionPaste: {
228
226
  editingFrame: string | null;
229
227
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
230
228
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
231
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
229
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
232
230
  activeTool: {
233
231
  lastActiveTool: import("../types").ActiveTool | null;
234
232
  locked: boolean;
@@ -266,7 +264,7 @@ export declare const actionPaste: {
266
264
  zoom: Readonly<{
267
265
  value: import("../types").NormalizedZoomValue;
268
266
  }>;
269
- openMenu: "shape" | "canvas" | null;
267
+ openMenu: "canvas" | "shape" | null;
270
268
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
271
269
  openSidebar: {
272
270
  name: string;
@@ -349,8 +347,8 @@ export declare const actionPaste: {
349
347
  data: import("../charts").Spreadsheet;
350
348
  };
351
349
  pendingImageElementId: string | null;
352
- showHyperlinkPopup: false | "editor" | "info";
353
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
350
+ showHyperlinkPopup: false | "info" | "editor";
351
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
354
352
  snapLines: readonly import("../snapping").SnapLine[];
355
353
  originSnapOffset: {
356
354
  x: number;
@@ -361,16 +359,14 @@ export declare const actionPaste: {
361
359
  followedBy: Set<import("../types").SocketId>;
362
360
  isCropping: boolean;
363
361
  croppingElementId: string | null;
364
- searchMatches: readonly {
365
- id: string;
366
- focus: boolean;
367
- matchedLines: {
368
- offsetX: number;
369
- offsetY: number;
370
- width: number;
371
- height: number;
372
- }[];
373
- }[];
362
+ searchMatches: Readonly<{
363
+ focusedId: string | null;
364
+ matches: readonly import("../types").SearchMatch[];
365
+ }> | null;
366
+ activeLockedId: string | null;
367
+ lockedMultiSelections: {
368
+ [groupId: string]: true;
369
+ };
374
370
  };
375
371
  } | {
376
372
  captureUpdate: "EVENTUALLY";
@@ -409,7 +405,7 @@ export declare const actionCut: {
409
405
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
406
  isBindingEnabled: boolean;
411
407
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
412
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
408
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
413
409
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
414
410
  frameRendering: {
415
411
  enabled: boolean;
@@ -457,7 +453,7 @@ export declare const actionCut: {
457
453
  zoom: Readonly<{
458
454
  value: import("../types").NormalizedZoomValue;
459
455
  }>;
460
- openMenu: "shape" | "canvas" | null;
456
+ openMenu: "canvas" | "shape" | null;
461
457
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
462
458
  openSidebar: {
463
459
  name: string;
@@ -540,8 +536,8 @@ export declare const actionCut: {
540
536
  data: import("../charts").Spreadsheet;
541
537
  };
542
538
  pendingImageElementId: string | null;
543
- showHyperlinkPopup: false | "editor" | "info";
544
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
539
+ showHyperlinkPopup: false | "info" | "editor";
540
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
545
541
  snapLines: readonly import("../snapping").SnapLine[];
546
542
  originSnapOffset: {
547
543
  x: number;
@@ -552,16 +548,14 @@ export declare const actionCut: {
552
548
  followedBy: Set<import("../types").SocketId>;
553
549
  isCropping: boolean;
554
550
  croppingElementId: string | null;
555
- searchMatches: readonly {
556
- id: string;
557
- focus: boolean;
558
- matchedLines: {
559
- offsetX: number;
560
- offsetY: number;
561
- width: number;
562
- height: number;
563
- }[];
564
- }[];
551
+ searchMatches: Readonly<{
552
+ focusedId: string | null;
553
+ matches: readonly import("../types").SearchMatch[];
554
+ }> | null;
555
+ activeLockedId: string | null;
556
+ lockedMultiSelections: {
557
+ [groupId: string]: true;
558
+ };
565
559
  };
566
560
  captureUpdate: "IMMEDIATELY";
567
561
  } | {
@@ -597,6 +591,7 @@ export declare const actionCut: {
597
591
  hoverPointIndex: number;
598
592
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
599
593
  elbowed: boolean;
594
+ customLineAngle: number | null;
600
595
  };
601
596
  contextMenu: {
602
597
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -616,7 +611,7 @@ export declare const actionCut: {
616
611
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
617
612
  isBindingEnabled: boolean;
618
613
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
619
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
614
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
620
615
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
621
616
  frameRendering: {
622
617
  enabled: boolean;
@@ -664,7 +659,7 @@ export declare const actionCut: {
664
659
  zoom: Readonly<{
665
660
  value: import("../types").NormalizedZoomValue;
666
661
  }>;
667
- openMenu: "shape" | "canvas" | null;
662
+ openMenu: "canvas" | "shape" | null;
668
663
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
669
664
  openSidebar: {
670
665
  name: string;
@@ -747,8 +742,8 @@ export declare const actionCut: {
747
742
  data: import("../charts").Spreadsheet;
748
743
  };
749
744
  pendingImageElementId: string | null;
750
- showHyperlinkPopup: false | "editor" | "info";
751
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
745
+ showHyperlinkPopup: false | "info" | "editor";
746
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
752
747
  snapLines: readonly import("../snapping").SnapLine[];
753
748
  originSnapOffset: {
754
749
  x: number;
@@ -759,16 +754,14 @@ export declare const actionCut: {
759
754
  followedBy: Set<import("../types").SocketId>;
760
755
  isCropping: boolean;
761
756
  croppingElementId: string | null;
762
- searchMatches: readonly {
763
- id: string;
764
- focus: boolean;
765
- matchedLines: {
766
- offsetX: number;
767
- offsetY: number;
768
- width: number;
769
- height: number;
770
- }[];
771
- }[];
757
+ searchMatches: Readonly<{
758
+ focusedId: string | null;
759
+ matches: readonly import("../types").SearchMatch[];
760
+ }> | null;
761
+ activeLockedId: string | null;
762
+ lockedMultiSelections: {
763
+ [groupId: string]: true;
764
+ };
772
765
  };
773
766
  captureUpdate: "IMMEDIATELY";
774
767
  } | {
@@ -782,13 +775,13 @@ export declare const actionCut: {
782
775
  multiElement: null;
783
776
  activeEmbeddable: null;
784
777
  selectedLinearElement: null;
785
- editingGroupId: string | null;
786
778
  selectedElementIds: Readonly<{
787
779
  [id: string]: true;
788
780
  }>;
789
781
  selectedGroupIds: {
790
782
  [groupId: string]: boolean;
791
783
  };
784
+ editingGroupId: string | null;
792
785
  contextMenu: {
793
786
  items: import("../components/ContextMenu").ContextMenuItems;
794
787
  top: number;
@@ -802,7 +795,7 @@ export declare const actionCut: {
802
795
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
803
796
  isBindingEnabled: boolean;
804
797
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
805
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
798
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
806
799
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
807
800
  frameRendering: {
808
801
  enabled: boolean;
@@ -813,7 +806,7 @@ export declare const actionCut: {
813
806
  editingFrame: string | null;
814
807
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
815
808
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
816
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
809
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
817
810
  penMode: boolean;
818
811
  penDetected: boolean;
819
812
  exportBackground: boolean;
@@ -846,7 +839,7 @@ export declare const actionCut: {
846
839
  zoom: Readonly<{
847
840
  value: import("../types").NormalizedZoomValue;
848
841
  }>;
849
- openMenu: "shape" | "canvas" | null;
842
+ openMenu: "canvas" | "shape" | null;
850
843
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
851
844
  openSidebar: {
852
845
  name: string;
@@ -922,7 +915,7 @@ export declare const actionCut: {
922
915
  data: import("../charts").Spreadsheet;
923
916
  };
924
917
  pendingImageElementId: string | null;
925
- showHyperlinkPopup: false | "editor" | "info";
918
+ showHyperlinkPopup: false | "info" | "editor";
926
919
  snapLines: readonly import("../snapping").SnapLine[];
927
920
  originSnapOffset: {
928
921
  x: number;
@@ -933,22 +926,20 @@ export declare const actionCut: {
933
926
  followedBy: Set<import("../types").SocketId>;
934
927
  isCropping: boolean;
935
928
  croppingElementId: string | null;
936
- searchMatches: readonly {
937
- id: string;
938
- focus: boolean;
939
- matchedLines: {
940
- offsetX: number;
941
- offsetY: number;
942
- width: number;
943
- height: number;
944
- }[];
945
- }[];
929
+ searchMatches: Readonly<{
930
+ focusedId: string | null;
931
+ matches: readonly import("../types").SearchMatch[];
932
+ }> | null;
933
+ activeLockedId: string | null;
934
+ lockedMultiSelections: {
935
+ [groupId: string]: true;
936
+ };
946
937
  };
947
938
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
948
939
  };
949
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
940
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
950
941
  } & {
951
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
942
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
952
943
  };
953
944
  export declare const actionCopyAsSvg: {
954
945
  name: "copyAsSvg";
@@ -1010,7 +1001,7 @@ export declare const actionCopyAsPng: {
1010
1001
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1011
1002
  isBindingEnabled: boolean;
1012
1003
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1013
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1004
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1014
1005
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1015
1006
  frameRendering: {
1016
1007
  enabled: boolean;
@@ -1021,7 +1012,7 @@ export declare const actionCopyAsPng: {
1021
1012
  editingFrame: string | null;
1022
1013
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1023
1014
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1024
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1015
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1025
1016
  activeTool: {
1026
1017
  lastActiveTool: import("../types").ActiveTool | null;
1027
1018
  locked: boolean;
@@ -1059,7 +1050,7 @@ export declare const actionCopyAsPng: {
1059
1050
  zoom: Readonly<{
1060
1051
  value: import("../types").NormalizedZoomValue;
1061
1052
  }>;
1062
- openMenu: "shape" | "canvas" | null;
1053
+ openMenu: "canvas" | "shape" | null;
1063
1054
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1064
1055
  openSidebar: {
1065
1056
  name: string;
@@ -1142,8 +1133,8 @@ export declare const actionCopyAsPng: {
1142
1133
  data: import("../charts").Spreadsheet;
1143
1134
  };
1144
1135
  pendingImageElementId: string | null;
1145
- showHyperlinkPopup: false | "editor" | "info";
1146
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1136
+ showHyperlinkPopup: false | "info" | "editor";
1137
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1147
1138
  snapLines: readonly import("../snapping").SnapLine[];
1148
1139
  originSnapOffset: {
1149
1140
  x: number;
@@ -1154,24 +1145,22 @@ export declare const actionCopyAsPng: {
1154
1145
  followedBy: Set<import("../types").SocketId>;
1155
1146
  isCropping: boolean;
1156
1147
  croppingElementId: string | null;
1157
- searchMatches: readonly {
1158
- id: string;
1159
- focus: boolean;
1160
- matchedLines: {
1161
- offsetX: number;
1162
- offsetY: number;
1163
- width: number;
1164
- height: number;
1165
- }[];
1166
- }[];
1148
+ searchMatches: Readonly<{
1149
+ focusedId: string | null;
1150
+ matches: readonly import("../types").SearchMatch[];
1151
+ }> | null;
1152
+ activeLockedId: string | null;
1153
+ lockedMultiSelections: {
1154
+ [groupId: string]: true;
1155
+ };
1167
1156
  };
1168
1157
  captureUpdate: "EVENTUALLY";
1169
1158
  }>;
1170
1159
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1171
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1160
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1172
1161
  keywords: string[];
1173
1162
  } & {
1174
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1163
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1175
1164
  };
1176
1165
  export declare const copyText: {
1177
1166
  name: "copyText";
@@ -30,7 +30,7 @@ export declare const actionToggleCropEditor: {
30
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
31
  isBindingEnabled: boolean;
32
32
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
33
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
34
34
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
35
  frameRendering: {
36
36
  enabled: boolean;
@@ -41,7 +41,7 @@ export declare const actionToggleCropEditor: {
41
41
  editingFrame: string | null;
42
42
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
43
43
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
44
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
44
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
45
45
  activeTool: {
46
46
  lastActiveTool: import("../types").ActiveTool | null;
47
47
  locked: boolean;
@@ -79,7 +79,7 @@ export declare const actionToggleCropEditor: {
79
79
  zoom: Readonly<{
80
80
  value: import("../types").NormalizedZoomValue;
81
81
  }>;
82
- openMenu: "shape" | "canvas" | null;
82
+ openMenu: "canvas" | "shape" | null;
83
83
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
84
  openSidebar: {
85
85
  name: string;
@@ -162,8 +162,8 @@ export declare const actionToggleCropEditor: {
162
162
  data: import("../charts").Spreadsheet;
163
163
  };
164
164
  pendingImageElementId: string | null;
165
- showHyperlinkPopup: false | "editor" | "info";
166
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
165
+ showHyperlinkPopup: false | "info" | "editor";
166
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
167
167
  snapLines: readonly import("../snapping").SnapLine[];
168
168
  originSnapOffset: {
169
169
  x: number;
@@ -172,16 +172,14 @@ export declare const actionToggleCropEditor: {
172
172
  objectsSnapModeEnabled: boolean;
173
173
  userToFollow: import("../types").UserToFollow | null;
174
174
  followedBy: Set<import("../types").SocketId>;
175
- searchMatches: readonly {
176
- id: string;
177
- focus: boolean;
178
- matchedLines: {
179
- offsetX: number;
180
- offsetY: number;
181
- width: number;
182
- height: number;
183
- }[];
184
- }[];
175
+ searchMatches: Readonly<{
176
+ focusedId: string | null;
177
+ matches: readonly import("../types").SearchMatch[];
178
+ }> | null;
179
+ activeLockedId: string | null;
180
+ lockedMultiSelections: {
181
+ [groupId: string]: true;
182
+ };
185
183
  };
186
184
  captureUpdate: "IMMEDIATELY";
187
185
  };
@@ -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 { ExcalidrawElement } from "@excalidraw/element/types";
4
4
  import type { AppClassProperties, AppState } from "../types";
5
5
  export declare const actionDeleteSelected: {
@@ -32,7 +32,7 @@ export declare const actionDeleteSelected: {
32
32
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
33
  isBindingEnabled: boolean;
34
34
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
35
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
36
36
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
37
37
  frameRendering: {
38
38
  enabled: boolean;
@@ -80,7 +80,7 @@ export declare const actionDeleteSelected: {
80
80
  zoom: Readonly<{
81
81
  value: import("../types").NormalizedZoomValue;
82
82
  }>;
83
- openMenu: "shape" | "canvas" | null;
83
+ openMenu: "canvas" | "shape" | null;
84
84
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
85
85
  openSidebar: {
86
86
  name: string;
@@ -163,7 +163,7 @@ export declare const actionDeleteSelected: {
163
163
  data: import("../charts").Spreadsheet;
164
164
  };
165
165
  pendingImageElementId: string | null;
166
- showHyperlinkPopup: false | "editor" | "info";
166
+ showHyperlinkPopup: false | "info" | "editor";
167
167
  selectedLinearElement: LinearElementEditor | null;
168
168
  snapLines: readonly import("../snapping").SnapLine[];
169
169
  originSnapOffset: {
@@ -175,16 +175,14 @@ export declare const actionDeleteSelected: {
175
175
  followedBy: Set<import("../types").SocketId>;
176
176
  isCropping: boolean;
177
177
  croppingElementId: string | null;
178
- searchMatches: readonly {
179
- id: string;
180
- focus: boolean;
181
- matchedLines: {
182
- offsetX: number;
183
- offsetY: number;
184
- width: number;
185
- height: number;
186
- }[];
187
- }[];
178
+ searchMatches: Readonly<{
179
+ focusedId: string | null;
180
+ matches: readonly import("../types").SearchMatch[];
181
+ }> | null;
182
+ activeLockedId: string | null;
183
+ lockedMultiSelections: {
184
+ [groupId: string]: true;
185
+ };
188
186
  };
189
187
  captureUpdate: "IMMEDIATELY";
190
188
  } | {
@@ -220,6 +218,7 @@ export declare const actionDeleteSelected: {
220
218
  hoverPointIndex: number;
221
219
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
222
220
  elbowed: boolean;
221
+ customLineAngle: number | null;
223
222
  };
224
223
  contextMenu: {
225
224
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -239,7 +238,7 @@ export declare const actionDeleteSelected: {
239
238
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
240
239
  isBindingEnabled: boolean;
241
240
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
242
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
241
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
243
242
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
244
243
  frameRendering: {
245
244
  enabled: boolean;
@@ -287,7 +286,7 @@ export declare const actionDeleteSelected: {
287
286
  zoom: Readonly<{
288
287
  value: import("../types").NormalizedZoomValue;
289
288
  }>;
290
- openMenu: "shape" | "canvas" | null;
289
+ openMenu: "canvas" | "shape" | null;
291
290
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
292
291
  openSidebar: {
293
292
  name: string;
@@ -370,7 +369,7 @@ export declare const actionDeleteSelected: {
370
369
  data: import("../charts").Spreadsheet;
371
370
  };
372
371
  pendingImageElementId: string | null;
373
- showHyperlinkPopup: false | "editor" | "info";
372
+ showHyperlinkPopup: false | "info" | "editor";
374
373
  selectedLinearElement: LinearElementEditor | null;
375
374
  snapLines: readonly import("../snapping").SnapLine[];
376
375
  originSnapOffset: {
@@ -382,16 +381,14 @@ export declare const actionDeleteSelected: {
382
381
  followedBy: Set<import("../types").SocketId>;
383
382
  isCropping: boolean;
384
383
  croppingElementId: string | null;
385
- searchMatches: readonly {
386
- id: string;
387
- focus: boolean;
388
- matchedLines: {
389
- offsetX: number;
390
- offsetY: number;
391
- width: number;
392
- height: number;
393
- }[];
394
- }[];
384
+ searchMatches: Readonly<{
385
+ focusedId: string | null;
386
+ matches: readonly import("../types").SearchMatch[];
387
+ }> | null;
388
+ activeLockedId: string | null;
389
+ lockedMultiSelections: {
390
+ [groupId: string]: true;
391
+ };
395
392
  };
396
393
  captureUpdate: "IMMEDIATELY";
397
394
  } | {
@@ -405,13 +402,13 @@ export declare const actionDeleteSelected: {
405
402
  multiElement: null;
406
403
  activeEmbeddable: null;
407
404
  selectedLinearElement: null;
408
- editingGroupId: string | null;
409
405
  selectedElementIds: Readonly<{
410
406
  [id: string]: true;
411
407
  }>;
412
408
  selectedGroupIds: {
413
409
  [groupId: string]: boolean;
414
410
  };
411
+ editingGroupId: string | null;
415
412
  contextMenu: {
416
413
  items: import("../components/ContextMenu").ContextMenuItems;
417
414
  top: number;
@@ -425,7 +422,7 @@ export declare const actionDeleteSelected: {
425
422
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
423
  isBindingEnabled: boolean;
427
424
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
428
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
425
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
429
426
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
430
427
  frameRendering: {
431
428
  enabled: boolean;
@@ -469,7 +466,7 @@ export declare const actionDeleteSelected: {
469
466
  zoom: Readonly<{
470
467
  value: import("../types").NormalizedZoomValue;
471
468
  }>;
472
- openMenu: "shape" | "canvas" | null;
469
+ openMenu: "canvas" | "shape" | null;
473
470
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
474
471
  openSidebar: {
475
472
  name: string;
@@ -545,7 +542,7 @@ export declare const actionDeleteSelected: {
545
542
  data: import("../charts").Spreadsheet;
546
543
  };
547
544
  pendingImageElementId: string | null;
548
- showHyperlinkPopup: false | "editor" | "info";
545
+ showHyperlinkPopup: false | "info" | "editor";
549
546
  snapLines: readonly import("../snapping").SnapLine[];
550
547
  originSnapOffset: {
551
548
  x: number;
@@ -556,21 +553,19 @@ export declare const actionDeleteSelected: {
556
553
  followedBy: Set<import("../types").SocketId>;
557
554
  isCropping: boolean;
558
555
  croppingElementId: string | null;
559
- searchMatches: readonly {
560
- id: string;
561
- focus: boolean;
562
- matchedLines: {
563
- offsetX: number;
564
- offsetY: number;
565
- width: number;
566
- height: number;
567
- }[];
568
- }[];
556
+ searchMatches: Readonly<{
557
+ focusedId: string | null;
558
+ matches: readonly import("../types").SearchMatch[];
559
+ }> | null;
560
+ activeLockedId: string | null;
561
+ lockedMultiSelections: {
562
+ [groupId: string]: true;
563
+ };
569
564
  };
570
565
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
571
566
  };
572
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
567
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
573
568
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
574
569
  } & {
575
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
570
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
576
571
  };