@excalidraw/math 0.18.0-7f66e1f → 0.18.0-816c81c

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 (246) hide show
  1. package/dist/dev/index.js +3 -3
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +59 -39
  8. package/dist/types/common/src/constants.d.ts +19 -11
  9. package/dist/types/common/src/editorInterface.d.ts +1 -1
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +4 -1
  12. package/dist/types/common/src/keys.d.ts +1 -1
  13. package/dist/types/common/src/utility-types.d.ts +0 -1
  14. package/dist/types/common/src/utils.d.ts +51 -40
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +5 -3
  17. package/dist/types/element/src/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  19. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  20. package/dist/types/element/src/binding.d.ts +67 -48
  21. package/dist/types/element/src/bounds.d.ts +3 -11
  22. package/dist/types/element/src/collision.d.ts +7 -2
  23. package/dist/types/element/src/comparisons.d.ts +7 -7
  24. package/dist/types/element/src/distribute.d.ts +2 -1
  25. package/dist/types/element/src/dragElements.d.ts +3 -3
  26. package/dist/types/element/src/duplicate.d.ts +3 -3
  27. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +5 -1
  30. package/dist/types/element/src/heading.d.ts +2 -1
  31. package/dist/types/element/src/image.d.ts +1 -11
  32. package/dist/types/element/src/index.d.ts +4 -3
  33. package/dist/types/element/src/linearElementEditor.d.ts +21 -20
  34. package/dist/types/element/src/mutateElement.d.ts +5 -1
  35. package/dist/types/element/src/newElement.d.ts +6 -6
  36. package/dist/types/element/src/renderElement.d.ts +1 -7
  37. package/dist/types/element/src/resizeElements.d.ts +10 -10
  38. package/dist/types/element/src/resizeTest.d.ts +1 -1
  39. package/dist/types/element/src/selection.d.ts +3 -7
  40. package/dist/types/element/src/shape.d.ts +8 -7
  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 +3 -23
  44. package/dist/types/element/src/typeChecks.d.ts +4 -7
  45. package/dist/types/element/src/types.d.ts +12 -13
  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 +149 -201
  49. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  50. package/dist/types/excalidraw/actions/actionBoundText.d.ts +77 -112
  51. package/dist/types/excalidraw/actions/actionCanvas.d.ts +460 -857
  52. package/dist/types/excalidraw/actions/actionClipboard.d.ts +111 -903
  53. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +37 -55
  54. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +123 -179
  55. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  56. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  57. package/dist/types/excalidraw/actions/actionElementLink.d.ts +47 -71
  58. package/dist/types/excalidraw/actions/actionElementLock.d.ts +76 -111
  59. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +53 -71
  60. package/dist/types/excalidraw/actions/actionExport.d.ts +157 -1425
  61. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -402
  62. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  63. package/dist/types/excalidraw/actions/actionFrame.d.ts +233 -340
  64. package/dist/types/excalidraw/actions/actionGroup.d.ts +80 -123
  65. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +129 -185
  66. package/dist/types/excalidraw/actions/actionLink.d.ts +55 -73
  67. package/dist/types/excalidraw/actions/actionMenu.d.ts +41 -65
  68. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -367
  69. package/dist/types/excalidraw/actions/actionProperties.d.ts +137 -2563
  70. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +40 -62
  71. package/dist/types/excalidraw/actions/actionStyles.d.ts +36 -54
  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 +53 -71
  75. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  76. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +53 -71
  77. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +41 -65
  78. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  79. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +52 -70
  80. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +53 -71
  81. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +53 -71
  82. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  83. package/dist/types/excalidraw/actions/index.d.ts +2 -0
  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 +23 -20
  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 +13 -38
  97. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  98. package/dist/types/excalidraw/components/App.d.ts +83 -56
  99. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  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/colorPickerUtils.d.ts +0 -1
  104. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  105. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  106. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  107. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  108. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  109. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  110. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  111. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  112. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  113. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -0
  114. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  115. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  116. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  117. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  118. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  119. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  120. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  121. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  122. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  123. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  124. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  125. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  126. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  127. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  128. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  129. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  130. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  131. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  132. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  133. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  134. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  135. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  136. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  137. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  138. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  139. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  140. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  141. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  142. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  143. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  144. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  145. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  146. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  147. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  148. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  149. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  150. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  151. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  152. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  153. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  154. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  155. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  156. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  157. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  158. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  159. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  160. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  161. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  162. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  163. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  164. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  165. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  166. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  167. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  168. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  169. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  170. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  171. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  172. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  173. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  174. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  175. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  176. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  177. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  178. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  179. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  181. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  182. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  183. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  184. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  185. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  186. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  187. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  188. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  189. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  190. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  191. package/dist/types/excalidraw/components/icons.d.ts +39 -21
  192. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +19 -2
  193. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
  194. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  195. package/dist/types/excalidraw/data/blob.d.ts +326 -7
  196. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  197. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  198. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  199. package/dist/types/excalidraw/data/index.d.ts +4 -5
  200. package/dist/types/excalidraw/data/json.d.ts +170 -4
  201. package/dist/types/excalidraw/data/library.d.ts +24 -9
  202. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  203. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  204. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  205. package/dist/types/excalidraw/errors.d.ts +14 -0
  206. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -2
  207. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  208. package/dist/types/excalidraw/i18n.d.ts +2 -2
  209. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  210. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
  211. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  212. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  213. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  214. package/dist/types/excalidraw/scene/types.d.ts +11 -2
  215. package/dist/types/excalidraw/snapping.d.ts +5 -5
  216. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  217. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  218. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  219. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  220. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  221. package/dist/types/excalidraw/types.d.ts +105 -20
  222. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  223. package/dist/types/math/src/point.d.ts +6 -1
  224. package/dist/types/math/src/polygon.d.ts +2 -2
  225. package/dist/types/math/src/range.d.ts +1 -3
  226. package/dist/types/math/src/segment.d.ts +3 -3
  227. package/dist/types/math/src/types.d.ts +25 -1
  228. package/dist/types/utils/src/bbox.d.ts +1 -1
  229. package/dist/types/utils/src/export.d.ts +5 -5
  230. package/dist/types/utils/src/shape.d.ts +6 -6
  231. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  232. package/package.json +2 -2
  233. package/dist/types/common/src/visualdebug.d.ts +0 -41
  234. package/dist/types/excalidraw/charts.d.ts +0 -27
  235. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  236. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  237. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  238. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  239. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  240. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -22
  241. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  242. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  243. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  244. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  245. package/dist/types/excalidraw/index.d.ts +0 -46
  246. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppClassProperties, AppState } from "../types";
