@excalidraw/excalidraw 0.18.0-864353b → 0.18.0-880dbb25e

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 (114) hide show
  1. package/dist/dev/{chunk-BBNNHA7I.js → chunk-CP5DND7P.js} +2 -2
  2. package/dist/dev/{chunk-BBNNHA7I.js.map → chunk-CP5DND7P.js.map} +1 -1
  3. package/dist/dev/chunk-CRKRRBMD.js +5677 -0
  4. package/dist/dev/chunk-CRKRRBMD.js.map +7 -0
  5. package/dist/dev/{chunk-7YMZV3TY.js → chunk-QF5FRM6O.js} +2 -2
  6. package/dist/dev/{chunk-7YMZV3TY.js.map → chunk-QF5FRM6O.js.map} +2 -2
  7. package/dist/dev/data/{image-OFYK7EOY.js → image-IWGLHPIX.js} +3 -3
  8. package/dist/dev/index.css +4 -0
  9. package/dist/dev/index.css.map +2 -2
  10. package/dist/dev/index.js +6341 -4110
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-KIY5SGI3.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-UH6Q3EIV.js → chunk-A66AFZZU.js} +1 -1
  16. package/dist/prod/chunk-HHV2PJKY.js +4 -0
  17. package/dist/prod/{chunk-OUULIERA.js → chunk-I4UNSFV6.js} +3 -3
  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-GCLCIHXH.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 +12 -2
  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 +43 -10
  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 +5 -7
  40. package/dist/types/element/src/mutateElement.d.ts +1 -1
  41. package/dist/types/element/src/resizeElements.d.ts +1 -0
  42. package/dist/types/element/src/selection.d.ts +1 -1
  43. package/dist/types/element/src/shape.d.ts +42 -0
  44. package/dist/types/element/src/store.d.ts +18 -9
  45. package/dist/types/element/src/transformHandles.d.ts +4 -4
  46. package/dist/types/element/src/typeChecks.d.ts +4 -0
  47. package/dist/types/element/src/types.d.ts +1 -1
  48. package/dist/types/element/src/utils.d.ts +16 -6
  49. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +9 -15
  50. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  51. package/dist/types/excalidraw/actions/actionBoundText.d.ts +6 -10
  52. package/dist/types/excalidraw/actions/actionCanvas.d.ts +129 -155
  53. package/dist/types/excalidraw/actions/actionClipboard.d.ts +25 -36
  54. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +3 -5
  55. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +14 -20
  56. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  57. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  58. package/dist/types/excalidraw/actions/actionElementLink.d.ts +2 -4
  59. package/dist/types/excalidraw/actions/actionElementLock.d.ts +8 -12
  60. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +3 -5
  61. package/dist/types/excalidraw/actions/actionExport.d.ts +112 -130
  62. package/dist/types/excalidraw/actions/actionFinalize.d.ts +9 -12
  63. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  64. package/dist/types/excalidraw/actions/actionFrame.d.ts +62 -70
  65. package/dist/types/excalidraw/actions/actionGroup.d.ts +12 -16
  66. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +84 -55
  67. package/dist/types/excalidraw/actions/actionLink.d.ts +4 -6
  68. package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -16
  69. package/dist/types/excalidraw/actions/actionNavigate.d.ts +6 -10
  70. package/dist/types/excalidraw/actions/actionProperties.d.ts +49 -79
  71. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +6 -8
  72. package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -9
  73. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -7
  74. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -7
  75. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +4 -6
  76. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -7
  77. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -7
  78. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -7
  79. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  80. package/dist/types/excalidraw/appState.d.ts +20 -20
  81. package/dist/types/excalidraw/components/Actions.d.ts +0 -4
  82. package/dist/types/excalidraw/components/App.d.ts +16 -17
  83. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  84. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  85. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  86. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  87. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  88. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  89. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  90. package/dist/types/excalidraw/history.d.ts +21 -5
  91. package/dist/types/excalidraw/index.d.ts +2 -1
  92. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  93. package/dist/types/excalidraw/renderer/helpers.d.ts +3 -3
  94. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  95. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  96. package/dist/types/excalidraw/types.d.ts +7 -8
  97. package/dist/types/math/src/constants.d.ts +3 -0
  98. package/dist/types/math/src/curve.d.ts +32 -0
  99. package/dist/types/math/src/index.d.ts +1 -0
  100. package/dist/types/math/src/rectangle.d.ts +2 -0
  101. package/dist/types/math/src/vector.d.ts +4 -2
  102. package/history.ts +107 -44
  103. package/package.json +12 -9
  104. package/dist/dev/chunk-LL55DS44.js +0 -23677
  105. package/dist/dev/chunk-LL55DS44.js.map +0 -7
  106. package/dist/prod/chunk-F44EGBV2.js +0 -33
  107. package/dist/prod/data/image-CUOH64HE.js +0 -1
  108. package/dist/types/element/src/Shape.d.ts +0 -17
  109. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  110. package/dist/types/element/src/shapes.d.ts +0 -27
  111. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  112. package/dist/types/utils/src/collision.d.ts +0 -8
  113. /package/dist/dev/data/{image-OFYK7EOY.js.map → image-IWGLHPIX.js.map} +0 -0
  114. /package/dist/dev/locales/{en-KIY5SGI3.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -21,7 +21,7 @@ export declare const actionSelectAllElementsInFrame: {
21
21
  errorMessage: import("react").ReactNode;
22
22
  activeEmbeddable: {
23
23
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
- state: "hover" | "active";
24
+ state: "active" | "hover";
25
25
  } | null;
26
26
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
27
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -40,7 +40,6 @@ export declare const actionSelectAllElementsInFrame: {
40
40
  editingFrame: string | null;
41
41
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
42
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
44
43
  activeTool: {
45
44
  lastActiveTool: import("../types").ActiveTool | null;
46
45
  locked: boolean;
@@ -88,7 +87,7 @@ export declare const actionSelectAllElementsInFrame: {
88
87
  name: "imageExport" | "help" | "jsonExport";
89
88
  } | {
90
89
  name: "ttd";
91
- tab: "text-to-diagram" | "mermaid";
90
+ tab: "mermaid" | "text-to-diagram";
92
91
  } | {
93
92
  name: "commandPalette";
94
93
  } | {
@@ -157,8 +156,7 @@ export declare const actionSelectAllElementsInFrame: {
157
156
  shown: true;
158
157
  data: import("../charts").Spreadsheet;
159
158
  };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "info" | "editor";
159
+ showHyperlinkPopup: false | "editor" | "info";
162
160
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
161
  snapLines: readonly import("../snapping").SnapLine[];
164
162
  originSnapOffset: {
@@ -211,7 +209,7 @@ export declare const actionRemoveAllElementsFromFrame: {
211
209
  errorMessage: import("react").ReactNode;
212
210
  activeEmbeddable: {
213
211
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
214
- state: "hover" | "active";
212
+ state: "active" | "hover";
215
213
  } | null;
216
214
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
217
215
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -230,7 +228,6 @@ export declare const actionRemoveAllElementsFromFrame: {
230
228
  editingFrame: string | null;
231
229
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
232
230
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
233
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
234
231
  activeTool: {
235
232
  lastActiveTool: import("../types").ActiveTool | null;
236
233
  locked: boolean;
@@ -278,7 +275,7 @@ export declare const actionRemoveAllElementsFromFrame: {
278
275
  name: "imageExport" | "help" | "jsonExport";
279
276
  } | {
280
277
  name: "ttd";
281
- tab: "text-to-diagram" | "mermaid";
278
+ tab: "mermaid" | "text-to-diagram";
282
279
  } | {
283
280
  name: "commandPalette";
284
281
  } | {
@@ -347,8 +344,7 @@ export declare const actionRemoveAllElementsFromFrame: {
347
344
  shown: true;
348
345
  data: import("../charts").Spreadsheet;
349
346
  };
350
- pendingImageElementId: string | null;
351
- showHyperlinkPopup: false | "info" | "editor";
347
+ showHyperlinkPopup: false | "editor" | "info";
352
348
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
353
349
  snapLines: readonly import("../snapping").SnapLine[];
354
350
  originSnapOffset: {
@@ -405,7 +401,7 @@ export declare const actionupdateFrameRendering: {
405
401
  errorMessage: import("react").ReactNode;
406
402
  activeEmbeddable: {
407
403
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
408
- state: "hover" | "active";
404
+ state: "active" | "hover";
409
405
  } | null;
410
406
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
411
407
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -418,7 +414,6 @@ export declare const actionupdateFrameRendering: {
418
414
  editingFrame: string | null;
419
415
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
420
416
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
421
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
422
417
  activeTool: {
423
418
  lastActiveTool: import("../types").ActiveTool | null;
424
419
  locked: boolean;
@@ -466,7 +461,7 @@ export declare const actionupdateFrameRendering: {
466
461
  name: "imageExport" | "help" | "jsonExport";
467
462
  } | {
468
463
  name: "ttd";
469
- tab: "text-to-diagram" | "mermaid";
464
+ tab: "mermaid" | "text-to-diagram";
470
465
  } | {
471
466
  name: "commandPalette";
472
467
  } | {
@@ -538,8 +533,7 @@ export declare const actionupdateFrameRendering: {
538
533
  shown: true;
539
534
  data: import("../charts").Spreadsheet;
540
535
  };
541
- pendingImageElementId: string | null;
542
- showHyperlinkPopup: false | "info" | "editor";
536
+ showHyperlinkPopup: false | "editor" | "info";
543
537
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
544
538
  snapLines: readonly import("../snapping").SnapLine[];
545
539
  originSnapOffset: {
@@ -592,7 +586,7 @@ export declare const actionSetFrameAsActiveTool: {
592
586
  errorMessage: import("react").ReactNode;
593
587
  activeEmbeddable: {
594
588
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
595
- state: "hover" | "active";
589
+ state: "active" | "hover";
596
590
  } | null;
597
591
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
598
592
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -611,7 +605,6 @@ export declare const actionSetFrameAsActiveTool: {
611
605
  editingFrame: string | null;
612
606
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
613
607
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
614
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
615
608
  penMode: boolean;
616
609
  penDetected: boolean;
617
610
  exportBackground: boolean;
@@ -654,7 +647,7 @@ export declare const actionSetFrameAsActiveTool: {
654
647
  name: "imageExport" | "help" | "jsonExport";
655
648
  } | {
656
649
  name: "ttd";
657
- tab: "text-to-diagram" | "mermaid";
650
+ tab: "mermaid" | "text-to-diagram";
658
651
  } | {
659
652
  name: "commandPalette";
660
653
  } | {
@@ -726,8 +719,7 @@ export declare const actionSetFrameAsActiveTool: {
726
719
  shown: true;
727
720
  data: import("../charts").Spreadsheet;
728
721
  };
729
- pendingImageElementId: string | null;
730
- showHyperlinkPopup: false | "info" | "editor";
722
+ showHyperlinkPopup: false | "editor" | "info";
731
723
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
732
724
  snapLines: readonly import("../snapping").SnapLine[];
733
725
  originSnapOffset: {
@@ -750,9 +742,9 @@ export declare const actionSetFrameAsActiveTool: {
750
742
  };
751
743
  captureUpdate: "EVENTUALLY";
752
744
  };
753
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
745
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
754
746
  } & {
755
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
747
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
756
748
  };
757
749
  export declare const actionWrapSelectionInFrame: {
758
750
  name: "wrapSelectionInFrame";
@@ -789,15 +781,21 @@ export declare const actionWrapSelectionInFrame: {
789
781
  frameId: string | null;
790
782
  boundElements: readonly Readonly<{
791
783
  id: string;
792
- type: "text" | "arrow";
784
+ type: "arrow" | "text";
793
785
  }>[] | null;
794
786
  updated: number;
795
787
  link: string | null;
796
788
  locked: boolean;
797
789
  customData?: Record<string, any> | undefined;
790
+ }> & Readonly<{
791
+ type: "line" | "arrow";
792
+ points: readonly import("@excalidraw/math").LocalPoint[];
793
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
794
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
795
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
796
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
797
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
798
798
  }> & {
799
- type: "selection";
800
- } & {
801
799
  index: import("@excalidraw/element/types").FractionalIndex;
802
800
  }) | (Readonly<{
803
801
  id: string;
@@ -826,14 +824,14 @@ export declare const actionWrapSelectionInFrame: {
826
824
  frameId: string | null;
827
825
  boundElements: readonly Readonly<{
828
826
  id: string;
829
- type: "text" | "arrow";
827
+ type: "arrow" | "text";
830
828
  }>[] | null;
831
829
  updated: number;
832
830
  link: string | null;
833
831
  locked: boolean;
834
832
  customData?: Record<string, any> | undefined;
835
833
  }> & {
836
- type: "rectangle";
834
+ type: "selection";
837
835
  } & {
838
836
  index: import("@excalidraw/element/types").FractionalIndex;
839
837
  }) | (Readonly<{
@@ -863,14 +861,14 @@ export declare const actionWrapSelectionInFrame: {
863
861
  frameId: string | null;
864
862
  boundElements: readonly Readonly<{
865
863
  id: string;
866
- type: "text" | "arrow";
864
+ type: "arrow" | "text";
867
865
  }>[] | null;
868
866
  updated: number;
869
867
  link: string | null;
870
868
  locked: boolean;
871
869
  customData?: Record<string, any> | undefined;
872
870
  }> & {
873
- type: "diamond";
871
+ type: "rectangle";
874
872
  } & {
875
873
  index: import("@excalidraw/element/types").FractionalIndex;
876
874
  }) | (Readonly<{
@@ -900,14 +898,14 @@ export declare const actionWrapSelectionInFrame: {
900
898
  frameId: string | null;
901
899
  boundElements: readonly Readonly<{
902
900
  id: string;
903
- type: "text" | "arrow";
901
+ type: "arrow" | "text";
904
902
  }>[] | null;
905
903
  updated: number;
906
904
  link: string | null;
907
905
  locked: boolean;
908
906
  customData?: Record<string, any> | undefined;
909
907
  }> & {
910
- type: "ellipse";
908
+ type: "diamond";
911
909
  } & {
912
910
  index: import("@excalidraw/element/types").FractionalIndex;
913
911
  }) | (Readonly<{
@@ -937,26 +935,15 @@ export declare const actionWrapSelectionInFrame: {
937
935
  frameId: string | null;
938
936
  boundElements: readonly Readonly<{
939
937
  id: string;
940
- type: "text" | "arrow";
938
+ type: "arrow" | "text";
941
939
  }>[] | null;
942
940
  updated: number;
943
941
  link: string | null;
944
942
  locked: boolean;
945
943
  customData?: Record<string, any> | undefined;
946
- }> & Readonly<{
947
- type: "text";
948
- fontSize: number;
949
- fontFamily: number;
950
- text: string;
951
- textAlign: string;
952
- verticalAlign: string;
953
- containerId: string | null;
954
- originalText: string;
955
- autoResize: boolean;
956
- lineHeight: number & {
957
- _brand: "unitlessLineHeight";
958
- };
959
944
  }> & {
945
+ type: "ellipse";
946
+ } & {
960
947
  index: import("@excalidraw/element/types").FractionalIndex;
961
948
  }) | (Readonly<{
962
949
  id: string;
@@ -985,20 +972,14 @@ export declare const actionWrapSelectionInFrame: {
985
972
  frameId: string | null;
986
973
  boundElements: readonly Readonly<{
987
974
  id: string;
988
- type: "text" | "arrow";
975
+ type: "arrow" | "text";
989
976
  }>[] | null;
990
977
  updated: number;
991
978
  link: string | null;
992
979
  locked: boolean;
993
980
  customData?: Record<string, any> | undefined;
994
981
  }> & Readonly<{
995
- type: "line" | "arrow";
996
- points: readonly import("@excalidraw/math").LocalPoint[];
997
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
998
- startBinding: import("@excalidraw/element/types").PointBinding | null;
999
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1000
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1001
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
982
+ type: "embeddable";
1002
983
  }> & {
1003
984
  index: import("@excalidraw/element/types").FractionalIndex;
1004
985
  }) | (Readonly<{
@@ -1028,18 +1009,17 @@ export declare const actionWrapSelectionInFrame: {
1028
1009
  frameId: string | null;
1029
1010
  boundElements: readonly Readonly<{
1030
1011
  id: string;
1031
- type: "text" | "arrow";
1012
+ type: "arrow" | "text";
1032
1013
  }>[] | null;
1033
1014
  updated: number;
1034
1015
  link: string | null;
1035
1016
  locked: boolean;
1036
1017
  customData?: Record<string, any> | undefined;
1037
1018
  }> & Readonly<{
1038
- type: "freedraw";
1039
- points: readonly import("@excalidraw/math").LocalPoint[];
1040
- pressures: readonly number[];
1041
- simulatePressure: boolean;
1042
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1019
+ type: "iframe";
1020
+ customData?: {
1021
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1022
+ } | undefined;
1043
1023
  }> & {
1044
1024
  index: import("@excalidraw/element/types").FractionalIndex;
1045
1025
  }) | (Readonly<{
@@ -1069,7 +1049,7 @@ export declare const actionWrapSelectionInFrame: {
1069
1049
  frameId: string | null;
1070
1050
  boundElements: readonly Readonly<{
1071
1051
  id: string;
1072
- type: "text" | "arrow";
1052
+ type: "arrow" | "text";
1073
1053
  }>[] | null;
1074
1054
  updated: number;
1075
1055
  link: string | null;
@@ -1078,7 +1058,7 @@ export declare const actionWrapSelectionInFrame: {
1078
1058
  }> & Readonly<{
1079
1059
  type: "image";
1080
1060
  fileId: import("@excalidraw/element/types").FileId | null;
1081
- status: "error" | "pending" | "saved";
1061
+ status: "pending" | "error" | "saved";
1082
1062
  scale: [number, number];
1083
1063
  crop: import("@excalidraw/element/types").ImageCrop | null;
1084
1064
  }> & {
@@ -1110,7 +1090,7 @@ export declare const actionWrapSelectionInFrame: {
1110
1090
  frameId: string | null;
1111
1091
  boundElements: readonly Readonly<{
1112
1092
  id: string;
1113
- type: "text" | "arrow";
1093
+ type: "arrow" | "text";
1114
1094
  }>[] | null;
1115
1095
  updated: number;
1116
1096
  link: string | null;
@@ -1148,7 +1128,7 @@ export declare const actionWrapSelectionInFrame: {
1148
1128
  frameId: string | null;
1149
1129
  boundElements: readonly Readonly<{
1150
1130
  id: string;
1151
- type: "text" | "arrow";
1131
+ type: "arrow" | "text";
1152
1132
  }>[] | null;
1153
1133
  updated: number;
1154
1134
  link: string | null;
@@ -1186,17 +1166,25 @@ export declare const actionWrapSelectionInFrame: {
1186
1166
  frameId: string | null;
1187
1167
  boundElements: readonly Readonly<{
1188
1168
  id: string;
1189
- type: "text" | "arrow";
1169
+ type: "arrow" | "text";
1190
1170
  }>[] | null;
1191
1171
  updated: number;
1192
1172
  link: string | null;
1193
1173
  locked: boolean;
1194
1174
  customData?: Record<string, any> | undefined;
1195
1175
  }> & Readonly<{
1196
- type: "iframe";
1197
- customData?: {
1198
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1199
- } | undefined;
1176
+ type: "text";
1177
+ fontSize: number;
1178
+ fontFamily: number;
1179
+ text: string;
1180
+ textAlign: string;
1181
+ verticalAlign: string;
1182
+ containerId: string | null;
1183
+ originalText: string;
1184
+ autoResize: boolean;
1185
+ lineHeight: number & {
1186
+ _brand: "unitlessLineHeight";
1187
+ };
1200
1188
  }> & {
1201
1189
  index: import("@excalidraw/element/types").FractionalIndex;
1202
1190
  }) | (Readonly<{
@@ -1226,14 +1214,18 @@ export declare const actionWrapSelectionInFrame: {
1226
1214
  frameId: string | null;
1227
1215
  boundElements: readonly Readonly<{
1228
1216
  id: string;
1229
- type: "text" | "arrow";
1217
+ type: "arrow" | "text";
1230
1218
  }>[] | null;
1231
1219
  updated: number;
1232
1220
  link: string | null;
1233
1221
  locked: boolean;
1234
1222
  customData?: Record<string, any> | undefined;
1235
1223
  }> & Readonly<{
1236
- type: "embeddable";
1224
+ type: "freedraw";
1225
+ points: readonly import("@excalidraw/math").LocalPoint[];
1226
+ pressures: readonly number[];
1227
+ simulatePressure: boolean;
1228
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1237
1229
  }> & {
1238
1230
  index: import("@excalidraw/element/types").FractionalIndex;
1239
1231
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
@@ -14,13 +14,13 @@ export declare const actionGroup: {
14
14
  captureUpdate: "EVENTUALLY";
15
15
  } | {
16
16
  appState: {
17
+ editingGroupId: string | null;
17
18
  selectedElementIds: Readonly<{
18
19
  [id: string]: true;
19
20
  }>;
20
21
  selectedGroupIds: {
21
22
  [groupId: string]: boolean;
22
23
  };
23
- editingGroupId: string | null;
24
24
  contextMenu: {
25
25
  items: import("../components/ContextMenu").ContextMenuItems;
26
26
  top: number;
@@ -31,7 +31,7 @@ export declare const actionGroup: {
31
31
  errorMessage: import("react").ReactNode;
32
32
  activeEmbeddable: {
33
33
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
34
- state: "hover" | "active";
34
+ state: "active" | "hover";
35
35
  } | null;
36
36
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
37
37
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -50,7 +50,6 @@ export declare const actionGroup: {
50
50
  editingFrame: string | null;
51
51
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
52
52
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
53
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
54
53
  activeTool: {
55
54
  lastActiveTool: import("../types").ActiveTool | null;
56
55
  locked: boolean;
@@ -98,7 +97,7 @@ export declare const actionGroup: {
98
97
  name: "imageExport" | "help" | "jsonExport";
99
98
  } | {
100
99
  name: "ttd";
101
- tab: "text-to-diagram" | "mermaid";
100
+ tab: "mermaid" | "text-to-diagram";
102
101
  } | {
103
102
  name: "commandPalette";
104
103
  } | {
@@ -163,8 +162,7 @@ export declare const actionGroup: {
163
162
  shown: true;
164
163
  data: import("../charts").Spreadsheet;
165
164
  };
166
- pendingImageElementId: string | null;
167
- showHyperlinkPopup: false | "info" | "editor";
165
+ showHyperlinkPopup: false | "editor" | "info";
168
166
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
169
167
  snapLines: readonly import("../snapping").SnapLine[];
170
168
  originSnapOffset: {
@@ -189,10 +187,10 @@ export declare const actionGroup: {
189
187
  captureUpdate: "IMMEDIATELY";
190
188
  };
191
189
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
192
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
190
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
193
191
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
194
192
  } & {
195
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
193
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
196
194
  };
197
195
  export declare const actionUngroup: {
198
196
  name: "ungroup";
@@ -207,13 +205,13 @@ export declare const actionUngroup: {
207
205
  captureUpdate: "EVENTUALLY";
208
206
  } | {
209
207
  appState: {
208
+ editingGroupId: string | null;
210
209
  selectedElementIds: Readonly<{
211
210
  [id: string]: true;
212
211
  }>;
213
212
  selectedGroupIds: {
214
213
  [groupId: string]: boolean;
215
214
  };
216
- editingGroupId: string | null;
217
215
  contextMenu: {
218
216
  items: import("../components/ContextMenu").ContextMenuItems;
219
217
  top: number;
@@ -224,7 +222,7 @@ export declare const actionUngroup: {
224
222
  errorMessage: import("react").ReactNode;
225
223
  activeEmbeddable: {
226
224
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
227
- state: "hover" | "active";
225
+ state: "active" | "hover";
228
226
  } | null;
229
227
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
230
228
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -243,7 +241,6 @@ export declare const actionUngroup: {
243
241
  editingFrame: string | null;
244
242
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
245
243
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
246
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
247
244
  activeTool: {
248
245
  lastActiveTool: import("../types").ActiveTool | null;
249
246
  locked: boolean;
@@ -291,7 +288,7 @@ export declare const actionUngroup: {
291
288
  name: "imageExport" | "help" | "jsonExport";
292
289
  } | {
293
290
  name: "ttd";
294
- tab: "text-to-diagram" | "mermaid";
291
+ tab: "mermaid" | "text-to-diagram";
295
292
  } | {
296
293
  name: "commandPalette";
297
294
  } | {
@@ -356,8 +353,7 @@ export declare const actionUngroup: {
356
353
  shown: true;
357
354
  data: import("../charts").Spreadsheet;
358
355
  };
359
- pendingImageElementId: string | null;
360
- showHyperlinkPopup: false | "info" | "editor";
356
+ showHyperlinkPopup: false | "editor" | "info";
361
357
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
362
358
  snapLines: readonly import("../snapping").SnapLine[];
363
359
  originSnapOffset: {
@@ -381,9 +377,9 @@ export declare const actionUngroup: {
381
377
  elements: OrderedExcalidrawElement[];
382
378
  captureUpdate: "IMMEDIATELY";
383
379
  };
384
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
380
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
385
381
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
386
382
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
387
383
  } & {
388
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
384
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
389
385
  };