@excalidraw/common 0.18.0-c6f8ef9 → 0.18.0-d1cff91

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 (251) hide show
  1. package/dist/dev/index.js +1522 -239
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/bounds.d.ts +10 -0
  6. package/dist/types/common/src/colors.d.ts +59 -39
  7. package/dist/types/common/src/constants.d.ts +38 -27
  8. package/dist/types/common/src/editorInterface.d.ts +34 -0
  9. package/dist/types/common/src/font-metadata.d.ts +1 -3
  10. package/dist/types/common/src/index.d.ts +3 -0
  11. package/dist/types/common/src/keys.d.ts +1 -1
  12. package/dist/types/common/src/utility-types.d.ts +0 -1
  13. package/dist/types/common/src/utils.d.ts +53 -39
  14. package/dist/types/element/src/Scene.d.ts +6 -4
  15. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  16. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  17. package/dist/types/element/src/binding.d.ts +67 -48
  18. package/dist/types/element/src/bounds.d.ts +3 -11
  19. package/dist/types/element/src/collision.d.ts +7 -2
  20. package/dist/types/element/src/comparisons.d.ts +7 -7
  21. package/dist/types/element/src/delta.d.ts +0 -1
  22. package/dist/types/element/src/distribute.d.ts +2 -1
  23. package/dist/types/element/src/dragElements.d.ts +3 -3
  24. package/dist/types/element/src/duplicate.d.ts +3 -3
  25. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  26. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  27. package/dist/types/element/src/frame.d.ts +7 -3
  28. package/dist/types/element/src/heading.d.ts +2 -1
  29. package/dist/types/element/src/image.d.ts +1 -11
  30. package/dist/types/element/src/index.d.ts +4 -3
  31. package/dist/types/element/src/linearElementEditor.d.ts +21 -20
  32. package/dist/types/element/src/mutateElement.d.ts +5 -1
  33. package/dist/types/element/src/newElement.d.ts +6 -6
  34. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  35. package/dist/types/element/src/renderElement.d.ts +4 -7
  36. package/dist/types/element/src/resizeElements.d.ts +10 -10
  37. package/dist/types/element/src/resizeTest.d.ts +6 -5
  38. package/dist/types/element/src/selection.d.ts +3 -7
  39. package/dist/types/element/src/shape.d.ts +8 -7
  40. package/dist/types/element/src/textElement.d.ts +1 -1
  41. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  42. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  43. package/dist/types/element/src/transformHandles.d.ts +8 -27
  44. package/dist/types/element/src/typeChecks.d.ts +4 -7
  45. package/dist/types/element/src/types.d.ts +8 -12
  46. package/dist/types/element/src/utils.d.ts +8 -3
  47. package/dist/types/element/src/zindex.d.ts +7 -1
  48. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +162 -202
  49. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  50. package/dist/types/excalidraw/actions/actionBoundText.d.ts +85 -112
  51. package/dist/types/excalidraw/actions/actionCanvas.d.ts +509 -853
  52. package/dist/types/excalidraw/actions/actionClipboard.d.ts +119 -887
  53. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +41 -55
  54. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +139 -183
  55. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  56. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  57. package/dist/types/excalidraw/actions/actionElementLink.d.ts +51 -71
  58. package/dist/types/excalidraw/actions/actionElementLock.d.ts +84 -111
  59. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +57 -71
  60. package/dist/types/excalidraw/actions/actionExport.d.ts +181 -1141
  61. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
  62. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  63. package/dist/types/excalidraw/actions/actionFrame.d.ts +288 -379
  64. package/dist/types/excalidraw/actions/actionGroup.d.ts +88 -123
  65. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +176 -228
  66. package/dist/types/excalidraw/actions/actionLink.d.ts +57 -71
  67. package/dist/types/excalidraw/actions/actionMenu.d.ts +46 -432
  68. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
  69. package/dist/types/excalidraw/actions/actionProperties.d.ts +144 -2501
  70. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +44 -62
  71. package/dist/types/excalidraw/actions/actionStyles.d.ts +41 -55
  72. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  73. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
  74. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +57 -71
  75. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  76. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +57 -71
  77. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +45 -65
  78. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  79. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +56 -70
  80. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +57 -71
  81. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +57 -71
  82. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  83. package/dist/types/excalidraw/actions/index.d.ts +4 -2
  84. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  85. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  86. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  87. package/dist/types/excalidraw/appState.d.ts +28 -21
  88. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  89. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  90. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  91. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  92. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  93. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  94. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  95. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  96. package/dist/types/excalidraw/clipboard.d.ts +58 -19
  97. package/dist/types/excalidraw/components/Actions.d.ts +22 -5
  98. package/dist/types/excalidraw/components/App.d.ts +74 -66
  99. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  100. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  101. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  102. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  103. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  104. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  105. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  106. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  107. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  108. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  109. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  110. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  111. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  112. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  114. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  115. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
  116. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  117. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  118. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  119. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  120. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  121. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  122. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  123. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  124. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  125. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  126. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  127. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  128. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  129. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  130. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  131. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  132. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  133. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  134. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  135. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  136. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  137. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  138. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  139. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  140. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  141. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  142. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  143. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  144. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  145. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  146. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  147. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  148. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  149. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  150. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  151. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  152. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  153. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  154. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  155. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  156. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  157. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  158. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  159. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  160. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  161. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  162. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  163. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  164. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  165. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  166. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -3
  167. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  168. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  169. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  170. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  171. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  172. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  173. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  174. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  175. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  176. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  177. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  178. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  179. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  180. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  181. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  182. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  183. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  184. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  185. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  186. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  187. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  188. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  193. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  194. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  197. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  198. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  199. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  200. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  201. package/dist/types/excalidraw/components/icons.d.ts +32 -13
  202. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  203. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +19 -2
  204. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  205. package/dist/types/excalidraw/components/shapes.d.ts +202 -1
  206. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  207. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  208. package/dist/types/excalidraw/data/blob.d.ts +326 -10
  209. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  210. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  211. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  212. package/dist/types/excalidraw/data/index.d.ts +3 -3
  213. package/dist/types/excalidraw/data/json.d.ts +160 -2
  214. package/dist/types/excalidraw/data/library.d.ts +24 -9
  215. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  216. package/dist/types/excalidraw/data/types.d.ts +4 -1
  217. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  218. package/dist/types/excalidraw/errors.d.ts +14 -0
  219. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  220. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  221. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  222. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  223. package/dist/types/excalidraw/i18n.d.ts +2 -2
  224. package/dist/types/excalidraw/index.d.ts +8 -7
  225. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  226. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  227. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  228. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  229. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  230. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  231. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  232. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  233. package/dist/types/excalidraw/snapping.d.ts +5 -5
  234. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  235. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  236. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  237. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  238. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  239. package/dist/types/excalidraw/types.d.ts +52 -29
  240. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  241. package/dist/types/math/src/point.d.ts +6 -1
  242. package/dist/types/math/src/polygon.d.ts +2 -2
  243. package/dist/types/math/src/range.d.ts +1 -3
  244. package/dist/types/math/src/segment.d.ts +4 -3
  245. package/dist/types/math/src/types.d.ts +25 -1
  246. package/dist/types/utils/src/bbox.d.ts +1 -1
  247. package/dist/types/utils/src/export.d.ts +5 -5
  248. package/dist/types/utils/src/shape.d.ts +6 -6
  249. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  250. package/package.json +7 -1
  251. package/dist/types/excalidraw/charts.d.ts +0 -27