4
3
  export declare const actionGroup: {
@@ -8,19 +7,15 @@ export declare const actionGroup: {
8
7
  trackEvent: {
9
8
  category: "element";
10
9
  };
11
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
12
11
  appState: Readonly<AppState>;
13
12
  elements: readonly OrderedExcalidrawElement[];
14
13
  captureUpdate: "EVENTUALLY";
15
14
  } | {
16
15
  appState: {
17
- editingGroupId: string | null;
18
- selectedElementIds: Readonly<{
19
- [id: string]: true;
20
- }>;
21
- selectedGroupIds: {
22
- [groupId: string]: boolean;
23
- };
16
+ editingGroupId: AppState["editingGroupId"];
17
+ selectedElementIds: AppState["selectedElementIds"];
18
+ selectedGroupIds: AppState["selectedGroupIds"];
24
19
  contextMenu: {
25
20
  items: import("../components/ContextMenu").ContextMenuItems;
26
21
  top: number;
@@ -28,18 +23,23 @@ export declare const actionGroup: {
28
23
  } | null;
29
24
  showWelcomeScreen: boolean;
30
25
  isLoading: boolean;
31
- errorMessage: import("react").ReactNode;
26
+ errorMessage: React.ReactNode;
32
27
  activeEmbeddable: {
33
28
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
34
- state: "active" | "hover";
29
+ state: "hover" | "active";
35
30
  } | null;
36
31
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
37
32
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
38
33
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
39
34
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
35
  isBindingEnabled: boolean;
36
+ bindingPreference: "enabled" | "disabled";
37
+ isMidpointSnappingEnabled: boolean;
41
38
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
42
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
39
+ suggestedBinding: {
40
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
41
+ midPoint?: import("@excalidraw/math").GlobalPoint;
42
+ } | null;
43
43
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
44
44
  frameRendering: {
45
45
  enabled: boolean;
@@ -67,19 +67,19 @@ export declare const actionGroup: {
67
67
  exportScale: number;
68
68
  currentItemStrokeColor: string;
69
69
  currentItemBackgroundColor: string;
70
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
70
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
71
71
  currentItemStrokeWidth: number;
72
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
72
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
73
73
  currentItemRoughness: number;
74
74
  currentItemOpacity: number;
75
- currentItemFontFamily: number;
75
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
76
76
  currentItemFontSize: number;
77
- currentItemTextAlign: string;
77
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
78
78
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
79
79
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
80
- currentHoveredFontFamily: number | null;
80
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
81
81
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
82
- currentItemArrowType: "round" | "sharp" | "elbow";
82
+ currentItemArrowType: "sharp" | "round" | "elbow";
83
83
  viewBackgroundColor: string;
84
84
  scrollX: number;
85
85
  scrollY: number;
@@ -88,26 +88,30 @@ export declare const actionGroup: {
88
88
  name: string | null;
89
89
  isResizing: boolean;
90
90
  isRotating: boolean;
91
- zoom: Readonly<{
92
- value: import("../types").NormalizedZoomValue;
93
- }>;
91
+ zoom: import("../types").Zoom;
94
92
  openMenu: "canvas" | null;
95
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
93
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
96
94
  openSidebar: {
97
- name: string;
98
- tab?: string | undefined;
95
+ name: import("../types").SidebarName;
96
+ tab?: import("../types").SidebarTabName;
99
97
  } | null;
100
- openDialog: {
98
+ openDialog: null | {
101
99
  name: "imageExport" | "help" | "jsonExport";
102
100
  } | {
103
101
  name: "ttd";
104
- tab: "mermaid" | "text-to-diagram";
102
+ tab: "text-to-diagram" | "mermaid";
105
103
  } | {
106
104
  name: "commandPalette";
105
+ } | {
106
+ name: "settings";
107
107
  } | {
108
108
  name: "elementLinkSelector";
109
- sourceElementId: string;
110
- } | null;
109
+ sourceElementId: ExcalidrawElement["id"];
110
+ } | {
111
+ name: "charts";
112
+ data: import("../charts").Spreadsheet;
113
+ rawText: string;
114
+ };
111
115
  defaultSidebarDockedPreference: boolean;
112
116
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
113
117
  hoveredElementIds: Readonly<{
@@ -119,9 +123,9 @@ export declare const actionGroup: {
119
123
  selectedElementsAreBeingDragged: boolean;
120
124
  shouldCacheIgnoreZoom: boolean;
121
125
  toast: {
122
- message: string;
123
- closable?: boolean | undefined;
124
- duration?: number | undefined;
126
+ message: React.ReactNode;
127
+ closable?: boolean;
128
+ duration?: number;
125
129
  } | null;
126
130
  zenModeEnabled: boolean;
127
131
  theme: import("@excalidraw/element/types").Theme;
@@ -133,39 +137,12 @@ export declare const actionGroup: {
133
137
  height: number;
134
138
  offsetTop: number;
135
139
  offsetLeft: number;
136
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
137
- collaborators: Map<import("../types").SocketId, Readonly<{
138
- pointer?: import("../types").CollaboratorPointer | undefined;
139
- button?: "up" | "down" | undefined;
140
- selectedElementIds?: Readonly<{
141
- [id: string]: true;
142
- }> | undefined;
143
- username?: string | null | undefined;
144
- userState?: import("@excalidraw/common").UserIdleState | undefined;
145
- color?: {
146
- background: string;
147
- stroke: string;
148
- } | undefined;
149
- avatarUrl?: string | undefined;
150
- id?: string | undefined;
151
- socketId?: import("../types").SocketId | undefined;
152
- isCurrentUser?: boolean | undefined;
153
- isInCall?: boolean | undefined;
154
- isSpeaking?: boolean | undefined;
155
- isMuted?: boolean | undefined;
156
- }>>;
140
+ fileHandle: FileSystemFileHandle | null;
141
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
157
142
  stats: {
158
143
  open: boolean;
159
144
  panels: number;
160
145
  };
161
- currentChartType: import("@excalidraw/element/types").ChartType;
162
- pasteDialog: {
163
- shown: false;
164
- data: null;
165
- } | {
166
- shown: true;
167
- data: import("../charts").Spreadsheet;
168
- };
169
146
  showHyperlinkPopup: false | "info" | "editor";
170
147
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
171
148
  snapLines: readonly import("../snapping").SnapLine[];
@@ -177,15 +154,16 @@ export declare const actionGroup: {
177
154
  userToFollow: import("../types").UserToFollow | null;
178
155
  followedBy: Set<import("../types").SocketId>;
179
156
  isCropping: boolean;
180
- croppingElementId: string | null;
157
+ croppingElementId: ExcalidrawElement["id"] | null;
181
158
  searchMatches: Readonly<{
182
- focusedId: string | null;
159
+ focusedId: ExcalidrawElement["id"] | null;
183
160
  matches: readonly import("../types").SearchMatch[];
184
161
  }> | null;
185
162
  activeLockedId: string | null;
186
163
  lockedMultiSelections: {
187
164
  [groupId: string]: true;
188
165
  };
166
+ bindMode: import("@excalidraw/element/types").BindMode;
189
167
  };
190
168
  elements: OrderedExcalidrawElement[];
191
169
  captureUpdate: "IMMEDIATELY";
@@ -203,19 +181,15 @@ export declare const actionUngroup: {
203
181
  trackEvent: {
204
182
  category: "element";
205
183
  };
206
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
184
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
207
185
  appState: Readonly<AppState>;
208
186
  elements: readonly OrderedExcalidrawElement[];
209
187
  captureUpdate: "EVENTUALLY";
210
188
  } | {
211
189
  appState: {
212
- editingGroupId: string | null;
213
- selectedElementIds: Readonly<{
214
- [id: string]: true;
215
- }>;
216
- selectedGroupIds: {
217
- [groupId: string]: boolean;
218
- };
190
+ editingGroupId: AppState["editingGroupId"];
191
+ selectedElementIds: AppState["selectedElementIds"];
192
+ selectedGroupIds: AppState["selectedGroupIds"];
219
193
  contextMenu: {
220
194
  items: import("../components/ContextMenu").ContextMenuItems;
221
195
  top: number;
@@ -223,18 +197,23 @@ export declare const actionUngroup: {
223
197
  } | null;
224
198
  showWelcomeScreen: boolean;
225
199
  isLoading: boolean;
226
- errorMessage: import("react").ReactNode;
200
+ errorMessage: React.ReactNode;
227
201
  activeEmbeddable: {
228
202
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
229
- state: "active" | "hover";
203
+ state: "hover" | "active";
230
204
  } | null;
231
205
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
232
206
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
233
207
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
234
208
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
209
  isBindingEnabled: boolean;
210
+ bindingPreference: "enabled" | "disabled";
211
+ isMidpointSnappingEnabled: boolean;
236
212
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
237
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
213
+ suggestedBinding: {
214
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
215
+ midPoint?: import("@excalidraw/math").GlobalPoint;
216
+ } | null;
238
217
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
239
218
  frameRendering: {
240
219
  enabled: boolean;
@@ -262,19 +241,19 @@ export declare const actionUngroup: {
262
241
  exportScale: number;
263
242
  currentItemStrokeColor: string;
264
243
  currentItemBackgroundColor: string;
265
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
244
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
266
245
  currentItemStrokeWidth: number;
267
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
246
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
268
247
  currentItemRoughness: number;
269
248
  currentItemOpacity: number;
270
- currentItemFontFamily: number;
249
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
271
250
  currentItemFontSize: number;
272
- currentItemTextAlign: string;
251
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
273
252
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
274
253
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
275
- currentHoveredFontFamily: number | null;
254
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
276
255
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
277
- currentItemArrowType: "round" | "sharp" | "elbow";
256
+ currentItemArrowType: "sharp" | "round" | "elbow";
278
257
  viewBackgroundColor: string;
279
258
  scrollX: number;
280
259
  scrollY: number;
@@ -283,26 +262,30 @@ export declare const actionUngroup: {
283
262
  name: string | null;
284
263
  isResizing: boolean;
285
264
  isRotating: boolean;
286
- zoom: Readonly<{
287
- value: import("../types").NormalizedZoomValue;
288
- }>;
265
+ zoom: import("../types").Zoom;
289
266
  openMenu: "canvas" | null;
290
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
267
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
291
268
  openSidebar: {
292
- name: string;
293
- tab?: string | undefined;
269
+ name: import("../types").SidebarName;
270
+ tab?: import("../types").SidebarTabName;
294
271
  } | null;
295
- openDialog: {
272
+ openDialog: null | {
296
273
  name: "imageExport" | "help" | "jsonExport";
297
274
  } | {
298
275
  name: "ttd";
299
- tab: "mermaid" | "text-to-diagram";
276
+ tab: "text-to-diagram" | "mermaid";
300
277
  } | {
301
278
  name: "commandPalette";
279
+ } | {
280
+ name: "settings";
302
281
  } | {
303
282
  name: "elementLinkSelector";
304
- sourceElementId: string;
305
- } | null;
283
+ sourceElementId: ExcalidrawElement["id"];
284
+ } | {
285
+ name: "charts";
286
+ data: import("../charts").Spreadsheet;
287
+ rawText: string;
288
+ };
306
289
  defaultSidebarDockedPreference: boolean;
307
290
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
308
291
  hoveredElementIds: Readonly<{
@@ -314,9 +297,9 @@ export declare const actionUngroup: {
314
297
  selectedElementsAreBeingDragged: boolean;
315
298
  shouldCacheIgnoreZoom: boolean;
316
299
  toast: {
317
- message: string;
318
- closable?: boolean | undefined;
319
- duration?: number | undefined;
300
+ message: React.ReactNode;
301
+ closable?: boolean;
302
+ duration?: number;
320
303
  } | null;
321
304
  zenModeEnabled: boolean;
322
305
  theme: import("@excalidraw/element/types").Theme;
@@ -328,39 +311,12 @@ export declare const actionUngroup: {
328
311
  height: number;
329
312
  offsetTop: number;
330
313
  offsetLeft: number;
331
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
332
- collaborators: Map<import("../types").SocketId, Readonly<{
333
- pointer?: import("../types").CollaboratorPointer | undefined;
334
- button?: "up" | "down" | undefined;
335
- selectedElementIds?: Readonly<{
336
- [id: string]: true;
337
- }> | undefined;
338
- username?: string | null | undefined;
339
- userState?: import("@excalidraw/common").UserIdleState | undefined;
340
- color?: {
341
- background: string;
342
- stroke: string;
343
- } | undefined;
344
- avatarUrl?: string | undefined;
345
- id?: string | undefined;
346
- socketId?: import("../types").SocketId | undefined;
347
- isCurrentUser?: boolean | undefined;
348
- isInCall?: boolean | undefined;
349
- isSpeaking?: boolean | undefined;
350
- isMuted?: boolean | undefined;
351
- }>>;
314
+ fileHandle: FileSystemFileHandle | null;
315
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
352
316
  stats: {
353
317
  open: boolean;
354
318
  panels: number;
355
319
  };
356
- currentChartType: import("@excalidraw/element/types").ChartType;
357
- pasteDialog: {
358
- shown: false;
359
- data: null;
360
- } | {
361
- shown: true;
362
- data: import("../charts").Spreadsheet;
363
- };
364
320
  showHyperlinkPopup: false | "info" | "editor";
365
321
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
366
322
  snapLines: readonly import("../snapping").SnapLine[];
@@ -372,15 +328,16 @@ export declare const actionUngroup: {
372
328
  userToFollow: import("../types").UserToFollow | null;
373
329
  followedBy: Set<import("../types").SocketId>;
374
330
  isCropping: boolean;
375
- croppingElementId: string | null;
331
+ croppingElementId: ExcalidrawElement["id"] | null;
376
332
  searchMatches: Readonly<{
377
- focusedId: string | null;
333
+ focusedId: ExcalidrawElement["id"] | null;
378
334
  matches: readonly import("../types").SearchMatch[];
379
335
  }> | null;
380
336
  activeLockedId: string | null;
381
337
  lockedMultiSelections: {
382
338
  [groupId: string]: true;
383
339
  };
340
+ bindMode: import("@excalidraw/element/types").BindMode;
384
341
  };
385
342
  elements: OrderedExcalidrawElement[];
386
343
  captureUpdate: "IMMEDIATELY";