@excalidraw/common 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 (278) hide show
  1. package/dist/dev/index.js +518 -105
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +3 -3
  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 +36 -14
  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 +12 -8
  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/zindex.d.ts +2 -2
  54. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +125 -53
  55. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  56. package/dist/types/excalidraw/actions/actionBoundText.d.ts +85 -37
  57. package/dist/types/excalidraw/actions/actionCanvas.d.ts +410 -1073
  58. package/dist/types/excalidraw/actions/actionClipboard.d.ts +84 -36
  59. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +42 -18
  60. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +131 -56
  61. package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
  62. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  63. package/dist/types/excalidraw/actions/actionElementLink.d.ts +38 -18
  64. package/dist/types/excalidraw/actions/actionElementLock.d.ts +85 -37
  65. package/dist/types/excalidraw/actions/actionExport.d.ts +171 -397
  66. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  67. package/dist/types/excalidraw/actions/actionFrame.d.ts +187 -236
  68. package/dist/types/excalidraw/actions/actionGroup.d.ts +100 -52
  69. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +99 -21
  70. package/dist/types/excalidraw/actions/actionLink.d.ts +43 -19
  71. package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -18
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +120 -56
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +47 -23
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +43 -18
  75. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  76. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +57 -32
  77. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +46 -23
  78. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +43 -19
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -23
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +43 -19
  83. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -20
  84. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +43 -19
  85. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  86. package/dist/types/excalidraw/actions/index.d.ts +4 -2
  87. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  88. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  90. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  91. package/dist/types/excalidraw/appState.d.ts +55 -29
  92. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  93. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  94. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  95. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  96. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  97. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  98. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  99. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  100. package/dist/types/excalidraw/clipboard.d.ts +8 -9
  101. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  102. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  103. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  104. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  105. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  106. package/dist/types/excalidraw/components/App.d.ts +604 -89
  107. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  108. package/dist/types/excalidraw/components/App.duplicate.d.ts +51 -0
  109. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  110. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  111. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  112. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  113. package/dist/types/excalidraw/components/App.viewport.d.ts +113 -0
  114. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  115. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  116. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  117. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  118. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  119. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  120. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  121. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  122. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  123. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  124. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  125. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  126. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  128. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  129. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  130. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  131. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  132. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  133. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  134. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  135. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  136. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  137. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  138. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  139. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  140. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  141. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  142. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  143. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  144. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  145. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  146. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  147. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  148. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  149. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  150. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  151. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  152. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  153. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  154. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  155. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  156. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  157. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  158. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  159. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  160. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  161. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  162. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  163. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  164. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +2 -6
  165. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
  166. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  167. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  168. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
  169. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
  171. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  172. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  173. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  174. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +4 -0
  175. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  176. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  177. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  178. package/dist/types/excalidraw/components/Toast.d.ts +8 -4
  179. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  180. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  181. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  182. package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
  183. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  184. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  185. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  186. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  187. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  188. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -1
  189. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  190. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
  193. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
  194. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  200. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  201. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  202. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  203. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  204. package/dist/types/excalidraw/components/icons.d.ts +30 -10
  205. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +26 -3
  206. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
  207. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  208. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  209. package/dist/types/excalidraw/data/blob.d.ts +221 -174
  210. package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
  211. package/dist/types/excalidraw/data/index.d.ts +6 -7
  212. package/dist/types/excalidraw/data/json.d.ts +119 -87
  213. package/dist/types/excalidraw/data/library.d.ts +1 -1
  214. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  215. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  216. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  217. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
  218. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  219. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  220. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  221. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  222. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  223. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  224. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  225. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  226. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  227. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  228. package/dist/types/excalidraw/scene/Renderer.d.ts +489 -20
  229. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  230. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  231. package/dist/types/excalidraw/scene/types.d.ts +7 -4
  232. package/dist/types/excalidraw/snapping.d.ts +7 -7
  233. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  234. package/dist/types/excalidraw/types.d.ts +619 -42
  235. package/dist/types/excalidraw/viewport.d.ts +302 -0
  236. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -3
  237. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  238. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  239. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  240. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  241. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  242. package/dist/types/math/src/constants.d.ts +0 -1
  243. package/dist/types/math/src/curve.d.ts +23 -13
  244. package/dist/types/math/src/index.d.ts +1 -0
  245. package/dist/types/math/src/pca.d.ts +79 -0
  246. package/dist/types/math/src/point.d.ts +8 -2
  247. package/dist/types/math/src/polygon.d.ts +25 -1
  248. package/dist/types/math/src/segment.d.ts +6 -0
  249. package/dist/types/math/src/types.d.ts +25 -1
  250. package/dist/types/utils/src/export.d.ts +4 -3
  251. package/dist/types/utils/src/index.d.ts +1 -2
  252. package/dist/types/utils/src/shape.d.ts +2 -2
  253. package/package.json +1 -1
  254. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  255. package/dist/types/excalidraw/charts.d.ts +0 -27
  256. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  257. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  258. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  259. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  260. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  261. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  262. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  263. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
  264. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  265. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  266. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
  267. package/dist/types/excalidraw/components/shapes.d.ts +0 -190
  268. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  269. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  270. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
  271. package/dist/types/excalidraw/cursor.d.ts +0 -5
  272. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  273. package/dist/types/excalidraw/index.d.ts +0 -46
  274. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  275. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  276. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  277. package/dist/types/utils/src/bbox.d.ts +0 -9
  278. 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;
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;
30
+ duration: number;
177
31
  };
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,14 +49,53 @@ 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
  };
