@excalidraw/math 0.18.0-51ad895 → 0.18.0-51ca8ab

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 (277) hide show
  1. package/dist/dev/index.js +44 -10
  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 +26 -18
  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 +40 -76
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +10 -6
  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 +19 -12
  21. package/dist/types/element/src/bounds.d.ts +24 -17
  22. package/dist/types/element/src/collision.d.ts +4 -3
  23. package/dist/types/element/src/comparisons.d.ts +8 -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 +4 -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 +12 -7
  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 -0
  33. package/dist/types/element/src/linearElementEditor.d.ts +8 -4
  34. package/dist/types/element/src/mutateElement.d.ts +5 -1
  35. package/dist/types/element/src/newElement.d.ts +7 -6
  36. package/dist/types/element/src/renderElement.d.ts +0 -6
  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 +10 -10
  40. package/dist/types/element/src/shape.d.ts +9 -8
  41. package/dist/types/element/src/textElement.d.ts +1 -1
  42. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  43. package/dist/types/element/src/textWrapping.d.ts +26 -0
  44. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  45. package/dist/types/element/src/transformHandles.d.ts +3 -23
  46. package/dist/types/element/src/typeChecks.d.ts +3 -4
  47. package/dist/types/element/src/types.d.ts +11 -2
  48. package/dist/types/element/src/utils.d.ts +9 -5
  49. package/dist/types/element/src/zindex.d.ts +1 -1
  50. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +152 -207
  51. package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
  52. package/dist/types/excalidraw/actions/actionBoundText.d.ts +79 -116
  53. package/dist/types/excalidraw/actions/actionCanvas.d.ts +413 -977
  54. package/dist/types/excalidraw/actions/actionClipboard.d.ts +111 -148
  55. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +38 -57
  56. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +121 -178
  57. package/dist/types/excalidraw/actions/actionDeselect.d.ts +161 -0
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +50 -73
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +79 -116
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +54 -73
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +116 -469
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -2
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +0 -1
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +236 -344
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +83 -128
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +122 -174
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +56 -75
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +44 -67
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +104 -132
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +41 -64
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +37 -55
  75. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  76. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +174 -0
  77. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +54 -73
  78. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +174 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +54 -73
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +44 -67
  81. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +53 -72
  82. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +54 -73
  83. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +54 -73
  84. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  85. package/dist/types/excalidraw/actions/index.d.ts +4 -1
  86. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  87. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  90. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  91. package/dist/types/excalidraw/appState.d.ts +23 -19
  92. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  93. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  94. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  95. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  96. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  97. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  98. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  99. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  100. package/dist/types/excalidraw/clipboard.d.ts +13 -38
  101. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  102. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  103. package/dist/types/excalidraw/components/App.d.ts +135 -79
  104. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  105. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  106. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  107. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  108. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -2
  109. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  110. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  111. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  112. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +3 -3
  113. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  114. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  115. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  117. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  118. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -2
  119. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -0
  120. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  121. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  122. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  123. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  124. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  125. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -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/LibraryUnit.d.ts +2 -3
  129. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  130. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  131. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  132. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  133. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  134. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  135. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  136. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  137. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  138. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  139. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  140. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  141. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  142. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +16 -22
  143. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  144. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  145. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  146. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  147. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  148. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  149. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  150. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  151. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  152. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  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/CodeMirrorEditor.d.ts +11 -0
  160. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  161. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  162. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  163. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  164. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  165. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  166. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  167. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  168. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  169. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  170. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  171. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  172. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  173. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  174. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  175. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  176. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  177. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  178. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  179. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  180. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  181. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  182. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  183. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  184. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  185. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
  186. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
  187. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  188. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  193. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  194. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  201. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  202. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  203. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  204. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  205. package/dist/types/excalidraw/components/icons.d.ts +41 -21
  206. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +24 -3
  207. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
  208. package/dist/types/excalidraw/components/shapes.d.ts +81 -1
  209. package/dist/types/excalidraw/data/blob.d.ts +330 -7
  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 +5 -7
  213. package/dist/types/excalidraw/data/index.d.ts +4 -5
  214. package/dist/types/excalidraw/data/json.d.ts +172 -4
  215. package/dist/types/excalidraw/data/library.d.ts +25 -10
  216. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  217. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  218. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  219. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  220. package/dist/types/excalidraw/errors.d.ts +14 -0
  221. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  222. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -2
  223. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  224. package/dist/types/excalidraw/i18n.d.ts +2 -2
  225. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  226. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  227. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  228. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -4
  229. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
  230. package/dist/types/excalidraw/scene/Renderer.d.ts +428 -18
  231. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  232. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  233. package/dist/types/excalidraw/scene/types.d.ts +7 -2
  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/textAutoResizeHandle.d.ts +15 -0
  241. package/dist/types/excalidraw/types.d.ts +264 -25
  242. package/dist/types/excalidraw/viewport.d.ts +316 -0
  243. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  244. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  245. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  246. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  247. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  248. package/dist/types/laser-pointer/src/state.d.ts +35 -0
  249. package/dist/types/math/src/constants.d.ts +0 -1
  250. package/dist/types/math/src/curve.d.ts +4 -1
  251. package/dist/types/math/src/point.d.ts +8 -2
  252. package/dist/types/math/src/polygon.d.ts +2 -2
  253. package/dist/types/math/src/range.d.ts +1 -3
  254. package/dist/types/math/src/segment.d.ts +3 -3
  255. package/dist/types/math/src/types.d.ts +25 -1
  256. package/dist/types/utils/src/export.d.ts +5 -5
  257. package/dist/types/utils/src/index.d.ts +1 -2
  258. package/dist/types/utils/src/shape.d.ts +6 -6
  259. package/package.json +2 -2
  260. package/dist/types/common/src/visualdebug.d.ts +0 -41
  261. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  262. package/dist/types/excalidraw/charts.d.ts +0 -27
  263. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  264. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  265. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  266. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  267. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  268. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -22
  269. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  270. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  271. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  272. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  273. package/dist/types/excalidraw/index.d.ts +0 -46
  274. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  275. package/dist/types/excalidraw/scene/scroll.d.ts +0 -23
  276. package/dist/types/utils/src/bbox.d.ts +0 -9
  277. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export declare const actionCopy: import("./types").Action<ClipboardEvent | null> & {
3
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly import("../../element/src/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
2
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
4
3
  };
5
4
  export declare const actionPaste: {
6
5
  name: "paste";
@@ -8,7 +7,7 @@ export declare const actionPaste: {
8
7
  trackEvent: {
9
8
  category: "element";
10
9
  };
11
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: unknown, app: import("../types").AppClassProperties) => Promise<false | {
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: unknown, app: import("../types").AppClassProperties) => Promise<false | {
12
11
  captureUpdate: "EVENTUALLY";
13
12
  appState: {
14
13
  errorMessage: string;
@@ -20,17 +19,22 @@ export declare const actionPaste: {
20
19
  showWelcomeScreen: boolean;
21
20
  isLoading: boolean;
22
21
  activeEmbeddable: {
23
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
24
- state: "active" | "hover";
22
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
+ state: "hover" | "active";
25
24
  } | null;
26
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
27
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
28
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
29
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
25
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
29
  isBindingEnabled: boolean;
31
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
32
- suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
33
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
30
+ boxSelectionMode: import("../types").BoxSelectionMode;
31
+ bindingPreference: "enabled" | "disabled";
32
+ isMidpointSnappingEnabled: boolean;
33
+ suggestedBinding: {
34
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
+ midPoint?: import("@excalidraw/math").GlobalPoint;
36
+ } | null;
37
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
38
  frameRendering: {
35
39
  enabled: boolean;
36
40
  name: boolean;
@@ -38,8 +42,8 @@ export declare const actionPaste: {
38
42
  clip: boolean;
39
43
  };
40
44
  editingFrame: string | null;
41
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
42
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
45
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
46
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
43
47
  activeTool: {
44
48
  lastActiveTool: import("../types").ActiveTool | null;
45
49
  locked: boolean;
@@ -57,51 +61,55 @@ export declare const actionPaste: {
57
61
  exportScale: number;
58
62
  currentItemStrokeColor: string;
59
63
  currentItemBackgroundColor: string;
60
- currentItemFillStyle: import("../../element/src/types").FillStyle;
61
- currentItemStrokeWidth: number;
62
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
64
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
65
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
66
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
63
67
  currentItemRoughness: number;
68
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
64
69
  currentItemOpacity: number;
65
- currentItemFontFamily: number;
70
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
66
71
  currentItemFontSize: number;
67
- currentItemTextAlign: string;
68
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
69
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
70
- currentHoveredFontFamily: number | null;
71
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
72
- currentItemArrowType: "round" | "sharp" | "elbow";
72
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
73
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
74
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
75
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
76
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
77
+ currentItemArrowType: "sharp" | "round" | "elbow";
73
78
  viewBackgroundColor: string;
74
79
  scrollX: number;
75
80
  scrollY: number;
81
+ scrollConstraints: import("../types").ScrollConstraints | null;
76
82
  cursorButton: "up" | "down";
77
83
  scrolledOutside: boolean;
78
84
  name: string | null;
79
85
  isResizing: boolean;
80
86
  isRotating: boolean;
81
- zoom: Readonly<{
82
- value: import("../types").NormalizedZoomValue;
83
- }>;
87
+ zoom: import("../types").Zoom;
84
88
  openMenu: "canvas" | null;
85
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
89
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
86
90
  openSidebar: {
87
- name: string;
88
- tab?: string | undefined;
91
+ name: import("../types").SidebarName;
92
+ tab?: import("../types").SidebarTabName;
89
93
  } | null;
90
- openDialog: {
94
+ openDialog: null | {
91
95
  name: "imageExport" | "help" | "jsonExport";
92
96
  } | {
93
97
  name: "ttd";
94
- tab: "mermaid" | "text-to-diagram";
98
+ tab: "text-to-diagram" | "mermaid";
95
99
  } | {
96
100
  name: "commandPalette";
97
101
  } | {
98
102
  name: "settings";
99
103
  } | {
100
104
  name: "elementLinkSelector";
101
- sourceElementId: string;
102
- } | null;
105
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
106
+ } | {
107
+ name: "charts";
108
+ data: import("../charts").Spreadsheet;
109
+ rawText: string;
110
+ };
103
111
  defaultSidebarDockedPreference: boolean;
104
- lastPointerDownWith: import("../../element/src/types").PointerType;
112
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
105
113
  selectedElementIds: Readonly<{
106
114
  [id: string]: true;
107
115
  }>;
@@ -114,12 +122,12 @@ export declare const actionPaste: {
114
122
  selectedElementsAreBeingDragged: boolean;
115
123
  shouldCacheIgnoreZoom: boolean;
116
124
  toast: {
117
- message: string;
118
- closable?: boolean | undefined;
119
- duration?: number | undefined;
125
+ message: React.ReactNode;
126
+ closable?: boolean;
127
+ duration?: number;
120
128
  } | null;
121
129
  zenModeEnabled: boolean;
122
- theme: import("../../element/src/types").Theme;
130
+ theme: import("@excalidraw/element/types").Theme;
123
131
  gridSize: number;
124
132
  gridStep: number;
125
133
  gridModeEnabled: boolean;
@@ -127,44 +135,17 @@ export declare const actionPaste: {
127
135
  selectedGroupIds: {
128
136
  [groupId: string]: boolean;
129
137
  };
130
- editingGroupId: string | null;
138
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
131
139
  width: number;
132
140
  height: number;
133
141
  offsetTop: number;
134
142
  offsetLeft: number;
135
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
136
- collaborators: Map<import("../types").SocketId, Readonly<{
137
- pointer?: import("../types").CollaboratorPointer | undefined;
138
- button?: "up" | "down" | undefined;
139
- selectedElementIds?: Readonly<{
140
- [id: string]: true;
141
- }> | undefined;
142
- username?: string | null | undefined;
143
- userState?: import("@excalidraw/common").UserIdleState | undefined;
144
- color?: {
145
- background: string;
146
- stroke: string;
147
- } | undefined;
148
- avatarUrl?: string | undefined;
149
- id?: string | undefined;
150
- socketId?: import("../types").SocketId | undefined;
151
- isCurrentUser?: boolean | undefined;
152
- isInCall?: boolean | undefined;
153
- isSpeaking?: boolean | undefined;
154
- isMuted?: boolean | undefined;
155
- }>>;
143
+ fileHandle: FileSystemFileHandle | null;
144
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
156
145
  stats: {
157
146
  open: boolean;
158
147
  panels: number;
159
148
  };
160
- currentChartType: import("../../element/src/types").ChartType;
161
- pasteDialog: {
162
- shown: false;
163
- data: null;
164
- } | {
165
- shown: true;
166
- data: import("../charts").Spreadsheet;
167
- };
168
149
  showHyperlinkPopup: false | "info" | "editor";
169
150
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
170
151
  snapLines: readonly import("../snapping").SnapLine[];
@@ -176,16 +157,16 @@ export declare const actionPaste: {
176
157
  userToFollow: import("../types").UserToFollow | null;
177
158
  followedBy: Set<import("../types").SocketId>;
178
159
  isCropping: boolean;
179
- croppingElementId: string | null;
160
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
180
161
  searchMatches: Readonly<{
181
- focusedId: string | null;
162
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
182
163
  matches: readonly import("../types").SearchMatch[];
183
164
  }> | null;
184
165
  activeLockedId: string | null;
185
166
  lockedMultiSelections: {
186
167
  [groupId: string]: true;
187
168
  };
188
- bindMode: import("../../element/src/types").BindMode;
169
+ bindMode: import("@excalidraw/element/types").BindMode;
189
170
  };
190
171
  } | {
191
172
  captureUpdate: "EVENTUALLY";
@@ -196,7 +177,7 @@ export declare const actionPaste: {
196
177
  keyTest?: undefined;
197
178
  };
198
179
  export declare const actionCut: import("./types").Action<ClipboardEvent | null> & {
199
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly import("../../element/src/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
180
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
200
181
  };
201
182
  export declare const actionCopyAsSvg: {
202
183
  name: "copyAsSvg";
@@ -205,7 +186,7 @@ export declare const actionCopyAsSvg: {
205
186
  trackEvent: {
206
187
  category: "element";
207
188
  };
208
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
189
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
209
190
  captureUpdate: "EVENTUALLY";
210
191
  appState?: undefined;
211
192
  } | {
@@ -223,7 +204,7 @@ export declare const actionCopyAsSvg: {
223
204
  };
224
205
  captureUpdate: "EVENTUALLY";
225
206
  }>;
226
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
207
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
227
208
  keywords: string[];
228
209
  } & {
229
210
  keyTest?: undefined;
@@ -235,7 +216,7 @@ export declare const actionCopyAsPng: {
235
216
  trackEvent: {
236
217
  category: "element";
237
218
  };
238
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
219
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
239
220
  captureUpdate: "EVENTUALLY";
240
221
  appState?: undefined;
241
222
  } | {
@@ -249,17 +230,22 @@ export declare const actionCopyAsPng: {
249
230
  showWelcomeScreen: boolean;
250
231
  isLoading: boolean;
251
232
  activeEmbeddable: {
252
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
253
- state: "active" | "hover";
233
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
234
+ state: "hover" | "active";
254
235
  } | null;
255
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
256
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
257
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
258
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
236
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
237
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
238
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
239
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
259
240
  isBindingEnabled: boolean;
260
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
261
- suggestedBinding: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
262
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
241
+ boxSelectionMode: import("../types").BoxSelectionMode;
242
+ bindingPreference: "enabled" | "disabled";
243
+ isMidpointSnappingEnabled: boolean;
244
+ suggestedBinding: {
245
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
246
+ midPoint?: import("@excalidraw/math").GlobalPoint;
247
+ } | null;
248
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
263
249
  frameRendering: {
264
250
  enabled: boolean;
265
251
  name: boolean;
@@ -267,8 +253,8 @@ export declare const actionCopyAsPng: {
267
253
  clip: boolean;
268
254
  };
269
255
  editingFrame: string | null;
270
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
271
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
256
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
257
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
272
258
  activeTool: {
273
259
  lastActiveTool: import("../types").ActiveTool | null;
274
260
  locked: boolean;
@@ -286,51 +272,55 @@ export declare const actionCopyAsPng: {
286
272
  exportScale: number;
287
273
  currentItemStrokeColor: string;
288
274
  currentItemBackgroundColor: string;
289
- currentItemFillStyle: import("../../element/src/types").FillStyle;
290
- currentItemStrokeWidth: number;
291
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
275
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
276
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
277
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
292
278
  currentItemRoughness: number;
279
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
293
280
  currentItemOpacity: number;
294
- currentItemFontFamily: number;
281
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
295
282
  currentItemFontSize: number;
296
- currentItemTextAlign: string;
297
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
298
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
299
- currentHoveredFontFamily: number | null;
300
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
301
- currentItemArrowType: "round" | "sharp" | "elbow";
283
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
284
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
285
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
286
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
287
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
288
+ currentItemArrowType: "sharp" | "round" | "elbow";
302
289
  viewBackgroundColor: string;
303
290
  scrollX: number;
304
291
  scrollY: number;
292
+ scrollConstraints: import("../types").ScrollConstraints | null;
305
293
  cursorButton: "up" | "down";
306
294
  scrolledOutside: boolean;
307
295
  name: string | null;
308
296
  isResizing: boolean;
309
297
  isRotating: boolean;
310
- zoom: Readonly<{
311
- value: import("../types").NormalizedZoomValue;
312
- }>;
298
+ zoom: import("../types").Zoom;
313
299
  openMenu: "canvas" | null;
314
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
300
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
315
301
  openSidebar: {
316
- name: string;
317
- tab?: string | undefined;
302
+ name: import("../types").SidebarName;
303
+ tab?: import("../types").SidebarTabName;
318
304
  } | null;
319
- openDialog: {
305
+ openDialog: null | {
320
306
  name: "imageExport" | "help" | "jsonExport";
321
307
  } | {
322
308
  name: "ttd";
323
- tab: "mermaid" | "text-to-diagram";
309
+ tab: "text-to-diagram" | "mermaid";
324
310
  } | {
325
311
  name: "commandPalette";
326
312
  } | {
327
313
  name: "settings";
328
314
  } | {
329
315
  name: "elementLinkSelector";
330
- sourceElementId: string;
331
- } | null;
316
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
317
+ } | {
318
+ name: "charts";
319
+ data: import("../charts").Spreadsheet;
320
+ rawText: string;
321
+ };
332
322
  defaultSidebarDockedPreference: boolean;
333
- lastPointerDownWith: import("../../element/src/types").PointerType;
323
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
334
324
  selectedElementIds: Readonly<{
335
325
  [id: string]: true;
336
326
  }>;
@@ -343,12 +333,12 @@ export declare const actionCopyAsPng: {
343
333
  selectedElementsAreBeingDragged: boolean;
344
334
  shouldCacheIgnoreZoom: boolean;
345
335
  toast: {
346
- message: string;
347
- closable?: boolean | undefined;
348
- duration?: number | undefined;
336
+ message: React.ReactNode;
337
+ closable?: boolean;
338
+ duration?: number;
349
339
  } | null;
350
340
  zenModeEnabled: boolean;
351
- theme: import("../../element/src/types").Theme;
341
+ theme: import("@excalidraw/element/types").Theme;
352
342
  gridSize: number;
353
343
  gridStep: number;
354
344
  gridModeEnabled: boolean;
@@ -356,44 +346,17 @@ export declare const actionCopyAsPng: {
356
346
  selectedGroupIds: {
357
347
  [groupId: string]: boolean;
358
348
  };
359
- editingGroupId: string | null;
349
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
360
350
  width: number;
361
351
  height: number;
362
352
  offsetTop: number;
363
353
  offsetLeft: number;
364
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
365
- collaborators: Map<import("../types").SocketId, Readonly<{
366
- pointer?: import("../types").CollaboratorPointer | undefined;
367
- button?: "up" | "down" | undefined;
368
- selectedElementIds?: Readonly<{
369
- [id: string]: true;
370
- }> | undefined;
371
- username?: string | null | undefined;
372
- userState?: import("@excalidraw/common").UserIdleState | undefined;
373
- color?: {
374
- background: string;
375
- stroke: string;
376
- } | undefined;
377
- avatarUrl?: string | undefined;
378
- id?: string | undefined;
379
- socketId?: import("../types").SocketId | undefined;
380
- isCurrentUser?: boolean | undefined;
381
- isInCall?: boolean | undefined;
382
- isSpeaking?: boolean | undefined;
383
- isMuted?: boolean | undefined;
384
- }>>;
354
+ fileHandle: FileSystemFileHandle | null;
355
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
385
356
  stats: {
386
357
  open: boolean;
387
358
  panels: number;
388
359
  };
389
- currentChartType: import("../../element/src/types").ChartType;
390
- pasteDialog: {
391
- shown: false;
392
- data: null;
393
- } | {
394
- shown: true;
395
- data: import("../charts").Spreadsheet;
396
- };
397
360
  showHyperlinkPopup: false | "info" | "editor";
398
361
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
399
362
  snapLines: readonly import("../snapping").SnapLine[];
@@ -405,20 +368,20 @@ export declare const actionCopyAsPng: {
405
368
  userToFollow: import("../types").UserToFollow | null;
406
369
  followedBy: Set<import("../types").SocketId>;
407
370
  isCropping: boolean;
408
- croppingElementId: string | null;
371
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
409
372
  searchMatches: Readonly<{
410
- focusedId: string | null;
373
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
411
374
  matches: readonly import("../types").SearchMatch[];
412
375
  }> | null;
413
376
  activeLockedId: string | null;
414
377
  lockedMultiSelections: {
415
378
  [groupId: string]: true;
416
379
  };
417
- bindMode: import("../../element/src/types").BindMode;
380
+ bindMode: import("@excalidraw/element/types").BindMode;
418
381
  };
419
382
  captureUpdate: "EVENTUALLY";
420
383
  }>;
421
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
384
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
422
385
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
423
386
  keywords: string[];
424
387
  } & {
@@ -430,10 +393,10 @@ export declare const copyText: {
430
393
  trackEvent: {
431
394
  category: "element";
432
395
  };
433
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
396
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
434
397
  captureUpdate: "EVENTUALLY";
435
398
  };
436
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
399
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
437
400
  keywords: string[];
438
401
  } & {
439
402
  keyTest?: undefined;