@dwelle/excalidraw 0.5.0-8cb033d → 0.5.0-90f2d4e

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 (141) hide show
  1. package/dist/dev/{chunk-C6WW3IWU.js → chunk-BIYCCCC4.js} +14 -4
  2. package/dist/dev/chunk-BIYCCCC4.js.map +7 -0
  3. package/dist/dev/chunk-QW2KPMGE.js +7 -0
  4. package/dist/dev/chunk-QW2KPMGE.js.map +7 -0
  5. package/dist/dev/{chunk-2LNRWI74.js → chunk-VPDGV5DO.js} +9679 -8756
  6. package/dist/dev/chunk-VPDGV5DO.js.map +7 -0
  7. package/dist/dev/data/{image-7QZI7GM4.js → image-RC4Z3PZK.js} +3 -3
  8. package/dist/dev/index.css +695 -506
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +4223 -2821
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-VFJV7E2V.js → en-XLJO5VTH.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-DUG5AXRR.js +33 -0
  16. package/dist/prod/chunk-M2OFWNPH.js +7 -0
  17. package/dist/prod/{chunk-O65DDAOS.js → chunk-SPUFWQ3U.js} +4 -4
  18. package/dist/prod/data/image-W7J67QSB.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +20 -20
  21. package/dist/prod/locales/{en-UUHXMMMY.js → en-DMU2KFKH.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 +38 -6
  25. package/dist/types/common/src/utils.d.ts +6 -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 +12 -4
  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 +41 -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 +2 -3
  39. package/dist/types/element/src/linearElementEditor.d.ts +13 -15
  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/positionElementsOnGrid.d.ts +2 -0
  43. package/dist/types/element/src/renderElement.d.ts +4 -1
  44. package/dist/types/element/src/resizeElements.d.ts +1 -0
  45. package/dist/types/element/src/selection.d.ts +1 -1
  46. package/dist/types/element/src/shape.d.ts +42 -0
  47. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  48. package/dist/types/element/src/store.d.ts +19 -9
  49. package/dist/types/element/src/textElement.d.ts +1 -1
  50. package/dist/types/element/src/transformHandles.d.ts +4 -4
  51. package/dist/types/element/src/typeChecks.d.ts +15 -1
  52. package/dist/types/element/src/types.d.ts +8 -3
  53. package/dist/types/element/src/utils.d.ts +16 -6
  54. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +15 -18
  55. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  56. package/dist/types/excalidraw/actions/actionBoundText.d.ts +10 -12
  57. package/dist/types/excalidraw/actions/actionCanvas.d.ts +158 -170
  58. package/dist/types/excalidraw/actions/actionClipboard.d.ts +38 -42
  59. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +5 -6
  60. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +21 -23
  61. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  62. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  63. package/dist/types/excalidraw/actions/actionElementLink.d.ts +4 -5
  64. package/dist/types/excalidraw/actions/actionElementLock.d.ts +12 -14
  65. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +5 -6
  66. package/dist/types/excalidraw/actions/actionExport.d.ts +130 -139
  67. package/dist/types/excalidraw/actions/actionFinalize.d.ts +61 -22
  68. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  69. package/dist/types/excalidraw/actions/actionFrame.d.ts +70 -74
  70. package/dist/types/excalidraw/actions/actionGroup.d.ts +16 -18
  71. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +532 -9
  72. package/dist/types/excalidraw/actions/actionLink.d.ts +6 -7
  73. package/dist/types/excalidraw/actions/actionMenu.d.ts +16 -19
  74. package/dist/types/excalidraw/actions/actionNavigate.d.ts +10 -12
  75. package/dist/types/excalidraw/actions/actionProperties.d.ts +107 -105
  76. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +8 -9
  77. package/dist/types/excalidraw/actions/actionStyles.d.ts +9 -10
  78. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -8
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -8
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +6 -7
  81. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -8
  82. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -8
  83. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -8
  84. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  85. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  86. package/dist/types/excalidraw/actions/types.d.ts +2 -1
  87. package/dist/types/excalidraw/appState.d.ts +21 -20
  88. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  89. package/dist/types/excalidraw/components/Actions.d.ts +8 -5
  90. package/dist/types/excalidraw/components/App.d.ts +21 -27
  91. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  92. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -1
  93. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  94. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  95. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  96. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  97. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  98. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  99. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  100. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  101. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  102. package/dist/types/excalidraw/components/icons.d.ts +7 -0
  103. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  104. package/dist/types/excalidraw/data/blob.d.ts +4 -8
  105. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  106. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  107. package/dist/types/excalidraw/data/types.d.ts +4 -1
  108. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  109. package/dist/types/excalidraw/history.d.ts +21 -5
  110. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  111. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  112. package/dist/types/excalidraw/index.d.ts +2 -1
  113. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  114. package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
  115. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  116. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  117. package/dist/types/excalidraw/types.d.ts +12 -9
  118. package/dist/types/math/src/angle.d.ts +2 -0
  119. package/dist/types/math/src/constants.d.ts +3 -0
  120. package/dist/types/math/src/curve.d.ts +32 -0
  121. package/dist/types/math/src/index.d.ts +1 -0
  122. package/dist/types/math/src/point.d.ts +1 -1
  123. package/dist/types/math/src/rectangle.d.ts +2 -0
  124. package/dist/types/math/src/segment.d.ts +1 -0
  125. package/dist/types/math/src/vector.d.ts +4 -2
  126. package/history.ts +107 -44
  127. package/package.json +9 -9
  128. package/dist/dev/chunk-2LNRWI74.js.map +0 -7
  129. package/dist/dev/chunk-C6WW3IWU.js.map +0 -7
  130. package/dist/dev/chunk-NR24AOHB.js +0 -7
  131. package/dist/dev/chunk-NR24AOHB.js.map +0 -7
  132. package/dist/prod/chunk-JUZ2P6ZK.js +0 -33
  133. package/dist/prod/chunk-ZSOIT5RG.js +0 -7
  134. package/dist/prod/data/image-RPTD4VCP.js +0 -1
  135. package/dist/types/element/src/Shape.d.ts +0 -17
  136. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  137. package/dist/types/element/src/shapes.d.ts +0 -23
  138. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  139. package/dist/types/utils/src/collision.d.ts +0 -8
  140. /package/dist/dev/data/{image-7QZI7GM4.js.map → image-RC4Z3PZK.js.map} +0 -0
  141. /package/dist/dev/locales/{en-VFJV7E2V.js.map → en-XLJO5VTH.js.map} +0 -0
@@ -19,7 +19,7 @@ export declare const actionCopy: {
19
19
  isLoading: boolean;
20
20
  activeEmbeddable: {
21
21
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
- state: "hover" | "active";
22
+ state: "active" | "hover";
23
23
  } | null;
24
24
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
25
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -38,7 +38,6 @@ 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 | null;
42
41
  activeTool: {
43
42
  lastActiveTool: import("../types").ActiveTool | null;
44
43
  locked: boolean;
@@ -77,7 +76,7 @@ export declare const actionCopy: {
77
76
  value: import("../types").NormalizedZoomValue;
78
77
  }>;
79
78
  openMenu: "canvas" | "shape" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
79
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
81
80
  openSidebar: {
82
81
  name: string;
83
82
  tab?: string | undefined;
@@ -86,7 +85,7 @@ export declare const actionCopy: {
86
85
  name: "imageExport" | "help" | "jsonExport";
87
86
  } | {
88
87
  name: "ttd";
89
- tab: "text-to-diagram" | "mermaid";
88
+ tab: "mermaid" | "text-to-diagram";
90
89
  } | {
91
90
  name: "commandPalette";
92
91
  } | {
@@ -158,8 +157,7 @@ export declare const actionCopy: {
158
157
  shown: true;
159
158
  data: import("../charts").Spreadsheet;
160
159
  };
161
- pendingImageElementId: string | null;
162
- showHyperlinkPopup: false | "info" | "editor";
160
+ showHyperlinkPopup: false | "editor" | "info";
163
161
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
164
162
  snapLines: readonly import("../snapping").SnapLine[];
165
163
  originSnapOffset: {
@@ -179,6 +177,7 @@ export declare const actionCopy: {
179
177
  lockedMultiSelections: {
180
178
  [groupId: string]: true;
181
179
  };
180
+ stylesPanelMode: "compact" | "full";
182
181
  };
183
182
  } | {
184
183
  captureUpdate: "EVENTUALLY";
@@ -207,7 +206,7 @@ export declare const actionPaste: {
207
206
  isLoading: boolean;
208
207
  activeEmbeddable: {
209
208
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
210
- state: "hover" | "active";
209
+ state: "active" | "hover";
211
210
  } | null;
212
211
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
213
212
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -226,7 +225,6 @@ export declare const actionPaste: {
226
225
  editingFrame: string | null;
227
226
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
228
227
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
230
228
  activeTool: {
231
229
  lastActiveTool: import("../types").ActiveTool | null;
232
230
  locked: boolean;
@@ -265,7 +263,7 @@ export declare const actionPaste: {
265
263
  value: import("../types").NormalizedZoomValue;
266
264
  }>;
267
265
  openMenu: "canvas" | "shape" | null;
268
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
266
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
269
267
  openSidebar: {
270
268
  name: string;
271
269
  tab?: string | undefined;
@@ -274,7 +272,7 @@ export declare const actionPaste: {
274
272
  name: "imageExport" | "help" | "jsonExport";
275
273
  } | {
276
274
  name: "ttd";
277
- tab: "text-to-diagram" | "mermaid";
275
+ tab: "mermaid" | "text-to-diagram";
278
276
  } | {
279
277
  name: "commandPalette";
280
278
  } | {
@@ -346,8 +344,7 @@ export declare const actionPaste: {
346
344
  shown: true;
347
345
  data: import("../charts").Spreadsheet;
348
346
  };
349
- pendingImageElementId: string | null;
350
- showHyperlinkPopup: false | "info" | "editor";
347
+ showHyperlinkPopup: false | "editor" | "info";
351
348
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
352
349
  snapLines: readonly import("../snapping").SnapLine[];
353
350
  originSnapOffset: {
@@ -367,6 +364,7 @@ export declare const actionPaste: {
367
364
  lockedMultiSelections: {
368
365
  [groupId: string]: true;
369
366
  };
367
+ stylesPanelMode: "compact" | "full";
370
368
  };
371
369
  } | {
372
370
  captureUpdate: "EVENTUALLY";
@@ -386,7 +384,7 @@ export declare const actionCut: {
386
384
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
387
385
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
388
386
  appState: {
389
- editingLinearElement: null;
387
+ selectedLinearElement: null;
390
388
  contextMenu: {
391
389
  items: import("../components/ContextMenu").ContextMenuItems;
392
390
  top: number;
@@ -397,7 +395,7 @@ export declare const actionCut: {
397
395
  errorMessage: import("react").ReactNode;
398
396
  activeEmbeddable: {
399
397
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
400
- state: "hover" | "active";
398
+ state: "active" | "hover";
401
399
  } | null;
402
400
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
403
401
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -454,7 +452,7 @@ export declare const actionCut: {
454
452
  value: import("../types").NormalizedZoomValue;
455
453
  }>;
456
454
  openMenu: "canvas" | "shape" | null;
457
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
455
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
458
456
  openSidebar: {
459
457
  name: string;
460
458
  tab?: string | undefined;
@@ -463,7 +461,7 @@ export declare const actionCut: {
463
461
  name: "imageExport" | "help" | "jsonExport";
464
462
  } | {
465
463
  name: "ttd";
466
- tab: "text-to-diagram" | "mermaid";
464
+ tab: "mermaid" | "text-to-diagram";
467
465
  } | {
468
466
  name: "commandPalette";
469
467
  } | {
@@ -535,9 +533,7 @@ export declare const actionCut: {
535
533
  shown: true;
536
534
  data: import("../charts").Spreadsheet;
537
535
  };
538
- pendingImageElementId: string | null;
539
- showHyperlinkPopup: false | "info" | "editor";
540
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
536
+ showHyperlinkPopup: false | "editor" | "info";
541
537
  snapLines: readonly import("../snapping").SnapLine[];
542
538
  originSnapOffset: {
543
539
  x: number;
@@ -556,12 +552,13 @@ export declare const actionCut: {
556
552
  lockedMultiSelections: {
557
553
  [groupId: string]: true;
558
554
  };
555
+ stylesPanelMode: "compact" | "full";
559
556
  };
560
557
  captureUpdate: "IMMEDIATELY";
561
558
  } | {
562
559
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
563
560
  appState: {
564
- editingLinearElement: {
561
+ selectedLinearElement: {
565
562
  selectedPointsIndices: number[];
566
563
  startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
567
564
  endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
@@ -591,6 +588,8 @@ export declare const actionCut: {
591
588
  hoverPointIndex: number;
592
589
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
593
590
  elbowed: boolean;
591
+ customLineAngle: number | null;
592
+ isEditing: boolean;
594
593
  };
595
594
  contextMenu: {
596
595
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -602,7 +601,7 @@ export declare const actionCut: {
602
601
  errorMessage: import("react").ReactNode;
603
602
  activeEmbeddable: {
604
603
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
605
- state: "hover" | "active";
604
+ state: "active" | "hover";
606
605
  } | null;
607
606
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
608
607
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -659,7 +658,7 @@ export declare const actionCut: {
659
658
  value: import("../types").NormalizedZoomValue;
660
659
  }>;
661
660
  openMenu: "canvas" | "shape" | null;
662
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
661
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
663
662
  openSidebar: {
664
663
  name: string;
665
664
  tab?: string | undefined;
@@ -668,7 +667,7 @@ export declare const actionCut: {
668
667
  name: "imageExport" | "help" | "jsonExport";
669
668
  } | {
670
669
  name: "ttd";
671
- tab: "text-to-diagram" | "mermaid";
670
+ tab: "mermaid" | "text-to-diagram";
672
671
  } | {
673
672
  name: "commandPalette";
674
673
  } | {
@@ -740,9 +739,7 @@ export declare const actionCut: {
740
739
  shown: true;
741
740
  data: import("../charts").Spreadsheet;
742
741
  };
743
- pendingImageElementId: string | null;
744
- showHyperlinkPopup: false | "info" | "editor";
745
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
742
+ showHyperlinkPopup: false | "editor" | "info";
746
743
  snapLines: readonly import("../snapping").SnapLine[];
747
744
  originSnapOffset: {
748
745
  x: number;
@@ -761,6 +758,7 @@ export declare const actionCut: {
761
758
  lockedMultiSelections: {
762
759
  [groupId: string]: true;
763
760
  };
761
+ stylesPanelMode: "compact" | "full";
764
762
  };
765
763
  captureUpdate: "IMMEDIATELY";
766
764
  } | {
@@ -774,13 +772,13 @@ export declare const actionCut: {
774
772
  multiElement: null;
775
773
  activeEmbeddable: null;
776
774
  selectedLinearElement: null;
775
+ editingGroupId: string | null;
777
776
  selectedElementIds: Readonly<{
778
777
  [id: string]: true;
779
778
  }>;
780
779
  selectedGroupIds: {
781
780
  [groupId: string]: boolean;
782
781
  };
783
- editingGroupId: string | null;
784
782
  contextMenu: {
785
783
  items: import("../components/ContextMenu").ContextMenuItems;
786
784
  top: number;
@@ -805,7 +803,6 @@ export declare const actionCut: {
805
803
  editingFrame: string | null;
806
804
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
807
805
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
808
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
809
806
  penMode: boolean;
810
807
  penDetected: boolean;
811
808
  exportBackground: boolean;
@@ -839,7 +836,7 @@ export declare const actionCut: {
839
836
  value: import("../types").NormalizedZoomValue;
840
837
  }>;
841
838
  openMenu: "canvas" | "shape" | null;
842
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
839
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
843
840
  openSidebar: {
844
841
  name: string;
845
842
  tab?: string | undefined;
@@ -848,7 +845,7 @@ export declare const actionCut: {
848
845
  name: "imageExport" | "help" | "jsonExport";
849
846
  } | {
850
847
  name: "ttd";
851
- tab: "text-to-diagram" | "mermaid";
848
+ tab: "mermaid" | "text-to-diagram";
852
849
  } | {
853
850
  name: "commandPalette";
854
851
  } | {
@@ -913,8 +910,7 @@ export declare const actionCut: {
913
910
  shown: true;
914
911
  data: import("../charts").Spreadsheet;
915
912
  };
916
- pendingImageElementId: string | null;
917
- showHyperlinkPopup: false | "info" | "editor";
913
+ showHyperlinkPopup: false | "editor" | "info";
918
914
  snapLines: readonly import("../snapping").SnapLine[];
919
915
  originSnapOffset: {
920
916
  x: number;
@@ -933,12 +929,13 @@ export declare const actionCut: {
933
929
  lockedMultiSelections: {
934
930
  [groupId: string]: true;
935
931
  };
932
+ stylesPanelMode: "compact" | "full";
936
933
  };
937
934
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
938
935
  };
939
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
936
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
940
937
  } & {
941
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
938
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
942
939
  };
943
940
  export declare const actionCopyAsSvg: {
944
941
  name: "copyAsSvg";
@@ -992,7 +989,7 @@ export declare const actionCopyAsPng: {
992
989
  isLoading: boolean;
993
990
  activeEmbeddable: {
994
991
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
995
- state: "hover" | "active";
992
+ state: "active" | "hover";
996
993
  } | null;
997
994
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
998
995
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1011,7 +1008,6 @@ export declare const actionCopyAsPng: {
1011
1008
  editingFrame: string | null;
1012
1009
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1013
1010
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1014
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1015
1011
  activeTool: {
1016
1012
  lastActiveTool: import("../types").ActiveTool | null;
1017
1013
  locked: boolean;
@@ -1050,7 +1046,7 @@ export declare const actionCopyAsPng: {
1050
1046
  value: import("../types").NormalizedZoomValue;
1051
1047
  }>;
1052
1048
  openMenu: "canvas" | "shape" | null;
1053
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1049
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1054
1050
  openSidebar: {
1055
1051
  name: string;
1056
1052
  tab?: string | undefined;
@@ -1059,7 +1055,7 @@ export declare const actionCopyAsPng: {
1059
1055
  name: "imageExport" | "help" | "jsonExport";
1060
1056
  } | {
1061
1057
  name: "ttd";
1062
- tab: "text-to-diagram" | "mermaid";
1058
+ tab: "mermaid" | "text-to-diagram";
1063
1059
  } | {
1064
1060
  name: "commandPalette";
1065
1061
  } | {
@@ -1131,8 +1127,7 @@ export declare const actionCopyAsPng: {
1131
1127
  shown: true;
1132
1128
  data: import("../charts").Spreadsheet;
1133
1129
  };
1134
- pendingImageElementId: string | null;
1135
- showHyperlinkPopup: false | "info" | "editor";
1130
+ showHyperlinkPopup: false | "editor" | "info";
1136
1131
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1137
1132
  snapLines: readonly import("../snapping").SnapLine[];
1138
1133
  originSnapOffset: {
@@ -1152,14 +1147,15 @@ export declare const actionCopyAsPng: {
1152
1147
  lockedMultiSelections: {
1153
1148
  [groupId: string]: true;
1154
1149
  };
1150
+ stylesPanelMode: "compact" | "full";
1155
1151
  };
1156
1152
  captureUpdate: "EVENTUALLY";
1157
1153
  }>;
1158
1154
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1159
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1155
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1160
1156
  keywords: string[];
1161
1157
  } & {
1162
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1158
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1163
1159
  };
1164
1160
  export declare const copyText: {
1165
1161
  name: "copyText";
@@ -22,7 +22,7 @@ export declare const actionToggleCropEditor: {
22
22
  errorMessage: import("react").ReactNode;
23
23
  activeEmbeddable: {
24
24
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
- state: "hover" | "active";
25
+ state: "active" | "hover";
26
26
  } | null;
27
27
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
28
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -41,7 +41,6 @@ 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 | null;
45
44
  activeTool: {
46
45
  lastActiveTool: import("../types").ActiveTool | null;
47
46
  locked: boolean;
@@ -80,7 +79,7 @@ export declare const actionToggleCropEditor: {
80
79
  value: import("../types").NormalizedZoomValue;
81
80
  }>;
82
81
  openMenu: "canvas" | "shape" | null;
83
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
83
  openSidebar: {
85
84
  name: string;
86
85
  tab?: string | undefined;
@@ -89,7 +88,7 @@ export declare const actionToggleCropEditor: {
89
88
  name: "imageExport" | "help" | "jsonExport";
90
89
  } | {
91
90
  name: "ttd";
92
- tab: "text-to-diagram" | "mermaid";
91
+ tab: "mermaid" | "text-to-diagram";
93
92
  } | {
94
93
  name: "commandPalette";
95
94
  } | {
@@ -161,8 +160,7 @@ export declare const actionToggleCropEditor: {
161
160
  shown: true;
162
161
  data: import("../charts").Spreadsheet;
163
162
  };
164
- pendingImageElementId: string | null;
165
- showHyperlinkPopup: false | "info" | "editor";
163
+ showHyperlinkPopup: false | "editor" | "info";
166
164
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
167
165
  snapLines: readonly import("../snapping").SnapLine[];
168
166
  originSnapOffset: {
@@ -180,6 +178,7 @@ export declare const actionToggleCropEditor: {
180
178
  lockedMultiSelections: {
181
179
  [groupId: string]: true;
182
180
  };
181
+ stylesPanelMode: "compact" | "full";
183
182
  };
184
183
  captureUpdate: "IMMEDIATELY";
185
184
  };
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element";
3
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
4
3
  import type { AppClassProperties, AppState } from "../types";
5
4
  export declare const actionDeleteSelected: {
@@ -13,7 +12,7 @@ export declare const actionDeleteSelected: {
13
12
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => false | {
14
13
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
15
14
  appState: {
16
- editingLinearElement: null;
15
+ selectedLinearElement: null;
17
16
  contextMenu: {
18
17
  items: import("../components/ContextMenu").ContextMenuItems;
19
18
  top: number;
@@ -24,7 +23,7 @@ export declare const actionDeleteSelected: {
24
23
  errorMessage: import("react").ReactNode;
25
24
  activeEmbeddable: {
26
25
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
27
- state: "hover" | "active";
26
+ state: "active" | "hover";
28
27
  } | null;
29
28
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
30
29
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -81,7 +80,7 @@ export declare const actionDeleteSelected: {
81
80
  value: import("../types").NormalizedZoomValue;
82
81
  }>;
83
82
  openMenu: "canvas" | "shape" | null;
84
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
83
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
85
84
  openSidebar: {
86
85
  name: string;
87
86
  tab?: string | undefined;
@@ -90,7 +89,7 @@ export declare const actionDeleteSelected: {
90
89
  name: "imageExport" | "help" | "jsonExport";
91
90
  } | {
92
91
  name: "ttd";
93
- tab: "text-to-diagram" | "mermaid";
92
+ tab: "mermaid" | "text-to-diagram";
94
93
  } | {
95
94
  name: "commandPalette";
96
95
  } | {
@@ -162,9 +161,7 @@ export declare const actionDeleteSelected: {
162
161
  shown: true;
163
162
  data: import("../charts").Spreadsheet;
164
163
  };
165
- pendingImageElementId: string | null;
166
- showHyperlinkPopup: false | "info" | "editor";
167
- selectedLinearElement: LinearElementEditor | null;
164
+ showHyperlinkPopup: false | "editor" | "info";
168
165
  snapLines: readonly import("../snapping").SnapLine[];
169
166
  originSnapOffset: {
170
167
  x: number;
@@ -183,12 +180,13 @@ export declare const actionDeleteSelected: {
183
180
  lockedMultiSelections: {
184
181
  [groupId: string]: true;
185
182
  };
183
+ stylesPanelMode: "compact" | "full";
186
184
  };
187
185
  captureUpdate: "IMMEDIATELY";
188
186
  } | {
189
187
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
190
188
  appState: {
191
- editingLinearElement: {
189
+ selectedLinearElement: {
192
190
  selectedPointsIndices: number[];
193
191
  startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
194
192
  endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
@@ -218,6 +216,8 @@ export declare const actionDeleteSelected: {
218
216
  hoverPointIndex: number;
219
217
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
220
218
  elbowed: boolean;
219
+ customLineAngle: number | null;
220
+ isEditing: boolean;
221
221
  };
222
222
  contextMenu: {
223
223
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -229,7 +229,7 @@ export declare const actionDeleteSelected: {
229
229
  errorMessage: import("react").ReactNode;
230
230
  activeEmbeddable: {
231
231
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
232
- state: "hover" | "active";
232
+ state: "active" | "hover";
233
233
  } | null;
234
234
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
235
235
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -286,7 +286,7 @@ export declare const actionDeleteSelected: {
286
286
  value: import("../types").NormalizedZoomValue;
287
287
  }>;
288
288
  openMenu: "canvas" | "shape" | null;
289
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
289
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
290
290
  openSidebar: {
291
291
  name: string;
292
292
  tab?: string | undefined;
@@ -295,7 +295,7 @@ export declare const actionDeleteSelected: {
295
295
  name: "imageExport" | "help" | "jsonExport";
296
296
  } | {
297
297
  name: "ttd";
298
- tab: "text-to-diagram" | "mermaid";
298
+ tab: "mermaid" | "text-to-diagram";
299
299
  } | {
300
300
  name: "commandPalette";
301
301
  } | {
@@ -367,9 +367,7 @@ export declare const actionDeleteSelected: {
367
367
  shown: true;
368
368
  data: import("../charts").Spreadsheet;
369
369
  };
370
- pendingImageElementId: string | null;
371
- showHyperlinkPopup: false | "info" | "editor";
372
- selectedLinearElement: LinearElementEditor | null;
370
+ showHyperlinkPopup: false | "editor" | "info";
373
371
  snapLines: readonly import("../snapping").SnapLine[];
374
372
  originSnapOffset: {
375
373
  x: number;
@@ -388,6 +386,7 @@ export declare const actionDeleteSelected: {
388
386
  lockedMultiSelections: {
389
387
  [groupId: string]: true;
390
388
  };
389
+ stylesPanelMode: "compact" | "full";
391
390
  };
392
391
  captureUpdate: "IMMEDIATELY";
393
392
  } | {
@@ -401,13 +400,13 @@ export declare const actionDeleteSelected: {
401
400
  multiElement: null;
402
401
  activeEmbeddable: null;
403
402
  selectedLinearElement: null;
403
+ editingGroupId: string | null;
404
404
  selectedElementIds: Readonly<{
405
405
  [id: string]: true;
406
406
  }>;
407
407
  selectedGroupIds: {
408
408
  [groupId: string]: boolean;
409
409
  };
410
- editingGroupId: string | null;
411
410
  contextMenu: {
412
411
  items: import("../components/ContextMenu").ContextMenuItems;
413
412
  top: number;
@@ -432,7 +431,6 @@ export declare const actionDeleteSelected: {
432
431
  editingFrame: string | null;
433
432
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
434
433
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
435
- editingLinearElement: LinearElementEditor | null;
436
434
  penMode: boolean;
437
435
  penDetected: boolean;
438
436
  exportBackground: boolean;
@@ -466,7 +464,7 @@ export declare const actionDeleteSelected: {
466
464
  value: import("../types").NormalizedZoomValue;
467
465
  }>;
468
466
  openMenu: "canvas" | "shape" | null;
469
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
467
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
470
468
  openSidebar: {
471
469
  name: string;
472
470
  tab?: string | undefined;
@@ -475,7 +473,7 @@ export declare const actionDeleteSelected: {
475
473
  name: "imageExport" | "help" | "jsonExport";
476
474
  } | {
477
475
  name: "ttd";
478
- tab: "text-to-diagram" | "mermaid";
476
+ tab: "mermaid" | "text-to-diagram";
479
477
  } | {
480
478
  name: "commandPalette";
481
479
  } | {
@@ -540,8 +538,7 @@ export declare const actionDeleteSelected: {
540
538
  shown: true;
541
539
  data: import("../charts").Spreadsheet;
542
540
  };
543
- pendingImageElementId: string | null;
544
- showHyperlinkPopup: false | "info" | "editor";
541
+ showHyperlinkPopup: false | "editor" | "info";
545
542
  snapLines: readonly import("../snapping").SnapLine[];
546
543
  originSnapOffset: {
547
544
  x: number;
@@ -560,11 +557,12 @@ export declare const actionDeleteSelected: {
560
557
  lockedMultiSelections: {
561
558
  [groupId: string]: true;
562
559
  };
560
+ stylesPanelMode: "compact" | "full";
563
561
  };
564
562
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
565
563
  };
566
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
564
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
567
565
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
568
566
  } & {
569
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
567
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
570
568
  };
@@ -12,10 +12,10 @@ export declare const distributeHorizontally: {
12
12
  elements: ExcalidrawElement[];
13
13
  captureUpdate: "IMMEDIATELY";
14
14
  };
15
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
15
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
16
16
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
17
17
  } & {
18
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
18
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
19
19
  };
20
20
  export declare const distributeVertically: {
21
21
  name: "distributeVertically";
@@ -28,8 +28,8 @@ export declare const distributeVertically: {
28
28
  elements: ExcalidrawElement[];
29
29
  captureUpdate: "IMMEDIATELY";
30
30
  };
31
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
31
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
32
32
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
33
33
  } & {
34
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
34
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
35
35
  };
@@ -11,8 +11,8 @@ export declare const actionDuplicateSelection: {
11
11
  appState: import("../types").AppState;
12
12
  captureUpdate: "IMMEDIATELY";
13
13
  };
14
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
14
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
15
15
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
16
16
  } & {
17
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
17
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
18
18
  };