@excalidraw/common 0.18.0-c141960 → 0.18.0-c158187

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 (175) hide show
  1. package/dist/dev/index.js +1070 -10
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/bounds.d.ts +10 -0
  5. package/dist/types/common/src/colors.d.ts +5 -2
  6. package/dist/types/common/src/constants.d.ts +14 -12
  7. package/dist/types/common/src/font-metadata.d.ts +1 -3
  8. package/dist/types/common/src/index.d.ts +1 -0
  9. package/dist/types/common/src/keys.d.ts +1 -1
  10. package/dist/types/common/src/utility-types.d.ts +0 -1
  11. package/dist/types/common/src/utils.d.ts +44 -34
  12. package/dist/types/common/src/visualdebug.d.ts +1 -1
  13. package/dist/types/element/src/Scene.d.ts +4 -4
  14. package/dist/types/element/src/binding.d.ts +6 -4
  15. package/dist/types/element/src/bounds.d.ts +2 -10
  16. package/dist/types/element/src/collision.d.ts +2 -2
  17. package/dist/types/element/src/comparisons.d.ts +7 -7
  18. package/dist/types/element/src/dragElements.d.ts +3 -3
  19. package/dist/types/element/src/duplicate.d.ts +3 -3
  20. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  21. package/dist/types/element/src/frame.d.ts +7 -3
  22. package/dist/types/element/src/heading.d.ts +2 -1
  23. package/dist/types/element/src/image.d.ts +1 -11
  24. package/dist/types/element/src/index.d.ts +1 -0
  25. package/dist/types/element/src/linearElementEditor.d.ts +1 -2
  26. package/dist/types/element/src/mutateElement.d.ts +3 -1
  27. package/dist/types/element/src/newElement.d.ts +6 -6
  28. package/dist/types/element/src/renderElement.d.ts +0 -6
  29. package/dist/types/element/src/resizeElements.d.ts +10 -10
  30. package/dist/types/element/src/resizeTest.d.ts +1 -1
  31. package/dist/types/element/src/selection.d.ts +3 -7
  32. package/dist/types/element/src/shape.d.ts +8 -7
  33. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  34. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  35. package/dist/types/element/src/transformHandles.d.ts +3 -23
  36. package/dist/types/element/src/typeChecks.d.ts +2 -4
  37. package/dist/types/element/src/utils.d.ts +3 -1
  38. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +114 -178
  39. package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
  40. package/dist/types/excalidraw/actions/actionBoundText.d.ts +44 -87
  41. package/dist/types/excalidraw/actions/actionCanvas.d.ts +263 -510
  42. package/dist/types/excalidraw/actions/actionClipboard.d.ts +85 -128
  43. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +21 -43
  44. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +74 -142
  45. package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
  46. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  47. package/dist/types/excalidraw/actions/actionElementLink.d.ts +41 -63
  48. package/dist/types/excalidraw/actions/actionElementLock.d.ts +45 -88
  49. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +41 -63
  50. package/dist/types/excalidraw/actions/actionExport.d.ts +85 -170
  51. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -2
  52. package/dist/types/excalidraw/actions/actionFlip.d.ts +0 -1
  53. package/dist/types/excalidraw/actions/actionFrame.d.ts +208 -329
  54. package/dist/types/excalidraw/actions/actionGroup.d.ts +48 -99
  55. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +149 -207
  56. package/dist/types/excalidraw/actions/actionLink.d.ts +43 -65
  57. package/dist/types/excalidraw/actions/actionMenu.d.ts +35 -57
  58. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
  59. package/dist/types/excalidraw/actions/actionProperties.d.ts +59 -102
  60. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +24 -50
  61. package/dist/types/excalidraw/actions/actionStyles.d.ts +20 -42
  62. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  63. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +41 -63
  64. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +41 -63
  65. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +35 -57
  66. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +40 -62
  67. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +41 -63
  68. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +41 -63
  69. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  70. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  71. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  72. package/dist/types/excalidraw/appState.d.ts +12 -12
  73. package/dist/types/excalidraw/clipboard.d.ts +7 -31
  74. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  75. package/dist/types/excalidraw/components/App.d.ts +32 -40
  76. package/dist/types/excalidraw/components/Card.d.ts +0 -1
  77. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +7 -4
  78. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  79. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  80. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +0 -1
  81. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  82. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  83. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  84. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  85. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  86. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  87. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
  88. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  89. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  90. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  91. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  92. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  93. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  94. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  95. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  96. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  97. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  98. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  99. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  100. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  101. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  102. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  103. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  104. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  105. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  106. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  107. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  108. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  109. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  110. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  111. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  112. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  113. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +1 -2
  114. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +0 -1
  115. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  116. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  117. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  118. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  119. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +2 -3
  120. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  121. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  122. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +28 -32
  123. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
  124. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  125. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +10 -18
  126. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +3 -3
  127. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  128. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  129. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  130. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  131. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  132. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  133. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  134. package/dist/types/excalidraw/components/icons.d.ts +11 -11
  135. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +2 -13
  136. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
  137. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -28
  138. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  139. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  140. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  141. package/dist/types/excalidraw/data/blob.d.ts +321 -3
  142. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  143. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  144. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  145. package/dist/types/excalidraw/data/index.d.ts +3 -3
  146. package/dist/types/excalidraw/data/json.d.ts +159 -2
  147. package/dist/types/excalidraw/data/library.d.ts +24 -9
  148. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  149. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  150. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -2
  151. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  152. package/dist/types/excalidraw/i18n.d.ts +2 -2
  153. package/dist/types/excalidraw/index.d.ts +2 -4
  154. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -4
  155. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
  156. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  157. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  158. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  159. package/dist/types/excalidraw/scene/types.d.ts +7 -2
  160. package/dist/types/excalidraw/snapping.d.ts +5 -5
  161. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  162. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  163. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  164. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  165. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  166. package/dist/types/excalidraw/types.d.ts +1 -1
  167. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  168. package/dist/types/math/src/polygon.d.ts +2 -2
  169. package/dist/types/math/src/range.d.ts +1 -3
  170. package/dist/types/math/src/segment.d.ts +3 -3
  171. package/dist/types/utils/src/bbox.d.ts +1 -1
  172. package/dist/types/utils/src/export.d.ts +5 -5
  173. package/dist/types/utils/src/shape.d.ts +6 -6
  174. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  175. package/package.json +7 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppClassProperties, AppState } from "../types";
