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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/dist/dev/index.js +321 -118
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/colors.d.ts +24 -2
  7. package/dist/types/common/src/constants.d.ts +66 -7
  8. package/dist/types/common/src/index.d.ts +3 -0
  9. package/dist/types/common/src/keys.d.ts +4 -0
  10. package/dist/types/common/src/points.d.ts +1 -1
  11. package/dist/types/common/src/random.d.ts +7 -0
  12. package/dist/types/common/src/utils.d.ts +16 -50
  13. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  14. package/dist/types/element/src/Scene.d.ts +9 -5
  15. package/dist/types/element/src/align.d.ts +5 -2
  16. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  17. package/dist/types/element/src/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +6 -3
  19. package/dist/types/element/src/binding.d.ts +94 -17
  20. package/dist/types/element/src/bounds.d.ts +32 -9
  21. package/dist/types/element/src/bucketFill.d.ts +110 -0
  22. package/dist/types/element/src/collision.d.ts +21 -5
  23. package/dist/types/element/src/comparisons.d.ts +8 -5
  24. package/dist/types/element/src/convertToShape.d.ts +23 -0
  25. package/dist/types/element/src/cropElement.d.ts +36 -4
  26. package/dist/types/element/src/delta.d.ts +30 -2
  27. package/dist/types/element/src/distribute.d.ts +5 -2
  28. package/dist/types/element/src/dragElements.d.ts +34 -2
  29. package/dist/types/element/src/duplicate.d.ts +64 -3
  30. package/dist/types/element/src/elbowArrow.d.ts +7 -0
  31. package/dist/types/element/src/embeddable.d.ts +3 -2
  32. package/dist/types/element/src/flowchart.d.ts +9 -11
  33. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  34. package/dist/types/element/src/frame.d.ts +30 -11
  35. package/dist/types/element/src/groups.d.ts +10 -15
  36. package/dist/types/element/src/image.d.ts +5 -2
  37. package/dist/types/element/src/index.d.ts +8 -1
  38. package/dist/types/element/src/linearElementEditor.d.ts +34 -11
  39. package/dist/types/element/src/listMarker.d.ts +39 -0
  40. package/dist/types/element/src/mutateElement.d.ts +3 -1
  41. package/dist/types/element/src/newElement.d.ts +55 -3
  42. package/dist/types/element/src/renderElement.d.ts +31 -7
  43. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  44. package/dist/types/element/src/resizeElements.d.ts +14 -4
  45. package/dist/types/element/src/selection.d.ts +11 -13
  46. package/dist/types/element/src/shape.d.ts +30 -2
  47. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  48. package/dist/types/element/src/sortElements.d.ts +10 -0
  49. package/dist/types/element/src/stickyNote.d.ts +191 -0
  50. package/dist/types/element/src/textElement.d.ts +23 -11
  51. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  52. package/dist/types/element/src/textWrapping.d.ts +28 -1
  53. package/dist/types/element/src/transform.d.ts +31 -8
  54. package/dist/types/element/src/typeChecks.d.ts +29 -27
  55. package/dist/types/element/src/types.d.ts +48 -9
  56. package/dist/types/element/src/utils.d.ts +19 -6
  57. package/dist/types/element/src/zindex.d.ts +2 -2
  58. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +125 -53
  59. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  60. package/dist/types/excalidraw/actions/actionBoundText.d.ts +86 -213
  61. package/dist/types/excalidraw/actions/actionCanvas.d.ts +361 -1024
  62. package/dist/types/excalidraw/actions/actionClipboard.d.ts +84 -36
  63. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +42 -18
  64. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -515
  65. package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
  66. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  67. package/dist/types/excalidraw/actions/actionElementLink.d.ts +38 -18
  68. package/dist/types/excalidraw/actions/actionElementLock.d.ts +85 -37
  69. package/dist/types/excalidraw/actions/actionExport.d.ts +138 -364
  70. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  71. package/dist/types/excalidraw/actions/actionFrame.d.ts +151 -684
  72. package/dist/types/excalidraw/actions/actionGroup.d.ts +100 -52
  73. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +97 -21
  74. package/dist/types/excalidraw/actions/actionLink.d.ts +43 -19
  75. package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -18
  76. package/dist/types/excalidraw/actions/actionProperties.d.ts +120 -56
  77. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +47 -23
  78. package/dist/types/excalidraw/actions/actionStyles.d.ts +43 -18
  79. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  80. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +57 -32
  81. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +46 -23
  82. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
  83. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +43 -19
  84. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -23
  85. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  86. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +197 -0
  87. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +43 -19
  88. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -20
  89. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  90. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +43 -19
  91. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  92. package/dist/types/excalidraw/actions/index.d.ts +6 -2
  93. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  94. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  95. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  96. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  97. package/dist/types/excalidraw/appState.d.ts +43 -17
  98. package/dist/types/excalidraw/charts/charts.bar.d.ts +3 -0
  99. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  100. package/dist/types/excalidraw/charts/charts.helpers.d.ts +33 -0
  101. package/dist/types/excalidraw/charts/charts.line.d.ts +3 -0
  102. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  103. package/dist/types/excalidraw/charts/charts.radar.d.ts +3 -0
  104. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  105. package/dist/types/excalidraw/charts/index.d.ts +8 -0
  106. package/dist/types/excalidraw/clipboard.d.ts +2 -5
  107. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  108. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  109. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  110. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  111. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  112. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  113. package/dist/types/excalidraw/components/App.d.ts +372 -116
  114. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  115. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  116. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  117. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  118. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  119. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  120. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  121. package/dist/types/excalidraw/components/App.selectionTool.d.ts +93 -0
  122. package/dist/types/excalidraw/components/App.text.d.ts +146 -0
  123. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  124. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  125. package/dist/types/excalidraw/components/App.viewport.d.ts +123 -0
  126. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  127. package/dist/types/excalidraw/components/App.wrap.d.ts +31 -0
  128. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  129. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  130. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  131. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  132. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  133. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  134. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  135. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  136. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  137. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  138. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  139. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
  140. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
  141. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  142. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  143. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  144. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  145. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  146. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  147. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  148. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  149. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  150. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  151. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  152. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  153. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  154. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  155. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  156. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  157. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  158. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  159. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  160. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  161. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  162. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  163. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  164. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  165. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  166. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  167. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  168. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  169. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  170. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  171. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  172. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  173. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  174. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  175. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  176. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  177. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  178. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  179. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  180. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -2
  181. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  182. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  183. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  184. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  185. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  186. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  187. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  188. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  189. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +26 -0
  190. package/dist/types/excalidraw/components/Toast.d.ts +8 -4
  191. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  192. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  193. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  194. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  195. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  196. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  197. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  198. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  199. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  200. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  201. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  202. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  204. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  205. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  206. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
  207. package/dist/types/excalidraw/components/icons.d.ts +27 -10
  208. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -4
  209. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  210. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  211. package/dist/types/excalidraw/data/blob.d.ts +117 -70
  212. package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
  213. package/dist/types/excalidraw/data/index.d.ts +9 -10
  214. package/dist/types/excalidraw/data/json.d.ts +67 -35
  215. package/dist/types/excalidraw/data/library.d.ts +1 -1
  216. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  217. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  218. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  219. package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
  220. package/dist/types/excalidraw/history.d.ts +10 -4
  221. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  222. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  223. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  224. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  225. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  226. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  227. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  228. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  229. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  230. package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
  231. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  232. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  233. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  234. package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
  235. package/dist/types/excalidraw/scene/export.d.ts +344 -21
  236. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  237. package/dist/types/excalidraw/scene/types.d.ts +30 -5
  238. package/dist/types/excalidraw/snapping.d.ts +7 -7
  239. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  240. package/dist/types/excalidraw/types.d.ts +670 -43
  241. package/dist/types/excalidraw/viewport.d.ts +302 -0
  242. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +17 -3
  243. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  244. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  245. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  246. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  247. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  248. package/dist/types/math/src/constants.d.ts +0 -1
  249. package/dist/types/math/src/curve.d.ts +23 -13
  250. package/dist/types/math/src/index.d.ts +1 -0
  251. package/dist/types/math/src/pca.d.ts +79 -0
  252. package/dist/types/math/src/point.d.ts +8 -2
  253. package/dist/types/math/src/polygon.d.ts +25 -1
  254. package/dist/types/math/src/segment.d.ts +6 -0
  255. package/dist/types/math/src/types.d.ts +25 -1
  256. package/dist/types/utils/src/index.d.ts +4 -3
  257. package/dist/types/utils/src/shape.d.ts +2 -2
  258. package/package.json +2 -2
  259. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  260. package/dist/types/excalidraw/charts.d.ts +0 -27
  261. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  262. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  263. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  264. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  265. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  266. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  267. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  268. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
  269. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  270. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  271. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
  272. package/dist/types/excalidraw/components/shapes.d.ts +0 -190
  273. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  274. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  275. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
  276. package/dist/types/excalidraw/cursor.d.ts +0 -5
  277. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  278. package/dist/types/excalidraw/index.d.ts +0 -47
  279. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  280. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  281. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  282. package/dist/types/utils/src/bbox.d.ts +0 -9
  283. package/dist/types/utils/src/export.d.ts +0 -35
  284. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,21 +1,21 @@
