@myoc/excalidraw 0.18.19 → 0.18.21

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 (96) hide show
  1. package/dist/dev/{chunk-WD4YVUU4.js → chunk-DUURZLYX.js} +2 -2
  2. package/dist/dev/chunk-XJGMBAJT.js +5684 -0
  3. package/dist/dev/chunk-XJGMBAJT.js.map +7 -0
  4. package/dist/dev/data/{image-CW7TABKC.js → image-NCRXXRJW.js} +3 -3
  5. package/dist/dev/index.css +4 -0
  6. package/dist/dev/index.css.map +2 -2
  7. package/dist/dev/index.js +6055 -4020
  8. package/dist/dev/index.js.map +4 -4
  9. package/dist/dev/subset-shared.chunk.js +1 -1
  10. package/dist/dev/subset-worker.chunk.js +1 -1
  11. package/dist/prod/{chunk-W655L563.js → chunk-4UANJTGP.js} +1 -1
  12. package/dist/prod/chunk-ESVIN3T7.js +4 -0
  13. package/dist/prod/data/image-7MUHAX25.js +1 -0
  14. package/dist/prod/index.css +1 -1
  15. package/dist/prod/index.js +24 -17
  16. package/dist/prod/subset-shared.chunk.js +1 -1
  17. package/dist/prod/subset-worker.chunk.js +1 -1
  18. package/dist/types/common/src/constants.d.ts +2 -1
  19. package/dist/types/common/src/points.d.ts +1 -1
  20. package/dist/types/common/src/utils.d.ts +2 -2
  21. package/dist/types/element/src/Scene.d.ts +1 -1
  22. package/dist/types/element/src/align.d.ts +2 -1
  23. package/dist/types/element/src/binding.d.ts +4 -0
  24. package/dist/types/element/src/bounds.d.ts +3 -1
  25. package/dist/types/element/src/distribute.d.ts +2 -1
  26. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  27. package/dist/types/element/src/frame.d.ts +2 -2
  28. package/dist/types/element/src/groups.d.ts +1 -0
  29. package/dist/types/element/src/heading.d.ts +2 -2
  30. package/dist/types/element/src/linearElementEditor.d.ts +3 -5
  31. package/dist/types/element/src/resizeTest.d.ts +2 -2
  32. package/dist/types/element/src/selection.d.ts +1 -1
  33. package/dist/types/element/src/shape.d.ts +2 -2
  34. package/dist/types/element/src/shapes.d.ts +8 -8
  35. package/dist/types/element/src/store.d.ts +3 -2
  36. package/dist/types/element/src/utils.d.ts +11 -5
  37. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -15
  38. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  39. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  40. package/dist/types/excalidraw/actions/actionBoundText.d.ts +8 -10
  41. package/dist/types/excalidraw/actions/actionCanvas.d.ts +63 -75
  42. package/dist/types/excalidraw/actions/actionClipboard.d.ts +31 -36
  43. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +4 -5
  44. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +17 -20
  45. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  46. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  47. package/dist/types/excalidraw/actions/actionElementLink.d.ts +3 -4
  48. package/dist/types/excalidraw/actions/actionElementLock.d.ts +10 -12
  49. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +4 -5
  50. package/dist/types/excalidraw/actions/actionExport.d.ts +121 -130
  51. package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -12
  52. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  53. package/dist/types/excalidraw/actions/actionFrame.d.ts +66 -70
  54. package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -16
  55. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +85 -55
  56. package/dist/types/excalidraw/actions/actionLink.d.ts +5 -6
  57. package/dist/types/excalidraw/actions/actionMenu.d.ts +13 -16
  58. package/dist/types/excalidraw/actions/actionNavigate.d.ts +8 -10
  59. package/dist/types/excalidraw/actions/actionProperties.d.ts +63 -78
  60. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -8
  61. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  62. package/dist/types/excalidraw/actions/actionStyles.d.ts +8 -9
  63. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -7
  64. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -7
  65. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -6
  66. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -7
  67. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -7
  68. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +6 -7
  69. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  70. package/dist/types/excalidraw/appState.d.ts +21 -21
  71. package/dist/types/excalidraw/components/Actions.d.ts +0 -4
  72. package/dist/types/excalidraw/components/App.d.ts +12 -6
  73. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  74. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  75. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  76. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  77. package/dist/types/excalidraw/index.d.ts +1 -0
  78. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  79. package/dist/types/excalidraw/types.d.ts +2 -4
  80. package/dist/types/math/src/angle.d.ts +1 -1
  81. package/dist/types/math/src/curve.d.ts +1 -1
  82. package/dist/types/math/src/ellipse.d.ts +3 -3
  83. package/dist/types/math/src/point.d.ts +2 -2
  84. package/dist/types/math/src/polygon.d.ts +2 -2
  85. package/dist/types/math/src/rectangle.d.ts +2 -0
  86. package/dist/types/math/src/segment.d.ts +5 -5
  87. package/dist/types/math/src/utils.d.ts +0 -2
  88. package/dist/types/utils/src/shape.d.ts +12 -12
  89. package/package.json +7 -4
  90. package/dist/dev/chunk-HDRNCSTL.js +0 -23870
  91. package/dist/dev/chunk-HDRNCSTL.js.map +0 -7
  92. package/dist/prod/chunk-23G2JOF5.js +0 -33
  93. package/dist/prod/data/image-TLNQ4QKS.js +0 -1
  94. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  95. /package/dist/dev/{chunk-WD4YVUU4.js.map → chunk-DUURZLYX.js.map} +0 -0
  96. /package/dist/dev/data/{image-CW7TABKC.js.map → image-NCRXXRJW.js.map} +0 -0
