@excalidraw/math 0.18.0-3a5ef40 → 0.18.0-3c916c5

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 (284) hide show
  1. package/dist/dev/index.js +321 -118
  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 +66 -7
  8. package/dist/types/common/src/index.d.ts +3 -0
  9. package/dist/types/common/src/keys.d.ts +4 -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 +6 -3
  19. package/dist/types/element/src/binding.d.ts +94 -17
  20. package/dist/types/element/src/bounds.d.ts +32 -9
  21. package/dist/types/element/src/bucketFill.d.ts +110 -0
  22. package/dist/types/element/src/collision.d.ts +21 -5
  23. package/dist/types/element/src/comparisons.d.ts +8 -5
  24. package/dist/types/element/src/convertToShape.d.ts +23 -0
  25. package/dist/types/element/src/cropElement.d.ts +36 -4
  26. package/dist/types/element/src/delta.d.ts +30 -2
  27. package/dist/types/element/src/distribute.d.ts +5 -2
  28. package/dist/types/element/src/dragElements.d.ts +34 -2
  29. package/dist/types/element/src/duplicate.d.ts +64 -3
  30. package/dist/types/element/src/elbowArrow.d.ts +7 -0
  31. package/dist/types/element/src/embeddable.d.ts +3 -2
  32. package/dist/types/element/src/flowchart.d.ts +9 -11
  33. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  34. package/dist/types/element/src/frame.d.ts +30 -11
  35. package/dist/types/element/src/groups.d.ts +10 -15
  36. package/dist/types/element/src/image.d.ts +5 -2
  37. package/dist/types/element/src/index.d.ts +8 -1
  38. package/dist/types/element/src/linearElementEditor.d.ts +34 -11
  39. package/dist/types/element/src/listMarker.d.ts +39 -0
  40. package/dist/types/element/src/mutateElement.d.ts +3 -1
  41. package/dist/types/element/src/newElement.d.ts +55 -3
  42. package/dist/types/element/src/renderElement.d.ts +31 -7
  43. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  44. package/dist/types/element/src/resizeElements.d.ts +14 -4
  45. package/dist/types/element/src/selection.d.ts +11 -13
  46. package/dist/types/element/src/shape.d.ts +30 -2
  47. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  48. package/dist/types/element/src/sortElements.d.ts +10 -0
  49. package/dist/types/element/src/stickyNote.d.ts +191 -0
  50. package/dist/types/element/src/textElement.d.ts +23 -11
  51. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  52. package/dist/types/element/src/textWrapping.d.ts +28 -1
  53. package/dist/types/element/src/transform.d.ts +31 -8
  54. package/dist/types/element/src/typeChecks.d.ts +29 -27
  55. package/dist/types/element/src/types.d.ts +48 -9
  56. package/dist/types/element/src/utils.d.ts +19 -6
  57. package/dist/types/element/src/zindex.d.ts +2 -2
  58. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +125 -53
  59. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  60. package/dist/types/excalidraw/actions/actionBoundText.d.ts +86 -213
  61. package/dist/types/excalidraw/actions/actionCanvas.d.ts +361 -1024
  62. package/dist/types/excalidraw/actions/actionClipboard.d.ts +84 -36
  63. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +42 -18
  64. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -515
  65. package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
  66. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  67. package/dist/types/excalidraw/actions/actionElementLink.d.ts +38 -18
  68. package/dist/types/excalidraw/actions/actionElementLock.d.ts +85 -37
  69. package/dist/types/excalidraw/actions/actionExport.d.ts +138 -364
  70. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  71. package/dist/types/excalidraw/actions/actionFrame.d.ts +151 -684
  72. package/dist/types/excalidraw/actions/actionGroup.d.ts +100 -52
  73. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +97 -21
  74. package/dist/types/excalidraw/actions/actionLink.d.ts +43 -19
  75. package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -18
  76. package/dist/types/excalidraw/actions/actionProperties.d.ts +120 -56
  77. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +47 -23
  78. package/dist/types/excalidraw/actions/actionStyles.d.ts +43 -18
  79. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  80. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +57 -32
  81. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +46 -23
  82. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
  83. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +43 -19
  84. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -23
  85. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  86. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +197 -0
  87. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +43 -19
  88. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -20
  89. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  90. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +43 -19
  91. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  92. package/dist/types/excalidraw/actions/index.d.ts +6 -2
  93. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  94. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  95. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  96. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  97. package/dist/types/excalidraw/appState.d.ts +43 -17
  98. package/dist/types/excalidraw/charts/charts.bar.d.ts +3 -0
  99. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  100. package/dist/types/excalidraw/charts/charts.helpers.d.ts +33 -0
  101. package/dist/types/excalidraw/charts/charts.line.d.ts +3 -0
  102. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  103. package/dist/types/excalidraw/charts/charts.radar.d.ts +3 -0
  104. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  105. package/dist/types/excalidraw/charts/index.d.ts +8 -0
  106. package/dist/types/excalidraw/clipboard.d.ts +2 -5
  107. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  108. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  109. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  110. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  111. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  112. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  113. package/dist/types/excalidraw/components/App.d.ts +372 -116
  114. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  115. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  116. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  117. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  118. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  119. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  120. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  121. package/dist/types/excalidraw/components/App.selectionTool.d.ts +93 -0
  122. package/dist/types/excalidraw/components/App.text.d.ts +146 -0
  123. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  124. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  125. package/dist/types/excalidraw/components/App.viewport.d.ts +123 -0
  126. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  127. package/dist/types/excalidraw/components/App.wrap.d.ts +31 -0
  128. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  129. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  130. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  131. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  132. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  133. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  134. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  135. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  136. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  137. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  138. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  139. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
  140. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
  141. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  142. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  143. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  144. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  145. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  146. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  147. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  148. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  149. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  150. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  151. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  152. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  153. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  154. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  155. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  156. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  157. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  158. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  159. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  160. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  161. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  162. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  163. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  164. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  165. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  166. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  167. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  168. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  169. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  170. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  171. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  172. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  173. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  174. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  175. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  176. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  177. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  178. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  179. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  180. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -2
  181. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  182. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  183. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  184. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  185. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  186. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  187. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  188. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  189. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +26 -0
  190. package/dist/types/excalidraw/components/Toast.d.ts +8 -4
  191. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  192. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  193. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  194. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  195. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  196. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  197. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  198. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  199. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  200. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  201. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  202. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  204. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  205. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  206. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
  207. package/dist/types/excalidraw/components/icons.d.ts +27 -10
  208. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -4
  209. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  210. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  211. package/dist/types/excalidraw/data/blob.d.ts +117 -70
  212. package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
  213. package/dist/types/excalidraw/data/index.d.ts +9 -10
  214. package/dist/types/excalidraw/data/json.d.ts +67 -35
  215. package/dist/types/excalidraw/data/library.d.ts +1 -1
  216. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  217. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  218. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  219. package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
  220. package/dist/types/excalidraw/history.d.ts +10 -4
  221. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  222. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  223. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  224. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  225. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  226. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  227. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  228. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  229. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  230. package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
  231. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  232. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  233. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  234. package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
  235. package/dist/types/excalidraw/scene/export.d.ts +344 -21
  236. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  237. package/dist/types/excalidraw/scene/types.d.ts +30 -5
  238. package/dist/types/excalidraw/snapping.d.ts +7 -7
  239. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  240. package/dist/types/excalidraw/types.d.ts +670 -43
  241. package/dist/types/excalidraw/viewport.d.ts +302 -0
  242. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +17 -3
  243. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  244. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  245. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  246. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  247. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  248. package/dist/types/math/src/constants.d.ts +0 -1
  249. package/dist/types/math/src/curve.d.ts +23 -13
  250. package/dist/types/math/src/index.d.ts +1 -0
  251. package/dist/types/math/src/pca.d.ts +79 -0
  252. package/dist/types/math/src/point.d.ts +8 -2
  253. package/dist/types/math/src/polygon.d.ts +25 -1
  254. package/dist/types/math/src/segment.d.ts +6 -0
  255. package/dist/types/math/src/types.d.ts +25 -1
  256. package/dist/types/utils/src/index.d.ts +4 -3
  257. package/dist/types/utils/src/shape.d.ts +2 -2
  258. package/package.json +2 -2
  259. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  260. package/dist/types/excalidraw/charts.d.ts +0 -27
  261. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  262. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  263. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  264. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  265. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  266. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  267. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  268. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
  269. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  270. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  271. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
  272. package/dist/types/excalidraw/components/shapes.d.ts +0 -190
  273. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  274. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  275. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
  276. package/dist/types/excalidraw/cursor.d.ts +0 -5
  277. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  278. package/dist/types/excalidraw/index.d.ts +0 -47
  279. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  280. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  281. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  282. package/dist/types/utils/src/bbox.d.ts +0 -9
  283. package/dist/types/utils/src/export.d.ts +0 -35
  284. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,17 +1,17 @@
