@excalidraw/element 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 (252) hide show
  1. package/dist/dev/index.js +4978 -2538
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +18 -18
  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 +37 -26
  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 +52 -38
  14. package/dist/types/element/src/Scene.d.ts +5 -3
  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 +5 -1
  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/visualdebug.d.ts +59 -0
  48. package/dist/types/element/src/zindex.d.ts +7 -1
  49. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +120 -160
  50. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  51. package/dist/types/excalidraw/actions/actionBoundText.d.ts +85 -112
  52. package/dist/types/excalidraw/actions/actionCanvas.d.ts +509 -853
  53. package/dist/types/excalidraw/actions/actionClipboard.d.ts +104 -872
  54. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +41 -55
  55. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +139 -183
  56. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  57. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  58. package/dist/types/excalidraw/actions/actionElementLink.d.ts +33 -53
  59. package/dist/types/excalidraw/actions/actionElementLock.d.ts +84 -111
  60. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +42 -56
  61. package/dist/types/excalidraw/actions/actionExport.d.ts +181 -1141
  62. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
  63. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  64. package/dist/types/excalidraw/actions/actionFrame.d.ts +263 -354
  65. package/dist/types/excalidraw/actions/actionGroup.d.ts +88 -123
  66. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +151 -203
  67. package/dist/types/excalidraw/actions/actionLink.d.ts +39 -53
  68. package/dist/types/excalidraw/actions/actionMenu.d.ts +32 -418
  69. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
  70. package/dist/types/excalidraw/actions/actionProperties.d.ts +144 -2501
  71. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +44 -62
  72. package/dist/types/excalidraw/actions/actionStyles.d.ts +41 -55
  73. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  74. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
  75. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +41 -55
  76. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  77. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +41 -55
  78. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +30 -50
  79. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  80. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +41 -55
  81. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +41 -55
  82. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +42 -56
  83. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  84. package/dist/types/excalidraw/actions/index.d.ts +4 -2
  85. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  86. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  87. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  88. package/dist/types/excalidraw/appState.d.ts +21 -14
  89. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  90. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  91. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  92. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  93. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  94. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  95. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  96. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  97. package/dist/types/excalidraw/clipboard.d.ts +58 -19
  98. package/dist/types/excalidraw/components/Actions.d.ts +22 -5
  99. package/dist/types/excalidraw/components/App.d.ts +74 -66
  100. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  101. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  102. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  103. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  104. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  105. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  106. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  107. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  108. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  109. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  110. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  111. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  112. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  113. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  115. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  116. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
  117. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  118. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  119. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  120. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  121. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  122. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  123. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  124. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  125. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  126. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  127. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  128. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  129. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  130. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  131. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  132. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  133. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  134. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  135. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  136. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  137. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  138. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  139. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  140. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  141. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  142. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  143. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  144. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  145. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  146. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  147. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  148. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  149. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  150. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  151. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  152. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  153. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  154. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  155. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  156. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  157. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  158. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  159. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  160. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  161. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  162. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  163. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  164. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  165. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  166. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  167. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -3
  168. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  169. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  170. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  171. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  172. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  173. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  174. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  175. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  176. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  177. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  178. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  179. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  180. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  181. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  182. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  183. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  184. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  185. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  186. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  187. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  188. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  193. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  194. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  198. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  199. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  200. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  201. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  202. package/dist/types/excalidraw/components/icons.d.ts +32 -13
  203. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  204. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +19 -2
  205. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  206. package/dist/types/excalidraw/components/shapes.d.ts +202 -1
  207. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  208. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  209. package/dist/types/excalidraw/data/blob.d.ts +326 -10
  210. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  211. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  212. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  213. package/dist/types/excalidraw/data/index.d.ts +3 -3
  214. package/dist/types/excalidraw/data/json.d.ts +160 -2
  215. package/dist/types/excalidraw/data/library.d.ts +24 -9
  216. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  217. package/dist/types/excalidraw/data/types.d.ts +4 -1
  218. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  219. package/dist/types/excalidraw/errors.d.ts +14 -0
  220. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  221. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  222. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  223. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  224. package/dist/types/excalidraw/i18n.d.ts +2 -2
  225. package/dist/types/excalidraw/index.d.ts +8 -7
  226. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  227. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  228. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  229. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  230. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  231. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  232. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  233. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  234. package/dist/types/excalidraw/snapping.d.ts +5 -5
  235. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  236. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  237. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  238. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  239. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  240. package/dist/types/excalidraw/types.d.ts +52 -29
  241. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  242. package/dist/types/math/src/point.d.ts +6 -1
  243. package/dist/types/math/src/polygon.d.ts +2 -2
  244. package/dist/types/math/src/range.d.ts +1 -3
  245. package/dist/types/math/src/segment.d.ts +4 -3
  246. package/dist/types/math/src/types.d.ts +25 -1
  247. package/dist/types/utils/src/bbox.d.ts +1 -1
  248. package/dist/types/utils/src/export.d.ts +5 -5
  249. package/dist/types/utils/src/shape.d.ts +6 -6
  250. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  251. package/package.json +9 -3
  252. 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,36 +710,32 @@ 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: "arrow" | "text";
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
735
  type: "line" | "arrow";