@@ -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: {
@@ -7,7 +6,7 @@ export declare const actionSelectAllElementsInFrame: {
7
6
  trackEvent: {
8
7
  category: "canvas";
9
8
  };
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
11
10
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
12
11
  appState: {
13
12
  selectedElementIds: Record<string, true>;
@@ -18,18 +17,23 @@ 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;
28
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
29
  isBindingEnabled: boolean;
30
+ bindingPreference: "enabled" | "disabled";
31
+ isMidpointSnappingEnabled: boolean;
31
32
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
33
+ suggestedBinding: {
34
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
+ midPoint?: import("@excalidraw/math").GlobalPoint;
36
+ } | null;
33
37
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
38
  frameRendering: {
35
39
  enabled: boolean;
@@ -45,6 +49,10 @@ export declare const actionSelectAllElementsInFrame: {
45
49
  locked: boolean;
46
50
  fromSelection: boolean;
47
51
  } & import("../types").ActiveTool;
52
+ preferredSelectionTool: {
53
+ type: "selection" | "lasso";
54
+ initialized: boolean;
55
+ };
48
56
  penMode: boolean;
49
57
  penDetected: boolean;
50
58
  exportBackground: boolean;
@@ -53,19 +61,19 @@ export declare const actionSelectAllElementsInFrame: {
53
61
  exportScale: number;
54
62
  currentItemStrokeColor: string;
55
63
  currentItemBackgroundColor: string;
56
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
64
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
57
65
  currentItemStrokeWidth: number;
58
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
66
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
59
67
  currentItemRoughness: number;
60
68
  currentItemOpacity: number;
61
- currentItemFontFamily: number;
69
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
62
70
  currentItemFontSize: number;
63
- currentItemTextAlign: string;
71
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
64
72
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
73
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
- currentHoveredFontFamily: number | null;
74
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
67
75
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
68
- currentItemArrowType: "round" | "sharp" | "elbow";
76
+ currentItemArrowType: "sharp" | "round" | "elbow";
69
77
  viewBackgroundColor: string;
70
78
  scrollX: number;
71
79
  scrollY: number;
@@ -74,26 +82,30 @@ export declare const actionSelectAllElementsInFrame: {
74
82
  name: string | null;
75
83
  isResizing: boolean;
76
84
  isRotating: boolean;
77
- zoom: Readonly<{
78
- value: import("../types").NormalizedZoomValue;
79
- }>;
80
- openMenu: "canvas" | "shape" | null;
81
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
85
+ zoom: import("../types").Zoom;
86
+ openMenu: "canvas" | null;
87
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
82
88
  openSidebar: {
83
- name: string;
84
- tab?: string | undefined;
89
+ name: import("../types").SidebarName;
90
+ tab?: import("../types").SidebarTabName;
85
91
  } | null;
86
- openDialog: {
92
+ openDialog: null | {
87
93
  name: "imageExport" | "help" | "jsonExport";
88
94
  } | {
89
95
  name: "ttd";
90
- tab: "mermaid" | "text-to-diagram";
96
+ tab: "text-to-diagram" | "mermaid";
91
97
  } | {
92
98
  name: "commandPalette";
99
+ } | {
100
+ name: "settings";
93
101
  } | {
94
102
  name: "elementLinkSelector";
95
- sourceElementId: string;
96
- } | null;
103
+ sourceElementId: ExcalidrawElement["id"];
104
+ } | {
105
+ name: "charts";
106
+ data: import("../charts").Spreadsheet;
107
+ rawText: string;
108
+ };
97
109
  defaultSidebarDockedPreference: boolean;
98
110
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
99
111
  hoveredElementIds: Readonly<{
@@ -106,8 +118,8 @@ export declare const actionSelectAllElementsInFrame: {
106
118
  shouldCacheIgnoreZoom: boolean;
107
119
  toast: {
108
120
  message: string;
109
- closable?: boolean | undefined;
110
- duration?: number | undefined;
121
+ closable?: boolean;
122
+ duration?: number;
111
123
  } | null;
112
124
  zenModeEnabled: boolean;
113
125
  theme: import("@excalidraw/element/types").Theme;
@@ -118,45 +130,18 @@ export declare const actionSelectAllElementsInFrame: {
118
130
  selectedGroupIds: {
119
131
  [groupId: string]: boolean;
120
132
  };
121
- editingGroupId: string | null;
133
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
122
134
  width: number;
123
135
  height: number;
124
136
  offsetTop: number;
125
137
  offsetLeft: number;
126
138
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
127
- collaborators: Map<import("../types").SocketId, Readonly<{
128
- pointer?: import("../types").CollaboratorPointer | undefined;
129
- button?: "up" | "down" | undefined;
130
- selectedElementIds?: Readonly<{
131
- [id: string]: true;
132
- }> | undefined;
133
- username?: string | null | undefined;
134
- userState?: import("@excalidraw/common").UserIdleState | undefined;
135
- color?: {
136
- background: string;
137
- stroke: string;
138
- } | undefined;
139
- avatarUrl?: string | undefined;
140
- id?: string | undefined;
141
- socketId?: import("../types").SocketId | undefined;
142
- isCurrentUser?: boolean | undefined;
143
- isInCall?: boolean | undefined;
144
- isSpeaking?: boolean | undefined;
145
- isMuted?: boolean | undefined;
146
- }>>;
139
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
147
140
  stats: {
148
141
  open: boolean;
149
142
  panels: number;
150
143
  };
151
- currentChartType: import("@excalidraw/element/types").ChartType;
152
- pasteDialog: {
153
- shown: false;
154
- data: null;
155
- } | {
156
- shown: true;
157
- data: import("../charts").Spreadsheet;
158
- };
159
- showHyperlinkPopup: false | "editor" | "info";
144
+ showHyperlinkPopup: false | "info" | "editor";
160
145
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
146
  snapLines: readonly import("../snapping").SnapLine[];
162
147
  originSnapOffset: {
@@ -167,15 +152,16 @@ export declare const actionSelectAllElementsInFrame: {
167
152
  userToFollow: import("../types").UserToFollow | null;
168
153
  followedBy: Set<import("../types").SocketId>;
169
154
  isCropping: boolean;
170
- croppingElementId: string | null;
155
+ croppingElementId: ExcalidrawElement["id"] | null;
171
156
  searchMatches: Readonly<{
172
- focusedId: string | null;
157
+ focusedId: ExcalidrawElement["id"] | null;
173
158
  matches: readonly import("../types").SearchMatch[];
174
159
  }> | null;
175
160
  activeLockedId: string | null;
176
161
  lockedMultiSelections: {
177
162
  [groupId: string]: true;
178
163
  };
164
+ bindMode: import("@excalidraw/element/types").BindMode;
179
165
  };
180
166
  captureUpdate: "IMMEDIATELY";
181
167
  } | {
@@ -193,7 +179,7 @@ export declare const actionRemoveAllElementsFromFrame: {
193
179
  trackEvent: {
194
180
  category: "history";
195
181
  };
196
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
182
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
197
183
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
198
184
  appState: {
199
185
  selectedElementIds: {
@@ -206,18 +192,23 @@ export declare const actionRemoveAllElementsFromFrame: {
206
192
  } | null;
207
193
  showWelcomeScreen: boolean;
208
194
  isLoading: boolean;
209
- errorMessage: import("react").ReactNode;
195
+ errorMessage: React.ReactNode;
210
196
  activeEmbeddable: {
211
197
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
212
- state: "active" | "hover";
198
+ state: "hover" | "active";
213
199
  } | null;
214
200
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
215
201
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
216
202
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
217
203
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
218
204
  isBindingEnabled: boolean;
205
+ bindingPreference: "enabled" | "disabled";
206
+ isMidpointSnappingEnabled: boolean;
219
207
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
220
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
208
+ suggestedBinding: {
209
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
210
+ midPoint?: import("@excalidraw/math").GlobalPoint;
211
+ } | null;
221
212
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
222
213
  frameRendering: {
223
214
  enabled: boolean;
@@ -233,6 +224,10 @@ export declare const actionRemoveAllElementsFromFrame: {
233
224
  locked: boolean;
234
225
  fromSelection: boolean;
235
226
  } & import("../types").ActiveTool;
227
+ preferredSelectionTool: {
228
+ type: "selection" | "lasso";
229
+ initialized: boolean;
230
+ };
236
231
  penMode: boolean;
237
232
  penDetected: boolean;
238
233
  exportBackground: boolean;
@@ -241,19 +236,19 @@ export declare const actionRemoveAllElementsFromFrame: {
241
236
  exportScale: number;
242
237
  currentItemStrokeColor: string;
243
238
  currentItemBackgroundColor: string;
244
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
239
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
245
240
  currentItemStrokeWidth: number;
246
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
241
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
247
242
  currentItemRoughness: number;
248
243
  currentItemOpacity: number;
249
- currentItemFontFamily: number;
244
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
250
245
  currentItemFontSize: number;
251
- currentItemTextAlign: string;
246
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
252
247
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
253
248
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
254
- currentHoveredFontFamily: number | null;
249
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
255
250
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
256
- currentItemArrowType: "round" | "sharp" | "elbow";
251
+ currentItemArrowType: "sharp" | "round" | "elbow";
257
252
  viewBackgroundColor: string;
258
253
  scrollX: number;
259
254
  scrollY: number;
@@ -262,26 +257,30 @@ export declare const actionRemoveAllElementsFromFrame: {
262
257
  name: string | null;
263
258
  isResizing: boolean;
264
259
  isRotating: boolean;
265
- zoom: Readonly<{
266
- value: import("../types").NormalizedZoomValue;
267
- }>;
268
- openMenu: "canvas" | "shape" | null;
269
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
260
+ zoom: import("../types").Zoom;
261
+ openMenu: "canvas" | null;
262
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
270
263
  openSidebar: {
271
- name: string;
272
- tab?: string | undefined;
264
+ name: import("../types").SidebarName;
265
+ tab?: import("../types").SidebarTabName;
273
266
  } | null;
274
- openDialog: {
267
+ openDialog: null | {
275
268
  name: "imageExport" | "help" | "jsonExport";
276
269
  } | {
277
270
  name: "ttd";
278
- tab: "mermaid" | "text-to-diagram";
271
+ tab: "text-to-diagram" | "mermaid";
279
272
  } | {
280
273
  name: "commandPalette";
274
+ } | {
275
+ name: "settings";
281
276
  } | {
282
277
  name: "elementLinkSelector";
283
- sourceElementId: string;
284
- } | null;
278
+ sourceElementId: ExcalidrawElement["id"];
279
+ } | {
280
+ name: "charts";
281
+ data: import("../charts").Spreadsheet;
282
+ rawText: string;
283
+ };
285
284
  defaultSidebarDockedPreference: boolean;
286
285
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
287
286
  hoveredElementIds: Readonly<{
@@ -294,8 +293,8 @@ export declare const actionRemoveAllElementsFromFrame: {
294
293
  shouldCacheIgnoreZoom: boolean;
295
294
  toast: {
296
295
  message: string;
297
- closable?: boolean | undefined;
298
- duration?: number | undefined;
296
+ closable?: boolean;
297
+ duration?: number;
299
298
  } | null;
300
299
  zenModeEnabled: boolean;
301
300
  theme: import("@excalidraw/element/types").Theme;
@@ -306,45 +305,18 @@ export declare const actionRemoveAllElementsFromFrame: {
306
305
  selectedGroupIds: {
307
306
  [groupId: string]: boolean;
308
307
  };
309
- editingGroupId: string | null;
308
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
310
309
  width: number;
311
310
  height: number;
312
311
  offsetTop: number;
313
312
  offsetLeft: number;
314
313
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
315
- collaborators: Map<import("../types").SocketId, Readonly<{
316
- pointer?: import("../types").CollaboratorPointer | undefined;
317
- button?: "up" | "down" | undefined;
318
- selectedElementIds?: Readonly<{
319
- [id: string]: true;
320
- }> | undefined;
321
- username?: string | null | undefined;
322
- userState?: import("@excalidraw/common").UserIdleState | undefined;
323
- color?: {
324
- background: string;
325
- stroke: string;
326
- } | undefined;
327
- avatarUrl?: string | undefined;
328
- id?: string | undefined;
329
- socketId?: import("../types").SocketId | undefined;
330
- isCurrentUser?: boolean | undefined;
331
- isInCall?: boolean | undefined;
332
- isSpeaking?: boolean | undefined;
333
- isMuted?: boolean | undefined;
334
- }>>;
314
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
335
315
  stats: {
336
316
  open: boolean;
337
317
  panels: number;
338
318
  };
339
- currentChartType: import("@excalidraw/element/types").ChartType;
340
- pasteDialog: {
341
- shown: false;
342
- data: null;
343
- } | {
344
- shown: true;
345
- data: import("../charts").Spreadsheet;
346
- };
347
- showHyperlinkPopup: false | "editor" | "info";
319
+ showHyperlinkPopup: false | "info" | "editor";
348
320
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
321
  snapLines: readonly import("../snapping").SnapLine[];
350
322
  originSnapOffset: {
@@ -355,15 +327,16 @@ export declare const actionRemoveAllElementsFromFrame: {
355
327
  userToFollow: import("../types").UserToFollow | null;
356
328
  followedBy: Set<import("../types").SocketId>;
357
329
  isCropping: boolean;
358
- croppingElementId: string | null;
330
+ croppingElementId: ExcalidrawElement["id"] | null;
359
331
  searchMatches: Readonly<{
360
- focusedId: string | null;
332
+ focusedId: ExcalidrawElement["id"] | null;
361
333
  matches: readonly import("../types").SearchMatch[];
362
334
  }> | null;
363
335
  activeLockedId: string | null;
364
336
  lockedMultiSelections: {
365
337
  [groupId: string]: true;
366
338
  };
339
+ bindMode: import("@excalidraw/element/types").BindMode;
367
340
  };
368
341
  captureUpdate: "IMMEDIATELY";
369
342
  } | {
@@ -398,18 +371,23 @@ export declare const actionupdateFrameRendering: {
398
371
  } | null;
399
372
  showWelcomeScreen: boolean;
400
373
  isLoading: boolean;
401
- errorMessage: import("react").ReactNode;
374
+ errorMessage: React.ReactNode;
402
375
  activeEmbeddable: {
403
376
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
404
- state: "active" | "hover";
377
+ state: "hover" | "active";
405
378
  } | null;
406
379
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
407
380
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
408
381
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
409
382
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
383
  isBindingEnabled: boolean;
384
+ bindingPreference: "enabled" | "disabled";
385
+ isMidpointSnappingEnabled: boolean;
411
386
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
412
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
387
+ suggestedBinding: {
388
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
389
+ midPoint?: import("@excalidraw/math").GlobalPoint;
390
+ } | null;
413
391
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
414
392
  editingFrame: string | null;
415
393
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -419,6 +397,10 @@ export declare const actionupdateFrameRendering: {
419
397
  locked: boolean;
420
398
  fromSelection: boolean;
421
399
  } & import("../types").ActiveTool;
400
+ preferredSelectionTool: {
401
+ type: "selection" | "lasso";
402
+ initialized: boolean;
403
+ };
422
404
  penMode: boolean;
423
405
  penDetected: boolean;
424
406
  exportBackground: boolean;
@@ -427,19 +409,19 @@ export declare const actionupdateFrameRendering: {
427
409
  exportScale: number;
428
410
  currentItemStrokeColor: string;
429
411
  currentItemBackgroundColor: string;
430
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
412
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
431
413
  currentItemStrokeWidth: number;
432
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
414
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
433
415
  currentItemRoughness: number;
434
416
  currentItemOpacity: number;
435
- currentItemFontFamily: number;
417
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
436
418
  currentItemFontSize: number;
437
- currentItemTextAlign: string;
419
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
438
420
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
439
421
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
440
- currentHoveredFontFamily: number | null;
422
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
441
423
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
442
- currentItemArrowType: "round" | "sharp" | "elbow";
424
+ currentItemArrowType: "sharp" | "round" | "elbow";
443
425
  viewBackgroundColor: string;
444
426
  scrollX: number;
445
427
  scrollY: number;
@@ -448,26 +430,30 @@ export declare const actionupdateFrameRendering: {
448
430
  name: string | null;
449
431
  isResizing: boolean;
450
432
  isRotating: boolean;
451
- zoom: Readonly<{
452
- value: import("../types").NormalizedZoomValue;
453
- }>;
454
- openMenu: "canvas" | "shape" | null;
455
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
433
+ zoom: import("../types").Zoom;
434
+ openMenu: "canvas" | null;
435
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
456
436
  openSidebar: {
457
- name: string;
458
- tab?: string | undefined;
437
+ name: import("../types").SidebarName;
438
+ tab?: import("../types").SidebarTabName;
459
439
  } | null;
460
- openDialog: {
440
+ openDialog: null | {
461
441
  name: "imageExport" | "help" | "jsonExport";
462
442
  } | {
463
443
  name: "ttd";
464
- tab: "mermaid" | "text-to-diagram";
444
+ tab: "text-to-diagram" | "mermaid";
465
445
  } | {
466
446
  name: "commandPalette";
447
+ } | {
448
+ name: "settings";
467
449
  } | {
468
450
  name: "elementLinkSelector";
469
- sourceElementId: string;
470
- } | null;
451
+ sourceElementId: ExcalidrawElement["id"];
452
+ } | {
453
+ name: "charts";
454
+ data: import("../charts").Spreadsheet;
455
+ rawText: string;
456
+ };
471
457
  defaultSidebarDockedPreference: boolean;
472
458
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
473
459
  selectedElementIds: Readonly<{
@@ -483,8 +469,8 @@ export declare const actionupdateFrameRendering: {
483
469
  shouldCacheIgnoreZoom: boolean;
484
470
  toast: {
485
471
  message: string;
486
- closable?: boolean | undefined;
487
- duration?: number | undefined;
472
+ closable?: boolean;
473
+ duration?: number;
488
474
  } | null;
489
475
  zenModeEnabled: boolean;
490
476
  theme: import("@excalidraw/element/types").Theme;
@@ -495,45 +481,18 @@ export declare const actionupdateFrameRendering: {
495
481
  selectedGroupIds: {
496
482
  [groupId: string]: boolean;
497
483
  };
498
- editingGroupId: string | null;
484
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
499
485
  width: number;
500
486
  height: number;
501
487
  offsetTop: number;
502
488
  offsetLeft: number;
503
489
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
504
- collaborators: Map<import("../types").SocketId, Readonly<{
505
- pointer?: import("../types").CollaboratorPointer | undefined;
506
- button?: "up" | "down" | undefined;
507
- selectedElementIds?: Readonly<{
508
- [id: string]: true;
509
- }> | undefined;
510
- username?: string | null | undefined;
511
- userState?: import("@excalidraw/common").UserIdleState | undefined;
512
- color?: {
513
- background: string;
514
- stroke: string;
515
- } | undefined;
516
- avatarUrl?: string | undefined;
517
- id?: string | undefined;
518
- socketId?: import("../types").SocketId | undefined;
519
- isCurrentUser?: boolean | undefined;
520
- isInCall?: boolean | undefined;
521
- isSpeaking?: boolean | undefined;
522
- isMuted?: boolean | undefined;
523
- }>>;
490
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
524
491
  stats: {
525
492
  open: boolean;
526
493
  panels: number;
527
494
  };
528
- currentChartType: import("@excalidraw/element/types").ChartType;
529
- pasteDialog: {
530
- shown: false;
531
- data: null;
532
- } | {
533
- shown: true;
534
- data: import("../charts").Spreadsheet;
535
- };
536
- showHyperlinkPopup: false | "editor" | "info";
495
+ showHyperlinkPopup: false | "info" | "editor";
537
496
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
538
497
  snapLines: readonly import("../snapping").SnapLine[];
539
498
  originSnapOffset: {
@@ -544,15 +503,16 @@ export declare const actionupdateFrameRendering: {
544
503
  userToFollow: import("../types").UserToFollow | null;
545
504
  followedBy: Set<import("../types").SocketId>;
546
505
  isCropping: boolean;
547
- croppingElementId: string | null;
506
+ croppingElementId: ExcalidrawElement["id"] | null;
548
507
  searchMatches: Readonly<{
549
- focusedId: string | null;
508
+ focusedId: ExcalidrawElement["id"] | null;
550
509
  matches: readonly import("../types").SearchMatch[];
551
510
  }> | null;
552
511
  activeLockedId: string | null;
553
512
  lockedMultiSelections: {
554
513
  [groupId: string]: true;
555
514
  };
515
+ bindMode: import("@excalidraw/element/types").BindMode;
556
516
  };
557
517
  captureUpdate: "EVENTUALLY";
558
518
  };
@@ -568,7 +528,7 @@ export declare const actionSetFrameAsActiveTool: {
568
528
  };
569
529
  icon: import("react/jsx-runtime").JSX.Element;
570
530
  viewMode: false;
571
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
531
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
572
532
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
573
533
  appState: {
574
534
  activeTool: {
@@ -583,18 +543,23 @@ export declare const actionSetFrameAsActiveTool: {
583
543
  } | null;
584
544
  showWelcomeScreen: boolean;
585
545
  isLoading: boolean;
586
- errorMessage: import("react").ReactNode;
546
+ errorMessage: React.ReactNode;
587
547
  activeEmbeddable: {
588
548
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
589
- state: "active" | "hover";
549
+ state: "hover" | "active";
590
550
  } | null;
591
551
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
592
552
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
593
553
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
594
554
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
595
555
  isBindingEnabled: boolean;
556
+ bindingPreference: "enabled" | "disabled";
557
+ isMidpointSnappingEnabled: boolean;
596
558
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
597
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
559
+ suggestedBinding: {
560
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
561
+ midPoint?: import("@excalidraw/math").GlobalPoint;
562
+ } | null;
598
563
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
599
564
  frameRendering: {
600
565
  enabled: boolean;
@@ -605,6 +570,10 @@ export declare const actionSetFrameAsActiveTool: {
605
570
  editingFrame: string | null;
606
571
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
607
572
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
573
+ preferredSelectionTool: {
574
+ type: "selection" | "lasso";
575
+ initialized: boolean;
576
+ };
608
577
  penMode: boolean;
609
578
  penDetected: boolean;
610
579
  exportBackground: boolean;
@@ -613,19 +582,19 @@ export declare const actionSetFrameAsActiveTool: {
613
582
  exportScale: number;
614
583
  currentItemStrokeColor: string;
615
584
  currentItemBackgroundColor: string;
616
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
585
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
617
586
  currentItemStrokeWidth: number;
618
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
587
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
619
588
  currentItemRoughness: number;
620
589
  currentItemOpacity: number;
621
- currentItemFontFamily: number;
590
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
622
591
  currentItemFontSize: number;
623
- currentItemTextAlign: string;
592
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
624
593
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
625
594
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
626
- currentHoveredFontFamily: number | null;
595
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
627
596
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
628
- currentItemArrowType: "round" | "sharp" | "elbow";
597
+ currentItemArrowType: "sharp" | "round" | "elbow";
629
598
  viewBackgroundColor: string;
630
599
  scrollX: number;
631
600
  scrollY: number;
@@ -634,26 +603,30 @@ export declare const actionSetFrameAsActiveTool: {
634
603
  name: string | null;
635
604
  isResizing: boolean;
636
605
  isRotating: boolean;
637
- zoom: Readonly<{
638
- value: import("../types").NormalizedZoomValue;
639
- }>;
640
- openMenu: "canvas" | "shape" | null;
641
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
606
+ zoom: import("../types").Zoom;
607
+ openMenu: "canvas" | null;
608
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
642
609
  openSidebar: {
643
- name: string;
644
- tab?: string | undefined;
610
+ name: import("../types").SidebarName;
611
+ tab?: import("../types").SidebarTabName;
645
612
  } | null;
646
- openDialog: {
613
+ openDialog: null | {
647
614
  name: "imageExport" | "help" | "jsonExport";
648
615
  } | {
649
616
  name: "ttd";
650
- tab: "mermaid" | "text-to-diagram";
617
+ tab: "text-to-diagram" | "mermaid";
651
618
  } | {
652
619
  name: "commandPalette";
620
+ } | {
621
+ name: "settings";
653
622
  } | {
654
623
  name: "elementLinkSelector";
655
- sourceElementId: string;
656
- } | null;
624
+ sourceElementId: ExcalidrawElement["id"];
625
+ } | {
626
+ name: "charts";
627
+ data: import("../charts").Spreadsheet;
628
+ rawText: string;
629
+ };
657
630
  defaultSidebarDockedPreference: boolean;
658
631
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
659
632
  selectedElementIds: Readonly<{
@@ -669,8 +642,8 @@ export declare const actionSetFrameAsActiveTool: {
669
642
  shouldCacheIgnoreZoom: boolean;
670
643
  toast: {
671
644
  message: string;
672
- closable?: boolean | undefined;
673
- duration?: number | undefined;
645
+ closable?: boolean;
646
+ duration?: number;
674
647
  } | null;
675
648
  zenModeEnabled: boolean;
676
649
  theme: import("@excalidraw/element/types").Theme;
@@ -681,45 +654,18 @@ export declare const actionSetFrameAsActiveTool: {
681
654
  selectedGroupIds: {
682
655
  [groupId: string]: boolean;
683
656
  };
684
- editingGroupId: string | null;
657
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
685
658
  width: number;
686
659
  height: number;
687
660
  offsetTop: number;
688
661
  offsetLeft: number;
689
662
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
690
- collaborators: Map<import("../types").SocketId, Readonly<{
691
- pointer?: import("../types").CollaboratorPointer | undefined;
692
- button?: "up" | "down" | undefined;
693
- selectedElementIds?: Readonly<{
694
- [id: string]: true;
695
- }> | undefined;
696
- username?: string | null | undefined;
697
- userState?: import("@excalidraw/common").UserIdleState | undefined;
698
- color?: {
699
- background: string;
700
- stroke: string;
701
- } | undefined;
702
- avatarUrl?: string | undefined;
703
- id?: string | undefined;
704
- socketId?: import("../types").SocketId | undefined;
705
- isCurrentUser?: boolean | undefined;
706
- isInCall?: boolean | undefined;
707
- isSpeaking?: boolean | undefined;
708
- isMuted?: boolean | undefined;
709
- }>>;
663
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
710
664
  stats: {
711
665
  open: boolean;
712
666
  panels: number;
713
667
  };
714
- currentChartType: import("@excalidraw/element/types").ChartType;
715
- pasteDialog: {
716
- shown: false;
717
- data: null;
718
- } | {
719
- shown: true;
720
- data: import("../charts").Spreadsheet;
721
- };
722
- showHyperlinkPopup: false | "editor" | "info";
668
+ showHyperlinkPopup: false | "info" | "editor";
723
669
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
724
670
  snapLines: readonly import("../snapping").SnapLine[];
725
671
  originSnapOffset: {
@@ -730,15 +676,16 @@ export declare const actionSetFrameAsActiveTool: {
730
676
  userToFollow: import("../types").UserToFollow | null;
731
677
  followedBy: Set<import("../types").SocketId>;
732
678
  isCropping: boolean;
733
- croppingElementId: string | null;
679
+ croppingElementId: ExcalidrawElement["id"] | null;
734
680
  searchMatches: Readonly<{
735
- focusedId: string | null;
681
+ focusedId: ExcalidrawElement["id"] | null;
736
682
  matches: readonly import("../types").SearchMatch[];
737
683
  }> | null;
738
684
  activeLockedId: string | null;
739
685
  lockedMultiSelections: {
740
686
  [groupId: string]: true;
741
687
  };
688
+ bindMode: import("@excalidraw/element/types").BindMode;
742
689
  };
743
690
  captureUpdate: "EVENTUALLY";
744
691
  };
@@ -753,7 +700,7 @@ export declare const actionWrapSelectionInFrame: {
753
700
  category: "element";
754
701
  };
755
702
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
756
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
703
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
757
704
  elements: ((Readonly<{
758
705
  id: string;
759
706
  x: number;
@@ -763,43 +710,34 @@ export declare const actionWrapSelectionInFrame: {
763
710
  fillStyle: import("@excalidraw/element/types").FillStyle;
764
711
  strokeWidth: number;
765
712
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
766
- roundness: {
713
+ roundness: null | {
767
714
  type: import("@excalidraw/element/types").RoundnessType;
768
- value?: number | undefined;
769
- } | null;
715
+ value?: number;
716
+ };
770
717
  roughness: number;
771
718
  opacity: number;
772
719
  width: number;
773
720
  height: number;
774
- angle: import("../../math/src").Radians;
721
+ angle: import("@excalidraw/math").Radians;
775
722
  seed: number;
776
723
  version: number;
777
724
  versionNonce: number;
778
725
  index: import("@excalidraw/element/types").FractionalIndex | null;
779
726
  isDeleted: boolean;
780
- groupIds: readonly string[];
727
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
781
728
  frameId: string | null;
782
- boundElements: readonly Readonly<{
783
- id: string;
784
- type: "text" | "arrow";
785
- }>[] | null;
729
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
786
730
  updated: number;
787
731
  link: string | null;
788
732
  locked: boolean;
789
- customData?: Record<string, any> | undefined;
733
+ customData?: Record<string, any>;
790
734
  }> & Readonly<{
791
- type: "text";
792
- fontSize: number;
793
- fontFamily: number;
794
- text: string;
795
- textAlign: string;
796
- verticalAlign: string;
797
- containerId: string | null;
798
- originalText: string;
799
- autoResize: boolean;
800
- lineHeight: number & {
801
- _brand: "unitlessLineHeight";
802
- };
735
+ type: "line" | "arrow";
736
+ points: readonly import("@excalidraw/math").LocalPoint[];
737
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
738
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
739
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
740
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
803
741
  }> & {
804
742
  index: import("@excalidraw/element/types").FractionalIndex;
805
743
  }) | (Readonly<{
@@ -811,32 +749,29 @@ export declare const actionWrapSelectionInFrame: {
811
749
  fillStyle: import("@excalidraw/element/types").FillStyle;
812
750
  strokeWidth: number;
813
751
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
814
- roundness: {
752
+ roundness: null | {
815
753
  type: import("@excalidraw/element/types").RoundnessType;
816
- value?: number | undefined;
817
- } | null;
754
+ value?: number;
755
+ };
818
756
  roughness: number;
819
757
  opacity: number;
820
758
  width: number;
821
759
  height: number;
822
- angle: import("../../math/src").Radians;
760
+ angle: import("@excalidraw/math").Radians;
823
761
  seed: number;
824
762
  version: number;
825
763
  versionNonce: number;
826
764
  index: import("@excalidraw/element/types").FractionalIndex | null;
827
765
  isDeleted: boolean;
828
- groupIds: readonly string[];
766
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
829
767
  frameId: string | null;
830
- boundElements: readonly Readonly<{
831
- id: string;
832
- type: "text" | "arrow";
833
- }>[] | null;
768
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
834
769
  updated: number;
835
770
  link: string | null;
836
771
  locked: boolean;
837
- customData?: Record<string, any> | undefined;
772
+ customData?: Record<string, any>;
838
773
  }> & {
839
- type: "rectangle";
774
+ type: "selection";
840
775
  } & {
841
776
  index: import("@excalidraw/element/types").FractionalIndex;
842
777
  }) | (Readonly<{
@@ -848,32 +783,29 @@ export declare const actionWrapSelectionInFrame: {
848
783
  fillStyle: import("@excalidraw/element/types").FillStyle;
849
784
  strokeWidth: number;
850
785
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
851
- roundness: {
786
+ roundness: null | {
852
787
  type: import("@excalidraw/element/types").RoundnessType;
853
- value?: number | undefined;
854
- } | null;
788
+ value?: number;
789
+ };
855
790
  roughness: number;
856
791
  opacity: number;
857
792
  width: number;
858
793
  height: number;
859
- angle: import("../../math/src").Radians;
794
+ angle: import("@excalidraw/math").Radians;
860
795
  seed: number;
861
796
  version: number;
862
797
  versionNonce: number;
863
798
  index: import("@excalidraw/element/types").FractionalIndex | null;
864
799
  isDeleted: boolean;
865
- groupIds: readonly string[];
800
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
866
801
  frameId: string | null;
867
- boundElements: readonly Readonly<{
868
- id: string;
869
- type: "text" | "arrow";
870
- }>[] | null;
802
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
871
803
  updated: number;
872
804
  link: string | null;
873
805
  locked: boolean;
874
- customData?: Record<string, any> | undefined;
806
+ customData?: Record<string, any>;
875
807
  }> & {
876
- type: "diamond";
808
+ type: "rectangle";
877
809
  } & {
878
810
  index: import("@excalidraw/element/types").FractionalIndex;
879
811
  }) | (Readonly<{
@@ -885,33 +817,29 @@ export declare const actionWrapSelectionInFrame: {
885
817
  fillStyle: import("@excalidraw/element/types").FillStyle;
886
818
  strokeWidth: number;
887
819
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
888
- roundness: {
820
+ roundness: null | {
889
821
  type: import("@excalidraw/element/types").RoundnessType;
890
- value?: number | undefined;
891
- } | null;
822
+ value?: number;
823
+ };
892
824
  roughness: number;
893
825
  opacity: number;
894
826
  width: number;
895
827
  height: number;
896
- angle: import("../../math/src").Radians;
828
+ angle: import("@excalidraw/math").Radians;
897
829
  seed: number;
898
830
  version: number;
899
831
  versionNonce: number;
900
832
  index: import("@excalidraw/element/types").FractionalIndex | null;
901
833
  isDeleted: boolean;
902
- groupIds: readonly string[];
834
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
903
835
  frameId: string | null;
904
- boundElements: readonly Readonly<{
905
- id: string;
906
- type: "text" | "arrow";
907
- }>[] | null;
836
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
908
837
  updated: number;
909
838
  link: string | null;
910
839
  locked: boolean;
911
- customData?: Record<string, any> | undefined;
840
+ customData?: Record<string, any>;
912
841
  }> & {
913
- type: "frame";
914
- name: string | null;
842
+ type: "diamond";
915
843
  } & {
916
844
  index: import("@excalidraw/element/types").FractionalIndex;
917
845
  }) | (Readonly<{
@@ -923,33 +851,29 @@ export declare const actionWrapSelectionInFrame: {
923
851
  fillStyle: import("@excalidraw/element/types").FillStyle;
924
852
  strokeWidth: number;
925
853
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
926
- roundness: {
854
+ roundness: null | {
927
855
  type: import("@excalidraw/element/types").RoundnessType;
928
- value?: number | undefined;
929
- } | null;
856
+ value?: number;
857
+ };
930
858
  roughness: number;
931
859
  opacity: number;
932
860
  width: number;
933
861
  height: number;
934
- angle: import("../../math/src").Radians;
862
+ angle: import("@excalidraw/math").Radians;
935
863
  seed: number;
936
864
  version: number;
937
865
  versionNonce: number;
938
866
  index: import("@excalidraw/element/types").FractionalIndex | null;
939
867
  isDeleted: boolean;
940
- groupIds: readonly string[];
868
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
941
869
  frameId: string | null;
942
- boundElements: readonly Readonly<{
943
- id: string;
944
- type: "text" | "arrow";
945
- }>[] | null;
870
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
946
871
  updated: number;
947
872
  link: string | null;
948
873
  locked: boolean;
949
- customData?: Record<string, any> | undefined;
874
+ customData?: Record<string, any>;
950
875
  }> & {
951
- type: "magicframe";
952
- name: string | null;
876
+ type: "ellipse";
953
877
  } & {
954
878
  index: import("@excalidraw/element/types").FractionalIndex;
955
879
  }) | (Readonly<{
@@ -961,30 +885,27 @@ export declare const actionWrapSelectionInFrame: {
961
885
  fillStyle: import("@excalidraw/element/types").FillStyle;
962
886
  strokeWidth: number;
963
887
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
964
- roundness: {
888
+ roundness: null | {
965
889
  type: import("@excalidraw/element/types").RoundnessType;
966
- value?: number | undefined;
967
- } | null;
890
+ value?: number;
891
+ };
968
892
  roughness: number;
969
893
  opacity: number;
970
894
  width: number;
971
895
  height: number;
972
- angle: import("../../math/src").Radians;
896
+ angle: import("@excalidraw/math").Radians;
973
897
  seed: number;
974
898
  version: number;
975
899
  versionNonce: number;
976
900
  index: import("@excalidraw/element/types").FractionalIndex | null;
977
901
  isDeleted: boolean;
978
- groupIds: readonly string[];
902
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
979
903
  frameId: string | null;
980
- boundElements: readonly Readonly<{
981
- id: string;
982
- type: "text" | "arrow";
983
- }>[] | null;
904
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
984
905
  updated: number;
985
906
  link: string | null;
986
907
  locked: boolean;
987
- customData?: Record<string, any> | undefined;
908
+ customData?: Record<string, any>;
988
909
  }> & Readonly<{
989
910
  type: "embeddable";
990
911
  }> & {
@@ -998,36 +919,32 @@ export declare const actionWrapSelectionInFrame: {
998
919
  fillStyle: import("@excalidraw/element/types").FillStyle;
999
920
  strokeWidth: number;
1000
921
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1001
- roundness: {
922
+ roundness: null | {
1002
923
  type: import("@excalidraw/element/types").RoundnessType;
1003
- value?: number | undefined;
1004
- } | null;
924
+ value?: number;
925
+ };
1005
926
  roughness: number;
1006
927
  opacity: number;
1007
928
  width: number;
1008
929
  height: number;
1009
- angle: import("../../math/src").Radians;
930
+ angle: import("@excalidraw/math").Radians;
1010
931
  seed: number;
1011
932
  version: number;
1012
933
  versionNonce: number;
1013
934
  index: import("@excalidraw/element/types").FractionalIndex | null;
1014
935
  isDeleted: boolean;
1015
- groupIds: readonly string[];
936
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1016
937
  frameId: string | null;
1017
- boundElements: readonly Readonly<{
1018
- id: string;
1019
- type: "text" | "arrow";
1020
- }>[] | null;
938
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1021
939
  updated: number;
1022
940
  link: string | null;
1023
941
  locked: boolean;
1024
- customData?: Record<string, any> | undefined;
942
+ customData?: Record<string, any>;
1025
943
  }> & Readonly<{
1026
- type: "image";
1027
- fileId: import("@excalidraw/element/types").FileId | null;
1028
- status: "pending" | "saved" | "error";
1029
- scale: [number, number];
1030
- crop: import("@excalidraw/element/types").ImageCrop | null;
944
+ type: "iframe";
945
+ customData?: {
946
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
947
+ };
1031
948
  }> & {
1032
949
  index: import("@excalidraw/element/types").FractionalIndex;
1033
950
  }) | (Readonly<{
@@ -1039,35 +956,33 @@ export declare const actionWrapSelectionInFrame: {
1039
956
  fillStyle: import("@excalidraw/element/types").FillStyle;
1040
957
  strokeWidth: number;
1041
958
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1042
- roundness: {
959
+ roundness: null | {
1043
960
  type: import("@excalidraw/element/types").RoundnessType;
1044
- value?: number | undefined;
1045
- } | null;
961
+ value?: number;
962
+ };
1046
963
  roughness: number;
1047
964
  opacity: number;
1048
965
  width: number;
1049
966
  height: number;
1050
- angle: import("../../math/src").Radians;
967
+ angle: import("@excalidraw/math").Radians;
1051
968
  seed: number;
1052
969
  version: number;
1053
970
  versionNonce: number;
1054
971
  index: import("@excalidraw/element/types").FractionalIndex | null;
1055
972
  isDeleted: boolean;
1056
- groupIds: readonly string[];
973
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1057
974
  frameId: string | null;
1058
- boundElements: readonly Readonly<{
1059
- id: string;
1060
- type: "text" | "arrow";
1061
- }>[] | null;
975
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1062
976
  updated: number;
1063
977
  link: string | null;
1064
978
  locked: boolean;
1065
- customData?: Record<string, any> | undefined;
979
+ customData?: Record<string, any>;
1066
980
  }> & Readonly<{
1067
- type: "iframe";
1068
- customData?: {
1069
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1070
- } | undefined;
981
+ type: "image";
982
+ fileId: import("@excalidraw/element/types").FileId | null;
983
+ status: "pending" | "saved" | "error";
984
+ scale: [number, number];
985
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1071
986
  }> & {
1072
987
  index: import("@excalidraw/element/types").FractionalIndex;
1073
988
  }) | (Readonly<{
@@ -1079,32 +994,30 @@ export declare const actionWrapSelectionInFrame: {
1079
994
  fillStyle: import("@excalidraw/element/types").FillStyle;
1080
995
  strokeWidth: number;
1081
996
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1082
- roundness: {
997
+ roundness: null | {
1083
998
  type: import("@excalidraw/element/types").RoundnessType;
1084
- value?: number | undefined;
1085
- } | null;
999
+ value?: number;
1000
+ };
1086
1001
  roughness: number;
1087
1002
  opacity: number;
1088
1003
  width: number;
1089
1004
  height: number;
1090
- angle: import("../../math/src").Radians;
1005
+ angle: import("@excalidraw/math").Radians;
1091
1006
  seed: number;
1092
1007
  version: number;
1093
1008
  versionNonce: number;
1094
1009
  index: import("@excalidraw/element/types").FractionalIndex | null;
1095
1010
  isDeleted: boolean;
1096
- groupIds: readonly string[];
1011
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1097
1012
  frameId: string | null;
1098
- boundElements: readonly Readonly<{
1099
- id: string;
1100
- type: "text" | "arrow";
1101
- }>[] | null;
1013
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1102
1014
  updated: number;
1103
1015
  link: string | null;
1104
1016
  locked: boolean;
1105
- customData?: Record<string, any> | undefined;
1017
+ customData?: Record<string, any>;
1106
1018
  }> & {
1107
- type: "selection";
1019
+ type: "frame";
1020
+ name: string | null;
1108
1021
  } & {
1109
1022
  index: import("@excalidraw/element/types").FractionalIndex;
1110
1023
  }) | (Readonly<{
@@ -1116,32 +1029,30 @@ export declare const actionWrapSelectionInFrame: {
1116
1029
  fillStyle: import("@excalidraw/element/types").FillStyle;
1117
1030
  strokeWidth: number;
1118
1031
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1119
- roundness: {
1032
+ roundness: null | {
1120
1033
  type: import("@excalidraw/element/types").RoundnessType;
1121
- value?: number | undefined;
1122
- } | null;
1034
+ value?: number;
1035
+ };
1123
1036
  roughness: number;
1124
1037
  opacity: number;
1125
1038
  width: number;
1126
1039
  height: number;
1127
- angle: import("../../math/src").Radians;
1040
+ angle: import("@excalidraw/math").Radians;
1128
1041
  seed: number;
1129
1042
  version: number;
1130
1043
  versionNonce: number;
1131
1044
  index: import("@excalidraw/element/types").FractionalIndex | null;
1132
1045
  isDeleted: boolean;
1133
- groupIds: readonly string[];
1046
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1134
1047
  frameId: string | null;
1135
- boundElements: readonly Readonly<{
1136
- id: string;
1137
- type: "text" | "arrow";
1138
- }>[] | null;
1048
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1139
1049
  updated: number;
1140
1050
  link: string | null;
1141
1051
  locked: boolean;
1142
- customData?: Record<string, any> | undefined;
1052
+ customData?: Record<string, any>;
1143
1053
  }> & {
1144
- type: "ellipse";
1054
+ type: "magicframe";
1055
+ name: string | null;
1145
1056
  } & {
1146
1057
  index: import("@excalidraw/element/types").FractionalIndex;
1147
1058
  }) | (Readonly<{
@@ -1153,38 +1064,40 @@ export declare const actionWrapSelectionInFrame: {
1153
1064
  fillStyle: import("@excalidraw/element/types").FillStyle;
1154
1065
  strokeWidth: number;
1155
1066
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1156
- roundness: {
1067
+ roundness: null | {
1157
1068
  type: import("@excalidraw/element/types").RoundnessType;
1158
- value?: number | undefined;
1159
- } | null;
1069
+ value?: number;
1070
+ };
1160
1071
  roughness: number;
1161
1072
  opacity: number;
1162
1073
  width: number;
1163
1074
  height: number;
1164
- angle: import("../../math/src").Radians;
1075
+ angle: import("@excalidraw/math").Radians;
1165
1076
  seed: number;
1166
1077
  version: number;
1167
1078
  versionNonce: number;
1168
1079
  index: import("@excalidraw/element/types").FractionalIndex | null;
1169
1080
  isDeleted: boolean;
1170
- groupIds: readonly string[];
1081
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1171
1082
  frameId: string | null;
1172
- boundElements: readonly Readonly<{
1173
- id: string;
1174
- type: "text" | "arrow";
1175
- }>[] | null;
1083
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1176
1084
  updated: number;
1177
1085
  link: string | null;
1178
1086
  locked: boolean;
1179
- customData?: Record<string, any> | undefined;
1087
+ customData?: Record<string, any>;
1180
1088
  }> & Readonly<{
1181
- type: "line" | "arrow";
1182
- points: readonly import("../../math/src").LocalPoint[];
1183
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
1184
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1185
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1186
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1187
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1089
+ type: "text";
1090
+ fontSize: number;
1091
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1092
+ text: string;
1093
+ textAlign: import("@excalidraw/element/types").TextAlign;
1094
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
1095
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
1096
+ originalText: string;
1097
+ autoResize: boolean;
1098
+ lineHeight: number & {
1099
+ _brand: "unitlessLineHeight";
1100
+ };
1188
1101
  }> & {
1189
1102
  index: import("@excalidraw/element/types").FractionalIndex;
1190
1103
  }) | (Readonly<{
@@ -1196,36 +1109,32 @@ export declare const actionWrapSelectionInFrame: {
1196
1109
  fillStyle: import("@excalidraw/element/types").FillStyle;
1197
1110
  strokeWidth: number;
1198
1111
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1199
- roundness: {
1112
+ roundness: null | {
1200
1113
  type: import("@excalidraw/element/types").RoundnessType;
1201
- value?: number | undefined;
1202
- } | null;
1114
+ value?: number;
1115
+ };
1203
1116
  roughness: number;
1204
1117
  opacity: number;
1205
1118
  width: number;
1206
1119
  height: number;
1207
- angle: import("../../math/src").Radians;
1120
+ angle: import("@excalidraw/math").Radians;
1208
1121
  seed: number;
1209
1122
  version: number;
1210
1123
  versionNonce: number;
1211
1124
  index: import("@excalidraw/element/types").FractionalIndex | null;
1212
1125
  isDeleted: boolean;
1213
- groupIds: readonly string[];
1126
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1214
1127
  frameId: string | null;
1215
- boundElements: readonly Readonly<{
1216
- id: string;
1217
- type: "text" | "arrow";
1218
- }>[] | null;
1128
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1219
1129
  updated: number;
1220
1130
  link: string | null;
1221
1131
  locked: boolean;
1222
- customData?: Record<string, any> | undefined;
1132
+ customData?: Record<string, any>;
1223
1133
  }> & Readonly<{
1224
1134
  type: "freedraw";
1225
- points: readonly import("../../math/src").LocalPoint[];
1135
+ points: readonly import("@excalidraw/math").LocalPoint[];
1226
1136
  pressures: readonly number[];
1227
1137
  simulatePressure: boolean;
1228
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
1229
1138
  }> & {
1230
1139
  index: import("@excalidraw/element/types").FractionalIndex;
1231
1140
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];