@excalidraw/element 0.18.0-9ba0f5d → 0.18.0-a52cd20

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 (279) hide show
  1. package/dist/dev/index.js +13141 -8453
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +20 -19
  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 +70 -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 +10 -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 +2 -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 +37 -17
  21. package/dist/types/element/src/bounds.d.ts +23 -8
  22. package/dist/types/element/src/bucketFill.d.ts +110 -0
  23. package/dist/types/element/src/collision.d.ts +7 -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/delta.d.ts +23 -1
  27. package/dist/types/element/src/distribute.d.ts +3 -2
  28. package/dist/types/element/src/dragElements.d.ts +27 -0
  29. package/dist/types/element/src/duplicate.d.ts +64 -3
  30. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  31. package/dist/types/element/src/embeddable.d.ts +2 -2
  32. package/dist/types/element/src/flowchart.d.ts +11 -7
  33. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  34. package/dist/types/element/src/frame.d.ts +11 -10
  35. package/dist/types/element/src/groups.d.ts +9 -9
  36. package/dist/types/element/src/index.d.ts +8 -1
  37. package/dist/types/element/src/linearElementEditor.d.ts +32 -10
  38. package/dist/types/element/src/mutateElement.d.ts +3 -1
  39. package/dist/types/element/src/newElement.d.ts +53 -3
  40. package/dist/types/element/src/renderElement.d.ts +21 -7
  41. package/dist/types/element/src/resizeElements.d.ts +2 -2
  42. package/dist/types/element/src/selection.d.ts +11 -7
  43. package/dist/types/element/src/shape.d.ts +28 -2
  44. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  45. package/dist/types/element/src/sortElements.d.ts +10 -0
  46. package/dist/types/element/src/stickyNote.d.ts +183 -0
  47. package/dist/types/element/src/textElement.d.ts +21 -10
  48. package/dist/types/element/src/textWrapping.d.ts +26 -0
  49. package/dist/types/element/src/transform.d.ts +26 -7
  50. package/dist/types/element/src/typeChecks.d.ts +29 -27
  51. package/dist/types/element/src/types.d.ts +48 -9
  52. package/dist/types/element/src/utils.d.ts +19 -6
  53. package/dist/types/element/src/visualdebug.d.ts +1 -2
  54. package/dist/types/element/src/zindex.d.ts +2 -2
  55. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +125 -53
  56. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  57. package/dist/types/excalidraw/actions/actionBoundText.d.ts +85 -37
  58. package/dist/types/excalidraw/actions/actionCanvas.d.ts +356 -1019
  59. package/dist/types/excalidraw/actions/actionClipboard.d.ts +84 -36
  60. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +42 -18
  61. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +130 -55
  62. package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
  63. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  64. package/dist/types/excalidraw/actions/actionElementLink.d.ts +38 -18
  65. package/dist/types/excalidraw/actions/actionElementLock.d.ts +85 -37
  66. package/dist/types/excalidraw/actions/actionExport.d.ts +133 -359
  67. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  68. package/dist/types/excalidraw/actions/actionFrame.d.ts +187 -236
  69. package/dist/types/excalidraw/actions/actionGroup.d.ts +100 -52
  70. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +99 -21
  71. package/dist/types/excalidraw/actions/actionLink.d.ts +43 -19
  72. package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -18
  73. package/dist/types/excalidraw/actions/actionProperties.d.ts +120 -56
  74. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +46 -22
  75. package/dist/types/excalidraw/actions/actionStyles.d.ts +43 -18
  76. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  77. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +57 -32
  78. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +46 -23
  79. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
  80. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +43 -19
  81. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -23
  82. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  83. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +43 -19
  84. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -20
  85. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +43 -19
  86. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  87. package/dist/types/excalidraw/actions/index.d.ts +4 -2
  88. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  89. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  90. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  91. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  92. package/dist/types/excalidraw/appState.d.ts +39 -13
  93. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  94. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  95. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  96. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  97. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  98. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  99. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  100. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  101. package/dist/types/excalidraw/clipboard.d.ts +6 -7
  102. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  103. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  104. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  105. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  106. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  107. package/dist/types/excalidraw/components/App.d.ts +604 -89
  108. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  109. package/dist/types/excalidraw/components/App.duplicate.d.ts +51 -0
  110. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  111. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  112. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  113. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  114. package/dist/types/excalidraw/components/App.viewport.d.ts +113 -0
  115. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  116. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  117. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  118. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  119. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  120. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  121. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  122. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  123. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  124. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  125. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  126. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  127. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
  128. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  129. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  130. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  131. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  132. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  133. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  134. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  135. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  136. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  137. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  138. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  139. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  140. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  141. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  142. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  143. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  144. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  145. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  146. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  147. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  148. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  149. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  150. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  151. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  152. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  153. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  154. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  155. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  156. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  157. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  158. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  159. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  160. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  161. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  162. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  163. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  164. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  165. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +2 -6
  166. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
  167. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  168. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  169. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  171. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
  172. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  173. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  174. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  175. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +4 -0
  176. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  177. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  178. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  179. package/dist/types/excalidraw/components/Toast.d.ts +8 -4
  180. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  181. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  182. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  183. package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
  184. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  185. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  186. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  187. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  188. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  189. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -1
  190. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  191. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
  193. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
  194. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  201. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  202. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  203. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  204. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  205. package/dist/types/excalidraw/components/icons.d.ts +30 -10
  206. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +26 -3
  207. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
  208. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  209. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  210. package/dist/types/excalidraw/data/blob.d.ts +107 -60
  211. package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
  212. package/dist/types/excalidraw/data/index.d.ts +6 -7
  213. package/dist/types/excalidraw/data/json.d.ts +62 -30
  214. package/dist/types/excalidraw/data/library.d.ts +1 -1
  215. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  216. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  217. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  218. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
  219. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  220. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  221. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  222. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  223. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  224. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  225. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  226. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  227. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  228. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  229. package/dist/types/excalidraw/scene/Renderer.d.ts +489 -20
  230. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  231. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  232. package/dist/types/excalidraw/scene/types.d.ts +7 -4
  233. package/dist/types/excalidraw/snapping.d.ts +7 -7
  234. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  235. package/dist/types/excalidraw/types.d.ts +619 -42
  236. package/dist/types/excalidraw/viewport.d.ts +302 -0
  237. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -3
  238. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  239. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  240. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  241. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  242. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  243. package/dist/types/math/src/constants.d.ts +0 -1
  244. package/dist/types/math/src/curve.d.ts +23 -13
  245. package/dist/types/math/src/index.d.ts +1 -0
  246. package/dist/types/math/src/pca.d.ts +79 -0
  247. package/dist/types/math/src/point.d.ts +8 -2
  248. package/dist/types/math/src/polygon.d.ts +25 -1
  249. package/dist/types/math/src/segment.d.ts +6 -0
  250. package/dist/types/math/src/types.d.ts +25 -1
  251. package/dist/types/utils/src/export.d.ts +4 -3
  252. package/dist/types/utils/src/index.d.ts +1 -2
  253. package/dist/types/utils/src/shape.d.ts +2 -2
  254. package/package.json +4 -3
  255. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  256. package/dist/types/excalidraw/charts.d.ts +0 -27
  257. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  258. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  259. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  260. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  261. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  262. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  263. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  264. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
  265. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  266. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  267. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
  268. package/dist/types/excalidraw/components/shapes.d.ts +0 -190
  269. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  270. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  271. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
  272. package/dist/types/excalidraw/cursor.d.ts +0 -5
  273. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  274. package/dist/types/excalidraw/index.d.ts +0 -46
  275. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  276. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  277. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  278. package/dist/types/utils/src/bbox.d.ts +0 -9
  279. 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;
