@excalidraw/math 0.18.0-9ba0f5d → 0.18.0-9fbeaed

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 (307) hide show
  1. package/dist/dev/index.js +349 -160
  2. package/dist/dev/index.js.map +4 -4
  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/colors.d.ts +24 -2
  7. package/dist/types/common/src/constants.d.ts +72 -7
  8. package/dist/types/common/src/index.d.ts +3 -0
  9. package/dist/types/common/src/keys.d.ts +6 -0
  10. package/dist/types/common/src/points.d.ts +1 -1
  11. package/dist/types/common/src/random.d.ts +7 -0
  12. package/dist/types/common/src/utils.d.ts +16 -50
  13. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  14. package/dist/types/element/src/Scene.d.ts +9 -5
  15. package/dist/types/element/src/align.d.ts +5 -2
  16. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  17. package/dist/types/element/src/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +30 -0
  19. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  20. package/dist/types/element/src/binding.d.ts +99 -17
  21. package/dist/types/element/src/bounds.d.ts +32 -9
  22. package/dist/types/element/src/bucketFill.d.ts +110 -0
  23. package/dist/types/element/src/collision.d.ts +20 -3
  24. package/dist/types/element/src/comparisons.d.ts +8 -5
  25. package/dist/types/element/src/convertToShape.d.ts +23 -0
  26. package/dist/types/element/src/cropElement.d.ts +36 -4
  27. package/dist/types/element/src/delta.d.ts +30 -2
  28. package/dist/types/element/src/distribute.d.ts +6 -2
  29. package/dist/types/element/src/dragElements.d.ts +34 -2
  30. package/dist/types/element/src/duplicate.d.ts +64 -3
  31. package/dist/types/element/src/elbowArrow.d.ts +7 -0
  32. package/dist/types/element/src/embeddable.d.ts +3 -2
  33. package/dist/types/element/src/flowchart.d.ts +9 -11
  34. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  35. package/dist/types/element/src/frame.d.ts +30 -11
  36. package/dist/types/element/src/groups.d.ts +10 -15
  37. package/dist/types/element/src/image.d.ts +5 -2
  38. package/dist/types/element/src/index.d.ts +10 -1
  39. package/dist/types/element/src/linearElementEditor.d.ts +36 -11
  40. package/dist/types/element/src/listMarker.d.ts +39 -0
  41. package/dist/types/element/src/mutateElement.d.ts +3 -1
  42. package/dist/types/element/src/newElement.d.ts +55 -3
  43. package/dist/types/element/src/renderElement.d.ts +31 -7
  44. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  45. package/dist/types/element/src/resizeElements.d.ts +14 -4
  46. package/dist/types/element/src/selection.d.ts +11 -13
  47. package/dist/types/element/src/shape.d.ts +30 -2
  48. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  49. package/dist/types/element/src/sortElements.d.ts +10 -0
  50. package/dist/types/element/src/stickyNote.d.ts +191 -0
  51. package/dist/types/element/src/textElement.d.ts +23 -11
  52. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  53. package/dist/types/element/src/textWrapping.d.ts +28 -1
  54. package/dist/types/element/src/transform.d.ts +31 -8
  55. package/dist/types/element/src/typeChecks.d.ts +29 -27
  56. package/dist/types/element/src/types.d.ts +48 -9
  57. package/dist/types/element/src/utils.d.ts +19 -6
  58. package/dist/types/element/src/zindex.d.ts +2 -2
  59. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +128 -53
  60. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  61. package/dist/types/excalidraw/actions/actionBoundText.d.ts +87 -213
  62. package/dist/types/excalidraw/actions/actionCanvas.d.ts +371 -1027
  63. package/dist/types/excalidraw/actions/actionClipboard.d.ts +86 -36
  64. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +43 -18
  65. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -513
  66. package/dist/types/excalidraw/actions/actionDeselect.d.ts +183 -0
  67. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  68. package/dist/types/excalidraw/actions/actionElementLink.d.ts +39 -18
  69. package/dist/types/excalidraw/actions/actionElementLock.d.ts +87 -37
  70. package/dist/types/excalidraw/actions/actionExport.d.ts +140 -364
  71. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  72. package/dist/types/excalidraw/actions/actionFrame.d.ts +157 -684
  73. package/dist/types/excalidraw/actions/actionGroup.d.ts +102 -52
  74. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +100 -21
  75. package/dist/types/excalidraw/actions/actionLink.d.ts +44 -19
  76. package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -18
  77. package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -56
  78. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -23
  79. package/dist/types/excalidraw/actions/actionStyles.d.ts +44 -18
  80. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
  81. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +58 -32
  82. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +47 -23
  83. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +196 -0
  84. package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
  85. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +44 -19
  86. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +43 -23
  87. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  88. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
  89. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +44 -19
  90. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +45 -20
  91. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  92. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +44 -19
  93. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  94. package/dist/types/excalidraw/actions/index.d.ts +7 -2
  95. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  96. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  97. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  98. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  99. package/dist/types/excalidraw/appState.d.ts +44 -17
  100. package/dist/types/excalidraw/charts/charts.bar.d.ts +3 -0
  101. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  102. package/dist/types/excalidraw/charts/charts.helpers.d.ts +33 -0
  103. package/dist/types/excalidraw/charts/charts.line.d.ts +3 -0
  104. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  105. package/dist/types/excalidraw/charts/charts.radar.d.ts +3 -0
  106. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  107. package/dist/types/excalidraw/charts/index.d.ts +8 -0
  108. package/dist/types/excalidraw/clipboard.d.ts +6 -7
  109. package/dist/types/excalidraw/components/Actions.d.ts +26 -13
  110. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  111. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  112. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  113. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  114. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  115. package/dist/types/excalidraw/components/App.d.ts +376 -112
  116. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  117. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  118. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  119. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  120. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  121. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  122. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  123. package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
  124. package/dist/types/excalidraw/components/App.text.d.ts +197 -0
  125. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  126. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  127. package/dist/types/excalidraw/components/App.viewport.d.ts +133 -0
  128. package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
  129. package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
  130. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  131. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  132. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  133. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  134. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  135. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  136. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  137. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  138. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  139. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  140. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  141. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
  142. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
  143. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  144. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  145. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  146. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  147. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  148. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  149. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  150. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  151. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  152. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  153. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  154. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  155. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  156. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  157. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  158. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  159. package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
  160. package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
  161. package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
  162. package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
  163. package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
  164. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  165. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  166. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  167. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  168. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  169. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  170. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  171. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  172. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  173. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  174. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  175. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  176. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  177. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  178. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  179. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  180. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  181. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  182. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  183. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  184. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +2 -6
  185. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
  186. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  187. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  188. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  189. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
  190. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  191. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -2
  192. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  193. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  194. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +3 -1
  195. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  196. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  197. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  198. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +18 -1
  199. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  200. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  201. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +26 -0
  202. package/dist/types/excalidraw/components/Toast.d.ts +8 -4
  203. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  204. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  205. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  206. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  207. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  208. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  209. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  210. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  211. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  212. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -2
  213. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  214. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  215. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
  216. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
  217. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
  218. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  219. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
  220. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  221. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  222. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  223. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  224. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  225. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  226. package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
  227. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  228. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
  229. package/dist/types/excalidraw/components/icons.d.ts +31 -10
  230. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +27 -3
  231. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
  232. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  233. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  234. package/dist/types/excalidraw/data/blob.d.ts +119 -70
  235. package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
  236. package/dist/types/excalidraw/data/index.d.ts +9 -10
  237. package/dist/types/excalidraw/data/json.d.ts +68 -35
  238. package/dist/types/excalidraw/data/library.d.ts +1 -1
  239. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  240. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  241. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  242. package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
  243. package/dist/types/excalidraw/history.d.ts +10 -4
  244. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  245. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  246. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  247. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  248. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  249. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  250. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  251. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  252. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  253. package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
  254. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  255. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  256. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  257. package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
  258. package/dist/types/excalidraw/scene/export.d.ts +344 -21
  259. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  260. package/dist/types/excalidraw/scene/types.d.ts +30 -5
  261. package/dist/types/excalidraw/snapping.d.ts +7 -7
  262. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  263. package/dist/types/excalidraw/types.d.ts +702 -44
  264. package/dist/types/excalidraw/viewport.d.ts +303 -0
  265. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +17 -3
  266. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  267. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  268. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  269. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  270. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  271. package/dist/types/math/src/constants.d.ts +0 -1
  272. package/dist/types/math/src/curve.d.ts +23 -13
  273. package/dist/types/math/src/index.d.ts +1 -0
  274. package/dist/types/math/src/pca.d.ts +79 -0
  275. package/dist/types/math/src/point.d.ts +8 -2
  276. package/dist/types/math/src/polygon.d.ts +25 -1
  277. package/dist/types/math/src/segment.d.ts +6 -0
  278. package/dist/types/math/src/types.d.ts +25 -1
  279. package/dist/types/utils/src/index.d.ts +4 -3
  280. package/dist/types/utils/src/shape.d.ts +2 -2
  281. package/package.json +2 -2
  282. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  283. package/dist/types/excalidraw/charts.d.ts +0 -27
  284. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  285. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  286. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  287. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  288. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  289. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  290. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  291. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
  292. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  293. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  294. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
  295. package/dist/types/excalidraw/components/shapes.d.ts +0 -190
  296. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  297. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  298. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
  299. package/dist/types/excalidraw/cursor.d.ts +0 -5
  300. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  301. package/dist/types/excalidraw/index.d.ts +0 -46
  302. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  303. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  304. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  305. package/dist/types/utils/src/bbox.d.ts +0 -9
  306. package/dist/types/utils/src/export.d.ts +0 -35
  307. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,4 +1,6 @@