1
- import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
2
- import type { AppClassProperties, AppState } from "../types";
1
+ import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
2
+ import type { AppClassProperties, UIAppState } from "../types";
3
3
  export declare const actionGroup: {
4
4
  name: "group";
5
5
  label: string;
6
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
6
+ icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
7
7
  trackEvent: {
8
8
  category: "element";
9
9
  };
10
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
11
- appState: Readonly<AppState>;
10
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => false | {
11
+ appState: Readonly<import("../types").AppState>;
12
12
  elements: readonly OrderedExcalidrawElement[];
13
13
  captureUpdate: "EVENTUALLY";
14
14
  } | {
15
15
  appState: {
16
- editingGroupId: AppState["editingGroupId"];
17
- selectedElementIds: AppState["selectedElementIds"];
18
- selectedGroupIds: AppState["selectedGroupIds"];
16
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
17
+ editingGroupId: import("../types").AppState["editingGroupId"];
18
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
19
19
  contextMenu: {
20
20
  items: import("../components/ContextMenu").ContextMenuItems;
21
21
  top: number;
@@ -33,8 +33,26 @@ export declare const actionGroup: {
33
33
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
34
34
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
35
35
  isBindingEnabled: boolean;
36
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
36
+ boxSelectionMode: import("../types").BoxSelectionMode;
37
+ bindingPreference: "enabled" | "disabled";
38
+ isMidpointSnappingEnabled: boolean;
39
+ showHints: boolean;
40
+ inputDevice: import("../types").InputDevice;
41
+ suggestedBinding: {
42
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
43
+ midPoint?: import("@excalidraw/math").GlobalPoint;
44
+ } | null;
45
+ textToolHover: {
46
+ type: "text";
47
+ elementId: ExcalidrawElement["id"];
48
+ } | {
49
+ type: "container";
50
+ elementId: ExcalidrawElement["id"];
51
+ } | {
52
+ type: "arrow";
53
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
54
+ anchor: "start" | "end" | "label";
55
+ } | null;
38
56
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
39
57
  frameRendering: {
40
58
  enabled: boolean;
@@ -42,9 +60,9 @@ export declare const actionGroup: {
42
60
  outline: boolean;
43
61
  clip: boolean;
44
62
  };
45
- editingFrame: string | null;
46
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
47
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
63
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
64
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
65
+ editingTextElement: ExcalidrawTextElement | null;
48
66
  activeTool: {
49
67
  lastActiveTool: import("../types").ActiveTool | null;
50
68
  locked: boolean;
@@ -61,11 +79,14 @@ export declare const actionGroup: {
61
79
  exportWithDarkMode: boolean;
62
80
  exportScale: number;
63
81
  currentItemStrokeColor: string;
82
+ currentItemStickynoteStrokeColor: string;
83
+ currentItemStickynoteBackgroundColor: string;
64
84
  currentItemBackgroundColor: string;
65
85
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
66
- currentItemStrokeWidth: number;
86
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
67
87
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
68
88
  currentItemRoughness: number;
89
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
69
90
  currentItemOpacity: number;
70
91
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
71
92
  currentItemFontSize: number;
@@ -78,6 +99,7 @@ export declare const actionGroup: {
78
99
  viewBackgroundColor: string;
79
100
  scrollX: number;
80
101
  scrollY: number;
102
+ scrollConstraints: import("../types").ScrollConstraints | null;
81
103
  cursorButton: "up" | "down";
82
104
  scrolledOutside: boolean;
83
105
  name: string | null;
@@ -102,6 +124,10 @@ export declare const actionGroup: {
102
124
  } | {
103
125
  name: "elementLinkSelector";
104
126
  sourceElementId: ExcalidrawElement["id"];
127
+ } | {
128
+ name: "charts";
129
+ data: import("../charts").Spreadsheet;
130
+ rawText: string;
105
131
  };
106
132
  defaultSidebarDockedPreference: boolean;
107
133
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -114,7 +140,7 @@ export declare const actionGroup: {
114
140
  selectedElementsAreBeingDragged: boolean;
115
141
  shouldCacheIgnoreZoom: boolean;
116
142
  toast: {
117
- message: string;
143
+ message: React.ReactNode;
118
144
  closable?: boolean;
119
145
  duration?: number;
120
146
  } | null;
@@ -128,20 +154,12 @@ export declare const actionGroup: {
128
154
  height: number;
129
155
  offsetTop: number;
130
156
  offsetLeft: number;
131
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
157
+ fileHandle: FileSystemFileHandle | null;
132
158
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
133
159
  stats: {
134
160
  open: boolean;
135
161
  panels: number;
136
162
  };
137
- currentChartType: import("@excalidraw/element/types").ChartType;
138
- pasteDialog: {
139
- shown: false;
140
- data: null;
141
- } | {
142
- shown: true;
143
- data: import("../charts").Spreadsheet;
144
- };
145
163
  showHyperlinkPopup: false | "info" | "editor";
146
164
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
147
165
  snapLines: readonly import("../snapping").SnapLine[];
@@ -150,8 +168,6 @@ export declare const actionGroup: {
150
168
  y: number;
151
169
  } | null;
152
170
  objectsSnapModeEnabled: boolean;
153
- userToFollow: import("../types").UserToFollow | null;
154
- followedBy: Set<import("../types").SocketId>;
155
171
  isCropping: boolean;
156
172
  croppingElementId: ExcalidrawElement["id"] | null;
157
173
  searchMatches: Readonly<{
@@ -163,11 +179,19 @@ export declare const actionGroup: {
163
179
  [groupId: string]: true;
164
180
  };
165
181
  bindMode: import("@excalidraw/element/types").BindMode;
182
+ colorTopPicks: {
183
+ elementStroke: readonly string[] | null;
184
+ elementBackground: readonly string[] | null;
185
+ bucketFill: readonly string[] | null;
186
+ stickyNoteStroke: readonly string[] | null;
187
+ stickyNoteBackground: readonly string[] | null;
188
+ };
189
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
166
190
  };
167
191
  elements: OrderedExcalidrawElement[];
168
192
  captureUpdate: "IMMEDIATELY";
169
193
  };
170
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
194
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
171
195
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
172
196
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
173
197
  } & {
@@ -176,19 +200,19 @@ export declare const actionGroup: {
176
200
  export declare const actionUngroup: {
177
201
  name: "ungroup";
178
202
  label: string;
179
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
203
+ icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
180
204
  trackEvent: {
181
205
  category: "element";
182
206
  };
183
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
184
- appState: Readonly<AppState>;
207
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
208
+ appState: Readonly<import("../types").AppState>;
185
209
  elements: readonly OrderedExcalidrawElement[];
186
210
  captureUpdate: "EVENTUALLY";
187
211
  } | {
188
212
  appState: {
189
- editingGroupId: AppState["editingGroupId"];
190
- selectedElementIds: AppState["selectedElementIds"];
191
- selectedGroupIds: AppState["selectedGroupIds"];
213
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
214
+ editingGroupId: import("../types").AppState["editingGroupId"];
215
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
192
216
  contextMenu: {
193
217
  items: import("../components/ContextMenu").ContextMenuItems;
194
218
  top: number;
@@ -206,8 +230,26 @@ export declare const actionUngroup: {
206
230
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
207
231
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
208
232
  isBindingEnabled: boolean;
209
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
210
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
233
+ boxSelectionMode: import("../types").BoxSelectionMode;
234
+ bindingPreference: "enabled" | "disabled";
235
+ isMidpointSnappingEnabled: boolean;
236
+ showHints: boolean;
237
+ inputDevice: import("../types").InputDevice;
238
+ suggestedBinding: {
239
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
240
+ midPoint?: import("@excalidraw/math").GlobalPoint;
241
+ } | null;
242
+ textToolHover: {
243
+ type: "text";
244
+ elementId: ExcalidrawElement["id"];
245
+ } | {
246
+ type: "container";
247
+ elementId: ExcalidrawElement["id"];
248
+ } | {
249
+ type: "arrow";
250
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
251
+ anchor: "start" | "end" | "label";
252
+ } | null;
211
253
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
212
254
  frameRendering: {
213
255
  enabled: boolean;
@@ -215,9 +257,9 @@ export declare const actionUngroup: {
215
257
  outline: boolean;
216
258
  clip: boolean;
217
259
  };
218
- editingFrame: string | null;
219
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
220
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
260
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
261
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
262
+ editingTextElement: ExcalidrawTextElement | null;
221
263
  activeTool: {
222
264
  lastActiveTool: import("../types").ActiveTool | null;
223
265
  locked: boolean;
@@ -234,11 +276,14 @@ export declare const actionUngroup: {
234
276
  exportWithDarkMode: boolean;
235
277
  exportScale: number;
236
278
  currentItemStrokeColor: string;
279
+ currentItemStickynoteStrokeColor: string;
280
+ currentItemStickynoteBackgroundColor: string;
237
281
  currentItemBackgroundColor: string;
238
282
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
239
- currentItemStrokeWidth: number;
283
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
240
284
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
241
285
  currentItemRoughness: number;
286
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
242
287
  currentItemOpacity: number;
243
288
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
244
289
  currentItemFontSize: number;
@@ -251,6 +296,7 @@ export declare const actionUngroup: {
251
296
  viewBackgroundColor: string;
252
297
  scrollX: number;
253
298
  scrollY: number;
299
+ scrollConstraints: import("../types").ScrollConstraints | null;
254
300
  cursorButton: "up" | "down";
255
301
  scrolledOutside: boolean;
256
302
  name: string | null;
@@ -275,6 +321,10 @@ export declare const actionUngroup: {
275
321
  } | {
276
322
  name: "elementLinkSelector";
277
323
  sourceElementId: ExcalidrawElement["id"];
324
+ } | {
325
+ name: "charts";
326
+ data: import("../charts").Spreadsheet;
327
+ rawText: string;
278
328
  };
279
329
  defaultSidebarDockedPreference: boolean;
280
330
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -287,7 +337,7 @@ export declare const actionUngroup: {
287
337
  selectedElementsAreBeingDragged: boolean;
288
338
  shouldCacheIgnoreZoom: boolean;
289
339
  toast: {
290
- message: string;
340
+ message: React.ReactNode;
291
341
  closable?: boolean;
292
342
  duration?: number;
293
343
  } | null;
@@ -301,20 +351,12 @@ export declare const actionUngroup: {
301
351
  height: number;
302
352
  offsetTop: number;
303
353
  offsetLeft: number;
304
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
354
+ fileHandle: FileSystemFileHandle | null;
305
355
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
306
356
  stats: {
307
357
  open: boolean;
308
358
  panels: number;
309
359
  };
310
- currentChartType: import("@excalidraw/element/types").ChartType;
311
- pasteDialog: {
312
- shown: false;
313
- data: null;
314
- } | {
315
- shown: true;
316
- data: import("../charts").Spreadsheet;
317
- };
318
360
  showHyperlinkPopup: false | "info" | "editor";
319
361
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
320
362
  snapLines: readonly import("../snapping").SnapLine[];
@@ -323,8 +365,6 @@ export declare const actionUngroup: {
323
365
  y: number;
324
366
  } | null;
325
367
  objectsSnapModeEnabled: boolean;
326
- userToFollow: import("../types").UserToFollow | null;
327
- followedBy: Set<import("../types").SocketId>;
328
368
  isCropping: boolean;
329
369
  croppingElementId: ExcalidrawElement["id"] | null;
330
370
  searchMatches: Readonly<{
@@ -336,12 +376,20 @@ export declare const actionUngroup: {
336
376
  [groupId: string]: true;
337
377
  };
338
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;
339
387
  };
340
388
  elements: OrderedExcalidrawElement[];
341
389
  captureUpdate: "IMMEDIATELY";
342
390
  };
343
391
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
344
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
392
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
345
393
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
346
394
  } & {
347
395
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -2,7 +2,7 @@ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
2
2
  export declare const actionToggleLinearEditor: {
3
3
  name: "toggleLinearEditor";
4
4
  category: string;
5
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
5
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
6
6
  keywords: string[];
7
7
  trackEvent: {
8
8
  category: "element";
@@ -27,6 +27,7 @@ export declare const actionToggleLinearEditor: {
27
27
  };
28
28
  arrowStartIsInside: boolean;
29
29
  altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
30
+ arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
30
31
  }>;
31
32
  isDragging: boolean;
32
33
  lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
@@ -60,8 +61,26 @@ export declare const actionToggleLinearEditor: {
60
61
  multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
61
62
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
62
63
  isBindingEnabled: boolean;
63
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
64
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
64
+ boxSelectionMode: import("../types").BoxSelectionMode;
65
+ bindingPreference: "enabled" | "disabled";
66
+ isMidpointSnappingEnabled: boolean;
67
+ showHints: boolean;
68
+ inputDevice: import("../types").InputDevice;
69
+ suggestedBinding: {
70
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
71
+ midPoint?: import("@excalidraw/math").GlobalPoint;
72
+ } | null;
73
+ textToolHover: {
74
+ type: "text";
75
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
76
+ } | {
77
+ type: "container";
78
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
79
+ } | {
80
+ type: "arrow";
81
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
82
+ anchor: "start" | "end" | "label";
83
+ } | null;
65
84
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
66
85
  frameRendering: {
67
86
  enabled: boolean;
@@ -69,9 +88,9 @@ export declare const actionToggleLinearEditor: {
69
88
  outline: boolean;
70
89
  clip: boolean;
71
90
  };
72
- editingFrame: string | null;
73
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
74
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
91
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
92
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
93
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
75
94
  activeTool: {
76
95
  lastActiveTool: import("../types").ActiveTool | null;
77
96
  locked: boolean;
@@ -88,11 +107,14 @@ export declare const actionToggleLinearEditor: {
88
107
  exportWithDarkMode: boolean;
89
108
  exportScale: number;
90
109
  currentItemStrokeColor: string;
110
+ currentItemStickynoteStrokeColor: string;
111
+ currentItemStickynoteBackgroundColor: string;
91
112
  currentItemBackgroundColor: string;
92
113
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
93
- currentItemStrokeWidth: number;
114
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
94
115
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
95
116
  currentItemRoughness: number;
117
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
96
118
  currentItemOpacity: number;
97
119
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
98
120
  currentItemFontSize: number;
@@ -105,6 +127,7 @@ export declare const actionToggleLinearEditor: {
105
127
  viewBackgroundColor: string;
106
128
  scrollX: number;
107
129
  scrollY: number;
130
+ scrollConstraints: import("../types").ScrollConstraints | null;
108
131
  cursorButton: "up" | "down";
109
132
  scrolledOutside: boolean;
110
133
  name: string | null;
@@ -129,6 +152,10 @@ export declare const actionToggleLinearEditor: {
129
152
  } | {
130
153
  name: "elementLinkSelector";
131
154
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
155
+ } | {
156
+ name: "charts";
157
+ data: import("../charts").Spreadsheet;
158
+ rawText: string;
132
159
  };
133
160
  defaultSidebarDockedPreference: boolean;
134
161
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -144,7 +171,7 @@ export declare const actionToggleLinearEditor: {
144
171
  selectedElementsAreBeingDragged: boolean;
145
172
  shouldCacheIgnoreZoom: boolean;
146
173
  toast: {
147
- message: string;
174
+ message: React.ReactNode;
148
175
  closable?: boolean;
149
176
  duration?: number;
150
177
  } | null;
@@ -162,20 +189,12 @@ export declare const actionToggleLinearEditor: {
162
189
  height: number;
163
190
  offsetTop: number;
164
191
  offsetLeft: number;
165
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
192
+ fileHandle: FileSystemFileHandle | null;
166
193
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
167
194
  stats: {
168
195
  open: boolean;
169
196
  panels: number;
170
197
  };
171
- currentChartType: import("@excalidraw/element/types").ChartType;
172
- pasteDialog: {
173
- shown: false;
174
- data: null;
175
- } | {
176
- shown: true;
177
- data: import("../charts").Spreadsheet;
178
- };
179
198
  showHyperlinkPopup: false | "info" | "editor";
180
199
  snapLines: readonly import("../snapping").SnapLine[];
181
200
  originSnapOffset: {
@@ -183,8 +202,6 @@ export declare const actionToggleLinearEditor: {
183
202
  y: number;
184
203
  } | null;
185
204
  objectsSnapModeEnabled: boolean;
186
- userToFollow: import("../types").UserToFollow | null;
187
- followedBy: Set<import("../types").SocketId>;
188
205
  isCropping: boolean;
189
206
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
190
207
  searchMatches: Readonly<{
@@ -196,6 +213,14 @@ export declare const actionToggleLinearEditor: {
196
213
  [groupId: string]: true;
197
214
  };
198
215
  bindMode: import("@excalidraw/element/types").BindMode;
216
+ colorTopPicks: {
217
+ elementStroke: readonly string[] | null;
218
+ elementBackground: readonly string[] | null;
219
+ bucketFill: readonly string[] | null;
220
+ stickyNoteStroke: readonly string[] | null;
221
+ stickyNoteBackground: readonly string[] | null;
222
+ };
223
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
199
224
  };
200
225
  captureUpdate: "IMMEDIATELY";
201
226
  };
@@ -208,7 +233,7 @@ export declare const actionTogglePolygon: {
208
233
  category: string;
209
234
  icon: import("react/jsx-runtime").JSX.Element;
210
235
  keywords: string[];
211
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
236
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
212
237
  trackEvent: {
213
238
  category: "element";
214
239
  };
@@ -241,6 +266,7 @@ export declare const actionTogglePolygon: {
241
266
  frameId: string | null;
242
267
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
243
268
  updated: number;
269
+ created: number | null;
244
270
  link: string | null;
245
271
  locked: boolean;
246
272
  customData?: Record<string, any>;
@@ -280,6 +306,7 @@ export declare const actionTogglePolygon: {
280
306
  frameId: string | null;
281
307
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
282
308
  updated: number;
309
+ created: number | null;
283
310
  link: string | null;
284
311
  locked: boolean;
285
312
  customData?: Record<string, any>;
@@ -314,6 +341,7 @@ export declare const actionTogglePolygon: {
314
341
  frameId: string | null;
315
342
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
316
343
  updated: number;
344
+ created: number | null;
317
345
  link: string | null;
318
346
  locked: boolean;
319
347
  customData?: Record<string, any>;
@@ -348,6 +376,43 @@ export declare const actionTogglePolygon: {
348
376
  frameId: string | null;
349
377
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
350
378
  updated: number;
379
+ created: number | null;
380
+ link: string | null;
381
+ locked: boolean;
382
+ customData?: Record<string, any>;
383
+ }> & Readonly<{
384
+ type: "stickynote";
385
+ baseHeight: number;
386
+ }> & {
387
+ index: import("@excalidraw/element/types").FractionalIndex;
388
+ }) | (Readonly<{
389
+ id: string;
390
+ x: number;
391
+ y: number;
392
+ strokeColor: string;
393
+ backgroundColor: string;
394
+ fillStyle: import("@excalidraw/element/types").FillStyle;
395
+ strokeWidth: number;
396
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
397
+ roundness: null | {
398
+ type: import("@excalidraw/element/types").RoundnessType;
399
+ value?: number;
400
+ };
401
+ roughness: number;
402
+ opacity: number;
403
+ width: number;
404
+ height: number;
405
+ angle: import("@excalidraw/math").Radians;
406
+ seed: number;
407
+ version: number;
408
+ versionNonce: number;
409
+ index: import("@excalidraw/element/types").FractionalIndex | null;
410
+ isDeleted: boolean;
411
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
412
+ frameId: string | null;
413
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
414
+ updated: number;
415
+ created: number | null;
351
416
  link: string | null;
352
417
  locked: boolean;
353
418
  customData?: Record<string, any>;
@@ -382,6 +447,7 @@ export declare const actionTogglePolygon: {
382
447
  frameId: string | null;
383
448
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
384
449
  updated: number;
450
+ created: number | null;
385
451
  link: string | null;
386
452
  locked: boolean;
387
453
  customData?: Record<string, any>;
@@ -416,6 +482,7 @@ export declare const actionTogglePolygon: {
416
482
  frameId: string | null;
417
483
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
418
484
  updated: number;
485
+ created: number | null;
419
486
  link: string | null;
420
487
  locked: boolean;
421
488
  customData?: Record<string, any>;
@@ -450,6 +517,7 @@ export declare const actionTogglePolygon: {
450
517
  frameId: string | null;
451
518
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
452
519
  updated: number;
520
+ created: number | null;
453
521
  link: string | null;
454
522
  locked: boolean;
455
523
  customData?: Record<string, any>;
@@ -487,6 +555,7 @@ export declare const actionTogglePolygon: {
487
555
  frameId: string | null;
488
556
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
489
557
  updated: number;
558
+ created: number | null;
490
559
  link: string | null;
491
560
  locked: boolean;
492
561
  customData?: Record<string, any>;
@@ -525,6 +594,7 @@ export declare const actionTogglePolygon: {
525
594
  frameId: string | null;
526
595
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
527
596
  updated: number;
597
+ created: number | null;
528
598
  link: string | null;
529
599
  locked: boolean;
530
600
  customData?: Record<string, any>;
@@ -560,6 +630,7 @@ export declare const actionTogglePolygon: {
560
630
  frameId: string | null;
561
631
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
562
632
  updated: number;
633
+ created: number | null;
563
634
  link: string | null;
564
635
  locked: boolean;
565
636
  customData?: Record<string, any>;
@@ -595,6 +666,7 @@ export declare const actionTogglePolygon: {
595
666
  frameId: string | null;
596
667
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
597
668
  updated: number;
669
+ created: number | null;
598
670
  link: string | null;
599
671
  locked: boolean;
600
672
  customData?: Record<string, any>;
@@ -602,15 +674,17 @@ export declare const actionTogglePolygon: {
602
674
  type: "text";
603
675
  fontSize: number;
604
676
  fontFamily: import("@excalidraw/element/types").FontFamilyValues;
677
+ baseFontSize: number | null;
605
678
  text: string;
606
679
  textAlign: import("@excalidraw/element/types").TextAlign;
607
680
  verticalAlign: import("@excalidraw/element/types").VerticalAlign;
608
- containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
681
+ containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
609
682
  originalText: string;
610
683
  autoResize: boolean;
611
684
  lineHeight: number & {
612
685
  _brand: "unitlessLineHeight";
613
686
  };
687
+ labelPosition?: number | null;
614
688
  }> & {
615
689
  index: import("@excalidraw/element/types").FractionalIndex;
616
690
  }) | (Readonly<{
@@ -640,6 +714,7 @@ export declare const actionTogglePolygon: {
640
714
  frameId: string | null;
641
715
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
642
716
  updated: number;
717
+ created: number | null;
643
718
  link: string | null;
644
719
  locked: boolean;
645
720
  customData?: Record<string, any>;
@@ -648,6 +723,7 @@ export declare const actionTogglePolygon: {
648
723
  points: readonly import("@excalidraw/math").LocalPoint[];
649
724
  pressures: readonly number[];
650
725
  simulatePressure: boolean;
726
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
651
727
  }> & {
652
728
  index: import("@excalidraw/element/types").FractionalIndex;
653
729
  }))[];