61
+ };
62
+ } | {
63
+ captureUpdate: "NEVER";
64
+ appState: {
65
+ toast: null;
66
+ openDialog?: undefined;
67
+ fileHandle?: undefined;
68
+ };
69
+ }>;
70
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
71
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
72
+ } & {
73
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
74
+ };
75
+ export declare const actionLoadScene: {
76
+ name: "loadScene";
77
+ label: string;
78
+ trackEvent: {
79
+ category: "export";
80
+ };
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 | {
83
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
84
+ appState: {
85
+ zoom: import("../types").Zoom;
86
+ viewModeEnabled: boolean;
87
+ activeTool: {
88
+ lastActiveTool: import("../types").ActiveTool | null;
89
+ locked: boolean;
90
+ fromSelection: boolean;
91
+ } & import("../types").ActiveTool;
92
+ zenModeEnabled: boolean;
93
+ gridModeEnabled: boolean;
94
+ objectsSnapModeEnabled: boolean;
95
+ theme: Theme;
96
+ name: string | null;
97
+ currentItemArrowType: "sharp" | "round" | "elbow";
98
+ gridSize: number;
204
99
  contextMenu: {
205
100
  items: import("../components/ContextMenu").ContextMenuItems;
206
101
  top: number;
@@ -218,8 +113,26 @@ export declare const actionSaveFileToDisk: {
218
113
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
219
114
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
220
115
  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;
116
+ boxSelectionMode: import("../types").BoxSelectionMode;
117
+ bindingPreference: "enabled" | "disabled";
118
+ isMidpointSnappingEnabled: boolean;
119
+ showHints: boolean;
120
+ inputDevice: import("../types").InputDevice;
121
+ suggestedBinding: {
122
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
123
+ midPoint?: import("@excalidraw/math").GlobalPoint;
124
+ } | null;
125
+ textToolHover: {
126
+ type: "text";
127
+ elementId: ExcalidrawElement["id"];
128
+ } | {
129
+ type: "container";
130
+ elementId: ExcalidrawElement["id"];
131
+ } | {
132
+ type: "arrow";
133
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
134
+ anchor: "start" | "end" | "label";
135
+ } | null;
223
136
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
224
137
  frameRendering: {
225
138
  enabled: boolean;
@@ -227,14 +140,9 @@ export declare const actionSaveFileToDisk: {
227
140
  outline: boolean;
228
141
  clip: boolean;
229
142
  };
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;
143
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
144
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
145
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
238
146
  preferredSelectionTool: {
239
147
  type: "selection" | "lasso";
240
148
  initialized: boolean;
@@ -246,11 +154,14 @@ export declare const actionSaveFileToDisk: {
246
154
  exportWithDarkMode: boolean;
247
155
  exportScale: number;
248
156
  currentItemStrokeColor: string;
157
+ currentItemStickynoteStrokeColor: string;
158
+ currentItemStickynoteBackgroundColor: string;
249
159
  currentItemBackgroundColor: string;
250
- currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
251
- currentItemStrokeWidth: number;
252
- currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
160
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
161
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
162
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
253
163
  currentItemRoughness: number;
164
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
254
165
  currentItemOpacity: number;
255
166
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
256
167
  currentItemFontSize: number;
@@ -259,116 +170,20 @@ export declare const actionSaveFileToDisk: {
259
170
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
260
171
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
261
172
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
262
- currentItemArrowType: "sharp" | "round" | "elbow";
263
173
  viewBackgroundColor: string;
264
174
  scrollX: number;
265
175
  scrollY: number;
176
+ scrollConstraints: import("../types").ScrollConstraints | null;
266
177
  cursorButton: "up" | "down";
267
178
  scrolledOutside: boolean;
268
- name: string | null;
269
179
  isResizing: boolean;
270
180
  isRotating: boolean;
271
- zoom: import("../types").Zoom;
272
181
  openMenu: "canvas" | null;
273
182
  openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
274
183
  openSidebar: {
275
184
  name: import("../types").SidebarName;
276
185
  tab?: import("../types").SidebarTabName;
277
186
  } | 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
- };
340
- } | {
341
- captureUpdate: "EVENTUALLY";
342
- appState?: undefined;
343
- }>;
344
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
345
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
346
- } & {
347
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
348
- };
349
- export declare const actionLoadScene: {
350
- name: "loadScene";
351
- label: string;
352
- trackEvent: {
353
- category: "export";
354
- };
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 | {
357
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
358
- appState: {
359
- viewBackgroundColor: string;
360
- theme: Theme;
361
- frameRendering: {
362
- enabled: boolean;
363
- name: boolean;
364
- outline: boolean;
365
- clip: boolean;
366
- };
367
- name: string | null;
368
- zoom: import("../types").Zoom;
369
- scrollX: number;
370
- scrollY: number;
371
- viewModeEnabled: boolean;
372
187
  openDialog: null | {
373
188
  name: "imageExport" | "help" | "jsonExport";
374
189
  } | {
@@ -380,134 +195,69 @@ export declare const actionLoadScene: {
380
195
  name: "settings";
381
196
  } | {
382
197
  name: "elementLinkSelector";
383
- sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
198
+ sourceElementId: ExcalidrawElement["id"];
199
+ } | {
200
+ name: "charts";
201
+ data: import("../charts").Spreadsheet;
202
+ rawText: string;
384
203
  };
385
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
204
+ defaultSidebarDockedPreference: boolean;
205
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
386
206
  selectedElementIds: Readonly<{
387
207
  [id: string]: true;
388
208
  }>;
389
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
390
- activeEmbeddable: {
391
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
392
- state: "hover" | "active";
393
- } | null;
394
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
395
- selectedGroupIds: {
396
- [groupId: string]: boolean;
397
- };
398
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
399
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
400
- 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;
403
- isRotating: boolean;
404
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
405
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
406
- snapLines: readonly import("../snapping").SnapLine[];
407
- zenModeEnabled: boolean;
408
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
409
- isCropping: boolean;
410
- croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
411
- searchMatches: Readonly<{
412
- focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
413
- matches: readonly import("../types").SearchMatch[];
414
- }> | null;
415
- activeLockedId: string | null;
416
209
  hoveredElementIds: Readonly<{
417
210
  [id: string]: true;
418
211
  }>;
419
- shouldCacheIgnoreZoom: boolean;
420
- exportScale: number;
421
- bindMode: import("@excalidraw/element/types").BindMode;
422
- gridSize: number;
423
- contextMenu: {
424
- items: import("../components/ContextMenu").ContextMenuItems;
425
- top: number;
426
- left: number;
427
- } | null;
428
- showWelcomeScreen: boolean;
429
- isLoading: boolean;
430
- errorMessage: React.ReactNode;
431
- 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;
439
- preferredSelectionTool: {
440
- type: "selection" | "lasso";
441
- initialized: boolean;
442
- };
443
- penMode: boolean;
444
- penDetected: boolean;
445
- exportBackground: boolean;
446
- exportEmbedScene: boolean;
447
- exportWithDarkMode: boolean;
448
- currentItemStrokeColor: string;
449
- currentItemBackgroundColor: string;
450
- currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
451
- currentItemStrokeWidth: number;
452
- currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
453
- currentItemRoughness: number;
454
- currentItemOpacity: number;
455
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
456
- currentItemFontSize: number;
457
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
458
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
459
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
460
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
461
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
462
- currentItemArrowType: "sharp" | "round" | "elbow";
463
- cursorButton: "up" | "down";
464
- scrolledOutside: boolean;
465
- isResizing: boolean;
466
- openMenu: "canvas" | null;
467
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
468
- openSidebar: {
469
- name: import("../types").SidebarName;
470
- tab?: import("../types").SidebarTabName;
471
- } | null;
472
- defaultSidebarDockedPreference: boolean;
473
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
474
212
  previousSelectedElementIds: {
475
213
  [id: string]: true;
476
214
  };
477
215
  selectedElementsAreBeingDragged: boolean;
216
+ shouldCacheIgnoreZoom: boolean;
478
217
  toast: {
479
- message: string;
218
+ message: React.ReactNode;
480
219
  closable?: boolean;
481
220
  duration?: number;
482
221
  } | null;
483
222
  gridStep: number;
484
- gridModeEnabled: boolean;
485
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
223
+ selectedGroupIds: {
224
+ [groupId: string]: boolean;
225
+ };
226
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
227
+ fileHandle: FileSystemFileHandle | null;
228
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
486
229
  stats: {
487
230
  open: boolean;
488
231
  panels: number;
489
232
  };
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
233
  showHyperlinkPopup: false | "info" | "editor";
234
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
235
+ snapLines: readonly import("../snapping").SnapLine[];
499
236
  originSnapOffset: {
500
237
  x: number;
501
238
  y: number;
502
239
  } | null;
503
- objectsSnapModeEnabled: boolean;
504
- userToFollow: import("../types").UserToFollow | null;
505
- followedBy: Set<import("../types").SocketId>;
240
+ isCropping: boolean;
241
+ croppingElementId: ExcalidrawElement["id"] | null;
242
+ searchMatches: Readonly<{
243
+ focusedId: ExcalidrawElement["id"] | null;
244
+ matches: readonly import("../types").SearchMatch[];
245
+ }> | null;
246
+ activeLockedId: string | null;
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
  };