792
- points: readonly import("../../math/src").LocalPoint[];
793
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
794
- startBinding: import("@excalidraw/element/types").PointBinding | null;
795
- endBinding: import("@excalidraw/element/types").PointBinding | null;
736
+ points: readonly import("@excalidraw/math").LocalPoint[];
737
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
738
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
796
739
  startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
797
740
  endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
798
741
  }> & {
@@ -806,30 +749,27 @@ export declare const actionWrapSelectionInFrame: {
806
749
  fillStyle: import("@excalidraw/element/types").FillStyle;
807
750
  strokeWidth: number;
808
751
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
809
- roundness: {
752
+ roundness: null | {
810
753
  type: import("@excalidraw/element/types").RoundnessType;
811
- value?: number | undefined;
812
- } | null;
754
+ value?: number;
755
+ };
813
756
  roughness: number;
814
757
  opacity: number;
815
758
  width: number;
816
759
  height: number;
817
- angle: import("../../math/src").Radians;
760
+ angle: import("@excalidraw/math").Radians;
818
761
  seed: number;
819
762
  version: number;
820
763
  versionNonce: number;
821
764
  index: import("@excalidraw/element/types").FractionalIndex | null;
822
765
  isDeleted: boolean;
823
- groupIds: readonly string[];
766
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
824
767
  frameId: string | null;
825
- boundElements: readonly Readonly<{
826
- id: string;
827
- type: "arrow" | "text";
828
- }>[] | null;
768
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
829
769
  updated: number;
830
770
  link: string | null;
831
771
  locked: boolean;
832
- customData?: Record<string, any> | undefined;
772
+ customData?: Record<string, any>;
833
773
  }> & {
834
774
  type: "selection";
835
775
  } & {
@@ -843,30 +783,27 @@ export declare const actionWrapSelectionInFrame: {
843
783
  fillStyle: import("@excalidraw/element/types").FillStyle;
844
784
  strokeWidth: number;
845
785
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
846
- roundness: {
786
+ roundness: null | {
847
787
  type: import("@excalidraw/element/types").RoundnessType;
848
- value?: number | undefined;
849
- } | null;
788
+ value?: number;
789
+ };
850
790
  roughness: number;
851
791
  opacity: number;
852
792
  width: number;
853
793
  height: number;
854
- angle: import("../../math/src").Radians;
794
+ angle: import("@excalidraw/math").Radians;
855
795
  seed: number;
856
796
  version: number;
857
797
  versionNonce: number;
858
798
  index: import("@excalidraw/element/types").FractionalIndex | null;
859
799
  isDeleted: boolean;
860
- groupIds: readonly string[];
800
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
861
801
  frameId: string | null;
862
- boundElements: readonly Readonly<{
863
- id: string;
864
- type: "arrow" | "text";
865
- }>[] | null;
802
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
866
803
  updated: number;
867
804
  link: string | null;
868
805
  locked: boolean;
869
- customData?: Record<string, any> | undefined;
806
+ customData?: Record<string, any>;
870
807
  }> & {
871
808
  type: "rectangle";
872
809
  } & {
@@ -880,30 +817,27 @@ export declare const actionWrapSelectionInFrame: {
880
817
  fillStyle: import("@excalidraw/element/types").FillStyle;
881
818
  strokeWidth: number;
882
819
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
883
- roundness: {
820
+ roundness: null | {
884
821
  type: import("@excalidraw/element/types").RoundnessType;
885
- value?: number | undefined;
886
- } | null;
822
+ value?: number;
823
+ };
887
824
  roughness: number;
888
825
  opacity: number;
889
826
  width: number;
890
827
  height: number;
891
- angle: import("../../math/src").Radians;
828
+ angle: import("@excalidraw/math").Radians;
892
829
  seed: number;
893
830
  version: number;
894
831
  versionNonce: number;
895
832
  index: import("@excalidraw/element/types").FractionalIndex | null;
896
833
  isDeleted: boolean;
897
- groupIds: readonly string[];
834
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
898
835
  frameId: string | null;
899
- boundElements: readonly Readonly<{
900
- id: string;
901
- type: "arrow" | "text";
902
- }>[] | null;
836
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
903
837
  updated: number;
904
838
  link: string | null;
905
839
  locked: boolean;
906
- customData?: Record<string, any> | undefined;
840
+ customData?: Record<string, any>;
907
841
  }> & {
908
842
  type: "diamond";
909
843
  } & {
@@ -917,30 +851,27 @@ export declare const actionWrapSelectionInFrame: {
917
851
  fillStyle: import("@excalidraw/element/types").FillStyle;
918
852
  strokeWidth: number;
919
853
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
920
- roundness: {
854
+ roundness: null | {
921
855
  type: import("@excalidraw/element/types").RoundnessType;
922
- value?: number | undefined;
923
- } | null;
856
+ value?: number;
857
+ };
924
858
  roughness: number;
925
859
  opacity: number;
926
860
  width: number;
927
861
  height: number;
928
- angle: import("../../math/src").Radians;
862
+ angle: import("@excalidraw/math").Radians;
929
863
  seed: number;
930
864
  version: number;
931
865
  versionNonce: number;
932
866
  index: import("@excalidraw/element/types").FractionalIndex | null;
933
867
  isDeleted: boolean;
934
- groupIds: readonly string[];
868
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
935
869
  frameId: string | null;
936
- boundElements: readonly Readonly<{
937
- id: string;
938
- type: "arrow" | "text";
939
- }>[] | null;
870
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
940
871
  updated: number;
941
872
  link: string | null;
942
873
  locked: boolean;
943
- customData?: Record<string, any> | undefined;
874
+ customData?: Record<string, any>;
944
875
  }> & {
945
876
  type: "ellipse";
946
877
  } & {
@@ -954,30 +885,27 @@ export declare const actionWrapSelectionInFrame: {
954
885
  fillStyle: import("@excalidraw/element/types").FillStyle;
955
886
  strokeWidth: number;
956
887
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
957
- roundness: {
888
+ roundness: null | {
958
889
  type: import("@excalidraw/element/types").RoundnessType;
959
- value?: number | undefined;
960
- } | null;
890
+ value?: number;
891
+ };
961
892
  roughness: number;
962
893
  opacity: number;
963
894
  width: number;
964
895
  height: number;
965
- angle: import("../../math/src").Radians;
896
+ angle: import("@excalidraw/math").Radians;
966
897
  seed: number;
967
898
  version: number;
968
899
  versionNonce: number;
969
900
  index: import("@excalidraw/element/types").FractionalIndex | null;
970
901
  isDeleted: boolean;
971
- groupIds: readonly string[];
902
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
972
903
  frameId: string | null;
973
- boundElements: readonly Readonly<{
974
- id: string;
975
- type: "arrow" | "text";
976
- }>[] | null;
904
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
977
905
  updated: number;
978
906
  link: string | null;
979
907
  locked: boolean;
980
- customData?: Record<string, any> | undefined;
908
+ customData?: Record<string, any>;
981
909
  }> & Readonly<{
982
910
  type: "embeddable";
983
911
  }> & {
@@ -991,35 +919,32 @@ export declare const actionWrapSelectionInFrame: {
991
919
  fillStyle: import("@excalidraw/element/types").FillStyle;
992
920
  strokeWidth: number;
993
921
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
994
- roundness: {
922
+ roundness: null | {
995
923
  type: import("@excalidraw/element/types").RoundnessType;
996
- value?: number | undefined;
997
- } | null;
924
+ value?: number;
925
+ };
998
926
  roughness: number;
999
927
  opacity: number;
1000
928
  width: number;
1001
929
  height: number;
1002
- angle: import("../../math/src").Radians;
930
+ angle: import("@excalidraw/math").Radians;
1003
931
  seed: number;
1004
932
  version: number;
1005
933
  versionNonce: number;
1006
934
  index: import("@excalidraw/element/types").FractionalIndex | null;
1007
935
  isDeleted: boolean;
1008
- groupIds: readonly string[];
936
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1009
937
  frameId: string | null;
1010
- boundElements: readonly Readonly<{
1011
- id: string;
1012
- type: "arrow" | "text";
1013
- }>[] | null;
938
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1014
939
  updated: number;
1015
940
  link: string | null;
1016
941
  locked: boolean;
1017
- customData?: Record<string, any> | undefined;
942
+ customData?: Record<string, any>;
1018
943
  }> & Readonly<{
1019
944
  type: "iframe";
1020
945
  customData?: {
1021
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1022
- } | undefined;
946
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
947
+ };
1023
948
  }> & {
1024
949
  index: import("@excalidraw/element/types").FractionalIndex;
1025
950
  }) | (Readonly<{
@@ -1031,34 +956,31 @@ export declare const actionWrapSelectionInFrame: {
1031
956
  fillStyle: import("@excalidraw/element/types").FillStyle;
1032
957
  strokeWidth: number;
1033
958
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1034
- roundness: {
959
+ roundness: null | {
1035
960
  type: import("@excalidraw/element/types").RoundnessType;
1036
- value?: number | undefined;
1037
- } | null;
961
+ value?: number;
962
+ };
1038
963
  roughness: number;
1039
964
  opacity: number;
1040
965
  width: number;
1041
966
  height: number;
1042
- angle: import("../../math/src").Radians;
967
+ angle: import("@excalidraw/math").Radians;
1043
968
  seed: number;
1044
969
  version: number;
1045
970
  versionNonce: number;
1046
971
  index: import("@excalidraw/element/types").FractionalIndex | null;
1047
972
  isDeleted: boolean;
1048
- groupIds: readonly string[];
973
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1049
974
  frameId: string | null;
1050
- boundElements: readonly Readonly<{
1051
- id: string;
1052
- type: "arrow" | "text";
1053
- }>[] | null;
975
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1054
976
  updated: number;
1055
977
  link: string | null;
1056
978
  locked: boolean;
1057
- customData?: Record<string, any> | undefined;
979
+ customData?: Record<string, any>;
1058
980
  }> & Readonly<{
1059
981
  type: "image";
1060
982
  fileId: import("@excalidraw/element/types").FileId | null;
1061
- status: "pending" | "error" | "saved";
983
+ status: "pending" | "saved" | "error";
1062
984
  scale: [number, number];
1063
985
  crop: import("@excalidraw/element/types").ImageCrop | null;
1064
986
  }> & {
@@ -1072,30 +994,27 @@ export declare const actionWrapSelectionInFrame: {
1072
994
  fillStyle: import("@excalidraw/element/types").FillStyle;
1073
995
  strokeWidth: number;
1074
996
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1075
- roundness: {
997
+ roundness: null | {
1076
998
  type: import("@excalidraw/element/types").RoundnessType;
1077
- value?: number | undefined;
1078
- } | null;
999
+ value?: number;
1000
+ };
1079
1001
  roughness: number;
1080
1002
  opacity: number;
1081
1003
  width: number;
1082
1004
  height: number;
1083
- angle: import("../../math/src").Radians;
1005
+ angle: import("@excalidraw/math").Radians;
1084
1006
  seed: number;
1085
1007
  version: number;
1086
1008
  versionNonce: number;
1087
1009
  index: import("@excalidraw/element/types").FractionalIndex | null;
1088
1010
  isDeleted: boolean;
1089
- groupIds: readonly string[];
1011
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1090
1012
  frameId: string | null;
1091
- boundElements: readonly Readonly<{
1092
- id: string;
1093
- type: "arrow" | "text";
1094
- }>[] | null;
1013
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1095
1014
  updated: number;
1096
1015
  link: string | null;
1097
1016
  locked: boolean;
1098
- customData?: Record<string, any> | undefined;
1017
+ customData?: Record<string, any>;
1099
1018
  }> & {
1100
1019
  type: "frame";
1101
1020
  name: string | null;
@@ -1110,30 +1029,27 @@ export declare const actionWrapSelectionInFrame: {
1110
1029
  fillStyle: import("@excalidraw/element/types").FillStyle;
1111
1030
  strokeWidth: number;
1112
1031
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1113
- roundness: {
1032
+ roundness: null | {
1114
1033
  type: import("@excalidraw/element/types").RoundnessType;
1115
- value?: number | undefined;
1116
- } | null;
1034
+ value?: number;
1035
+ };
1117
1036
  roughness: number;
1118
1037
  opacity: number;
1119
1038
  width: number;
1120
1039
  height: number;
1121
- angle: import("../../math/src").Radians;
1040
+ angle: import("@excalidraw/math").Radians;
1122
1041
  seed: number;
1123
1042
  version: number;
1124
1043
  versionNonce: number;
1125
1044
  index: import("@excalidraw/element/types").FractionalIndex | null;
1126
1045
  isDeleted: boolean;
1127
- groupIds: readonly string[];
1046
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1128
1047
  frameId: string | null;
1129
- boundElements: readonly Readonly<{
1130
- id: string;
1131
- type: "arrow" | "text";
1132
- }>[] | null;
1048
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1133
1049
  updated: number;
1134
1050
  link: string | null;
1135
1051
  locked: boolean;
1136
- customData?: Record<string, any> | undefined;
1052
+ customData?: Record<string, any>;
1137
1053
  }> & {
1138
1054
  type: "magicframe";
1139
1055
  name: string | null;
@@ -1148,38 +1064,35 @@ export declare const actionWrapSelectionInFrame: {
1148
1064
  fillStyle: import("@excalidraw/element/types").FillStyle;
1149
1065
  strokeWidth: number;
1150
1066
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1151
- roundness: {
1067
+ roundness: null | {
1152
1068
  type: import("@excalidraw/element/types").RoundnessType;
1153
- value?: number | undefined;
1154
- } | null;
1069
+ value?: number;
1070
+ };
1155
1071
  roughness: number;
1156
1072
  opacity: number;
1157
1073
  width: number;
1158
1074
  height: number;
1159
- angle: import("../../math/src").Radians;
1075
+ angle: import("@excalidraw/math").Radians;
1160
1076
  seed: number;
1161
1077
  version: number;
1162
1078
  versionNonce: number;
1163
1079
  index: import("@excalidraw/element/types").FractionalIndex | null;
1164
1080
  isDeleted: boolean;
1165
- groupIds: readonly string[];
1081
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1166
1082
  frameId: string | null;
1167
- boundElements: readonly Readonly<{
1168
- id: string;
1169
- type: "arrow" | "text";
1170
- }>[] | null;
1083
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1171
1084
  updated: number;
1172
1085
  link: string | null;
1173
1086
  locked: boolean;
1174
- customData?: Record<string, any> | undefined;
1087
+ customData?: Record<string, any>;
1175
1088
  }> & Readonly<{
1176
1089
  type: "text";
1177
1090
  fontSize: number;
1178
- fontFamily: number;
1091
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1179
1092
  text: string;
1180
- textAlign: string;
1181
- verticalAlign: string;
1182
- containerId: string | null;
1093
+ textAlign: import("@excalidraw/element/types").TextAlign;
1094
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
1095
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
1183
1096
  originalText: string;
1184
1097
  autoResize: boolean;
1185
1098
  lineHeight: number & {
@@ -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: "arrow" | "text";
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>)[];