@excalidraw/excalidraw 0.18.0-c4c0649 → 0.18.0-c6f8ef9

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 (130) hide show
  1. package/dist/dev/chunk-CP5DND7P.js +7 -0
  2. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  3. package/dist/dev/chunk-CRKRRBMD.js +5677 -0
  4. package/dist/dev/chunk-CRKRRBMD.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-IWGLHPIX.js} +3 -3
  8. package/dist/dev/index.css +51 -20
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +6874 -4280
  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-HHV2PJKY.js +4 -0
  17. package/dist/prod/{chunk-GCFVWREF.js → chunk-I4UNSFV6.js} +4 -4
  18. package/dist/prod/data/image-4SM4COIL.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 +19 -3
  25. package/dist/types/common/src/utils.d.ts +3 -5
  26. package/dist/types/element/src/Scene.d.ts +7 -3
  27. package/dist/types/element/src/align.d.ts +2 -1
  28. package/dist/types/element/src/binding.d.ts +10 -7
  29. package/dist/types/element/src/bounds.d.ts +11 -3
  30. package/dist/types/element/src/collision.d.ts +18 -12
  31. package/dist/types/element/src/cropElement.d.ts +1 -1
  32. package/dist/types/element/src/delta.d.ts +42 -9
  33. package/dist/types/element/src/distance.d.ts +2 -2
  34. package/dist/types/element/src/distribute.d.ts +2 -1
  35. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  36. package/dist/types/element/src/frame.d.ts +2 -2
  37. package/dist/types/element/src/groups.d.ts +1 -0
  38. package/dist/types/element/src/index.d.ts +1 -3
  39. package/dist/types/element/src/linearElementEditor.d.ts +14 -23
  40. package/dist/types/element/src/mutateElement.d.ts +1 -1
  41. package/dist/types/element/src/newElement.d.ts +2 -1
  42. package/dist/types/element/src/resizeElements.d.ts +1 -0
  43. package/dist/types/element/src/selection.d.ts +1 -1
  44. package/dist/types/element/src/shape.d.ts +42 -0
  45. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  46. package/dist/types/element/src/store.d.ts +19 -9
  47. package/dist/types/element/src/transformHandles.d.ts +4 -4
  48. package/dist/types/element/src/typeChecks.d.ts +15 -1
  49. package/dist/types/element/src/types.d.ts +8 -3
  50. package/dist/types/element/src/utils.d.ts +16 -6
  51. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -15
  52. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  53. package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -10
  54. package/dist/types/excalidraw/actions/actionCanvas.d.ts +180 -154
  55. package/dist/types/excalidraw/actions/actionClipboard.d.ts +50 -36
  56. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -5
  57. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +27 -20
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -4
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +29 -26
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -5
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +147 -129
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +65 -20
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +78 -70
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -16
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +533 -7
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +8 -6
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +22 -16
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -10
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +119 -81
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -8
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +11 -9
  75. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +9 -7
  76. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +9 -7
  77. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -6
  78. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +9 -7
  79. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +9 -7
  80. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +9 -7
  81. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  82. package/dist/types/excalidraw/actions/types.d.ts +2 -1
  83. package/dist/types/excalidraw/appState.d.ts +29 -20
  84. package/dist/types/excalidraw/components/Actions.d.ts +0 -4
  85. package/dist/types/excalidraw/components/App.d.ts +15 -16
  86. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  87. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  88. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  89. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  90. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  91. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
  92. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  93. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  94. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  95. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  96. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  97. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  98. package/dist/types/excalidraw/history.d.ts +21 -5
  99. package/dist/types/excalidraw/index.d.ts +2 -1
  100. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  101. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  102. package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
  103. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  104. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  105. package/dist/types/excalidraw/types.d.ts +15 -8
  106. package/dist/types/math/src/angle.d.ts +2 -0
  107. package/dist/types/math/src/constants.d.ts +3 -0
  108. package/dist/types/math/src/curve.d.ts +32 -0
  109. package/dist/types/math/src/index.d.ts +1 -0
  110. package/dist/types/math/src/point.d.ts +1 -1
  111. package/dist/types/math/src/rectangle.d.ts +2 -0
  112. package/dist/types/math/src/vector.d.ts +4 -2
  113. package/history.ts +107 -44
  114. package/package.json +12 -9
  115. package/dist/dev/chunk-HNRFOURL.js +0 -23482
  116. package/dist/dev/chunk-HNRFOURL.js.map +0 -7
  117. package/dist/dev/chunk-JCUIYZXF.js.map +0 -7
  118. package/dist/dev/chunk-VKWYDXFZ.js +0 -7
  119. package/dist/dev/chunk-VKWYDXFZ.js.map +0 -7
  120. package/dist/prod/chunk-G6SRO7HP.js +0 -7
  121. package/dist/prod/chunk-M3D5LUUK.js +0 -33
  122. package/dist/prod/data/image-PMKVN4IF.js +0 -1
  123. package/dist/types/element/src/Shape.d.ts +0 -17
  124. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  125. package/dist/types/element/src/shapes.d.ts +0 -23
  126. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  127. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  128. package/dist/types/utils/src/collision.d.ts +0 -8
  129. /package/dist/dev/data/{image-SLEZBMLG.js.map → image-IWGLHPIX.js.map} +0 -0
  130. /package/dist/dev/locales/{en-ZDTPSZNL.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -18,7 +18,7 @@ export declare const actionToggleCanvasMenu: {
18
18
  errorMessage: import("react").ReactNode;
19
19
  activeEmbeddable: {
20
20
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "hover" | "active";
21
+ state: "active" | "hover";
22
22
  } | null;
23
23
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
24
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -37,7 +37,6 @@ export declare const actionToggleCanvasMenu: {
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 | null;
41
40
  activeTool: {
42
41
  lastActiveTool: import("../types").ActiveTool | null;
43
42
  locked: boolean;
@@ -84,7 +83,7 @@ export declare const actionToggleCanvasMenu: {
84
83
  name: "imageExport" | "help" | "jsonExport";
85
84
  } | {
86
85
  name: "ttd";
87
- tab: "text-to-diagram" | "mermaid";
86
+ tab: "mermaid" | "text-to-diagram";
88
87
  } | {
89
88
  name: "commandPalette";
90
89
  } | {
@@ -156,8 +155,7 @@ export declare const actionToggleCanvasMenu: {
156
155
  shown: true;
157
156
  data: import("../charts").Spreadsheet;
158
157
  };
159
- pendingImageElementId: string | null;
160
- showHyperlinkPopup: false | "info" | "editor";
158
+ showHyperlinkPopup: false | "editor" | "info";
161
159
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
160
  snapLines: readonly import("../snapping").SnapLine[];
163
161
  originSnapOffset: {
@@ -173,6 +171,10 @@ export declare const actionToggleCanvasMenu: {
173
171
  focusedId: string | null;
174
172
  matches: readonly import("../types").SearchMatch[];
175
173
  }> | null;
174
+ activeLockedId: string | null;
175
+ lockedMultiSelections: {
176
+ [groupId: string]: true;
177
+ };
176
178
  };
177
179
  captureUpdate: "EVENTUALLY";
178
180
  };
@@ -199,7 +201,7 @@ export declare const actionToggleEditMenu: {
199
201
  errorMessage: import("react").ReactNode;
200
202
  activeEmbeddable: {
201
203
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
202
- state: "hover" | "active";
204
+ state: "active" | "hover";
203
205
  } | null;
204
206
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
205
207
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -218,7 +220,6 @@ export declare const actionToggleEditMenu: {
218
220
  editingFrame: string | null;
219
221
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
220
222
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
221
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
222
223
  activeTool: {
223
224
  lastActiveTool: import("../types").ActiveTool | null;
224
225
  locked: boolean;
@@ -265,7 +266,7 @@ export declare const actionToggleEditMenu: {
265
266
  name: "imageExport" | "help" | "jsonExport";
266
267
  } | {
267
268
  name: "ttd";
268
- tab: "text-to-diagram" | "mermaid";
269
+ tab: "mermaid" | "text-to-diagram";
269
270
  } | {
270
271
  name: "commandPalette";
271
272
  } | {
@@ -337,8 +338,7 @@ export declare const actionToggleEditMenu: {
337
338
  shown: true;
338
339
  data: import("../charts").Spreadsheet;
339
340
  };
340
- pendingImageElementId: string | null;
341
- showHyperlinkPopup: false | "info" | "editor";
341
+ showHyperlinkPopup: false | "editor" | "info";
342
342
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
343
343
  snapLines: readonly import("../snapping").SnapLine[];
344
344
  originSnapOffset: {
@@ -354,6 +354,10 @@ export declare const actionToggleEditMenu: {
354
354
  focusedId: string | null;
355
355
  matches: readonly import("../types").SearchMatch[];
356
356
  }> | null;
357
+ activeLockedId: string | null;
358
+ lockedMultiSelections: {
359
+ [groupId: string]: true;
360
+ };
357
361
  };
358
362
  captureUpdate: "EVENTUALLY";
359
363
  };
@@ -385,7 +389,7 @@ export declare const actionShortcuts: {
385
389
  errorMessage: import("react").ReactNode;
386
390
  activeEmbeddable: {
387
391
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
388
- state: "hover" | "active";
392
+ state: "active" | "hover";
389
393
  } | null;
390
394
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
391
395
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -404,7 +408,6 @@ export declare const actionShortcuts: {
404
408
  editingFrame: string | null;
405
409
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
406
410
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
407
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
408
411
  activeTool: {
409
412
  lastActiveTool: import("../types").ActiveTool | null;
410
413
  locked: boolean;
@@ -513,8 +516,7 @@ export declare const actionShortcuts: {
513
516
  shown: true;
514
517
  data: import("../charts").Spreadsheet;
515
518
  };
516
- pendingImageElementId: string | null;
517
- showHyperlinkPopup: false | "info" | "editor";
519
+ showHyperlinkPopup: false | "editor" | "info";
518
520
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
519
521
  snapLines: readonly import("../snapping").SnapLine[];
520
522
  originSnapOffset: {
@@ -530,10 +532,14 @@ export declare const actionShortcuts: {
530
532
  focusedId: string | null;
531
533
  matches: readonly import("../types").SearchMatch[];
532
534
  }> | null;
535
+ activeLockedId: string | null;
536
+ lockedMultiSelections: {
537
+ [groupId: string]: true;
538
+ };
533
539
  };
534
540
  captureUpdate: "EVENTUALLY";
535
541
  };
536
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
542
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
537
543
  } & {
538
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
544
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
539
545
  };
@@ -20,7 +20,7 @@ export declare const actionGoToCollaborator: {
20
20
  errorMessage: import("react").ReactNode;
21
21
  activeEmbeddable: {
22
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
- state: "hover" | "active";
23
+ state: "active" | "hover";
24
24
  } | null;
25
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -39,7 +39,6 @@ export declare const actionGoToCollaborator: {
39
39
  editingFrame: string | null;
40
40
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
41
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
43
42
  activeTool: {
44
43
  lastActiveTool: import("../types").ActiveTool | null;
45
44
  locked: boolean;
@@ -87,7 +86,7 @@ export declare const actionGoToCollaborator: {
87
86
  name: "imageExport" | "help" | "jsonExport";
88
87
  } | {
89
88
  name: "ttd";
90
- tab: "text-to-diagram" | "mermaid";
89
+ tab: "mermaid" | "text-to-diagram";
91
90
  } | {
92
91
  name: "commandPalette";
93
92
  } | {
@@ -159,8 +158,7 @@ export declare const actionGoToCollaborator: {
159
158
  shown: true;
160
159
  data: import("../charts").Spreadsheet;
161
160
  };
162
- pendingImageElementId: string | null;
163
- showHyperlinkPopup: false | "info" | "editor";
161
+ showHyperlinkPopup: false | "editor" | "info";
164
162
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
165
163
  snapLines: readonly import("../snapping").SnapLine[];
166
164
  originSnapOffset: {
@@ -175,6 +173,10 @@ export declare const actionGoToCollaborator: {
175
173
  focusedId: string | null;
176
174
  matches: readonly import("../types").SearchMatch[];
177
175
  }> | null;
176
+ activeLockedId: string | null;
177
+ lockedMultiSelections: {
178
+ [groupId: string]: true;
179
+ };
178
180
  };
179
181
  captureUpdate: "EVENTUALLY";
180
182
  } | {
@@ -194,7 +196,7 @@ export declare const actionGoToCollaborator: {
194
196
  errorMessage: import("react").ReactNode;
195
197
  activeEmbeddable: {
196
198
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
197
- state: "hover" | "active";
199
+ state: "active" | "hover";
198
200
  } | null;
199
201
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
200
202
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -213,7 +215,6 @@ export declare const actionGoToCollaborator: {
213
215
  editingFrame: string | null;
214
216
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
215
217
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
216
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
217
218
  activeTool: {
218
219
  lastActiveTool: import("../types").ActiveTool | null;
219
220
  locked: boolean;
@@ -260,7 +261,7 @@ export declare const actionGoToCollaborator: {
260
261
  name: "imageExport" | "help" | "jsonExport";
261
262
  } | {
262
263
  name: "ttd";
263
- tab: "text-to-diagram" | "mermaid";
264
+ tab: "mermaid" | "text-to-diagram";
264
265
  } | {
265
266
  name: "commandPalette";
266
267
  } | {
@@ -332,8 +333,7 @@ export declare const actionGoToCollaborator: {
332
333
  shown: true;
333
334
  data: import("../charts").Spreadsheet;
334
335
  };
335
- pendingImageElementId: string | null;
336
- showHyperlinkPopup: false | "info" | "editor";
336
+ showHyperlinkPopup: false | "editor" | "info";
337
337
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
338
338
  snapLines: readonly import("../snapping").SnapLine[];
339
339
  originSnapOffset: {
@@ -348,6 +348,10 @@ export declare const actionGoToCollaborator: {
348
348
  focusedId: string | null;
349
349
  matches: readonly import("../types").SearchMatch[];
350
350
  }> | null;
351
+ activeLockedId: string | null;
352
+ lockedMultiSelections: {
353
+ [groupId: string]: true;
354
+ };
351
355
  };
352
356
  captureUpdate: "EVENTUALLY";
353
357
  };