@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,8 +1,6 @@
1
- import { type SceneBounds } from "@excalidraw/element";
2
- import type { ExcalidrawElement } from "@excalidraw/element/types";
3
- import type { AppState, Offsets } from "../types";
1
+ import type { AppState } from "../types";
4
2
  export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
5
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
3
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
6
4
  };
7
5
  export declare const actionClearCanvas: {
8
6
  name: "clearCanvas";
@@ -11,7 +9,7 @@ export declare const actionClearCanvas: {
11
9
  trackEvent: {
12
10
  category: "canvas";
13
11
  };
14
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
15
13
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
16
14
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
17
15
  appState: {
@@ -28,13 +26,14 @@ export declare const actionClearCanvas: {
28
26
  open: boolean;
29
27
  panels: number;
30
28
  };
31
- pasteDialog: {
32
- shown: false;
33
- data: null;
34
- } | {
35
- shown: true;
36
- data: import("../charts").Spreadsheet;
29
+ colorTopPicks: {
30
+ elementStroke: readonly string[] | null;
31
+ elementBackground: readonly string[] | null;
32
+ bucketFill: readonly string[] | null;
33
+ stickyNoteStroke: readonly string[] | null;
34
+ stickyNoteBackground: readonly string[] | null;
37
35
  };
36
+ fontTopPicks: readonly number[] | null;
38
37
  activeTool: {
39
38
  lastActiveTool: import("../types").ActiveTool | null;
40
39
  locked: boolean;
@@ -63,7 +62,11 @@ export declare const actionClearCanvas: {
63
62
  name: "settings";
64
63
  } | {
65
64
  name: "elementLinkSelector";
66
- sourceElementId: ExcalidrawElement["id"];
65
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
66
+ } | {
67
+ name: "charts";
68
+ data: import("../charts").Spreadsheet;
69
+ rawText: string;
67
70
  };
68
71
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
69
72
  selectedElementIds: Readonly<{
@@ -82,17 +85,32 @@ export declare const actionClearCanvas: {
82
85
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
83
86
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
84
87
  isBindingEnabled: boolean;
85
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
88
+ isMidpointSnappingEnabled: boolean;
89
+ suggestedBinding: {
90
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
91
+ midPoint?: import("@excalidraw/math").GlobalPoint;
92
+ } | null;
93
+ textToolHover: {
94
+ type: "text";
95
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
96
+ } | {
97
+ type: "container";
98
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
99
+ } | {
100
+ type: "arrow";
101
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
102
+ anchor: "start" | "end" | "label";
103
+ } | null;
86
104
  isRotating: boolean;
87
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
105
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
88
106
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
89
107
  snapLines: readonly import("../snapping").SnapLine[];
90
108
  zenModeEnabled: boolean;
91
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
109
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
92
110
  isCropping: boolean;
93
- croppingElementId: ExcalidrawElement["id"] | null;
111
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
94
112
  searchMatches: Readonly<{
95
- focusedId: ExcalidrawElement["id"] | null;
113
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
96
114
  matches: readonly import("../types").SearchMatch[];
97
115
  }> | null;
98
116
  activeLockedId: string | null;
@@ -101,6 +119,7 @@ export declare const actionClearCanvas: {
101
119
  }>;
102
120
  shouldCacheIgnoreZoom: boolean;
103
121
  exportScale: number;
122
+ currentItemArrowType: "sharp" | "round" | "elbow";
104
123
  bindMode: import("@excalidraw/element/types").BindMode;
105
124
  contextMenu: {
106
125
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -111,19 +130,25 @@ export declare const actionClearCanvas: {
111
130
  isLoading: boolean;
112
131
  errorMessage: React.ReactNode;
113
132
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
114
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
115
- editingFrame: string | null;
133
+ boxSelectionMode: import("../types").BoxSelectionMode;
134
+ bindingPreference: "enabled" | "disabled";
135
+ showHints: boolean;
136
+ inputDevice: import("../types").InputDevice;
137
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
116
138
  preferredSelectionTool: {
117
139
  type: "selection" | "lasso";
118
140
  initialized: boolean;
119
141
  };
120
142
  exportWithDarkMode: boolean;
121
143
  currentItemStrokeColor: string;
144
+ currentItemStickynoteStrokeColor: string;
145
+ currentItemStickynoteBackgroundColor: string;
122
146
  currentItemBackgroundColor: string;
123
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
124
- currentItemStrokeWidth: number;
125
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
147
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
148
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
149
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
126
150
  currentItemRoughness: number;
151
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
127
152
  currentItemOpacity: number;
128
153
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
129
154
  currentItemFontSize: number;
@@ -132,7 +157,7 @@ export declare const actionClearCanvas: {
132
157
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
133
158
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
134
159
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
135
- currentItemArrowType: "sharp" | "round" | "elbow";
160
+ scrollConstraints: import("../types").ScrollConstraints | null;
136
161
  cursorButton: "up" | "down";
137
162
  scrolledOutside: boolean;
138
163
  isResizing: boolean;
@@ -149,20 +174,17 @@ export declare const actionClearCanvas: {
149
174
  };
150
175
  selectedElementsAreBeingDragged: boolean;
151
176
  toast: {
152
- message: string;
177
+ message: React.ReactNode;
153
178
  closable?: boolean;
154
179
  duration?: number;
155
180
  } | null;
156
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
157
- currentChartType: import("@excalidraw/element/types").ChartType;
181
+ fileHandle: FileSystemFileHandle | null;
158
182
  showHyperlinkPopup: false | "info" | "editor";
159
183
  originSnapOffset: {
160
184
  x: number;
161
185
  y: number;
162
186
  } | null;
163
187
  objectsSnapModeEnabled: boolean;
164
- userToFollow: import("../types").UserToFollow | null;
165
- followedBy: Set<import("../types").SocketId>;
166
188
  lockedMultiSelections: {
167
189
  [groupId: string]: true;
168
190
  };
@@ -176,18 +198,17 @@ export declare const actionZoomIn: {
176
198
  name: "zoomIn";
177
199
  label: string;
178
200
  viewMode: true;
201
+ navigation: true;
179
202
  icon: import("react/jsx-runtime").JSX.Element;
180
203
  trackEvent: {
181
204
  category: "canvas";
182
205
  };
206
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
183
207
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
184
208
  appState: {
185
- userToFollow: null;
209
+ zoom: import("../types").Zoom;
186
210
  scrollX: number;
187
211
  scrollY: number;
188
- zoom: {
189
- value: import("../types").NormalizedZoomValue;
190
- };
191
212
  contextMenu: {
192
213
  items: import("../components/ContextMenu").ContextMenuItems;
193
214
  top: number;
@@ -205,8 +226,26 @@ export declare const actionZoomIn: {
205
226
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
206
227
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
207
228
  isBindingEnabled: boolean;
208
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
209
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
229
+ boxSelectionMode: import("../types").BoxSelectionMode;
230
+ bindingPreference: "enabled" | "disabled";
231
+ isMidpointSnappingEnabled: boolean;
232
+ showHints: boolean;
233
+ inputDevice: import("../types").InputDevice;
234
+ suggestedBinding: {
235
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
236
+ midPoint?: import("@excalidraw/math").GlobalPoint;
237
+ } | null;
238
+ textToolHover: {
239
+ type: "text";
240
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
241
+ } | {
242
+ type: "container";
243
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
244
+ } | {
245
+ type: "arrow";
246
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
247
+ anchor: "start" | "end" | "label";
248
+ } | null;
210
249
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
211
250
  frameRendering: {
212
251
  enabled: boolean;
@@ -214,9 +253,9 @@ export declare const actionZoomIn: {
214
253
  outline: boolean;
215
254
  clip: boolean;
216
255
  };
217
- editingFrame: string | null;
218
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
219
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
256
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
257
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
258
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
220
259
  activeTool: {
221
260
  lastActiveTool: import("../types").ActiveTool | null;
222
261
  locked: boolean;
@@ -233,11 +272,14 @@ export declare const actionZoomIn: {
233
272
  exportWithDarkMode: boolean;
234
273
  exportScale: number;
235
274
  currentItemStrokeColor: string;
275
+ currentItemStickynoteStrokeColor: string;
276
+ currentItemStickynoteBackgroundColor: string;
236
277
  currentItemBackgroundColor: string;
237
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
238
- currentItemStrokeWidth: number;
239
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
278
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
279
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
280
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
240
281
  currentItemRoughness: number;
282
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
241
283
  currentItemOpacity: number;
242
284
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
243
285
  currentItemFontSize: number;
@@ -248,6 +290,7 @@ export declare const actionZoomIn: {
248
290
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
249
291
  currentItemArrowType: "sharp" | "round" | "elbow";
250
292
  viewBackgroundColor: string;
293
+ scrollConstraints: import("../types").ScrollConstraints | null;
251
294
  cursorButton: "up" | "down";
252
295
  scrolledOutside: boolean;
253
296
  name: string | null;
@@ -270,7 +313,11 @@ export declare const actionZoomIn: {
270
313
  name: "settings";
271
314
  } | {
272
315
  name: "elementLinkSelector";
273
- sourceElementId: ExcalidrawElement["id"];
316
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
317
+ } | {
318
+ name: "charts";
319
+ data: import("../charts").Spreadsheet;
320
+ rawText: string;
274
321
  };
275
322
  defaultSidebarDockedPreference: boolean;
276
323
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -286,7 +333,7 @@ export declare const actionZoomIn: {
286
333
  selectedElementsAreBeingDragged: boolean;
287
334
  shouldCacheIgnoreZoom: boolean;
288
335
  toast: {
289
- message: string;
336
+ message: React.ReactNode;
290
337
  closable?: boolean;
291
338
  duration?: number;
292
339
  } | null;
@@ -304,20 +351,12 @@ export declare const actionZoomIn: {
304
351
  height: number;
305
352
  offsetTop: number;
306
353
  offsetLeft: number;
307
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
354
+ fileHandle: FileSystemFileHandle | null;
308
355
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
309
356
  stats: {
310
357
  open: boolean;
311
358
  panels: number;
312
359
  };
313
- currentChartType: import("@excalidraw/element/types").ChartType;
314
- pasteDialog: {
315
- shown: false;
316
- data: null;
317
- } | {
318
- shown: true;
319
- data: import("../charts").Spreadsheet;
320
- };
321
360
  showHyperlinkPopup: false | "info" | "editor";
322
361
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
323
362
  snapLines: readonly import("../snapping").SnapLine[];
@@ -326,11 +365,10 @@ export declare const actionZoomIn: {
326
365
  y: number;
327
366
  } | null;
328
367
  objectsSnapModeEnabled: boolean;
329
- followedBy: Set<import("../types").SocketId>;
330
368
  isCropping: boolean;
331
- croppingElementId: ExcalidrawElement["id"] | null;
369
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
332
370
  searchMatches: Readonly<{
333
- focusedId: ExcalidrawElement["id"] | null;
371
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
334
372
  matches: readonly import("../types").SearchMatch[];
335
373
  }> | null;
336
374
  activeLockedId: string | null;
@@ -338,10 +376,18 @@ export declare const actionZoomIn: {
338
376
  [groupId: string]: true;
339
377
  };
340
378
  bindMode: import("@excalidraw/element/types").BindMode;
379
+ colorTopPicks: {
380
+ elementStroke: readonly string[] | null;
381
+ elementBackground: readonly string[] | null;
382
+ bucketFill: readonly string[] | null;
383
+ stickyNoteStroke: readonly string[] | null;
384
+ stickyNoteBackground: readonly string[] | null;
385
+ };
386
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
341
387
  };
342
388
  captureUpdate: "EVENTUALLY";
343
389
  };
344
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
390
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
345
391
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
346
392
  } & {
347
393
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -351,17 +397,16 @@ export declare const actionZoomOut: {
351
397
  label: string;
352
398
  icon: import("react/jsx-runtime").JSX.Element;
353
399
  viewMode: true;
400
+ navigation: true;
354
401
  trackEvent: {
355
402
  category: "canvas";
356
403
  };
404
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
357
405
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
358
406
  appState: {
359
- userToFollow: null;
407
+ zoom: import("../types").Zoom;
360
408
  scrollX: number;
361
409
  scrollY: number;
362
- zoom: {
363
- value: import("../types").NormalizedZoomValue;
364
- };
365
410
  contextMenu: {
366
411
  items: import("../components/ContextMenu").ContextMenuItems;
367
412
  top: number;
@@ -379,8 +424,26 @@ export declare const actionZoomOut: {
379
424
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
380
425
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
381
426
  isBindingEnabled: boolean;
382
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
383
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
427
+ boxSelectionMode: import("../types").BoxSelectionMode;
428
+ bindingPreference: "enabled" | "disabled";
429
+ isMidpointSnappingEnabled: boolean;
430
+ showHints: boolean;
431
+ inputDevice: import("../types").InputDevice;
432
+ suggestedBinding: {
433
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
434
+ midPoint?: import("@excalidraw/math").GlobalPoint;
435
+ } | null;
436
+ textToolHover: {
437
+ type: "text";
438
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
439
+ } | {
440
+ type: "container";
441
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
442
+ } | {
443
+ type: "arrow";
444
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
445
+ anchor: "start" | "end" | "label";
446
+ } | null;
384
447
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
385
448
  frameRendering: {
386
449
  enabled: boolean;
@@ -388,9 +451,9 @@ export declare const actionZoomOut: {
388
451
  outline: boolean;
389
452
  clip: boolean;
390
453
  };
391
- editingFrame: string | null;
392
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
393
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
454
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
455
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
456
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
394
457
  activeTool: {
395
458
  lastActiveTool: import("../types").ActiveTool | null;
396
459
  locked: boolean;
@@ -407,11 +470,14 @@ export declare const actionZoomOut: {
407
470
  exportWithDarkMode: boolean;
408
471
  exportScale: number;
409
472
  currentItemStrokeColor: string;
473
+ currentItemStickynoteStrokeColor: string;
474
+ currentItemStickynoteBackgroundColor: string;
410
475
  currentItemBackgroundColor: string;
411
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
412
- currentItemStrokeWidth: number;
413
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
476
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
477
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
478
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
414
479
  currentItemRoughness: number;
480
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
415
481
  currentItemOpacity: number;
416
482
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
417
483
  currentItemFontSize: number;
@@ -422,6 +488,7 @@ export declare const actionZoomOut: {
422
488
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
423
489
  currentItemArrowType: "sharp" | "round" | "elbow";
424
490
  viewBackgroundColor: string;
491
+ scrollConstraints: import("../types").ScrollConstraints | null;
425
492
  cursorButton: "up" | "down";
426
493
  scrolledOutside: boolean;
427
494
  name: string | null;
@@ -444,7 +511,11 @@ export declare const actionZoomOut: {
444
511
  name: "settings";
445
512
  } | {
446
513
  name: "elementLinkSelector";
447
- sourceElementId: ExcalidrawElement["id"];
514
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
515
+ } | {
516
+ name: "charts";
517
+ data: import("../charts").Spreadsheet;
518
+ rawText: string;
448
519
  };
449
520
  defaultSidebarDockedPreference: boolean;
450
521
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -460,7 +531,7 @@ export declare const actionZoomOut: {
460
531
  selectedElementsAreBeingDragged: boolean;
461
532
  shouldCacheIgnoreZoom: boolean;
462
533
  toast: {
463
- message: string;
534
+ message: React.ReactNode;
464
535
  closable?: boolean;
465
536
  duration?: number;
466
537
  } | null;
@@ -478,20 +549,12 @@ export declare const actionZoomOut: {
478
549
  height: number;
479
550
  offsetTop: number;
480
551
  offsetLeft: number;
481
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
552
+ fileHandle: FileSystemFileHandle | null;
482
553
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
483
554
  stats: {
484
555
  open: boolean;
485
556
  panels: number;
486
557
  };
487
- currentChartType: import("@excalidraw/element/types").ChartType;
488
- pasteDialog: {
489
- shown: false;
490
- data: null;
491
- } | {
492
- shown: true;
493
- data: import("../charts").Spreadsheet;
494
- };
495
558
  showHyperlinkPopup: false | "info" | "editor";
496
559
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
497
560
  snapLines: readonly import("../snapping").SnapLine[];
@@ -500,11 +563,10 @@ export declare const actionZoomOut: {
500
563
  y: number;
501
564
  } | null;
502
565
  objectsSnapModeEnabled: boolean;
503
- followedBy: Set<import("../types").SocketId>;
504
566
  isCropping: boolean;
505
- croppingElementId: ExcalidrawElement["id"] | null;
567
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
506
568
  searchMatches: Readonly<{
507
- focusedId: ExcalidrawElement["id"] | null;
569
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
508
570
  matches: readonly import("../types").SearchMatch[];
509
571
  }> | null;
510
572
  activeLockedId: string | null;
@@ -512,10 +574,18 @@ export declare const actionZoomOut: {
512
574
  [groupId: string]: true;
513
575
  };
514
576
  bindMode: import("@excalidraw/element/types").BindMode;
577
+ colorTopPicks: {
578
+ elementStroke: readonly string[] | null;
579
+ elementBackground: readonly string[] | null;
580
+ bucketFill: readonly string[] | null;
581
+ stickyNoteStroke: readonly string[] | null;
582
+ stickyNoteBackground: readonly string[] | null;
583
+ };
584
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
515
585
  };
516
586
  captureUpdate: "EVENTUALLY";
517
587
  };
518
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
588
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
519
589
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
520
590
  } & {
521
591
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -525,17 +595,16 @@ export declare const actionResetZoom: {
525
595
  label: string;
526
596
  icon: import("react/jsx-runtime").JSX.Element;
527
597
  viewMode: true;
598
+ navigation: true;
528
599
  trackEvent: {
529
600
  category: "canvas";
530
601
  };
602
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
531
603
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
532
604
  appState: {
533
- userToFollow: null;
605
+ zoom: import("../types").Zoom;
534
606
  scrollX: number;
535
607
  scrollY: number;
536
- zoom: {
537
- value: import("../types").NormalizedZoomValue;
538
- };
539
608
  contextMenu: {
540
609
  items: import("../components/ContextMenu").ContextMenuItems;
541
610
  top: number;
@@ -553,8 +622,26 @@ export declare const actionResetZoom: {
553
622
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
554
623
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
555
624
  isBindingEnabled: boolean;
556
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
557
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
625
+ boxSelectionMode: import("../types").BoxSelectionMode;
626
+ bindingPreference: "enabled" | "disabled";
627
+ isMidpointSnappingEnabled: boolean;
628
+ showHints: boolean;
629
+ inputDevice: import("../types").InputDevice;
630
+ suggestedBinding: {
631
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
632
+ midPoint?: import("@excalidraw/math").GlobalPoint;
633
+ } | null;
634
+ textToolHover: {
635
+ type: "text";
636
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
637
+ } | {
638
+ type: "container";
639
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
640
+ } | {
641
+ type: "arrow";
642
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
643
+ anchor: "start" | "end" | "label";
644
+ } | null;
558
645
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
559
646
  frameRendering: {
560
647
  enabled: boolean;
@@ -562,9 +649,9 @@ export declare const actionResetZoom: {
562
649
  outline: boolean;
563
650
  clip: boolean;
564
651
  };
565
- editingFrame: string | null;
566
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
567
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
652
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
653
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
654
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
568
655
  activeTool: {
569
656
  lastActiveTool: import("../types").ActiveTool | null;
570
657
  locked: boolean;
@@ -581,11 +668,14 @@ export declare const actionResetZoom: {
581
668
  exportWithDarkMode: boolean;
582
669
  exportScale: number;
583
670
  currentItemStrokeColor: string;
671
+ currentItemStickynoteStrokeColor: string;
672
+ currentItemStickynoteBackgroundColor: string;
584
673
  currentItemBackgroundColor: string;
585
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
586
- currentItemStrokeWidth: number;
587
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
674
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
675
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
676
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
588
677
  currentItemRoughness: number;
678
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
589
679
  currentItemOpacity: number;
590
680
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
591
681
  currentItemFontSize: number;
@@ -596,6 +686,7 @@ export declare const actionResetZoom: {
596
686
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
597
687
  currentItemArrowType: "sharp" | "round" | "elbow";
598
688
  viewBackgroundColor: string;
689
+ scrollConstraints: import("../types").ScrollConstraints | null;
599
690
  cursorButton: "up" | "down";
600
691
  scrolledOutside: boolean;
601
692
  name: string | null;
@@ -618,7 +709,11 @@ export declare const actionResetZoom: {
618
709
  name: "settings";
619
710
  } | {
620
711
  name: "elementLinkSelector";
621
- sourceElementId: ExcalidrawElement["id"];
712
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
713
+ } | {
714
+ name: "charts";
715
+ data: import("../charts").Spreadsheet;
716
+ rawText: string;
622
717
  };
623
718
  defaultSidebarDockedPreference: boolean;
624
719
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -634,7 +729,7 @@ export declare const actionResetZoom: {
634
729
  selectedElementsAreBeingDragged: boolean;
635
730
  shouldCacheIgnoreZoom: boolean;
636
731
  toast: {
637
- message: string;
732
+ message: React.ReactNode;
638
733
  closable?: boolean;
639
734
  duration?: number;
640
735
  } | null;
@@ -652,20 +747,12 @@ export declare const actionResetZoom: {
652
747
  height: number;
653
748
  offsetTop: number;
654
749
  offsetLeft: number;
655
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
750
+ fileHandle: FileSystemFileHandle | null;
656
751
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
657
752
  stats: {
658
753
  open: boolean;
659
754
  panels: number;
660
755
  };
661
- currentChartType: import("@excalidraw/element/types").ChartType;
662
- pasteDialog: {
663
- shown: false;
664
- data: null;
665
- } | {
666
- shown: true;
667
- data: import("../charts").Spreadsheet;
668
- };
669
756
  showHyperlinkPopup: false | "info" | "editor";
670
757
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
671
758
  snapLines: readonly import("../snapping").SnapLine[];
@@ -674,11 +761,10 @@ export declare const actionResetZoom: {
674
761
  y: number;
675
762
  } | null;
676
763
  objectsSnapModeEnabled: boolean;
677
- followedBy: Set<import("../types").SocketId>;
678
764
  isCropping: boolean;
679
- croppingElementId: ExcalidrawElement["id"] | null;
765
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
680
766
  searchMatches: Readonly<{
681
- focusedId: ExcalidrawElement["id"] | null;
767
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
682
768
  matches: readonly import("../types").SearchMatch[];
683
769
  }> | null;
684
770
  activeLockedId: string | null;
@@ -686,370 +772,37 @@ export declare const actionResetZoom: {
686
772
  [groupId: string]: true;
687
773
  };
688
774
  bindMode: import("@excalidraw/element/types").BindMode;
775
+ colorTopPicks: {
776
+ elementStroke: readonly string[] | null;
777
+ elementBackground: readonly string[] | null;
778
+ bucketFill: readonly string[] | null;
779
+ stickyNoteStroke: readonly string[] | null;
780
+ stickyNoteBackground: readonly string[] | null;
781
+ };
782
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
689
783
  };
690
784
  captureUpdate: "EVENTUALLY";
691
785
  };
692
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
786
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
693
787
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
694
788
  } & {
695
789
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
696
790
  };
697
- export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
698
- bounds: SceneBounds;
699
- canvasOffsets?: Offsets;
700
- appState: Readonly<AppState>;
701
- /** whether to fit content to viewport (beyond >100%) */
702
- fitToViewport: boolean;
703
- /** zoom content to cover X of the viewport, when fitToViewport=true */
704
- viewportZoomFactor?: number;
705
- minZoom?: number;
706
- maxZoom?: number;
707
- }) => {
708
- appState: {
709
- scrollX: number;
710
- scrollY: number;
711
- zoom: {
712
- value: import("../types").NormalizedZoomValue;
713
- };
714
- contextMenu: {
715
- items: import("../components/ContextMenu").ContextMenuItems;
716
- top: number;
717
- left: number;
718
- } | null;
719
- showWelcomeScreen: boolean;
720
- isLoading: boolean;
721
- errorMessage: React.ReactNode;
722
- activeEmbeddable: {
723
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
724
- state: "hover" | "active";
725
- } | null;
726
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
727
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
728
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
729
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
730
- isBindingEnabled: boolean;
731
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
732
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
733
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
734
- frameRendering: {
735
- enabled: boolean;
736
- name: boolean;
737
- outline: boolean;
738
- clip: boolean;
739
- };
740
- editingFrame: string | null;
741
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
742
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
743
- activeTool: {
744
- lastActiveTool: import("../types").ActiveTool | null;
745
- locked: boolean;
746
- fromSelection: boolean;
747
- } & import("../types").ActiveTool;
748
- preferredSelectionTool: {
749
- type: "selection" | "lasso";
750
- initialized: boolean;
751
- };
752
- penMode: boolean;
753
- penDetected: boolean;
754
- exportBackground: boolean;
755
- exportEmbedScene: boolean;
756
- exportWithDarkMode: boolean;
757
- exportScale: number;
758
- currentItemStrokeColor: string;
759
- currentItemBackgroundColor: string;
760
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
761
- currentItemStrokeWidth: number;
762
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
763
- currentItemRoughness: number;
764
- currentItemOpacity: number;
765
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
766
- currentItemFontSize: number;
767
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
768
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
769
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
770
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
771
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
772
- currentItemArrowType: "sharp" | "round" | "elbow";
773
- viewBackgroundColor: string;
774
- cursorButton: "up" | "down";
775
- scrolledOutside: boolean;
776
- name: string | null;
777
- isResizing: boolean;
778
- isRotating: boolean;
779
- openMenu: "canvas" | null;
780
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
781
- openSidebar: {
782
- name: import("../types").SidebarName;
783
- tab?: import("../types").SidebarTabName;
784
- } | null;
785
- openDialog: null | {
786
- name: "imageExport" | "help" | "jsonExport";
787
- } | {
788
- name: "ttd";
789
- tab: "text-to-diagram" | "mermaid";
790
- } | {
791
- name: "commandPalette";
792
- } | {
793
- name: "settings";
794
- } | {
795
- name: "elementLinkSelector";
796
- sourceElementId: ExcalidrawElement["id"];
797
- };
798
- defaultSidebarDockedPreference: boolean;
799
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
800
- selectedElementIds: Readonly<{
801
- [id: string]: true;
802
- }>;
803
- hoveredElementIds: Readonly<{
804
- [id: string]: true;
805
- }>;
806
- previousSelectedElementIds: {
807
- [id: string]: true;
808
- };
809
- selectedElementsAreBeingDragged: boolean;
810
- shouldCacheIgnoreZoom: boolean;
811
- toast: {
812
- message: string;
813
- closable?: boolean;
814
- duration?: number;
815
- } | null;
816
- zenModeEnabled: boolean;
817
- theme: import("@excalidraw/element/types").Theme;
818
- gridSize: number;
819
- gridStep: number;
820
- gridModeEnabled: boolean;
821
- viewModeEnabled: boolean;
822
- selectedGroupIds: {
823
- [groupId: string]: boolean;
824
- };
825
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
826
- width: number;
827
- height: number;
828
- offsetTop: number;
829
- offsetLeft: number;
830
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
831
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
832
- stats: {
833
- open: boolean;
834
- panels: number;
835
- };
836
- currentChartType: import("@excalidraw/element/types").ChartType;
837
- pasteDialog: {
838
- shown: false;
839
- data: null;
840
- } | {
841
- shown: true;
842
- data: import("../charts").Spreadsheet;
843
- };
844
- showHyperlinkPopup: false | "info" | "editor";
845
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
846
- snapLines: readonly import("../snapping").SnapLine[];
847
- originSnapOffset: {
848
- x: number;
849
- y: number;
850
- } | null;
851
- objectsSnapModeEnabled: boolean;
852
- userToFollow: import("../types").UserToFollow | null;
853
- followedBy: Set<import("../types").SocketId>;
854
- isCropping: boolean;
855
- croppingElementId: ExcalidrawElement["id"] | null;
856
- searchMatches: Readonly<{
857
- focusedId: ExcalidrawElement["id"] | null;
858
- matches: readonly import("../types").SearchMatch[];
859
- }> | null;
860
- activeLockedId: string | null;
861
- lockedMultiSelections: {
862
- [groupId: string]: true;
863
- };
864
- bindMode: import("@excalidraw/element/types").BindMode;
865
- };
866
- captureUpdate: "EVENTUALLY";
867
- };
868
- export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
869
- canvasOffsets?: Offsets;
870
- targetElements: readonly ExcalidrawElement[];
871
- appState: Readonly<AppState>;
872
- /** whether to fit content to viewport (beyond >100%) */
873
- fitToViewport: boolean;
874
- /** zoom content to cover X of the viewport, when fitToViewport=true */
875
- viewportZoomFactor?: number;
876
- minZoom?: number;
877
- maxZoom?: number;
878
- }) => {
879
- appState: {
880
- scrollX: number;
881
- scrollY: number;
882
- zoom: {
883
- value: import("../types").NormalizedZoomValue;
884
- };
885
- contextMenu: {
886
- items: import("../components/ContextMenu").ContextMenuItems;
887
- top: number;
888
- left: number;
889
- } | null;
890
- showWelcomeScreen: boolean;
891
- isLoading: boolean;
892
- errorMessage: React.ReactNode;
893
- activeEmbeddable: {
894
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
895
- state: "hover" | "active";
896
- } | null;
897
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
898
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
899
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
900
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
901
- isBindingEnabled: boolean;
902
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
903
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
904
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
905
- frameRendering: {
906
- enabled: boolean;
907
- name: boolean;
908
- outline: boolean;
909
- clip: boolean;
910
- };
911
- editingFrame: string | null;
912
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
913
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
914
- activeTool: {
915
- lastActiveTool: import("../types").ActiveTool | null;
916
- locked: boolean;
917
- fromSelection: boolean;
918
- } & import("../types").ActiveTool;
919
- preferredSelectionTool: {
920
- type: "selection" | "lasso";
921
- initialized: boolean;
922
- };
923
- penMode: boolean;
924
- penDetected: boolean;
925
- exportBackground: boolean;
926
- exportEmbedScene: boolean;
927
- exportWithDarkMode: boolean;
928
- exportScale: number;
929
- currentItemStrokeColor: string;
930
- currentItemBackgroundColor: string;
931
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
932
- currentItemStrokeWidth: number;
933
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
934
- currentItemRoughness: number;
935
- currentItemOpacity: number;
936
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
937
- currentItemFontSize: number;
938
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
939
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
940
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
941
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
942
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
943
- currentItemArrowType: "sharp" | "round" | "elbow";
944
- viewBackgroundColor: string;
945
- cursorButton: "up" | "down";
946
- scrolledOutside: boolean;
947
- name: string | null;
948
- isResizing: boolean;
949
- isRotating: boolean;
950
- openMenu: "canvas" | null;
951
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
952
- openSidebar: {
953
- name: import("../types").SidebarName;
954
- tab?: import("../types").SidebarTabName;
955
- } | null;
956
- openDialog: null | {
957
- name: "imageExport" | "help" | "jsonExport";
958
- } | {
959
- name: "ttd";
960
- tab: "text-to-diagram" | "mermaid";
961
- } | {
962
- name: "commandPalette";
963
- } | {
964
- name: "settings";
965
- } | {
966
- name: "elementLinkSelector";
967
- sourceElementId: ExcalidrawElement["id"];
968
- };
969
- defaultSidebarDockedPreference: boolean;
970
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
971
- selectedElementIds: Readonly<{
972
- [id: string]: true;
973
- }>;
974
- hoveredElementIds: Readonly<{
975
- [id: string]: true;
976
- }>;
977
- previousSelectedElementIds: {
978
- [id: string]: true;
979
- };
980
- selectedElementsAreBeingDragged: boolean;
981
- shouldCacheIgnoreZoom: boolean;
982
- toast: {
983
- message: string;
984
- closable?: boolean;
985
- duration?: number;
986
- } | null;
987
- zenModeEnabled: boolean;
988
- theme: import("@excalidraw/element/types").Theme;
989
- gridSize: number;
990
- gridStep: number;
991
- gridModeEnabled: boolean;
992
- viewModeEnabled: boolean;
993
- selectedGroupIds: {
994
- [groupId: string]: boolean;
995
- };
996
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
997
- width: number;
998
- height: number;
999
- offsetTop: number;
1000
- offsetLeft: number;
1001
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1002
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1003
- stats: {
1004
- open: boolean;
1005
- panels: number;
1006
- };
1007
- currentChartType: import("@excalidraw/element/types").ChartType;
1008
- pasteDialog: {
1009
- shown: false;
1010
- data: null;
1011
- } | {
1012
- shown: true;
1013
- data: import("../charts").Spreadsheet;
1014
- };
1015
- showHyperlinkPopup: false | "info" | "editor";
1016
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1017
- snapLines: readonly import("../snapping").SnapLine[];
1018
- originSnapOffset: {
1019
- x: number;
1020
- y: number;
1021
- } | null;
1022
- objectsSnapModeEnabled: boolean;
1023
- userToFollow: import("../types").UserToFollow | null;
1024
- followedBy: Set<import("../types").SocketId>;
1025
- isCropping: boolean;
1026
- croppingElementId: ExcalidrawElement["id"] | null;
1027
- searchMatches: Readonly<{
1028
- focusedId: ExcalidrawElement["id"] | null;
1029
- matches: readonly import("../types").SearchMatch[];
1030
- }> | null;
1031
- activeLockedId: string | null;
1032
- lockedMultiSelections: {
1033
- [groupId: string]: true;
1034
- };
1035
- bindMode: import("@excalidraw/element/types").BindMode;
1036
- };
1037
- captureUpdate: "EVENTUALLY";
1038
- };
1039
791
  export declare const actionZoomToFitSelectionInViewport: {
1040
792
  name: "zoomToFitSelectionInViewport";
1041
793
  label: string;
1042
794
  icon: import("react/jsx-runtime").JSX.Element;
795
+ viewMode: true;
796
+ navigation: true;
1043
797
  trackEvent: {
1044
798
  category: "canvas";
1045
799
  };
800
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1046
801
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1047
802
  appState: {
803
+ zoom: import("../types").Zoom;
1048
804
  scrollX: number;
1049
805
  scrollY: number;
1050
- zoom: {
1051
- value: import("../types").NormalizedZoomValue;
1052
- };
1053
806
  contextMenu: {
1054
807
  items: import("../components/ContextMenu").ContextMenuItems;
1055
808
  top: number;
@@ -1067,8 +820,26 @@ export declare const actionZoomToFitSelectionInViewport: {
1067
820
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1068
821
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1069
822
  isBindingEnabled: boolean;
1070
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1071
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
823
+ boxSelectionMode: import("../types").BoxSelectionMode;
824
+ bindingPreference: "enabled" | "disabled";
825
+ isMidpointSnappingEnabled: boolean;
826
+ showHints: boolean;
827
+ inputDevice: import("../types").InputDevice;
828
+ suggestedBinding: {
829
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
830
+ midPoint?: import("@excalidraw/math").GlobalPoint;
831
+ } | null;
832
+ textToolHover: {
833
+ type: "text";
834
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
835
+ } | {
836
+ type: "container";
837
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
838
+ } | {
839
+ type: "arrow";
840
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
841
+ anchor: "start" | "end" | "label";
842
+ } | null;
1072
843
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1073
844
  frameRendering: {
1074
845
  enabled: boolean;
@@ -1076,9 +847,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1076
847
  outline: boolean;
1077
848
  clip: boolean;
1078
849
  };
1079
- editingFrame: string | null;
1080
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1081
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
850
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
851
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
852
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1082
853
  activeTool: {
1083
854
  lastActiveTool: import("../types").ActiveTool | null;
1084
855
  locked: boolean;
@@ -1095,11 +866,14 @@ export declare const actionZoomToFitSelectionInViewport: {
1095
866
  exportWithDarkMode: boolean;
1096
867
  exportScale: number;
1097
868
  currentItemStrokeColor: string;
869
+ currentItemStickynoteStrokeColor: string;
870
+ currentItemStickynoteBackgroundColor: string;
1098
871
  currentItemBackgroundColor: string;
1099
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1100
- currentItemStrokeWidth: number;
1101
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
872
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
873
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
874
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1102
875
  currentItemRoughness: number;
876
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1103
877
  currentItemOpacity: number;
1104
878
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1105
879
  currentItemFontSize: number;
@@ -1110,6 +884,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1110
884
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1111
885
  currentItemArrowType: "sharp" | "round" | "elbow";
1112
886
  viewBackgroundColor: string;
887
+ scrollConstraints: import("../types").ScrollConstraints | null;
1113
888
  cursorButton: "up" | "down";
1114
889
  scrolledOutside: boolean;
1115
890
  name: string | null;
@@ -1132,7 +907,11 @@ export declare const actionZoomToFitSelectionInViewport: {
1132
907
  name: "settings";
1133
908
  } | {
1134
909
  name: "elementLinkSelector";
1135
- sourceElementId: ExcalidrawElement["id"];
910
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
911
+ } | {
912
+ name: "charts";
913
+ data: import("../charts").Spreadsheet;
914
+ rawText: string;
1136
915
  };
1137
916
  defaultSidebarDockedPreference: boolean;
1138
917
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1148,7 +927,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1148
927
  selectedElementsAreBeingDragged: boolean;
1149
928
  shouldCacheIgnoreZoom: boolean;
1150
929
  toast: {
1151
- message: string;
930
+ message: React.ReactNode;
1152
931
  closable?: boolean;
1153
932
  duration?: number;
1154
933
  } | null;
@@ -1166,20 +945,12 @@ export declare const actionZoomToFitSelectionInViewport: {
1166
945
  height: number;
1167
946
  offsetTop: number;
1168
947
  offsetLeft: number;
1169
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
948
+ fileHandle: FileSystemFileHandle | null;
1170
949
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1171
950
  stats: {
1172
951
  open: boolean;
1173
952
  panels: number;
1174
953
  };
1175
- currentChartType: import("@excalidraw/element/types").ChartType;
1176
- pasteDialog: {
1177
- shown: false;
1178
- data: null;
1179
- } | {
1180
- shown: true;
1181
- data: import("../charts").Spreadsheet;
1182
- };
1183
954
  showHyperlinkPopup: false | "info" | "editor";
1184
955
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1185
956
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1188,12 +959,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1188
959
  y: number;
1189
960
  } | null;
1190
961
  objectsSnapModeEnabled: boolean;
1191
- userToFollow: import("../types").UserToFollow | null;
1192
- followedBy: Set<import("../types").SocketId>;
1193
962
  isCropping: boolean;
1194
- croppingElementId: ExcalidrawElement["id"] | null;
963
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1195
964
  searchMatches: Readonly<{
1196
- focusedId: ExcalidrawElement["id"] | null;
965
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1197
966
  matches: readonly import("../types").SearchMatch[];
1198
967
  }> | null;
1199
968
  activeLockedId: string | null;
@@ -1201,6 +970,14 @@ export declare const actionZoomToFitSelectionInViewport: {
1201
970
  [groupId: string]: true;
1202
971
  };
1203
972
  bindMode: import("@excalidraw/element/types").BindMode;
973
+ colorTopPicks: {
974
+ elementStroke: readonly string[] | null;
975
+ elementBackground: readonly string[] | null;
976
+ bucketFill: readonly string[] | null;
977
+ stickyNoteStroke: readonly string[] | null;
978
+ stickyNoteBackground: readonly string[] | null;
979
+ };
980
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1204
981
  };
1205
982
  captureUpdate: "EVENTUALLY";
1206
983
  };
@@ -1212,16 +989,17 @@ export declare const actionZoomToFitSelection: {
1212
989
  name: "zoomToFitSelection";
1213
990
  label: string;
1214
991
  icon: import("react/jsx-runtime").JSX.Element;
992
+ viewMode: true;
993
+ navigation: true;
1215
994
  trackEvent: {
1216
995
  category: "canvas";
1217
996
  };
997
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1218
998
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1219
999
  appState: {
1000
+ zoom: import("../types").Zoom;
1220
1001
  scrollX: number;
1221
1002
  scrollY: number;
1222
- zoom: {
1223
- value: import("../types").NormalizedZoomValue;
1224
- };
1225
1003
  contextMenu: {
1226
1004
  items: import("../components/ContextMenu").ContextMenuItems;
1227
1005
  top: number;
@@ -1239,8 +1017,26 @@ export declare const actionZoomToFitSelection: {
1239
1017
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1240
1018
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1241
1019
  isBindingEnabled: boolean;
1242
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1243
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1020
+ boxSelectionMode: import("../types").BoxSelectionMode;
1021
+ bindingPreference: "enabled" | "disabled";
1022
+ isMidpointSnappingEnabled: boolean;
1023
+ showHints: boolean;
1024
+ inputDevice: import("../types").InputDevice;
1025
+ suggestedBinding: {
1026
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1027
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1028
+ } | null;
1029
+ textToolHover: {
1030
+ type: "text";
1031
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1032
+ } | {
1033
+ type: "container";
1034
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1035
+ } | {
1036
+ type: "arrow";
1037
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
1038
+ anchor: "start" | "end" | "label";
1039
+ } | null;
1244
1040
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1245
1041
  frameRendering: {
1246
1042
  enabled: boolean;
@@ -1248,9 +1044,9 @@ export declare const actionZoomToFitSelection: {
1248
1044
  outline: boolean;
1249
1045
  clip: boolean;
1250
1046
  };
1251
- editingFrame: string | null;
1252
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1253
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1047
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
1048
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
1049
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1254
1050
  activeTool: {
1255
1051
  lastActiveTool: import("../types").ActiveTool | null;
1256
1052
  locked: boolean;
@@ -1267,11 +1063,14 @@ export declare const actionZoomToFitSelection: {
1267
1063
  exportWithDarkMode: boolean;
1268
1064
  exportScale: number;
1269
1065
  currentItemStrokeColor: string;
1066
+ currentItemStickynoteStrokeColor: string;
1067
+ currentItemStickynoteBackgroundColor: string;
1270
1068
  currentItemBackgroundColor: string;
1271
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1272
- currentItemStrokeWidth: number;
1273
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1069
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1070
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1071
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1274
1072
  currentItemRoughness: number;
1073
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1275
1074
  currentItemOpacity: number;
1276
1075
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1277
1076
  currentItemFontSize: number;
@@ -1282,6 +1081,7 @@ export declare const actionZoomToFitSelection: {
1282
1081
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1283
1082
  currentItemArrowType: "sharp" | "round" | "elbow";
1284
1083
  viewBackgroundColor: string;
1084
+ scrollConstraints: import("../types").ScrollConstraints | null;
1285
1085
  cursorButton: "up" | "down";
1286
1086
  scrolledOutside: boolean;
1287
1087
  name: string | null;
@@ -1304,7 +1104,11 @@ export declare const actionZoomToFitSelection: {
1304
1104
  name: "settings";
1305
1105
  } | {
1306
1106
  name: "elementLinkSelector";
1307
- sourceElementId: ExcalidrawElement["id"];
1107
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1108
+ } | {
1109
+ name: "charts";
1110
+ data: import("../charts").Spreadsheet;
1111
+ rawText: string;
1308
1112
  };
1309
1113
  defaultSidebarDockedPreference: boolean;
1310
1114
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1320,7 +1124,7 @@ export declare const actionZoomToFitSelection: {
1320
1124
  selectedElementsAreBeingDragged: boolean;
1321
1125
  shouldCacheIgnoreZoom: boolean;
1322
1126
  toast: {
1323
- message: string;
1127
+ message: React.ReactNode;
1324
1128
  closable?: boolean;
1325
1129
  duration?: number;
1326
1130
  } | null;
@@ -1338,20 +1142,12 @@ export declare const actionZoomToFitSelection: {
1338
1142
  height: number;
1339
1143
  offsetTop: number;
1340
1144
  offsetLeft: number;
1341
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1145
+ fileHandle: FileSystemFileHandle | null;
1342
1146
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1343
1147
  stats: {
1344
1148
  open: boolean;
1345
1149
  panels: number;
1346
1150
  };
1347
- currentChartType: import("@excalidraw/element/types").ChartType;
1348
- pasteDialog: {
1349
- shown: false;
1350
- data: null;
1351
- } | {
1352
- shown: true;
1353
- data: import("../charts").Spreadsheet;
1354
- };
1355
1151
  showHyperlinkPopup: false | "info" | "editor";
1356
1152
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1357
1153
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1360,12 +1156,10 @@ export declare const actionZoomToFitSelection: {
1360
1156
  y: number;
1361
1157
  } | null;
1362
1158
  objectsSnapModeEnabled: boolean;
1363
- userToFollow: import("../types").UserToFollow | null;
1364
- followedBy: Set<import("../types").SocketId>;
1365
1159
  isCropping: boolean;
1366
- croppingElementId: ExcalidrawElement["id"] | null;
1160
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1367
1161
  searchMatches: Readonly<{
1368
- focusedId: ExcalidrawElement["id"] | null;
1162
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1369
1163
  matches: readonly import("../types").SearchMatch[];
1370
1164
  }> | null;
1371
1165
  activeLockedId: string | null;
@@ -1373,6 +1167,14 @@ export declare const actionZoomToFitSelection: {
1373
1167
  [groupId: string]: true;
1374
1168
  };
1375
1169
  bindMode: import("@excalidraw/element/types").BindMode;
1170
+ colorTopPicks: {
1171
+ elementStroke: readonly string[] | null;
1172
+ elementBackground: readonly string[] | null;
1173
+ bucketFill: readonly string[] | null;
1174
+ stickyNoteStroke: readonly string[] | null;
1175
+ stickyNoteBackground: readonly string[] | null;
1176
+ };
1177
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1376
1178
  };
1377
1179
  captureUpdate: "EVENTUALLY";
1378
1180
  };
@@ -1385,16 +1187,16 @@ export declare const actionZoomToFit: {
1385
1187
  label: string;
1386
1188
  icon: import("react/jsx-runtime").JSX.Element;
1387
1189
  viewMode: true;
1190
+ navigation: true;
1388
1191
  trackEvent: {
1389
1192
  category: "canvas";
1390
1193
  };
1194
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1391
1195
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1392
1196
  appState: {
1197
+ zoom: import("../types").Zoom;
1393
1198
  scrollX: number;
1394
1199
  scrollY: number;
1395
- zoom: {
1396
- value: import("../types").NormalizedZoomValue;
1397
- };
1398
1200
  contextMenu: {
1399
1201
  items: import("../components/ContextMenu").ContextMenuItems;
1400
1202
  top: number;
@@ -1412,8 +1214,26 @@ export declare const actionZoomToFit: {
1412
1214
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1413
1215
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1414
1216
  isBindingEnabled: boolean;
1415
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1416
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1217
+ boxSelectionMode: import("../types").BoxSelectionMode;
1218
+ bindingPreference: "enabled" | "disabled";
1219
+ isMidpointSnappingEnabled: boolean;
1220
+ showHints: boolean;
1221
+ inputDevice: import("../types").InputDevice;
1222
+ suggestedBinding: {
1223
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1224
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1225
+ } | null;
1226
+ textToolHover: {
1227
+ type: "text";
1228
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1229
+ } | {
1230
+ type: "container";
1231
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1232
+ } | {
1233
+ type: "arrow";
1234
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
1235
+ anchor: "start" | "end" | "label";
1236
+ } | null;
1417
1237
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1418
1238
  frameRendering: {
1419
1239
  enabled: boolean;
@@ -1421,9 +1241,9 @@ export declare const actionZoomToFit: {
1421
1241
  outline: boolean;
1422
1242
  clip: boolean;
1423
1243
  };
1424
- editingFrame: string | null;
1425
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1426
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1244
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
1245
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
1246
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1427
1247
  activeTool: {
1428
1248
  lastActiveTool: import("../types").ActiveTool | null;
1429
1249
  locked: boolean;
@@ -1440,11 +1260,14 @@ export declare const actionZoomToFit: {
1440
1260
  exportWithDarkMode: boolean;
1441
1261
  exportScale: number;
1442
1262
  currentItemStrokeColor: string;
1263
+ currentItemStickynoteStrokeColor: string;
1264
+ currentItemStickynoteBackgroundColor: string;
1443
1265
  currentItemBackgroundColor: string;
1444
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1445
- currentItemStrokeWidth: number;
1446
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1266
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1267
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1268
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1447
1269
  currentItemRoughness: number;
1270
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1448
1271
  currentItemOpacity: number;
1449
1272
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1450
1273
  currentItemFontSize: number;
@@ -1455,6 +1278,7 @@ export declare const actionZoomToFit: {
1455
1278
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1456
1279
  currentItemArrowType: "sharp" | "round" | "elbow";
1457
1280
  viewBackgroundColor: string;
1281
+ scrollConstraints: import("../types").ScrollConstraints | null;
1458
1282
  cursorButton: "up" | "down";
1459
1283
  scrolledOutside: boolean;
1460
1284
  name: string | null;
@@ -1477,7 +1301,11 @@ export declare const actionZoomToFit: {
1477
1301
  name: "settings";
1478
1302
  } | {
1479
1303
  name: "elementLinkSelector";
1480
- sourceElementId: ExcalidrawElement["id"];
1304
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1305
+ } | {
1306
+ name: "charts";
1307
+ data: import("../charts").Spreadsheet;
1308
+ rawText: string;
1481
1309
  };
1482
1310
  defaultSidebarDockedPreference: boolean;
1483
1311
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1493,7 +1321,7 @@ export declare const actionZoomToFit: {
1493
1321
  selectedElementsAreBeingDragged: boolean;
1494
1322
  shouldCacheIgnoreZoom: boolean;
1495
1323
  toast: {
1496
- message: string;
1324
+ message: React.ReactNode;
1497
1325
  closable?: boolean;
1498
1326
  duration?: number;
1499
1327
  } | null;
@@ -1511,20 +1339,12 @@ export declare const actionZoomToFit: {
1511
1339
  height: number;
1512
1340
  offsetTop: number;
1513
1341
  offsetLeft: number;
1514
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1342
+ fileHandle: FileSystemFileHandle | null;
1515
1343
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1516
1344
  stats: {
1517
1345
  open: boolean;
1518
1346
  panels: number;
1519
1347
  };
1520
- currentChartType: import("@excalidraw/element/types").ChartType;
1521
- pasteDialog: {
1522
- shown: false;
1523
- data: null;
1524
- } | {
1525
- shown: true;
1526
- data: import("../charts").Spreadsheet;
1527
- };
1528
1348
  showHyperlinkPopup: false | "info" | "editor";
1529
1349
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1530
1350
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1533,12 +1353,10 @@ export declare const actionZoomToFit: {
1533
1353
  y: number;
1534
1354
  } | null;
1535
1355
  objectsSnapModeEnabled: boolean;
1536
- userToFollow: import("../types").UserToFollow | null;
1537
- followedBy: Set<import("../types").SocketId>;
1538
1356
  isCropping: boolean;
1539
- croppingElementId: ExcalidrawElement["id"] | null;
1357
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1540
1358
  searchMatches: Readonly<{
1541
- focusedId: ExcalidrawElement["id"] | null;
1359
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1542
1360
  matches: readonly import("../types").SearchMatch[];
1543
1361
  }> | null;
1544
1362
  activeLockedId: string | null;
@@ -1546,6 +1364,14 @@ export declare const actionZoomToFit: {
1546
1364
  [groupId: string]: true;
1547
1365
  };
1548
1366
  bindMode: import("@excalidraw/element/types").BindMode;
1367
+ colorTopPicks: {
1368
+ elementStroke: readonly string[] | null;
1369
+ elementBackground: readonly string[] | null;
1370
+ bucketFill: readonly string[] | null;
1371
+ stickyNoteStroke: readonly string[] | null;
1372
+ stickyNoteBackground: readonly string[] | null;
1373
+ };
1374
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1549
1375
  };
1550
1376
  captureUpdate: "EVENTUALLY";
1551
1377
  };
@@ -1554,494 +1380,5 @@ export declare const actionZoomToFit: {
1554
1380
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1555
1381
  };
1556
1382
  export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
1557
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1558
- };
1559
- export declare const actionToggleEraserTool: {
1560
- name: "toggleEraserTool";
1561
- label: string;
1562
- trackEvent: {
1563
- category: "toolbar";
1564
- };
1565
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1566
- appState: {
1567
- selectedElementIds: {};
1568
- selectedGroupIds: {};
1569
- activeEmbeddable: null;
1570
- activeTool: {
1571
- lastActiveTool: import("../types").ActiveTool | null;
1572
- locked: boolean;
1573
- fromSelection: boolean;
1574
- } & import("../types").ActiveTool;
1575
- contextMenu: {
1576
- items: import("../components/ContextMenu").ContextMenuItems;
1577
- top: number;
1578
- left: number;
1579
- } | null;
1580
- showWelcomeScreen: boolean;
1581
- isLoading: boolean;
1582
- errorMessage: React.ReactNode;
1583
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1584
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1585
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1586
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1587
- isBindingEnabled: boolean;
1588
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1589
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1590
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1591
- frameRendering: {
1592
- enabled: boolean;
1593
- name: boolean;
1594
- outline: boolean;
1595
- clip: boolean;
1596
- };
1597
- editingFrame: string | null;
1598
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1599
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1600
- preferredSelectionTool: {
1601
- type: "selection" | "lasso";
1602
- initialized: boolean;
1603
- };
1604
- penMode: boolean;
1605
- penDetected: boolean;
1606
- exportBackground: boolean;
1607
- exportEmbedScene: boolean;
1608
- exportWithDarkMode: boolean;
1609
- exportScale: number;
1610
- currentItemStrokeColor: string;
1611
- currentItemBackgroundColor: string;
1612
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1613
- currentItemStrokeWidth: number;
1614
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1615
- currentItemRoughness: number;
1616
- currentItemOpacity: number;
1617
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1618
- currentItemFontSize: number;
1619
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1620
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1621
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1622
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1623
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1624
- currentItemArrowType: "sharp" | "round" | "elbow";
1625
- viewBackgroundColor: string;
1626
- scrollX: number;
1627
- scrollY: number;
1628
- cursorButton: "up" | "down";
1629
- scrolledOutside: boolean;
1630
- name: string | null;
1631
- isResizing: boolean;
1632
- isRotating: boolean;
1633
- zoom: import("../types").Zoom;
1634
- openMenu: "canvas" | null;
1635
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1636
- openSidebar: {
1637
- name: import("../types").SidebarName;
1638
- tab?: import("../types").SidebarTabName;
1639
- } | null;
1640
- openDialog: null | {
1641
- name: "imageExport" | "help" | "jsonExport";
1642
- } | {
1643
- name: "ttd";
1644
- tab: "text-to-diagram" | "mermaid";
1645
- } | {
1646
- name: "commandPalette";
1647
- } | {
1648
- name: "settings";
1649
- } | {
1650
- name: "elementLinkSelector";
1651
- sourceElementId: ExcalidrawElement["id"];
1652
- };
1653
- defaultSidebarDockedPreference: boolean;
1654
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1655
- hoveredElementIds: Readonly<{
1656
- [id: string]: true;
1657
- }>;
1658
- previousSelectedElementIds: {
1659
- [id: string]: true;
1660
- };
1661
- selectedElementsAreBeingDragged: boolean;
1662
- shouldCacheIgnoreZoom: boolean;
1663
- toast: {
1664
- message: string;
1665
- closable?: boolean;
1666
- duration?: number;
1667
- } | null;
1668
- zenModeEnabled: boolean;
1669
- theme: import("@excalidraw/element/types").Theme;
1670
- gridSize: number;
1671
- gridStep: number;
1672
- gridModeEnabled: boolean;
1673
- viewModeEnabled: boolean;
1674
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
1675
- width: number;
1676
- height: number;
1677
- offsetTop: number;
1678
- offsetLeft: number;
1679
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1680
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1681
- stats: {
1682
- open: boolean;
1683
- panels: number;
1684
- };
1685
- currentChartType: import("@excalidraw/element/types").ChartType;
1686
- pasteDialog: {
1687
- shown: false;
1688
- data: null;
1689
- } | {
1690
- shown: true;
1691
- data: import("../charts").Spreadsheet;
1692
- };
1693
- showHyperlinkPopup: false | "info" | "editor";
1694
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1695
- snapLines: readonly import("../snapping").SnapLine[];
1696
- originSnapOffset: {
1697
- x: number;
1698
- y: number;
1699
- } | null;
1700
- objectsSnapModeEnabled: boolean;
1701
- userToFollow: import("../types").UserToFollow | null;
1702
- followedBy: Set<import("../types").SocketId>;
1703
- isCropping: boolean;
1704
- croppingElementId: ExcalidrawElement["id"] | null;
1705
- searchMatches: Readonly<{
1706
- focusedId: ExcalidrawElement["id"] | null;
1707
- matches: readonly import("../types").SearchMatch[];
1708
- }> | null;
1709
- activeLockedId: string | null;
1710
- lockedMultiSelections: {
1711
- [groupId: string]: true;
1712
- };
1713
- bindMode: import("@excalidraw/element/types").BindMode;
1714
- };
1715
- captureUpdate: "IMMEDIATELY";
1716
- };
1717
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1718
- } & {
1719
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1720
- };
1721
- export declare const actionToggleLassoTool: {
1722
- name: "toggleLassoTool";
1723
- label: string;
1724
- icon: import("react/jsx-runtime").JSX.Element;
1725
- trackEvent: {
1726
- category: "toolbar";
1727
- };
1728
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1729
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1730
- appState: {
1731
- selectedElementIds: {};
1732
- selectedGroupIds: {};
1733
- activeEmbeddable: null;
1734
- activeTool: {
1735
- lastActiveTool: import("../types").ActiveTool | null;
1736
- locked: boolean;
1737
- fromSelection: boolean;
1738
- } & import("../types").ActiveTool;
1739
- contextMenu: {
1740
- items: import("../components/ContextMenu").ContextMenuItems;
1741
- top: number;
1742
- left: number;
1743
- } | null;
1744
- showWelcomeScreen: boolean;
1745
- isLoading: boolean;
1746
- errorMessage: React.ReactNode;
1747
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1748
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1749
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1750
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1751
- isBindingEnabled: boolean;
1752
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1753
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1754
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1755
- frameRendering: {
1756
- enabled: boolean;
1757
- name: boolean;
1758
- outline: boolean;
1759
- clip: boolean;
1760
- };
1761
- editingFrame: string | null;
1762
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1763
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1764
- preferredSelectionTool: {
1765
- type: "selection" | "lasso";
1766
- initialized: boolean;
1767
- };
1768
- penMode: boolean;
1769
- penDetected: boolean;
1770
- exportBackground: boolean;
1771
- exportEmbedScene: boolean;
1772
- exportWithDarkMode: boolean;
1773
- exportScale: number;
1774
- currentItemStrokeColor: string;
1775
- currentItemBackgroundColor: string;
1776
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1777
- currentItemStrokeWidth: number;
1778
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1779
- currentItemRoughness: number;
1780
- currentItemOpacity: number;
1781
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1782
- currentItemFontSize: number;
1783
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1784
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1785
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1786
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1787
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1788
- currentItemArrowType: "sharp" | "round" | "elbow";
1789
- viewBackgroundColor: string;
1790
- scrollX: number;
1791
- scrollY: number;
1792
- cursorButton: "up" | "down";
1793
- scrolledOutside: boolean;
1794
- name: string | null;
1795
- isResizing: boolean;
1796
- isRotating: boolean;
1797
- zoom: import("../types").Zoom;
1798
- openMenu: "canvas" | null;
1799
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1800
- openSidebar: {
1801
- name: import("../types").SidebarName;
1802
- tab?: import("../types").SidebarTabName;
1803
- } | null;
1804
- openDialog: null | {
1805
- name: "imageExport" | "help" | "jsonExport";
1806
- } | {
1807
- name: "ttd";
1808
- tab: "text-to-diagram" | "mermaid";
1809
- } | {
1810
- name: "commandPalette";
1811
- } | {
1812
- name: "settings";
1813
- } | {
1814
- name: "elementLinkSelector";
1815
- sourceElementId: ExcalidrawElement["id"];
1816
- };
1817
- defaultSidebarDockedPreference: boolean;
1818
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1819
- hoveredElementIds: Readonly<{
1820
- [id: string]: true;
1821
- }>;
1822
- previousSelectedElementIds: {
1823
- [id: string]: true;
1824
- };
1825
- selectedElementsAreBeingDragged: boolean;
1826
- shouldCacheIgnoreZoom: boolean;
1827
- toast: {
1828
- message: string;
1829
- closable?: boolean;
1830
- duration?: number;
1831
- } | null;
1832
- zenModeEnabled: boolean;
1833
- theme: import("@excalidraw/element/types").Theme;
1834
- gridSize: number;
1835
- gridStep: number;
1836
- gridModeEnabled: boolean;
1837
- viewModeEnabled: boolean;
1838
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
1839
- width: number;
1840
- height: number;
1841
- offsetTop: number;
1842
- offsetLeft: number;
1843
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1844
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1845
- stats: {
1846
- open: boolean;
1847
- panels: number;
1848
- };
1849
- currentChartType: import("@excalidraw/element/types").ChartType;
1850
- pasteDialog: {
1851
- shown: false;
1852
- data: null;
1853
- } | {
1854
- shown: true;
1855
- data: import("../charts").Spreadsheet;
1856
- };
1857
- showHyperlinkPopup: false | "info" | "editor";
1858
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1859
- snapLines: readonly import("../snapping").SnapLine[];
1860
- originSnapOffset: {
1861
- x: number;
1862
- y: number;
1863
- } | null;
1864
- objectsSnapModeEnabled: boolean;
1865
- userToFollow: import("../types").UserToFollow | null;
1866
- followedBy: Set<import("../types").SocketId>;
1867
- isCropping: boolean;
1868
- croppingElementId: ExcalidrawElement["id"] | null;
1869
- searchMatches: Readonly<{
1870
- focusedId: ExcalidrawElement["id"] | null;
1871
- matches: readonly import("../types").SearchMatch[];
1872
- }> | null;
1873
- activeLockedId: string | null;
1874
- lockedMultiSelections: {
1875
- [groupId: string]: true;
1876
- };
1877
- bindMode: import("@excalidraw/element/types").BindMode;
1878
- };
1879
- captureUpdate: "NEVER";
1880
- };
1881
- } & {
1882
- keyTest?: undefined;
1883
- };
1884
- export declare const actionToggleHandTool: {
1885
- name: "toggleHandTool";
1886
- label: string;
1887
- trackEvent: {
1888
- category: "toolbar";
1889
- };
1890
- icon: import("react/jsx-runtime").JSX.Element;
1891
- viewMode: false;
1892
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1893
- appState: {
1894
- selectedElementIds: {};
1895
- selectedGroupIds: {};
1896
- activeEmbeddable: null;
1897
- activeTool: {
1898
- lastActiveTool: import("../types").ActiveTool | null;
1899
- locked: boolean;
1900
- fromSelection: boolean;
1901
- } & import("../types").ActiveTool;
1902
- contextMenu: {
1903
- items: import("../components/ContextMenu").ContextMenuItems;
1904
- top: number;
1905
- left: number;
1906
- } | null;
1907
- showWelcomeScreen: boolean;
1908
- isLoading: boolean;
1909
- errorMessage: React.ReactNode;
1910
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1911
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1912
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1913
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1914
- isBindingEnabled: boolean;
1915
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1916
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1917
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1918
- frameRendering: {
1919
- enabled: boolean;
1920
- name: boolean;
1921
- outline: boolean;
1922
- clip: boolean;
1923
- };
1924
- editingFrame: string | null;
1925
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1926
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1927
- preferredSelectionTool: {
1928
- type: "selection" | "lasso";
1929
- initialized: boolean;
1930
- };
1931
- penMode: boolean;
1932
- penDetected: boolean;
1933
- exportBackground: boolean;
1934
- exportEmbedScene: boolean;
1935
- exportWithDarkMode: boolean;
1936
- exportScale: number;
1937
- currentItemStrokeColor: string;
1938
- currentItemBackgroundColor: string;
1939
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1940
- currentItemStrokeWidth: number;
1941
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1942
- currentItemRoughness: number;
1943
- currentItemOpacity: number;
1944
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1945
- currentItemFontSize: number;
1946
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1947
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1948
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1949
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1950
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1951
- currentItemArrowType: "sharp" | "round" | "elbow";
1952
- viewBackgroundColor: string;
1953
- scrollX: number;
1954
- scrollY: number;
1955
- cursorButton: "up" | "down";
1956
- scrolledOutside: boolean;
1957
- name: string | null;
1958
- isResizing: boolean;
1959
- isRotating: boolean;
1960
- zoom: import("../types").Zoom;
1961
- openMenu: "canvas" | null;
1962
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1963
- openSidebar: {
1964
- name: import("../types").SidebarName;
1965
- tab?: import("../types").SidebarTabName;
1966
- } | null;
1967
- openDialog: null | {
1968
- name: "imageExport" | "help" | "jsonExport";
1969
- } | {
1970
- name: "ttd";
1971
- tab: "text-to-diagram" | "mermaid";
1972
- } | {
1973
- name: "commandPalette";
1974
- } | {
1975
- name: "settings";
1976
- } | {
1977
- name: "elementLinkSelector";
1978
- sourceElementId: ExcalidrawElement["id"];
1979
- };
1980
- defaultSidebarDockedPreference: boolean;
1981
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1982
- hoveredElementIds: Readonly<{
1983
- [id: string]: true;
1984
- }>;
1985
- previousSelectedElementIds: {
1986
- [id: string]: true;
1987
- };
1988
- selectedElementsAreBeingDragged: boolean;
1989
- shouldCacheIgnoreZoom: boolean;
1990
- toast: {
1991
- message: string;
1992
- closable?: boolean;
1993
- duration?: number;
1994
- } | null;
1995
- zenModeEnabled: boolean;
1996
- theme: import("@excalidraw/element/types").Theme;
1997
- gridSize: number;
1998
- gridStep: number;
1999
- gridModeEnabled: boolean;
2000
- viewModeEnabled: boolean;
2001
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
2002
- width: number;
2003
- height: number;
2004
- offsetTop: number;
2005
- offsetLeft: number;
2006
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2007
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2008
- stats: {
2009
- open: boolean;
2010
- panels: number;
2011
- };
2012
- currentChartType: import("@excalidraw/element/types").ChartType;
2013
- pasteDialog: {
2014
- shown: false;
2015
- data: null;
2016
- } | {
2017
- shown: true;
2018
- data: import("../charts").Spreadsheet;
2019
- };
2020
- showHyperlinkPopup: false | "info" | "editor";
2021
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2022
- snapLines: readonly import("../snapping").SnapLine[];
2023
- originSnapOffset: {
2024
- x: number;
2025
- y: number;
2026
- } | null;
2027
- objectsSnapModeEnabled: boolean;
2028
- userToFollow: import("../types").UserToFollow | null;
2029
- followedBy: Set<import("../types").SocketId>;
2030
- isCropping: boolean;
2031
- croppingElementId: ExcalidrawElement["id"] | null;
2032
- searchMatches: Readonly<{
2033
- focusedId: ExcalidrawElement["id"] | null;
2034
- matches: readonly import("../types").SearchMatch[];
2035
- }> | null;
2036
- activeLockedId: string | null;
2037
- lockedMultiSelections: {
2038
- [groupId: string]: true;
2039
- };
2040
- bindMode: import("@excalidraw/element/types").BindMode;
2041
- };
2042
- captureUpdate: "IMMEDIATELY";
2043
- };
2044
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2045
- } & {
2046
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1383
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
2047
1384
  };