1
- import type { AppClassProperties } from "../types";
1
+ import type { ExcalidrawElement, ExcalidrawTextElement } from "@excalidraw/element/types";
2
+ import type { AppClassProperties, AppState } from "../types";
3
+ export declare const isTextAutoResizeShortcut: (event: KeyboardEvent | React.KeyboardEvent<Element>) => boolean;
2
4
  export declare const actionTextAutoResize: {
3
5
  name: "autoResize";
4
6
  label: string;
@@ -6,12 +8,456 @@ export declare const actionTextAutoResize: {
6
8
  trackEvent: {
7
9
  category: "element";
8
10
  };
9
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: unknown, app: AppClassProperties) => boolean;
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
11
- appState: Readonly<import("../types").AppState>;
12
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: unknown) => boolean;
12
+ /**
13
+ * Toggles auto-resizing of the given text (e.g. the one being edited), or
14
+ * else of the selected free texts: on if any of them wraps, else off.
15
+ */
16
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, targetElement: unknown, app: AppClassProperties) => false | {
17
+ appState: Readonly<AppState>;
18
+ elements: (ExcalidrawTextElement | (Readonly<{
19
+ id: string;
20
+ x: number;
21
+ y: number;
22
+ strokeColor: string;
23
+ backgroundColor: string;
24
+ fillStyle: import("@excalidraw/element/types").FillStyle;
25
+ strokeWidth: number;
26
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
27
+ roundness: null | {
28
+ type: import("@excalidraw/element/types").RoundnessType;
29
+ value?: number;
30
+ };
31
+ roughness: number;
32
+ opacity: number;
33
+ width: number;
34
+ height: number;
35
+ angle: import("@excalidraw/math").Radians;
36
+ seed: number;
37
+ version: number;
38
+ versionNonce: number;
39
+ index: import("@excalidraw/element/types").FractionalIndex | null;
40
+ isDeleted: boolean;
41
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
42
+ frameId: string | null;
43
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
44
+ updated: number;
45
+ created: number | null;
46
+ link: string | null;
47
+ locked: boolean;
48
+ customData?: Record<string, any>;
49
+ }> & Readonly<{
50
+ type: "line" | "arrow";
51
+ points: readonly import("@excalidraw/math").LocalPoint[];
52
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
53
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
54
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
55
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
56
+ }> & {
57
+ index: import("@excalidraw/element/types").FractionalIndex;
58
+ }) | (Readonly<{
59
+ id: string;
60
+ x: number;
61
+ y: number;
62
+ strokeColor: string;
63
+ backgroundColor: string;
64
+ fillStyle: import("@excalidraw/element/types").FillStyle;
65
+ strokeWidth: number;
66
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
67
+ roundness: null | {
68
+ type: import("@excalidraw/element/types").RoundnessType;
69
+ value?: number;
70
+ };
71
+ roughness: number;
72
+ opacity: number;
73
+ width: number;
74
+ height: number;
75
+ angle: import("@excalidraw/math").Radians;
76
+ seed: number;
77
+ version: number;
78
+ versionNonce: number;
79
+ index: import("@excalidraw/element/types").FractionalIndex | null;
80
+ isDeleted: boolean;
81
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
82
+ frameId: string | null;
83
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
84
+ updated: number;
85
+ created: number | null;
86
+ link: string | null;
87
+ locked: boolean;
88
+ customData?: Record<string, any>;
89
+ }> & {
90
+ type: "selection";
91
+ } & {
92
+ index: import("@excalidraw/element/types").FractionalIndex;
93
+ }) | (Readonly<{
94
+ id: string;
95
+ x: number;
96
+ y: number;
97
+ strokeColor: string;
98
+ backgroundColor: string;
99
+ fillStyle: import("@excalidraw/element/types").FillStyle;
100
+ strokeWidth: number;
101
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
102
+ roundness: null | {
103
+ type: import("@excalidraw/element/types").RoundnessType;
104
+ value?: number;
105
+ };
106
+ roughness: number;
107
+ opacity: number;
108
+ width: number;
109
+ height: number;
110
+ angle: import("@excalidraw/math").Radians;
111
+ seed: number;
112
+ version: number;
113
+ versionNonce: number;
114
+ index: import("@excalidraw/element/types").FractionalIndex | null;
115
+ isDeleted: boolean;
116
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
117
+ frameId: string | null;
118
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
119
+ updated: number;
120
+ created: number | null;
121
+ link: string | null;
122
+ locked: boolean;
123
+ customData?: Record<string, any>;
124
+ }> & {
125
+ type: "rectangle";
126
+ } & {
127
+ index: import("@excalidraw/element/types").FractionalIndex;
128
+ }) | (Readonly<{
129
+ id: string;
130
+ x: number;
131
+ y: number;
132
+ strokeColor: string;
133
+ backgroundColor: string;
134
+ fillStyle: import("@excalidraw/element/types").FillStyle;
135
+ strokeWidth: number;
136
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
137
+ roundness: null | {
138
+ type: import("@excalidraw/element/types").RoundnessType;
139
+ value?: number;
140
+ };
141
+ roughness: number;
142
+ opacity: number;
143
+ width: number;
144
+ height: number;
145
+ angle: import("@excalidraw/math").Radians;
146
+ seed: number;
147
+ version: number;
148
+ versionNonce: number;
149
+ index: import("@excalidraw/element/types").FractionalIndex | null;
150
+ isDeleted: boolean;
151
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
152
+ frameId: string | null;
153
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
154
+ updated: number;
155
+ created: number | null;
156
+ link: string | null;
157
+ locked: boolean;
158
+ customData?: Record<string, any>;
159
+ }> & Readonly<{
160
+ type: "stickynote";
161
+ baseHeight: number;
162
+ }> & {
163
+ index: import("@excalidraw/element/types").FractionalIndex;
164
+ }) | (Readonly<{
165
+ id: string;
166
+ x: number;
167
+ y: number;
168
+ strokeColor: string;
169
+ backgroundColor: string;
170
+ fillStyle: import("@excalidraw/element/types").FillStyle;
171
+ strokeWidth: number;
172
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
173
+ roundness: null | {
174
+ type: import("@excalidraw/element/types").RoundnessType;
175
+ value?: number;
176
+ };
177
+ roughness: number;
178
+ opacity: number;
179
+ width: number;
180
+ height: number;
181
+ angle: import("@excalidraw/math").Radians;
182
+ seed: number;
183
+ version: number;
184
+ versionNonce: number;
185
+ index: import("@excalidraw/element/types").FractionalIndex | null;
186
+ isDeleted: boolean;
187
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
188
+ frameId: string | null;
189
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
190
+ updated: number;
191
+ created: number | null;
192
+ link: string | null;
193
+ locked: boolean;
194
+ customData?: Record<string, any>;
195
+ }> & {
196
+ type: "diamond";
197
+ } & {
198
+ index: import("@excalidraw/element/types").FractionalIndex;
199
+ }) | (Readonly<{
200
+ id: string;
201
+ x: number;
202
+ y: number;
203
+ strokeColor: string;
204
+ backgroundColor: string;
205
+ fillStyle: import("@excalidraw/element/types").FillStyle;
206
+ strokeWidth: number;
207
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
208
+ roundness: null | {
209
+ type: import("@excalidraw/element/types").RoundnessType;
210
+ value?: number;
211
+ };
212
+ roughness: number;
213
+ opacity: number;
214
+ width: number;
215
+ height: number;
216
+ angle: import("@excalidraw/math").Radians;
217
+ seed: number;
218
+ version: number;
219
+ versionNonce: number;
220
+ index: import("@excalidraw/element/types").FractionalIndex | null;
221
+ isDeleted: boolean;
222
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
223
+ frameId: string | null;
224
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
225
+ updated: number;
226
+ created: number | null;
227
+ link: string | null;
228
+ locked: boolean;
229
+ customData?: Record<string, any>;
230
+ }> & {
231
+ type: "ellipse";
232
+ } & {
233
+ index: import("@excalidraw/element/types").FractionalIndex;
234
+ }) | (Readonly<{
235
+ id: string;
236
+ x: number;
237
+ y: number;
238
+ strokeColor: string;
239
+ backgroundColor: string;
240
+ fillStyle: import("@excalidraw/element/types").FillStyle;
241
+ strokeWidth: number;
242
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
243
+ roundness: null | {
244
+ type: import("@excalidraw/element/types").RoundnessType;
245
+ value?: number;
246
+ };
247
+ roughness: number;
248
+ opacity: number;
249
+ width: number;
250
+ height: number;
251
+ angle: import("@excalidraw/math").Radians;
252
+ seed: number;
253
+ version: number;
254
+ versionNonce: number;
255
+ index: import("@excalidraw/element/types").FractionalIndex | null;
256
+ isDeleted: boolean;
257
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
258
+ frameId: string | null;
259
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
260
+ updated: number;
261
+ created: number | null;
262
+ link: string | null;
263
+ locked: boolean;
264
+ customData?: Record<string, any>;
265
+ }> & Readonly<{
266
+ type: "embeddable";
267
+ }> & {
268
+ index: import("@excalidraw/element/types").FractionalIndex;
269
+ }) | (Readonly<{
270
+ id: string;
271
+ x: number;
272
+ y: number;
273
+ strokeColor: string;
274
+ backgroundColor: string;
275
+ fillStyle: import("@excalidraw/element/types").FillStyle;
276
+ strokeWidth: number;
277
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
278
+ roundness: null | {
279
+ type: import("@excalidraw/element/types").RoundnessType;
280
+ value?: number;
281
+ };
282
+ roughness: number;
283
+ opacity: number;
284
+ width: number;
285
+ height: number;
286
+ angle: import("@excalidraw/math").Radians;
287
+ seed: number;
288
+ version: number;
289
+ versionNonce: number;
290
+ index: import("@excalidraw/element/types").FractionalIndex | null;
291
+ isDeleted: boolean;
292
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
293
+ frameId: string | null;
294
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
295
+ updated: number;
296
+ created: number | null;
297
+ link: string | null;
298
+ locked: boolean;
299
+ customData?: Record<string, any>;
300
+ }> & Readonly<{
301
+ type: "iframe";
302
+ customData?: {
303
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
304
+ };
305
+ }> & {
306
+ index: import("@excalidraw/element/types").FractionalIndex;
307
+ }) | (Readonly<{
308
+ id: string;
309
+ x: number;
310
+ y: number;
311
+ strokeColor: string;
312
+ backgroundColor: string;
313
+ fillStyle: import("@excalidraw/element/types").FillStyle;
314
+ strokeWidth: number;
315
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
316
+ roundness: null | {
317
+ type: import("@excalidraw/element/types").RoundnessType;
318
+ value?: number;
319
+ };
320
+ roughness: number;
321
+ opacity: number;
322
+ width: number;
323
+ height: number;
324
+ angle: import("@excalidraw/math").Radians;
325
+ seed: number;
326
+ version: number;
327
+ versionNonce: number;
328
+ index: import("@excalidraw/element/types").FractionalIndex | null;
329
+ isDeleted: boolean;
330
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
331
+ frameId: string | null;
332
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
333
+ updated: number;
334
+ created: number | null;
335
+ link: string | null;
336
+ locked: boolean;
337
+ customData?: Record<string, any>;
338
+ }> & Readonly<{
339
+ type: "image";
340
+ fileId: import("@excalidraw/element/types").FileId | null;
341
+ status: "pending" | "saved" | "error";
342
+ scale: [number, number];
343
+ crop: import("@excalidraw/element/types").ImageCrop | null;
344
+ }> & {
345
+ index: import("@excalidraw/element/types").FractionalIndex;
346
+ }) | (Readonly<{
347
+ id: string;
348
+ x: number;
349
+ y: number;
350
+ strokeColor: string;
351
+ backgroundColor: string;
352
+ fillStyle: import("@excalidraw/element/types").FillStyle;
353
+ strokeWidth: number;
354
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
355
+ roundness: null | {
356
+ type: import("@excalidraw/element/types").RoundnessType;
357
+ value?: number;
358
+ };
359
+ roughness: number;
360
+ opacity: number;
361
+ width: number;
362
+ height: number;
363
+ angle: import("@excalidraw/math").Radians;
364
+ seed: number;
365
+ version: number;
366
+ versionNonce: number;
367
+ index: import("@excalidraw/element/types").FractionalIndex | null;
368
+ isDeleted: boolean;
369
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
370
+ frameId: string | null;
371
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
372
+ updated: number;
373
+ created: number | null;
374
+ link: string | null;
375
+ locked: boolean;
376
+ customData?: Record<string, any>;
377
+ }> & {
378
+ type: "frame";
379
+ name: string | null;
380
+ } & {
381
+ index: import("@excalidraw/element/types").FractionalIndex;
382
+ }) | (Readonly<{
383
+ id: string;
384
+ x: number;
385
+ y: number;
386
+ strokeColor: string;
387
+ backgroundColor: string;
388
+ fillStyle: import("@excalidraw/element/types").FillStyle;
389
+ strokeWidth: number;
390
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
391
+ roundness: null | {
392
+ type: import("@excalidraw/element/types").RoundnessType;
393
+ value?: number;
394
+ };
395
+ roughness: number;
396
+ opacity: number;
397
+ width: number;
398
+ height: number;
399
+ angle: import("@excalidraw/math").Radians;
400
+ seed: number;
401
+ version: number;
402
+ versionNonce: number;
403
+ index: import("@excalidraw/element/types").FractionalIndex | null;
404
+ isDeleted: boolean;
405
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
406
+ frameId: string | null;
407
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
408
+ updated: number;
409
+ created: number | null;
410
+ link: string | null;
411
+ locked: boolean;
412
+ customData?: Record<string, any>;
413
+ }> & {
414
+ type: "magicframe";
415
+ name: string | null;
416
+ } & {
417
+ index: import("@excalidraw/element/types").FractionalIndex;
418
+ }) | (Readonly<{
419
+ id: string;
420
+ x: number;
421
+ y: number;
422
+ strokeColor: string;
423
+ backgroundColor: string;
424
+ fillStyle: import("@excalidraw/element/types").FillStyle;
425
+ strokeWidth: number;
426
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
427
+ roundness: null | {
428
+ type: import("@excalidraw/element/types").RoundnessType;
429
+ value?: number;
430
+ };
431
+ roughness: number;
432
+ opacity: number;
433
+ width: number;
434
+ height: number;
435
+ angle: import("@excalidraw/math").Radians;
436
+ seed: number;
437
+ version: number;
438
+ versionNonce: number;
439
+ index: import("@excalidraw/element/types").FractionalIndex | null;
440
+ isDeleted: boolean;
441
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
442
+ frameId: string | null;
443
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
444
+ updated: number;
445
+ created: number | null;
446
+ link: string | null;
447
+ locked: boolean;
448
+ customData?: Record<string, any>;
449
+ }> & Readonly<{
450
+ type: "freedraw";
451
+ points: readonly import("@excalidraw/math").LocalPoint[];
452
+ pressures: readonly number[];
453
+ simulatePressure: boolean;
454
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
455
+ }> & {
456
+ index: import("@excalidraw/element/types").FractionalIndex;
457
+ }))[];
13
458
  captureUpdate: "IMMEDIATELY";
14
459
  };
