@excalidraw/math 0.18.0-5fffc47 → 0.18.0-60b2758

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