1
- import type { Theme } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement, Theme } from "@excalidraw/element/types";
2
2
  import "../components/ToolIcon.scss";
3
- import type { AppState } from "../types";
3
+ import type { AppClassProperties, AppState, BinaryFiles, ExcalidrawProps } from "../types";
4
4
  export declare const actionChangeProjectName: import("./types").Action<string | null> & {
5
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
5
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
6
6
  };
7
7
  export declare const actionChangeExportScale: import("./types").Action<number> & {
8
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
8
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
9
9
  };
10
10
  export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
11
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
11
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
12
12
  };
13
13
  export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
14
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
14
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
15
15
  };
16
16
  export declare const actionSaveToActiveFile: {
17
17
  name: "saveToActiveFile";
@@ -20,166 +20,22 @@ export declare const actionSaveToActiveFile: {
20
20
  trackEvent: {
21
21
  category: "export";
22
22
  };
23
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
24
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
25
- captureUpdate: "EVENTUALLY";
23
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
24
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
25
+ captureUpdate: "NEVER";
26
26
  appState: {
27
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
27
+ fileHandle: FileSystemFileHandle | null;
28
28
  toast: {
29
29
  message: string;
30
- } | null;
31
- contextMenu: {
32
- items: import("../components/ContextMenu").ContextMenuItems;
33
- top: number;
34
- left: number;
35
- } | null;
36
- showWelcomeScreen: boolean;
37
- isLoading: boolean;
38
- errorMessage: React.ReactNode;
39
- activeEmbeddable: {
40
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
41
- state: "hover" | "active";
42
- } | null;
43
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
44
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
46
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
47
- isBindingEnabled: boolean;
48
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
49
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
50
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
51
- frameRendering: {
52
- enabled: boolean;
53
- name: boolean;
54
- outline: boolean;
55
- clip: boolean;
30
+ duration: number;
56
31
  };
57
- editingFrame: string | null;
58
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
59
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
60
- activeTool: {
61
- lastActiveTool: import("../types").ActiveTool | null;
62
- locked: boolean;
63
- fromSelection: boolean;
64
- } & import("../types").ActiveTool;
65
- preferredSelectionTool: {
66
- type: "selection" | "lasso";
67
- initialized: boolean;
68
- };
69
- penMode: boolean;
70
- penDetected: boolean;
71
- exportBackground: boolean;
72
- exportEmbedScene: boolean;
73
- exportWithDarkMode: boolean;
74
- exportScale: number;
75
- currentItemStrokeColor: string;
76
- currentItemBackgroundColor: string;
77
- currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
78
- currentItemStrokeWidth: number;
79
- currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
80
- currentItemRoughness: number;
81
- currentItemOpacity: number;
82
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
83
- currentItemFontSize: number;
84
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
85
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
86
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
87
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
88
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
89
- currentItemArrowType: "sharp" | "round" | "elbow";
90
- viewBackgroundColor: string;
91
- scrollX: number;
92
- scrollY: number;
93
- cursorButton: "up" | "down";
94
- scrolledOutside: boolean;
95
- name: string | null;
96
- isResizing: boolean;
97
- isRotating: boolean;
98
- zoom: import("../types").Zoom;
99
- openMenu: "canvas" | null;
100
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
101
- openSidebar: {
102
- name: import("../types").SidebarName;
103
- tab?: import("../types").SidebarTabName;
104
- } | null;
105
- openDialog: null | {
106
- name: "imageExport" | "help" | "jsonExport";
107
- } | {
108
- name: "ttd";
109
- tab: "text-to-diagram" | "mermaid";
110
- } | {
111
- name: "commandPalette";
112
- } | {
113
- name: "settings";
114
- } | {
115
- name: "elementLinkSelector";
116
- sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
117
- };
118
- defaultSidebarDockedPreference: boolean;
119
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
120
- selectedElementIds: Readonly<{
121
- [id: string]: true;
122
- }>;
123
- hoveredElementIds: Readonly<{
124
- [id: string]: true;
125
- }>;
126
- previousSelectedElementIds: {
127
- [id: string]: true;
128
- };
129
- selectedElementsAreBeingDragged: boolean;
130
- shouldCacheIgnoreZoom: boolean;
131
- zenModeEnabled: boolean;
132
- theme: Theme;
133
- gridSize: number;
134
- gridStep: number;
135
- gridModeEnabled: boolean;
136
- viewModeEnabled: boolean;
137
- selectedGroupIds: {
138
- [groupId: string]: boolean;
139
- };
140
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
141
- width: number;
142
- height: number;
143
- offsetTop: number;
144
- offsetLeft: number;
145
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
146
- stats: {
147
- open: boolean;
148
- panels: number;
149
- };
150
- currentChartType: import("@excalidraw/element/types").ChartType;
151
- pasteDialog: {
152
- shown: false;
153
- data: null;
154
- } | {
155
- shown: true;
156
- data: import("../charts").Spreadsheet;
157
- };
158
- showHyperlinkPopup: false | "info" | "editor";
159
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
160
- snapLines: readonly import("../snapping").SnapLine[];
161
- originSnapOffset: {
162
- x: number;
163
- y: number;
164
- } | null;
165
- objectsSnapModeEnabled: boolean;
166
- userToFollow: import("../types").UserToFollow | null;
167
- followedBy: Set<import("../types").SocketId>;
168
- isCropping: boolean;
169
- croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
170
- searchMatches: Readonly<{
171
- focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
172
- matches: readonly import("../types").SearchMatch[];
173
- }> | null;
174
- activeLockedId: string | null;
175
- lockedMultiSelections: {
176
- [groupId: string]: true;
177
- };
178
- bindMode: import("@excalidraw/element/types").BindMode;
179
32
  };
180
33
  } | {
181
- captureUpdate: "EVENTUALLY";
182
- appState?: undefined;
34
+ captureUpdate: "NEVER";
35
+ appState: {
36
+ toast: null;
37
+ fileHandle?: undefined;
38
+ };
183
39
  }>;
184
40
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
185
41
  } & {
@@ -193,153 +49,23 @@ export declare const actionSaveFileToDisk: {
193
49
  trackEvent: {
194
50
  category: "export";
195
51
  };
196
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
197
- captureUpdate: "EVENTUALLY";
52
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
53
+ captureUpdate: "NEVER";
198
54
  appState: {
199
55
  openDialog: null;
200
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
56
+ fileHandle: FileSystemFileHandle | null;
201
57
  toast: {
202
58
  message: string;
59
+ duration: number;
203
60
  };
204
- contextMenu: {
205
- items: import("../components/ContextMenu").ContextMenuItems;
206
- top: number;
207
- left: number;
208
- } | null;
209
- showWelcomeScreen: boolean;
210
- isLoading: boolean;
211
- errorMessage: React.ReactNode;
212
- activeEmbeddable: {
213
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
214
- state: "hover" | "active";
215
- } | null;
216
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
217
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
218
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
219
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
220
- isBindingEnabled: boolean;
221
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
222
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
223
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
224
- frameRendering: {
225
- enabled: boolean;
226
- name: boolean;
227
- outline: boolean;
228
- clip: boolean;
229
- };
230
- editingFrame: string | null;
231
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
232
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
233
- activeTool: {
234
- lastActiveTool: import("../types").ActiveTool | null;
235
- locked: boolean;
236
- fromSelection: boolean;
237
- } & import("../types").ActiveTool;
238
- preferredSelectionTool: {
239
- type: "selection" | "lasso";
240
- initialized: boolean;
241
- };
242
- penMode: boolean;
243
- penDetected: boolean;
244
- exportBackground: boolean;
245
- exportEmbedScene: boolean;
246
- exportWithDarkMode: boolean;
247
- exportScale: number;
248
- currentItemStrokeColor: string;
249
- currentItemBackgroundColor: string;
250
- currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
251
- currentItemStrokeWidth: number;
252
- currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
253
- currentItemRoughness: number;
254
- currentItemOpacity: number;
255
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
256
- currentItemFontSize: number;
257
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
258
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
259
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
260
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
261
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
262
- currentItemArrowType: "sharp" | "round" | "elbow";
263
- viewBackgroundColor: string;
264
- scrollX: number;
265
- scrollY: number;
266
- cursorButton: "up" | "down";
267
- scrolledOutside: boolean;
268
- name: string | null;
269
- isResizing: boolean;
270
- isRotating: boolean;
271
- zoom: import("../types").Zoom;
272
- openMenu: "canvas" | null;
273
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
274
- openSidebar: {
275
- name: import("../types").SidebarName;
276
- tab?: import("../types").SidebarTabName;
277
- } | null;
278
- defaultSidebarDockedPreference: boolean;
279
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
280
- selectedElementIds: Readonly<{
281
- [id: string]: true;
282
- }>;
283
- hoveredElementIds: Readonly<{
284
- [id: string]: true;
285
- }>;
286
- previousSelectedElementIds: {
287
- [id: string]: true;
288
- };
289
- selectedElementsAreBeingDragged: boolean;
290
- shouldCacheIgnoreZoom: boolean;
291
- zenModeEnabled: boolean;
292
- theme: Theme;
293
- gridSize: number;
294
- gridStep: number;
295
- gridModeEnabled: boolean;
296
- viewModeEnabled: boolean;
297
- selectedGroupIds: {
298
- [groupId: string]: boolean;
299
- };
300
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
301
- width: number;
302
- height: number;
303
- offsetTop: number;
304
- offsetLeft: number;
305
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
306
- stats: {
307
- open: boolean;
308
- panels: number;
309
- };
310
- currentChartType: import("@excalidraw/element/types").ChartType;
311
- pasteDialog: {
312
- shown: false;
313
- data: null;
314
- } | {
315
- shown: true;
316
- data: import("../charts").Spreadsheet;
317
- };
318
- showHyperlinkPopup: false | "info" | "editor";
319
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
320
- snapLines: readonly import("../snapping").SnapLine[];
321
- originSnapOffset: {
322
- x: number;
323
- y: number;
324
- } | null;
325
- objectsSnapModeEnabled: boolean;
326
- userToFollow: import("../types").UserToFollow | null;
327
- followedBy: Set<import("../types").SocketId>;
328
- isCropping: boolean;
329
- croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
330
- searchMatches: Readonly<{
331
- focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
332
- matches: readonly import("../types").SearchMatch[];
333
- }> | null;
334
- activeLockedId: string | null;
335
- lockedMultiSelections: {
336
- [groupId: string]: true;
337
- };
338
- bindMode: import("@excalidraw/element/types").BindMode;
339
61
  };
340
62
  } | {
341
- captureUpdate: "EVENTUALLY";
342
- appState?: undefined;
63
+ captureUpdate: "NEVER";
64
+ appState: {
65
+ toast: null;
66
+ openDialog?: undefined;
67
+ fileHandle?: undefined;
68
+ };
343
69
  }>;
344
70
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
345
71
  PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
@@ -352,8 +78,8 @@ export declare const actionLoadScene: {
352
78
  trackEvent: {
353
79
  category: "export";
354
80
  };
355
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
356
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<false | {
81
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
82
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => Promise<false | {
357
83
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
358
84
  appState: {
359
85
  viewBackgroundColor: string;
@@ -366,6 +92,11 @@ export declare const actionLoadScene: {
366
92
  };
367
93
  name: string | null;
368
94
  zoom: import("../types").Zoom;
95
+ isBindingEnabled: boolean;
96
+ isMidpointSnappingEnabled: boolean;
97
+ selectedElementIds: Readonly<{
98
+ [id: string]: true;
99
+ }>;
369
100
  scrollX: number;
370
101
  scrollY: number;
371
102
  viewModeEnabled: boolean;
@@ -380,13 +111,19 @@ export declare const actionLoadScene: {
380
111
  name: "settings";
381
112
  } | {
382
113
  name: "elementLinkSelector";
383
- sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
114
+ sourceElementId: ExcalidrawElement["id"];
115
+ } | {
116
+ name: "charts";
117
+ data: import("../charts").Spreadsheet;
118
+ rawText: string;
384
119
  };
385
120
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
386
- selectedElementIds: Readonly<{
387
- [id: string]: true;
388
- }>;
389
121
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
122
+ activeTool: {
123
+ lastActiveTool: import("../types").ActiveTool | null;
124
+ locked: boolean;
125
+ fromSelection: boolean;
126
+ } & import("../types").ActiveTool;
390
127
  activeEmbeddable: {
391
128
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
392
129
  state: "hover" | "active";
@@ -398,18 +135,32 @@ export declare const actionLoadScene: {
398
135
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
399
136
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
400
137
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
401
- isBindingEnabled: boolean;
402
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
138
+ gridModeEnabled: boolean;
139
+ suggestedBinding: {
140
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
141
+ midPoint?: import("@excalidraw/math").GlobalPoint;
142
+ } | null;
143
+ textToolHover: {
144
+ type: "text";
145
+ elementId: ExcalidrawElement["id"];
146
+ } | {
147
+ type: "container";
148
+ elementId: ExcalidrawElement["id"];
149
+ } | {
150
+ type: "arrow";
151
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
152
+ anchor: "start" | "end" | "label";
153
+ } | null;
403
154
  isRotating: boolean;
404
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
155
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
405
156
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
406
157
  snapLines: readonly import("../snapping").SnapLine[];
407
158
  zenModeEnabled: boolean;
408
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
159
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
409
160
  isCropping: boolean;
410
- croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
161
+ croppingElementId: ExcalidrawElement["id"] | null;
411
162
  searchMatches: Readonly<{
412
- focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
163
+ focusedId: ExcalidrawElement["id"] | null;
413
164
  matches: readonly import("../types").SearchMatch[];
414
165
  }> | null;
415
166
  activeLockedId: string | null;
@@ -418,8 +169,7 @@ export declare const actionLoadScene: {
418
169
  }>;
419
170
  shouldCacheIgnoreZoom: boolean;
420
171
  exportScale: number;
421
- bindMode: import("@excalidraw/element/types").BindMode;
422
- gridSize: number;
172
+ currentItemArrowType: "sharp" | "round" | "elbow";
423
173
  contextMenu: {
424
174
  items: import("../components/ContextMenu").ContextMenuItems;
425
175
  top: number;
@@ -429,13 +179,11 @@ export declare const actionLoadScene: {
429
179
  isLoading: boolean;
430
180
  errorMessage: React.ReactNode;
431
181
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
432
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
433
- editingFrame: string | null;
434
- activeTool: {
435
- lastActiveTool: import("../types").ActiveTool | null;
436
- locked: boolean;
437
- fromSelection: boolean;
438
- } & import("../types").ActiveTool;
182
+ boxSelectionMode: import("../types").BoxSelectionMode;
183
+ bindingPreference: "enabled" | "disabled";
184
+ showHints: boolean;
185
+ inputDevice: import("../types").InputDevice;
186
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
439
187
  preferredSelectionTool: {
440
188
  type: "selection" | "lasso";
441
189
  initialized: boolean;
@@ -446,11 +194,14 @@ export declare const actionLoadScene: {
446
194
  exportEmbedScene: boolean;
447
195
  exportWithDarkMode: boolean;
448
196
  currentItemStrokeColor: string;
197
+ currentItemStickynoteStrokeColor: string;
198
+ currentItemStickynoteBackgroundColor: string;
449
199
  currentItemBackgroundColor: string;
450
- currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
451
- currentItemStrokeWidth: number;
452
- currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
200
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
201
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
202
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
453
203
  currentItemRoughness: number;
204
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
454
205
  currentItemOpacity: number;
455
206
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
456
207
  currentItemFontSize: number;
@@ -459,7 +210,7 @@ export declare const actionLoadScene: {
459
210
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
460
211
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
461
212
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
462
- currentItemArrowType: "sharp" | "round" | "elbow";
213
+ scrollConstraints: import("../types").ScrollConstraints | null;
463
214
  cursorButton: "up" | "down";
464
215
  scrolledOutside: boolean;
465
216
  isResizing: boolean;
@@ -476,38 +227,37 @@ export declare const actionLoadScene: {
476
227
  };
477
228
  selectedElementsAreBeingDragged: boolean;
478
229
  toast: {
479
- message: string;
230
+ message: React.ReactNode;
480
231
  closable?: boolean;
481
232
  duration?: number;
482
233
  } | null;
234
+ gridSize: number;
483
235
  gridStep: number;
484
- gridModeEnabled: boolean;
485
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
236
+ fileHandle: FileSystemFileHandle | null;
486
237
  stats: {
487
238
  open: boolean;
488
239
  panels: number;
489
240
  };
490
- currentChartType: import("@excalidraw/element/types").ChartType;
491
- pasteDialog: {
492
- shown: false;
493
- data: null;
494
- } | {
495
- shown: true;
496
- data: import("../charts").Spreadsheet;
497
- };
498
241
  showHyperlinkPopup: false | "info" | "editor";
499
242
  originSnapOffset: {
500
243
  x: number;
501
244
  y: number;
502
245
  } | null;
503
246
  objectsSnapModeEnabled: boolean;
504
- userToFollow: import("../types").UserToFollow | null;
505
- followedBy: Set<import("../types").SocketId>;
506
247
  lockedMultiSelections: {
507
248
  [groupId: string]: true;
508
249
  };
250
+ bindMode: import("@excalidraw/element/types").BindMode;
251
+ colorTopPicks: {
252
+ elementStroke: readonly string[] | null;
253
+ elementBackground: readonly string[] | null;
254
+ bucketFill: readonly string[] | null;
255
+ stickyNoteStroke: readonly string[] | null;
256
+ stickyNoteBackground: readonly string[] | null;
257
+ };
258
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
509
259
  };
510
- files: import("../types").BinaryFiles;
260
+ files: BinaryFiles;
511
261
  captureUpdate: "IMMEDIATELY";
512
262
  } | {
513
263
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
@@ -529,8 +279,26 @@ export declare const actionLoadScene: {
529
279
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
530
280
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
531
281
  isBindingEnabled: boolean;
532
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
533
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
282
+ boxSelectionMode: import("../types").BoxSelectionMode;
283
+ bindingPreference: "enabled" | "disabled";
284
+ isMidpointSnappingEnabled: boolean;
285
+ showHints: boolean;
286
+ inputDevice: import("../types").InputDevice;
287
+ suggestedBinding: {
288
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
289
+ midPoint?: import("@excalidraw/math").GlobalPoint;
290
+ } | null;
291
+ textToolHover: {
292
+ type: "text";
293
+ elementId: ExcalidrawElement["id"];
294
+ } | {
295
+ type: "container";
296
+ elementId: ExcalidrawElement["id"];
297
+ } | {
298
+ type: "arrow";
299
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
300
+ anchor: "start" | "end" | "label";
301
+ } | null;
534
302
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
535
303
  frameRendering: {
536
304
  enabled: boolean;
@@ -538,9 +306,9 @@ export declare const actionLoadScene: {
538
306
  outline: boolean;
539
307
  clip: boolean;
540
308
  };
541
- editingFrame: string | null;
542
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
543
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
309
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
310
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
311
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
544
312
  activeTool: {
545
313
  lastActiveTool: import("../types").ActiveTool | null;
546
314
  locked: boolean;
@@ -557,11 +325,14 @@ export declare const actionLoadScene: {
557
325
  exportWithDarkMode: boolean;
558
326
  exportScale: number;
559
327
  currentItemStrokeColor: string;
328
+ currentItemStickynoteStrokeColor: string;
329
+ currentItemStickynoteBackgroundColor: string;
560
330
  currentItemBackgroundColor: string;
561
- currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
562
- currentItemStrokeWidth: number;
563
- currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
331
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
332
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
333
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
564
334
  currentItemRoughness: number;
335
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
565
336
  currentItemOpacity: number;
566
337
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
567
338
  currentItemFontSize: number;
@@ -574,6 +345,7 @@ export declare const actionLoadScene: {
574
345
  viewBackgroundColor: string;
575
346
  scrollX: number;
576
347
  scrollY: number;
348
+ scrollConstraints: import("../types").ScrollConstraints | null;
577
349
  cursorButton: "up" | "down";
578
350
  scrolledOutside: boolean;
579
351
  name: string | null;
@@ -597,7 +369,11 @@ export declare const actionLoadScene: {
597
369
  name: "settings";
598
370
  } | {
599
371
  name: "elementLinkSelector";
600
- sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
372
+ sourceElementId: ExcalidrawElement["id"];
373
+ } | {
374
+ name: "charts";
375
+ data: import("../charts").Spreadsheet;
376
+ rawText: string;
601
377
  };
602
378
  defaultSidebarDockedPreference: boolean;
603
379
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -613,7 +389,7 @@ export declare const actionLoadScene: {
613
389
  selectedElementsAreBeingDragged: boolean;
614
390
  shouldCacheIgnoreZoom: boolean;
615
391
  toast: {
616
- message: string;
392
+ message: React.ReactNode;
617
393
  closable?: boolean;
618
394
  duration?: number;
619
395
  } | null;
@@ -631,20 +407,12 @@ export declare const actionLoadScene: {
631
407
  height: number;
632
408
  offsetTop: number;
633
409
  offsetLeft: number;
634
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
410
+ fileHandle: FileSystemFileHandle | null;
635
411
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
636
412
  stats: {
637
413
  open: boolean;
638
414
  panels: number;
639
415
  };
640
- currentChartType: import("@excalidraw/element/types").ChartType;
641
- pasteDialog: {
642
- shown: false;
643
- data: null;
644
- } | {
645
- shown: true;
646
- data: import("../charts").Spreadsheet;
647
- };
648
416
  showHyperlinkPopup: false | "info" | "editor";
649
417
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
650
418
  snapLines: readonly import("../snapping").SnapLine[];
@@ -653,12 +421,10 @@ export declare const actionLoadScene: {
653
421
  y: number;
654
422
  } | null;
655
423
  objectsSnapModeEnabled: boolean;
656
- userToFollow: import("../types").UserToFollow | null;
657
- followedBy: Set<import("../types").SocketId>;
658
424
  isCropping: boolean;
659
- croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
425
+ croppingElementId: ExcalidrawElement["id"] | null;
660
426
  searchMatches: Readonly<{
661
- focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
427
+ focusedId: ExcalidrawElement["id"] | null;
662
428
  matches: readonly import("../types").SearchMatch[];
663
429
  }> | null;
664
430
  activeLockedId: string | null;
@@ -666,8 +432,16 @@ export declare const actionLoadScene: {
666
432
  [groupId: string]: true;
667
433
  };
668
434
  bindMode: import("@excalidraw/element/types").BindMode;
435
+ colorTopPicks: {
436
+ elementStroke: readonly string[] | null;
437
+ elementBackground: readonly string[] | null;
438
+ bucketFill: readonly string[] | null;
439
+ stickyNoteStroke: readonly string[] | null;
440
+ stickyNoteBackground: readonly string[] | null;
441
+ };
442
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
669
443
  };
670
- files: import("../types").BinaryFiles;
444
+ files: BinaryFiles;
671
445
  captureUpdate: "EVENTUALLY";
672
446
  }>;
673
447
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -675,5 +449,5 @@ export declare const actionLoadScene: {
675
449
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
676
450
  };
677
451
  export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
678
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
452
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
679
453
  };