4
3
  export declare const actionSelectAllElementsInFrame: {
@@ -18,10 +17,10 @@ export declare const actionSelectAllElementsInFrame: {
18
17
  } | null;
19
18
  showWelcomeScreen: boolean;
20
19
  isLoading: boolean;
21
- errorMessage: import("react").ReactNode;
20
+ errorMessage: React.ReactNode;
22
21
  activeEmbeddable: {
23
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
- state: "active" | "hover";
23
+ state: "hover" | "active";
25
24
  } | null;
26
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -57,19 +56,19 @@ export declare const actionSelectAllElementsInFrame: {
57
56
  exportScale: number;
58
57
  currentItemStrokeColor: string;
59
58
  currentItemBackgroundColor: string;
60
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
59
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
61
60
  currentItemStrokeWidth: number;
62
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
61
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
63
62
  currentItemRoughness: number;
64
63
  currentItemOpacity: number;
65
- currentItemFontFamily: number;
64
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
66
65
  currentItemFontSize: number;
67
- currentItemTextAlign: string;
66
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
68
67
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
69
68
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
- currentHoveredFontFamily: number | null;
69
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
71
70
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
72
- currentItemArrowType: "round" | "sharp" | "elbow";
71
+ currentItemArrowType: "sharp" | "round" | "elbow";
73
72
  viewBackgroundColor: string;
74
73
  scrollX: number;
75
74
  scrollY: number;
@@ -78,28 +77,26 @@ export declare const actionSelectAllElementsInFrame: {
78
77
  name: string | null;
79
78
  isResizing: boolean;
80
79
  isRotating: boolean;
81
- zoom: Readonly<{
82
- value: import("../types").NormalizedZoomValue;
83
- }>;
80
+ zoom: import("../types").Zoom;
84
81
  openMenu: "canvas" | null;
85
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
82
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
86
83
  openSidebar: {
87
- name: string;
88
- tab?: string | undefined;
84
+ name: import("../types").SidebarName;
85
+ tab?: import("../types").SidebarTabName;
89
86
  } | null;
90
- openDialog: {
87
+ openDialog: null | {
91
88
  name: "imageExport" | "help" | "jsonExport";
92
89
  } | {
93
90
  name: "ttd";
94
- tab: "mermaid" | "text-to-diagram";
91
+ tab: "text-to-diagram" | "mermaid";
95
92
  } | {
96
93
  name: "commandPalette";
97
94
  } | {
98
95
  name: "settings";
99
96
  } | {
100
97
  name: "elementLinkSelector";
101
- sourceElementId: string;
102
- } | null;
98
+ sourceElementId: ExcalidrawElement["id"];
99
+ };
103
100
  defaultSidebarDockedPreference: boolean;
104
101
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
105
102
  hoveredElementIds: Readonly<{
@@ -112,8 +109,8 @@ export declare const actionSelectAllElementsInFrame: {
112
109
  shouldCacheIgnoreZoom: boolean;
113
110
  toast: {
114
111
  message: string;
115
- closable?: boolean | undefined;
116
- duration?: number | undefined;
112
+ closable?: boolean;
113
+ duration?: number;
117
114
  } | null;
118
115
  zenModeEnabled: boolean;
119
116
  theme: import("@excalidraw/element/types").Theme;
@@ -124,32 +121,13 @@ export declare const actionSelectAllElementsInFrame: {
124
121
  selectedGroupIds: {
125
122
  [groupId: string]: boolean;
126
123
  };
127
- editingGroupId: string | null;
124
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
128
125
  width: number;
129
126
  height: number;
130
127
  offsetTop: number;
131
128
  offsetLeft: number;
132
129
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
133
- collaborators: Map<import("../types").SocketId, Readonly<{
134
- pointer?: import("../types").CollaboratorPointer | undefined;
135
- button?: "up" | "down" | undefined;
136
- selectedElementIds?: Readonly<{
137
- [id: string]: true;
138
- }> | undefined;
139
- username?: string | null | undefined;
140
- userState?: import("@excalidraw/common").UserIdleState | undefined;
141
- color?: {
142
- background: string;
143
- stroke: string;
144
- } | undefined;
145
- avatarUrl?: string | undefined;
146
- id?: string | undefined;
147
- socketId?: import("../types").SocketId | undefined;
148
- isCurrentUser?: boolean | undefined;
149
- isInCall?: boolean | undefined;
150
- isSpeaking?: boolean | undefined;
151
- isMuted?: boolean | undefined;
152
- }>>;
130
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
153
131
  stats: {
154
132
  open: boolean;
155
133
  panels: number;
@@ -173,9 +151,9 @@ export declare const actionSelectAllElementsInFrame: {
173
151
  userToFollow: import("../types").UserToFollow | null;
174
152
  followedBy: Set<import("../types").SocketId>;
175
153
  isCropping: boolean;
176
- croppingElementId: string | null;
154
+ croppingElementId: ExcalidrawElement["id"] | null;
177
155
  searchMatches: Readonly<{
178
- focusedId: string | null;
156
+ focusedId: ExcalidrawElement["id"] | null;
179
157
  matches: readonly import("../types").SearchMatch[];
180
158
  }> | null;
181
159
  activeLockedId: string | null;
@@ -213,10 +191,10 @@ export declare const actionRemoveAllElementsFromFrame: {
213
191
  } | null;
214
192
  showWelcomeScreen: boolean;
215
193
  isLoading: boolean;
216
- errorMessage: import("react").ReactNode;
194
+ errorMessage: React.ReactNode;
217
195
  activeEmbeddable: {
218
196
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
219
- state: "active" | "hover";
197
+ state: "hover" | "active";
220
198
  } | null;
221
199
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
222
200
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -252,19 +230,19 @@ export declare const actionRemoveAllElementsFromFrame: {
252
230
  exportScale: number;
253
231
  currentItemStrokeColor: string;
254
232
  currentItemBackgroundColor: string;
255
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
233
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
256
234
  currentItemStrokeWidth: number;
257
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
235
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
258
236
  currentItemRoughness: number;
259
237
  currentItemOpacity: number;
260
- currentItemFontFamily: number;
238
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
261
239
  currentItemFontSize: number;
262
- currentItemTextAlign: string;
240
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
263
241
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
264
242
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
265
- currentHoveredFontFamily: number | null;
243
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
266
244
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
267
- currentItemArrowType: "round" | "sharp" | "elbow";
245
+ currentItemArrowType: "sharp" | "round" | "elbow";
268
246
  viewBackgroundColor: string;
269
247
  scrollX: number;
270
248
  scrollY: number;
@@ -273,28 +251,26 @@ export declare const actionRemoveAllElementsFromFrame: {
273
251
  name: string | null;
274
252
  isResizing: boolean;
275
253
  isRotating: boolean;
276
- zoom: Readonly<{
277
- value: import("../types").NormalizedZoomValue;
278
- }>;
254
+ zoom: import("../types").Zoom;
279
255
  openMenu: "canvas" | null;
280
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
256
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
281
257
  openSidebar: {
282
- name: string;
283
- tab?: string | undefined;
258
+ name: import("../types").SidebarName;
259
+ tab?: import("../types").SidebarTabName;
284
260
  } | null;
285
- openDialog: {
261
+ openDialog: null | {
286
262
  name: "imageExport" | "help" | "jsonExport";
287
263
  } | {
288
264
  name: "ttd";
289
- tab: "mermaid" | "text-to-diagram";
265
+ tab: "text-to-diagram" | "mermaid";
290
266
  } | {
291
267
  name: "commandPalette";
292
268
  } | {
293
269
  name: "settings";
294
270
  } | {
295
271
  name: "elementLinkSelector";
296
- sourceElementId: string;
297
- } | null;
272
+ sourceElementId: ExcalidrawElement["id"];
273
+ };
298
274
  defaultSidebarDockedPreference: boolean;
299
275
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
300
276
  hoveredElementIds: Readonly<{
@@ -307,8 +283,8 @@ export declare const actionRemoveAllElementsFromFrame: {
307
283
  shouldCacheIgnoreZoom: boolean;
308
284
  toast: {
309
285
  message: string;
310
- closable?: boolean | undefined;
311
- duration?: number | undefined;
286
+ closable?: boolean;
287
+ duration?: number;
312
288
  } | null;
313
289
  zenModeEnabled: boolean;
314
290
  theme: import("@excalidraw/element/types").Theme;
@@ -319,32 +295,13 @@ export declare const actionRemoveAllElementsFromFrame: {
319
295
  selectedGroupIds: {
320
296
  [groupId: string]: boolean;
321
297
  };
322
- editingGroupId: string | null;
298
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
323
299
  width: number;
324
300
  height: number;
325
301
  offsetTop: number;
326
302
  offsetLeft: number;
327
303
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
328
- collaborators: Map<import("../types").SocketId, Readonly<{
329
- pointer?: import("../types").CollaboratorPointer | undefined;
330
- button?: "up" | "down" | undefined;
331
- selectedElementIds?: Readonly<{
332
- [id: string]: true;
333
- }> | undefined;
334
- username?: string | null | undefined;
335
- userState?: import("@excalidraw/common").UserIdleState | undefined;
336
- color?: {
337
- background: string;
338
- stroke: string;
339
- } | undefined;
340
- avatarUrl?: string | undefined;
341
- id?: string | undefined;
342
- socketId?: import("../types").SocketId | undefined;
343
- isCurrentUser?: boolean | undefined;
344
- isInCall?: boolean | undefined;
345
- isSpeaking?: boolean | undefined;
346
- isMuted?: boolean | undefined;
347
- }>>;
304
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
348
305
  stats: {
349
306
  open: boolean;
350
307
  panels: number;
@@ -368,9 +325,9 @@ export declare const actionRemoveAllElementsFromFrame: {
368
325
  userToFollow: import("../types").UserToFollow | null;
369
326
  followedBy: Set<import("../types").SocketId>;
370
327
  isCropping: boolean;
371
- croppingElementId: string | null;
328
+ croppingElementId: ExcalidrawElement["id"] | null;
372
329
  searchMatches: Readonly<{
373
- focusedId: string | null;
330
+ focusedId: ExcalidrawElement["id"] | null;
374
331
  matches: readonly import("../types").SearchMatch[];
375
332
  }> | null;
376
333
  activeLockedId: string | null;
@@ -412,10 +369,10 @@ export declare const actionupdateFrameRendering: {
412
369
  } | null;
413
370
  showWelcomeScreen: boolean;
414
371
  isLoading: boolean;
415
- errorMessage: import("react").ReactNode;
372
+ errorMessage: React.ReactNode;
416
373
  activeEmbeddable: {
417
374
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
418
- state: "active" | "hover";
375
+ state: "hover" | "active";
419
376
  } | null;
420
377
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
421
378
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -445,19 +402,19 @@ export declare const actionupdateFrameRendering: {
445
402
  exportScale: number;
446
403
  currentItemStrokeColor: string;
447
404
  currentItemBackgroundColor: string;
448
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
405
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
449
406
  currentItemStrokeWidth: number;
450
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
407
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
451
408
  currentItemRoughness: number;
452
409
  currentItemOpacity: number;
453
- currentItemFontFamily: number;
410
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
454
411
  currentItemFontSize: number;
455
- currentItemTextAlign: string;
412
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
456
413
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
457
414
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
458
- currentHoveredFontFamily: number | null;
415
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
459
416
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
460
- currentItemArrowType: "round" | "sharp" | "elbow";
417
+ currentItemArrowType: "sharp" | "round" | "elbow";
461
418
  viewBackgroundColor: string;
462
419
  scrollX: number;
463
420
  scrollY: number;
@@ -466,28 +423,26 @@ export declare const actionupdateFrameRendering: {
466
423
  name: string | null;
467
424
  isResizing: boolean;
468
425
  isRotating: boolean;
469
- zoom: Readonly<{
470
- value: import("../types").NormalizedZoomValue;
471
- }>;
426
+ zoom: import("../types").Zoom;
472
427
  openMenu: "canvas" | null;
473
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
428
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
474
429
  openSidebar: {
475
- name: string;
476
- tab?: string | undefined;
430
+ name: import("../types").SidebarName;
431
+ tab?: import("../types").SidebarTabName;
477
432
  } | null;
478
- openDialog: {
433
+ openDialog: null | {
479
434
  name: "imageExport" | "help" | "jsonExport";
480
435
  } | {
481
436
  name: "ttd";
482
- tab: "mermaid" | "text-to-diagram";
437
+ tab: "text-to-diagram" | "mermaid";
483
438
  } | {
484
439
  name: "commandPalette";
485
440
  } | {
486
441
  name: "settings";
487
442
  } | {
488
443
  name: "elementLinkSelector";
489
- sourceElementId: string;
490
- } | null;
444
+ sourceElementId: ExcalidrawElement["id"];
445
+ };
491
446
  defaultSidebarDockedPreference: boolean;
492
447
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
493
448
  selectedElementIds: Readonly<{
@@ -503,8 +458,8 @@ export declare const actionupdateFrameRendering: {
503
458
  shouldCacheIgnoreZoom: boolean;
504
459
  toast: {
505
460
  message: string;
506
- closable?: boolean | undefined;
507
- duration?: number | undefined;
461
+ closable?: boolean;
462
+ duration?: number;
508
463
  } | null;
509
464
  zenModeEnabled: boolean;
510
465
  theme: import("@excalidraw/element/types").Theme;
@@ -515,32 +470,13 @@ export declare const actionupdateFrameRendering: {
515
470
  selectedGroupIds: {
516
471
  [groupId: string]: boolean;
517
472
  };
518
- editingGroupId: string | null;
473
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
519
474
  width: number;
520
475
  height: number;
521
476
  offsetTop: number;
522
477
  offsetLeft: number;
523
478
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
524
- collaborators: Map<import("../types").SocketId, Readonly<{
525
- pointer?: import("../types").CollaboratorPointer | undefined;
526
- button?: "up" | "down" | undefined;
527
- selectedElementIds?: Readonly<{
528
- [id: string]: true;
529
- }> | undefined;
530
- username?: string | null | undefined;
531
- userState?: import("@excalidraw/common").UserIdleState | undefined;
532
- color?: {
533
- background: string;
534
- stroke: string;
535
- } | undefined;
536
- avatarUrl?: string | undefined;
537
- id?: string | undefined;
538
- socketId?: import("../types").SocketId | undefined;
539
- isCurrentUser?: boolean | undefined;
540
- isInCall?: boolean | undefined;
541
- isSpeaking?: boolean | undefined;
542
- isMuted?: boolean | undefined;
543
- }>>;
479
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
544
480
  stats: {
545
481
  open: boolean;
546
482
  panels: number;
@@ -564,9 +500,9 @@ export declare const actionupdateFrameRendering: {
564
500
  userToFollow: import("../types").UserToFollow | null;
565
501
  followedBy: Set<import("../types").SocketId>;
566
502
  isCropping: boolean;
567
- croppingElementId: string | null;
503
+ croppingElementId: ExcalidrawElement["id"] | null;
568
504
  searchMatches: Readonly<{
569
- focusedId: string | null;
505
+ focusedId: ExcalidrawElement["id"] | null;
570
506
  matches: readonly import("../types").SearchMatch[];
571
507
  }> | null;
572
508
  activeLockedId: string | null;
@@ -604,10 +540,10 @@ export declare const actionSetFrameAsActiveTool: {
604
540
  } | null;
605
541
  showWelcomeScreen: boolean;
606
542
  isLoading: boolean;
607
- errorMessage: import("react").ReactNode;
543
+ errorMessage: React.ReactNode;
608
544
  activeEmbeddable: {
609
545
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
610
- state: "active" | "hover";
546
+ state: "hover" | "active";
611
547
  } | null;
612
548
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
613
549
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -638,19 +574,19 @@ export declare const actionSetFrameAsActiveTool: {
638
574
  exportScale: number;
639
575
  currentItemStrokeColor: string;
640
576
  currentItemBackgroundColor: string;
641
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
577
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
642
578
  currentItemStrokeWidth: number;
643
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
579
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
644
580
  currentItemRoughness: number;
645
581
  currentItemOpacity: number;
646
- currentItemFontFamily: number;
582
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
647
583
  currentItemFontSize: number;
648
- currentItemTextAlign: string;
584
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
649
585
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
650
586
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
651
- currentHoveredFontFamily: number | null;
587
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
652
588
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
653
- currentItemArrowType: "round" | "sharp" | "elbow";
589
+ currentItemArrowType: "sharp" | "round" | "elbow";
654
590
  viewBackgroundColor: string;
655
591
  scrollX: number;
656
592
  scrollY: number;
@@ -659,28 +595,26 @@ export declare const actionSetFrameAsActiveTool: {
659
595
  name: string | null;
660
596
  isResizing: boolean;
661
597
  isRotating: boolean;
662
- zoom: Readonly<{
663
- value: import("../types").NormalizedZoomValue;
664
- }>;
598
+ zoom: import("../types").Zoom;
665
599
  openMenu: "canvas" | null;
666
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
600
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
667
601
  openSidebar: {
668
- name: string;
669
- tab?: string | undefined;
602
+ name: import("../types").SidebarName;
603
+ tab?: import("../types").SidebarTabName;
670
604
  } | null;
671
- openDialog: {
605
+ openDialog: null | {
672
606
  name: "imageExport" | "help" | "jsonExport";
673
607
  } | {
674
608
  name: "ttd";
675
- tab: "mermaid" | "text-to-diagram";
609
+ tab: "text-to-diagram" | "mermaid";
676
610
  } | {
677
611
  name: "commandPalette";
678
612
  } | {
679
613
  name: "settings";
680
614
  } | {
681
615
  name: "elementLinkSelector";
682
- sourceElementId: string;
683
- } | null;
616
+ sourceElementId: ExcalidrawElement["id"];
617
+ };
684
618
  defaultSidebarDockedPreference: boolean;
685
619
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
686
620
  selectedElementIds: Readonly<{
@@ -696,8 +630,8 @@ export declare const actionSetFrameAsActiveTool: {
696
630
  shouldCacheIgnoreZoom: boolean;
697
631
  toast: {
698
632
  message: string;
699
- closable?: boolean | undefined;
700
- duration?: number | undefined;
633
+ closable?: boolean;
634
+ duration?: number;
701
635
  } | null;
702
636
  zenModeEnabled: boolean;
703
637
  theme: import("@excalidraw/element/types").Theme;
@@ -708,32 +642,13 @@ export declare const actionSetFrameAsActiveTool: {
708
642
  selectedGroupIds: {
709
643
  [groupId: string]: boolean;
710
644
  };
711
- editingGroupId: string | null;
645
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
712
646
  width: number;
713
647
  height: number;
714
648
  offsetTop: number;
715
649
  offsetLeft: number;
716
650
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
717
- collaborators: Map<import("../types").SocketId, Readonly<{
718
- pointer?: import("../types").CollaboratorPointer | undefined;
719
- button?: "up" | "down" | undefined;
720
- selectedElementIds?: Readonly<{
721
- [id: string]: true;
722
- }> | undefined;
723
- username?: string | null | undefined;
724
- userState?: import("@excalidraw/common").UserIdleState | undefined;
725
- color?: {
726
- background: string;
727
- stroke: string;
728
- } | undefined;
729
- avatarUrl?: string | undefined;
730
- id?: string | undefined;
731
- socketId?: import("../types").SocketId | undefined;
732
- isCurrentUser?: boolean | undefined;
733
- isInCall?: boolean | undefined;
734
- isSpeaking?: boolean | undefined;
735
- isMuted?: boolean | undefined;
736
- }>>;
651
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
737
652
  stats: {
738
653
  open: boolean;
739
654
  panels: number;
@@ -757,9 +672,9 @@ export declare const actionSetFrameAsActiveTool: {
757
672
  userToFollow: import("../types").UserToFollow | null;
758
673
  followedBy: Set<import("../types").SocketId>;
759
674
  isCropping: boolean;
760
- croppingElementId: string | null;
675
+ croppingElementId: ExcalidrawElement["id"] | null;
761
676
  searchMatches: Readonly<{
762
- focusedId: string | null;
677
+ focusedId: ExcalidrawElement["id"] | null;
763
678
  matches: readonly import("../types").SearchMatch[];
764
679
  }> | null;
765
680
  activeLockedId: string | null;
@@ -791,43 +706,34 @@ export declare const actionWrapSelectionInFrame: {
791
706
  fillStyle: import("@excalidraw/element/types").FillStyle;
792
707
  strokeWidth: number;
793
708
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
794
- roundness: {
709
+ roundness: null | {
795
710
  type: import("@excalidraw/element/types").RoundnessType;
796
- value?: number | undefined;
797
- } | null;
711
+ value?: number;
712
+ };
798
713
  roughness: number;
799
714
  opacity: number;
800
715
  width: number;
801
716
  height: number;
802
- angle: import("../../math/src").Radians;
717
+ angle: import("@excalidraw/math").Radians;
803
718
  seed: number;
804
719
  version: number;
805
720
  versionNonce: number;
806
721
  index: import("@excalidraw/element/types").FractionalIndex | null;
807
722
  isDeleted: boolean;
808
- groupIds: readonly string[];
723
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
809
724
  frameId: string | null;
810
- boundElements: readonly Readonly<{
811
- id: string;
812
- type: "text" | "arrow";
813
- }>[] | null;
725
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
814
726
  updated: number;
815
727
  link: string | null;
816
728
  locked: boolean;
817
- customData?: Record<string, any> | undefined;
729
+ customData?: Record<string, any>;
818
730
  }> & Readonly<{
819
- type: "text";
820
- fontSize: number;
821
- fontFamily: number;
822
- text: string;
823
- textAlign: string;
824
- verticalAlign: string;
825
- containerId: string | null;
826
- originalText: string;
827
- autoResize: boolean;
828
- lineHeight: number & {
829
- _brand: "unitlessLineHeight";
830
- };
731
+ type: "line" | "arrow";
732
+ points: readonly import("@excalidraw/math").LocalPoint[];
733
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
734
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
735
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
736
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
831
737
  }> & {
832
738
  index: import("@excalidraw/element/types").FractionalIndex;
833
739
  }) | (Readonly<{
@@ -839,32 +745,29 @@ export declare const actionWrapSelectionInFrame: {
839
745
  fillStyle: import("@excalidraw/element/types").FillStyle;
840
746
  strokeWidth: number;
841
747
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
842
- roundness: {
748
+ roundness: null | {
843
749
  type: import("@excalidraw/element/types").RoundnessType;
844
- value?: number | undefined;
845
- } | null;
750
+ value?: number;
751
+ };
846
752
  roughness: number;
847
753
  opacity: number;
848
754
  width: number;
849
755
  height: number;
850
- angle: import("../../math/src").Radians;
756
+ angle: import("@excalidraw/math").Radians;
851
757
  seed: number;
852
758
  version: number;
853
759
  versionNonce: number;
854
760
  index: import("@excalidraw/element/types").FractionalIndex | null;
855
761
  isDeleted: boolean;
856
- groupIds: readonly string[];
762
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
857
763
  frameId: string | null;
858
- boundElements: readonly Readonly<{
859
- id: string;
860
- type: "text" | "arrow";
861
- }>[] | null;
764
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
862
765
  updated: number;
863
766
  link: string | null;
864
767
  locked: boolean;
865
- customData?: Record<string, any> | undefined;
768
+ customData?: Record<string, any>;
866
769
  }> & {
867
- type: "rectangle";
770
+ type: "selection";
868
771
  } & {
869
772
  index: import("@excalidraw/element/types").FractionalIndex;
870
773
  }) | (Readonly<{
@@ -876,32 +779,29 @@ export declare const actionWrapSelectionInFrame: {
876
779
  fillStyle: import("@excalidraw/element/types").FillStyle;
877
780
  strokeWidth: number;
878
781
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
879
- roundness: {
782
+ roundness: null | {
880
783
  type: import("@excalidraw/element/types").RoundnessType;
881
- value?: number | undefined;
882
- } | null;
784
+ value?: number;
785
+ };
883
786
  roughness: number;
884
787
  opacity: number;
885
788
  width: number;
886
789
  height: number;
887
- angle: import("../../math/src").Radians;
790
+ angle: import("@excalidraw/math").Radians;
888
791
  seed: number;
889
792
  version: number;
890
793
  versionNonce: number;
891
794
  index: import("@excalidraw/element/types").FractionalIndex | null;
892
795
  isDeleted: boolean;
893
- groupIds: readonly string[];
796
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
894
797
  frameId: string | null;
895
- boundElements: readonly Readonly<{
896
- id: string;
897
- type: "text" | "arrow";
898
- }>[] | null;
798
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
899
799
  updated: number;
900
800
  link: string | null;
901
801
  locked: boolean;
902
- customData?: Record<string, any> | undefined;
802
+ customData?: Record<string, any>;
903
803
  }> & {
904
- type: "diamond";
804
+ type: "rectangle";
905
805
  } & {
906
806
  index: import("@excalidraw/element/types").FractionalIndex;
907
807
  }) | (Readonly<{
@@ -913,33 +813,29 @@ export declare const actionWrapSelectionInFrame: {
913
813
  fillStyle: import("@excalidraw/element/types").FillStyle;
914
814
  strokeWidth: number;
915
815
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
916
- roundness: {
816
+ roundness: null | {
917
817
  type: import("@excalidraw/element/types").RoundnessType;
918
- value?: number | undefined;
919
- } | null;
818
+ value?: number;
819
+ };
920
820
  roughness: number;
921
821
  opacity: number;
922
822
  width: number;
923
823
  height: number;
924
- angle: import("../../math/src").Radians;
824
+ angle: import("@excalidraw/math").Radians;
925
825
  seed: number;
926
826
  version: number;
927
827
  versionNonce: number;
928
828
  index: import("@excalidraw/element/types").FractionalIndex | null;
929
829
  isDeleted: boolean;
930
- groupIds: readonly string[];
830
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
931
831
  frameId: string | null;
932
- boundElements: readonly Readonly<{
933
- id: string;
934
- type: "text" | "arrow";
935
- }>[] | null;
832
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
936
833
  updated: number;
937
834
  link: string | null;
938
835
  locked: boolean;
939
- customData?: Record<string, any> | undefined;
836
+ customData?: Record<string, any>;
940
837
  }> & {
941
- type: "frame";
942
- name: string | null;
838
+ type: "diamond";
943
839
  } & {
944
840
  index: import("@excalidraw/element/types").FractionalIndex;
945
841
  }) | (Readonly<{
@@ -951,33 +847,29 @@ export declare const actionWrapSelectionInFrame: {
951
847
  fillStyle: import("@excalidraw/element/types").FillStyle;
952
848
  strokeWidth: number;
953
849
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
954
- roundness: {
850
+ roundness: null | {
955
851
  type: import("@excalidraw/element/types").RoundnessType;
956
- value?: number | undefined;
957
- } | null;
852
+ value?: number;
853
+ };
958
854
  roughness: number;
959
855
  opacity: number;
960
856
  width: number;
961
857
  height: number;
962
- angle: import("../../math/src").Radians;
858
+ angle: import("@excalidraw/math").Radians;
963
859
  seed: number;
964
860
  version: number;
965
861
  versionNonce: number;
966
862
  index: import("@excalidraw/element/types").FractionalIndex | null;
967
863
  isDeleted: boolean;
968
- groupIds: readonly string[];
864
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
969
865
  frameId: string | null;
970
- boundElements: readonly Readonly<{
971
- id: string;
972
- type: "text" | "arrow";
973
- }>[] | null;
866
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
974
867
  updated: number;
975
868
  link: string | null;
976
869
  locked: boolean;
977
- customData?: Record<string, any> | undefined;
870
+ customData?: Record<string, any>;
978
871
  }> & {
979
- type: "magicframe";
980
- name: string | null;
872
+ type: "ellipse";
981
873
  } & {
982
874
  index: import("@excalidraw/element/types").FractionalIndex;
983
875
  }) | (Readonly<{
@@ -989,30 +881,27 @@ export declare const actionWrapSelectionInFrame: {
989
881
  fillStyle: import("@excalidraw/element/types").FillStyle;
990
882
  strokeWidth: number;
991
883
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
992
- roundness: {
884
+ roundness: null | {
993
885
  type: import("@excalidraw/element/types").RoundnessType;
994
- value?: number | undefined;
995
- } | null;
886
+ value?: number;
887
+ };
996
888
  roughness: number;
997
889
  opacity: number;
998
890
  width: number;
999
891
  height: number;
1000
- angle: import("../../math/src").Radians;
892
+ angle: import("@excalidraw/math").Radians;
1001
893
  seed: number;
1002
894
  version: number;
1003
895
  versionNonce: number;
1004
896
  index: import("@excalidraw/element/types").FractionalIndex | null;
1005
897
  isDeleted: boolean;
1006
- groupIds: readonly string[];
898
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1007
899
  frameId: string | null;
1008
- boundElements: readonly Readonly<{
1009
- id: string;
1010
- type: "text" | "arrow";
1011
- }>[] | null;
900
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1012
901
  updated: number;
1013
902
  link: string | null;
1014
903
  locked: boolean;
1015
- customData?: Record<string, any> | undefined;
904
+ customData?: Record<string, any>;
1016
905
  }> & Readonly<{
1017
906
  type: "embeddable";
1018
907
  }> & {
@@ -1026,36 +915,32 @@ export declare const actionWrapSelectionInFrame: {
1026
915
  fillStyle: import("@excalidraw/element/types").FillStyle;
1027
916
  strokeWidth: number;
1028
917
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1029
- roundness: {
918
+ roundness: null | {
1030
919
  type: import("@excalidraw/element/types").RoundnessType;
1031
- value?: number | undefined;
1032
- } | null;
920
+ value?: number;
921
+ };
1033
922
  roughness: number;
1034
923
  opacity: number;
1035
924
  width: number;
1036
925
  height: number;
1037
- angle: import("../../math/src").Radians;
926
+ angle: import("@excalidraw/math").Radians;
1038
927
  seed: number;
1039
928
  version: number;
1040
929
  versionNonce: number;
1041
930
  index: import("@excalidraw/element/types").FractionalIndex | null;
1042
931
  isDeleted: boolean;
1043
- groupIds: readonly string[];
932
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1044
933
  frameId: string | null;
1045
- boundElements: readonly Readonly<{
1046
- id: string;
1047
- type: "text" | "arrow";
1048
- }>[] | null;
934
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1049
935
  updated: number;
1050
936
  link: string | null;
1051
937
  locked: boolean;
1052
- customData?: Record<string, any> | undefined;
938
+ customData?: Record<string, any>;
1053
939
  }> & Readonly<{
1054
- type: "image";
1055
- fileId: import("@excalidraw/element/types").FileId | null;
1056
- status: "pending" | "saved" | "error";
1057
- scale: [number, number];
1058
- crop: import("@excalidraw/element/types").ImageCrop | null;
940
+ type: "iframe";
941
+ customData?: {
942
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
943
+ };
1059
944
  }> & {
1060
945
  index: import("@excalidraw/element/types").FractionalIndex;
1061
946
  }) | (Readonly<{
@@ -1067,35 +952,33 @@ export declare const actionWrapSelectionInFrame: {
1067
952
  fillStyle: import("@excalidraw/element/types").FillStyle;
1068
953
  strokeWidth: number;
1069
954
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1070
- roundness: {
955
+ roundness: null | {
1071
956
  type: import("@excalidraw/element/types").RoundnessType;
1072
- value?: number | undefined;
1073
- } | null;
957
+ value?: number;
958
+ };
1074
959
  roughness: number;
1075
960
  opacity: number;
1076
961
  width: number;
1077
962
  height: number;
1078
- angle: import("../../math/src").Radians;
963
+ angle: import("@excalidraw/math").Radians;
1079
964
  seed: number;
1080
965
  version: number;
1081
966
  versionNonce: number;
1082
967
  index: import("@excalidraw/element/types").FractionalIndex | null;
1083
968
  isDeleted: boolean;
1084
- groupIds: readonly string[];
969
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1085
970
  frameId: string | null;
1086
- boundElements: readonly Readonly<{
1087
- id: string;
1088
- type: "text" | "arrow";
1089
- }>[] | null;
971
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1090
972
  updated: number;
1091
973
  link: string | null;
1092
974
  locked: boolean;
1093
- customData?: Record<string, any> | undefined;
975
+ customData?: Record<string, any>;
1094
976
  }> & Readonly<{
1095
- type: "iframe";
1096
- customData?: {
1097
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1098
- } | undefined;
977
+ type: "image";
978
+ fileId: import("@excalidraw/element/types").FileId | null;
979
+ status: "pending" | "saved" | "error";
980
+ scale: [number, number];
981
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1099
982
  }> & {
1100
983
  index: import("@excalidraw/element/types").FractionalIndex;
1101
984
  }) | (Readonly<{
@@ -1107,32 +990,30 @@ export declare const actionWrapSelectionInFrame: {
1107
990
  fillStyle: import("@excalidraw/element/types").FillStyle;
1108
991
  strokeWidth: number;
1109
992
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1110
- roundness: {
993
+ roundness: null | {
1111
994
  type: import("@excalidraw/element/types").RoundnessType;
1112
- value?: number | undefined;
1113
- } | null;
995
+ value?: number;
996
+ };
1114
997
  roughness: number;
1115
998
  opacity: number;
1116
999
  width: number;
1117
1000
  height: number;
1118
- angle: import("../../math/src").Radians;
1001
+ angle: import("@excalidraw/math").Radians;
1119
1002
  seed: number;
1120
1003
  version: number;
1121
1004
  versionNonce: number;
1122
1005
  index: import("@excalidraw/element/types").FractionalIndex | null;
1123
1006
  isDeleted: boolean;
1124
- groupIds: readonly string[];
1007
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1125
1008
  frameId: string | null;
1126
- boundElements: readonly Readonly<{
1127
- id: string;
1128
- type: "text" | "arrow";
1129
- }>[] | null;
1009
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1130
1010
  updated: number;
1131
1011
  link: string | null;
1132
1012
  locked: boolean;
1133
- customData?: Record<string, any> | undefined;
1013
+ customData?: Record<string, any>;
1134
1014
  }> & {
1135
- type: "selection";
1015
+ type: "frame";
1016
+ name: string | null;
1136
1017
  } & {
1137
1018
  index: import("@excalidraw/element/types").FractionalIndex;
1138
1019
  }) | (Readonly<{
@@ -1144,32 +1025,30 @@ export declare const actionWrapSelectionInFrame: {
1144
1025
  fillStyle: import("@excalidraw/element/types").FillStyle;
1145
1026
  strokeWidth: number;
1146
1027
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1147
- roundness: {
1028
+ roundness: null | {
1148
1029
  type: import("@excalidraw/element/types").RoundnessType;
1149
- value?: number | undefined;
1150
- } | null;
1030
+ value?: number;
1031
+ };
1151
1032
  roughness: number;
1152
1033
  opacity: number;
1153
1034
  width: number;
1154
1035
  height: number;
1155
- angle: import("../../math/src").Radians;
1036
+ angle: import("@excalidraw/math").Radians;
1156
1037
  seed: number;
1157
1038
  version: number;
1158
1039
  versionNonce: number;
1159
1040
  index: import("@excalidraw/element/types").FractionalIndex | null;
1160
1041
  isDeleted: boolean;
1161
- groupIds: readonly string[];
1042
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1162
1043
  frameId: string | null;
1163
- boundElements: readonly Readonly<{
1164
- id: string;
1165
- type: "text" | "arrow";
1166
- }>[] | null;
1044
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1167
1045
  updated: number;
1168
1046
  link: string | null;
1169
1047
  locked: boolean;
1170
- customData?: Record<string, any> | undefined;
1048
+ customData?: Record<string, any>;
1171
1049
  }> & {
1172
- type: "ellipse";
1050
+ type: "magicframe";
1051
+ name: string | null;
1173
1052
  } & {
1174
1053
  index: import("@excalidraw/element/types").FractionalIndex;
1175
1054
  }) | (Readonly<{
@@ -1181,37 +1060,40 @@ export declare const actionWrapSelectionInFrame: {
1181
1060
  fillStyle: import("@excalidraw/element/types").FillStyle;
1182
1061
  strokeWidth: number;
1183
1062
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1184
- roundness: {
1063
+ roundness: null | {
1185
1064
  type: import("@excalidraw/element/types").RoundnessType;
1186
- value?: number | undefined;
1187
- } | null;
1065
+ value?: number;
1066
+ };
1188
1067
  roughness: number;
1189
1068
  opacity: number;
1190
1069
  width: number;
1191
1070
  height: number;
1192
- angle: import("../../math/src").Radians;
1071
+ angle: import("@excalidraw/math").Radians;
1193
1072
  seed: number;
1194
1073
  version: number;
1195
1074
  versionNonce: number;
1196
1075
  index: import("@excalidraw/element/types").FractionalIndex | null;
1197
1076
  isDeleted: boolean;
1198
- groupIds: readonly string[];
1077
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1199
1078
  frameId: string | null;
1200
- boundElements: readonly Readonly<{
1201
- id: string;
1202
- type: "text" | "arrow";
1203
- }>[] | null;
1079
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1204
1080
  updated: number;
1205
1081
  link: string | null;
1206
1082
  locked: boolean;
1207
- customData?: Record<string, any> | undefined;
1083
+ customData?: Record<string, any>;
1208
1084
  }> & Readonly<{
1209
- type: "line" | "arrow";
1210
- points: readonly import("../../math/src").LocalPoint[];
1211
- startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
1212
- endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
1213
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1214
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1085
+ type: "text";
1086
+ fontSize: number;
1087
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1088
+ text: string;
1089
+ textAlign: import("@excalidraw/element/types").TextAlign;
1090
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
1091
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
1092
+ originalText: string;
1093
+ autoResize: boolean;
1094
+ lineHeight: number & {
1095
+ _brand: "unitlessLineHeight";
1096
+ };
1215
1097
  }> & {
1216
1098
  index: import("@excalidraw/element/types").FractionalIndex;
1217
1099
  }) | (Readonly<{
@@ -1223,33 +1105,30 @@ export declare const actionWrapSelectionInFrame: {
1223
1105
  fillStyle: import("@excalidraw/element/types").FillStyle;
1224
1106
  strokeWidth: number;
1225
1107
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1226
- roundness: {
1108
+ roundness: null | {
1227
1109
  type: import("@excalidraw/element/types").RoundnessType;
1228
- value?: number | undefined;
1229
- } | null;
1110
+ value?: number;
1111
+ };
1230
1112
  roughness: number;
1231
1113
  opacity: number;
1232
1114
  width: number;
1233
1115
  height: number;
1234
- angle: import("../../math/src").Radians;
1116
+ angle: import("@excalidraw/math").Radians;
1235
1117
  seed: number;
1236
1118
  version: number;
1237
1119
  versionNonce: number;
1238
1120
  index: import("@excalidraw/element/types").FractionalIndex | null;
1239
1121
  isDeleted: boolean;
1240
- groupIds: readonly string[];
1122
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1241
1123
  frameId: string | null;
1242
- boundElements: readonly Readonly<{
1243
- id: string;
1244
- type: "text" | "arrow";
1245
- }>[] | null;
1124
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1246
1125
  updated: number;
1247
1126
  link: string | null;
1248
1127
  locked: boolean;
1249
- customData?: Record<string, any> | undefined;
1128
+ customData?: Record<string, any>;
1250
1129
  }> & Readonly<{
1251
1130
  type: "freedraw";
1252
- points: readonly import("../../math/src").LocalPoint[];
1131
+ points: readonly import("@excalidraw/math").LocalPoint[];
1253
1132
  pressures: readonly number[];
1254
1133
  simulatePressure: boolean;
1255
1134
  }> & {