@@ -41,7 +41,7 @@ export declare const actionToggleElementLock: {
41
41
  errorMessage: import("react").ReactNode;
42
42
  activeEmbeddable: {
43
43
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
44
- state: "hover" | "active";
44
+ state: "active" | "hover";
45
45
  } | null;
46
46
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
47
47
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -60,7 +60,6 @@ export declare const actionToggleElementLock: {
60
60
  editingFrame: string | null;
61
61
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
62
62
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
63
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
64
63
  activeTool: {
65
64
  lastActiveTool: import("../types").ActiveTool | null;
66
65
  locked: boolean;
@@ -86,7 +85,7 @@ export declare const actionToggleElementLock: {
86
85
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
87
86
  currentHoveredFontFamily: number | null;
88
87
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
89
- currentItemArrowType: "sharp" | "round" | "elbow";
88
+ currentItemArrowType: "round" | "sharp" | "elbow";
90
89
  viewBackgroundColor: string;
91
90
  scrollX: number;
92
91
  scrollY: number;
@@ -108,7 +107,7 @@ export declare const actionToggleElementLock: {
108
107
  name: "imageExport" | "help" | "jsonExport";
109
108
  } | {
110
109
  name: "ttd";
111
- tab: "text-to-diagram" | "mermaid";
110
+ tab: "mermaid" | "text-to-diagram";
112
111
  } | {
113
112
  name: "commandPalette";
114
113
  } | {
@@ -174,7 +173,7 @@ export declare const actionToggleElementLock: {
174
173
  shown: true;
175
174
  data: import("../charts").Spreadsheet;
176
175
  };
177
- showHyperlinkPopup: false | "info" | "editor";
176
+ showHyperlinkPopup: false | "editor" | "info";
178
177
  snapLines: readonly import("../snapping").SnapLine[];
179
178
  originSnapOffset: {
180
179
  x: number;
@@ -192,9 +191,9 @@ export declare const actionToggleElementLock: {
192
191
  };
193
192
  captureUpdate: "IMMEDIATELY";
194
193
  };
195
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
194
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
196
195
  } & {
197
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
196
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
198
197
  };
199
198
  export declare const actionUnlockAllElements: {
200
199
  name: "unlockAllElements";
@@ -233,7 +232,7 @@ export declare const actionUnlockAllElements: {
233
232
  errorMessage: import("react").ReactNode;
234
233
  activeEmbeddable: {
235
234
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
236
- state: "hover" | "active";
235
+ state: "active" | "hover";
237
236
  } | null;
238
237
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
239
238
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -252,7 +251,6 @@ export declare const actionUnlockAllElements: {
252
251
  editingFrame: string | null;
253
252
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
254
253
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
255
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
256
254
  activeTool: {
257
255
  lastActiveTool: import("../types").ActiveTool | null;
258
256
  locked: boolean;
@@ -278,7 +276,7 @@ export declare const actionUnlockAllElements: {
278
276
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
279
277
  currentHoveredFontFamily: number | null;
280
278
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
281
- currentItemArrowType: "sharp" | "round" | "elbow";
279
+ currentItemArrowType: "round" | "sharp" | "elbow";
282
280
  viewBackgroundColor: string;
283
281
  scrollX: number;
284
282
  scrollY: number;
@@ -300,7 +298,7 @@ export declare const actionUnlockAllElements: {
300
298
  name: "imageExport" | "help" | "jsonExport";
301
299
  } | {
302
300
  name: "ttd";
303
- tab: "text-to-diagram" | "mermaid";
301
+ tab: "mermaid" | "text-to-diagram";
304
302
  } | {
305
303
  name: "commandPalette";
306
304
  } | {
@@ -366,7 +364,7 @@ export declare const actionUnlockAllElements: {
366
364
  shown: true;
367
365
  data: import("../charts").Spreadsheet;
368
366
  };
369
- showHyperlinkPopup: false | "info" | "editor";
367
+ showHyperlinkPopup: false | "editor" | "info";
370
368
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
371
369
  snapLines: readonly import("../snapping").SnapLine[];
372
370
  originSnapOffset: {
@@ -32,7 +32,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
32
32
  errorMessage: import("react").ReactNode;
33
33
  activeEmbeddable: {
34
34
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
35
- state: "hover" | "active";
35
+ state: "active" | "hover";
36
36
  } | null;
37
37
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
38
38
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -51,7 +51,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
51
51
  editingFrame: string | null;
52
52
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
53
53
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
54
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
55
54
  penMode: boolean;
56
55
  penDetected: boolean;
57
56
  exportBackground: boolean;
@@ -72,7 +71,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
72
71
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
72
  currentHoveredFontFamily: number | null;
74
73
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
- currentItemArrowType: "sharp" | "round" | "elbow";
74
+ currentItemArrowType: "round" | "sharp" | "elbow";
76
75
  viewBackgroundColor: string;
77
76
  scrollX: number;
78
77
  scrollY: number;
@@ -94,7 +93,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
94
93
  name: "imageExport" | "help" | "jsonExport";
95
94
  } | {
96
95
  name: "ttd";
97
- tab: "text-to-diagram" | "mermaid";
96
+ tab: "mermaid" | "text-to-diagram";
98
97
  } | {
99
98
  name: "commandPalette";
100
99
  } | {
@@ -166,7 +165,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
166
165
  shown: true;
167
166
  data: import("../charts").Spreadsheet;
168
167
  };
169
- showHyperlinkPopup: false | "info" | "editor";
168
+ showHyperlinkPopup: false | "editor" | "info";
170
169
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
171
170
  snapLines: readonly import("../snapping").SnapLine[];
172
171
  originSnapOffset: {