460
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
15
461
  } & {
16
- keyTest?: undefined;
462
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
17
463
  };
@@ -1,18 +1,15 @@
1
- export declare const actionSetEmbeddableAsActiveTool: {
2
- name: "setEmbeddableAsActiveTool";
1
+ export declare const actionToggleArrowBinding: {
2
+ name: "arrowBinding";
3
+ label: string;
4
+ viewMode: false;
3
5
  trackEvent: {
4
- category: "toolbar";
6
+ category: "canvas";
7
+ predicate: (appState: Readonly<import("../types").AppState>) => boolean;
5
8
  };
6
- target: string;
7
- label: string;
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
9
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
9
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
10
10
  appState: {
11
- activeTool: {
12
- lastActiveTool: import("../types").ActiveTool | null;
13
- locked: boolean;
14
- fromSelection: boolean;
15
- } & import("../types").ActiveTool;
11
+ bindingPreference: "enabled" | "disabled";
12
+ isBindingEnabled: boolean;
16
13
  contextMenu: {
17
14
  items: import("../components/ContextMenu").ContextMenuItems;
18
15
  top: number;
@@ -29,9 +26,25 @@ export declare const actionSetEmbeddableAsActiveTool: {
29
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
- isBindingEnabled: boolean;
33
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
+ boxSelectionMode: import("../types").BoxSelectionMode;
30
+ isMidpointSnappingEnabled: boolean;
31
+ showHints: boolean;
32
+ inputDevice: import("../types").InputDevice;
33
+ suggestedBinding: {
34
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
+ midPoint?: import("@excalidraw/math").GlobalPoint;
36
+ } | null;
37
+ textToolHover: {
38
+ type: "text";
39
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
40
+ } | {
41
+ type: "container";
42
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
43
+ } | {
44
+ type: "arrow";
45
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
46
+ anchor: "start" | "end" | "label";
47
+ } | null;
35
48
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
49
  frameRendering: {
37
50
  enabled: boolean;
@@ -39,9 +52,14 @@ export declare const actionSetEmbeddableAsActiveTool: {
39
52
  outline: boolean;
40
53
  clip: boolean;
41
54
  };
42
- editingFrame: string | null;
43
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
44
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
55
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
56
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
57
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
58
+ activeTool: {
59
+ lastActiveTool: import("../types").ActiveTool | null;
60
+ locked: boolean;
61
+ fromSelection: boolean;
62
+ } & import("../types").ActiveTool;
45
63
  preferredSelectionTool: {
46
64
  type: "selection" | "lasso";
47
65
  initialized: boolean;
@@ -53,11 +71,14 @@ export declare const actionSetEmbeddableAsActiveTool: {
53
71
  exportWithDarkMode: boolean;
54
72
  exportScale: number;
55
73
  currentItemStrokeColor: string;
74
+ currentItemStickynoteStrokeColor: string;
75
+ currentItemStickynoteBackgroundColor: string;
56
76
  currentItemBackgroundColor: string;
57
77
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
58
- currentItemStrokeWidth: number;
78
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
59
79
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
60
80
  currentItemRoughness: number;
81
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
61
82
  currentItemOpacity: number;
62
83
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
63
84
  currentItemFontSize: number;
@@ -70,6 +91,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
70
91
  viewBackgroundColor: string;
71
92
  scrollX: number;
72
93
  scrollY: number;
94
+ scrollConstraints: import("../types").ScrollConstraints | null;
73
95
  cursorButton: "up" | "down";
74
96
  scrolledOutside: boolean;
75
97
  name: string | null;
@@ -94,6 +116,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
94
116
  } | {
95
117
  name: "elementLinkSelector";
96
118
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
119
+ } | {
120
+ name: "charts";
121
+ data: import("../charts").Spreadsheet;
122
+ rawText: string;
97
123
  };
98
124
  defaultSidebarDockedPreference: boolean;
99
125
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -109,11 +135,12 @@ export declare const actionSetEmbeddableAsActiveTool: {
109
135
  selectedElementsAreBeingDragged: boolean;
110
136
  shouldCacheIgnoreZoom: boolean;
111
137
  toast: {
112
- message: string;
138
+ message: React.ReactNode;
113
139
  closable?: boolean;
114
140
  duration?: number;
115
141
  } | null;
116
142
  zenModeEnabled: boolean;
143
+ minimapEnabled: boolean;
117
144
  theme: import("@excalidraw/element/types").Theme;
118
145
  gridSize: number;
119
146
  gridStep: number;
@@ -127,20 +154,12 @@ export declare const actionSetEmbeddableAsActiveTool: {
127
154
  height: number;
128
155
  offsetTop: number;
129
156
  offsetLeft: number;
130
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
157
+ fileHandle: FileSystemFileHandle | null;
131
158
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
132
159
  stats: {
133
160
  open: boolean;
134
161
  panels: number;
135
162
  };
136
- currentChartType: import("@excalidraw/element/types").ChartType;
137
- pasteDialog: {
138
- shown: false;
139
- data: null;
140
- } | {
141
- shown: true;
142
- data: import("../charts").Spreadsheet;
143
- };
144
163
  showHyperlinkPopup: false | "info" | "editor";
145
164
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
146
165
  snapLines: readonly import("../snapping").SnapLine[];
@@ -149,8 +168,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
149
168
  y: number;
150
169
  } | null;
151
170
  objectsSnapModeEnabled: boolean;
152
- userToFollow: import("../types").UserToFollow | null;
153
- followedBy: Set<import("../types").SocketId>;
154
171
  isCropping: boolean;
155
172
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
156
173
  searchMatches: Readonly<{
@@ -162,9 +179,18 @@ export declare const actionSetEmbeddableAsActiveTool: {
162
179
  [groupId: string]: true;
163
180
  };
164
181
  bindMode: import("@excalidraw/element/types").BindMode;
182
+ colorTopPicks: {
183
+ elementStroke: readonly string[] | null;
184
+ elementBackground: readonly string[] | null;
185
+ bucketFill: readonly string[] | null;
186
+ stickyNoteStroke: readonly string[] | null;
187
+ stickyNoteBackground: readonly string[] | null;
188
+ };
189
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
165
190
  };
166
- captureUpdate: "EVENTUALLY";
191
+ captureUpdate: "NEVER";
167
192
  };
193
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
168
194
  } & {
169
195
  keyTest?: undefined;
170
196
  };