56
- };
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;
30
+ duration: number;
68
31
  };
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;
@@ -380,13 +106,22 @@ export declare const actionLoadScene: {
380
106
  name: "settings";
381
107
  } | {
382
108
  name: "elementLinkSelector";
383
- sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
109
+ sourceElementId: ExcalidrawElement["id"];
110
+ } | {
111
+ name: "charts";
112
+ data: import("../charts").Spreadsheet;
113
+ rawText: string;
384
114
  };
385
115
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
386
116
  selectedElementIds: Readonly<{
387
117
  [id: string]: true;
388
118
  }>;
389
119
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
120
+ activeTool: {
121
+ lastActiveTool: import("../types").ActiveTool | null;
122
+ locked: boolean;
123
+ fromSelection: boolean;
124
+ } & import("../types").ActiveTool;
390
125
  activeEmbeddable: {
391
126
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
392
127
  state: "hover" | "active";
@@ -399,17 +134,33 @@ export declare const actionLoadScene: {
399
134
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
400
135
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
401
136
  isBindingEnabled: boolean;
402
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
137
+ isMidpointSnappingEnabled: boolean;
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,9 @@ export declare const actionLoadScene: {
418
169
  }>;
419
170
  shouldCacheIgnoreZoom: boolean;
420
171
  exportScale: number;
421
- bindMode: import("@excalidraw/element/types").BindMode;
172
+ currentItemArrowType: "sharp" | "round" | "elbow";
422
173
  gridSize: number;
174
+ bindMode: import("@excalidraw/element/types").BindMode;
423
175
  contextMenu: {
424
176
  items: import("../components/ContextMenu").ContextMenuItems;
425
177
  top: number;
@@ -429,13 +181,11 @@ export declare const actionLoadScene: {
429
181
  isLoading: boolean;
430
182
  errorMessage: React.ReactNode;
431
183
  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;
184
+ boxSelectionMode: import("../types").BoxSelectionMode;
185
+ bindingPreference: "enabled" | "disabled";
186
+ showHints: boolean;
187
+ inputDevice: import("../types").InputDevice;
188
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
439
189
  preferredSelectionTool: {
440
190
  type: "selection" | "lasso";
441
191
  initialized: boolean;
@@ -446,11 +196,14 @@ export declare const actionLoadScene: {
446
196
  exportEmbedScene: boolean;
447
197
  exportWithDarkMode: boolean;
448
198
  currentItemStrokeColor: string;
199
+ currentItemStickynoteStrokeColor: string;
200
+ currentItemStickynoteBackgroundColor: string;
449
201
  currentItemBackgroundColor: string;
450
- currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
451
- currentItemStrokeWidth: number;
452
- currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
202
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
203
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
204
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
453
205
  currentItemRoughness: number;
206
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
454
207
  currentItemOpacity: number;
455
208
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
456
209
  currentItemFontSize: number;
@@ -459,7 +212,7 @@ export declare const actionLoadScene: {
459
212
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
460
213
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
461
214
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
462
- currentItemArrowType: "sharp" | "round" | "elbow";
215
+ scrollConstraints: import("../types").ScrollConstraints | null;
463
216
  cursorButton: "up" | "down";
464
217
  scrolledOutside: boolean;
465
218
  isResizing: boolean;
@@ -476,38 +229,35 @@ export declare const actionLoadScene: {
476
229
  };
477
230
  selectedElementsAreBeingDragged: boolean;
478
231
  toast: {
479
- message: string;
232
+ message: React.ReactNode;
480
233
  closable?: boolean;
481
234
  duration?: number;
482
235
  } | null;
483
236
  gridStep: number;
484
- gridModeEnabled: boolean;
485
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
237
+ fileHandle: FileSystemFileHandle | null;
486
238
  stats: {
487
239
  open: boolean;
488
240
  panels: number;
489
241
  };
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
242
  showHyperlinkPopup: false | "info" | "editor";
499
243
  originSnapOffset: {
500
244
  x: number;
501
245
  y: number;
502
246
  } | null;
503
247
  objectsSnapModeEnabled: boolean;
504
- userToFollow: import("../types").UserToFollow | null;
505
- followedBy: Set<import("../types").SocketId>;
506
248
  lockedMultiSelections: {
507
249
  [groupId: string]: true;
508
250
  };
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
  };