@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-8608d7b

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 (306) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/chunk-CP5DND7P.js +7 -0
  3. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  4. package/dist/dev/chunk-FB2NA5UG.js +4132 -0
  5. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  6. package/dist/dev/{chunk-LMHBUWQS.js → chunk-PWQMCSHA.js} +27 -8
  7. package/dist/dev/chunk-PWQMCSHA.js.map +7 -0
  8. package/dist/dev/chunk-YMRX7R7U.js +5671 -0
  9. package/dist/dev/chunk-YMRX7R7U.js.map +7 -0
  10. package/dist/dev/data/{image-V26YBSDB.js → image-L23D26XS.js} +3 -3
  11. package/dist/dev/index.css +3945 -3493
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +33090 -24527
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-V3NQTBPG.js} +2 -2
  16. package/dist/dev/subset-shared.chunk.js +2 -2
  17. package/dist/dev/subset-worker.chunk.js +2 -2
  18. package/dist/prod/chunk-A66AFZZU.js +7 -0
  19. package/dist/prod/chunk-GF46JCB3.js +12 -0
  20. package/dist/prod/chunk-HT4FKTIQ.js +4 -0
  21. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  22. package/dist/prod/data/image-NWF7UX55.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +27 -16
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-LQE6K457.js} +1 -1
  26. package/dist/prod/subset-shared.chunk.js +1 -1
  27. package/dist/prod/subset-worker.chunk.js +1 -1
  28. package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
  29. package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
  30. package/dist/types/{excalidraw → common/src}/constants.d.ts +52 -12
  31. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  32. package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +15 -5
  33. package/dist/types/common/src/index.d.ts +12 -0
  34. package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
  35. package/dist/types/common/src/promise-pool.d.ts +6 -0
  36. package/dist/types/{excalidraw → common/src}/utility-types.d.ts +5 -0
  37. package/dist/types/{excalidraw → common/src}/utils.d.ts +25 -11
  38. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +19 -18
  39. package/dist/types/element/src/align.d.ts +8 -0
  40. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +30 -19
  41. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +20 -7
  42. package/dist/types/element/src/collision.d.ts +32 -0
  43. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  44. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +1 -1
  45. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +78 -41
  46. package/dist/types/element/src/distance.d.ts +3 -0
  47. package/dist/types/{excalidraw → element/src}/distribute.d.ts +3 -2
  48. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +5 -4
  49. package/dist/types/element/src/duplicate.d.ts +63 -0
  50. package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +1 -1
  51. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  52. package/dist/types/element/src/embeddable.d.ts +10 -0
  53. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +4 -3
  54. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +12 -3
  55. package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
  56. package/dist/types/{excalidraw → element/src}/groups.d.ts +6 -5
  57. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  58. package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  59. package/dist/types/element/src/index.d.ts +58 -0
  60. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +24 -37
  61. package/dist/types/element/src/mutateElement.d.ts +21 -0
  62. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -43
  63. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  64. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +6 -3
  65. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +7 -6
  66. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  67. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -7
  68. package/dist/types/element/src/shape.d.ts +42 -0
  69. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  70. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +3 -3
  71. package/dist/types/element/src/store.d.ts +237 -0
  72. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
  73. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  74. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +21 -3
  75. package/dist/types/{excalidraw/element → element/src}/types.d.ts +17 -4
  76. package/dist/types/element/src/utils.d.ts +31 -0
  77. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  78. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +115 -109
  79. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  80. package/dist/types/excalidraw/actions/actionBoundText.d.ts +82 -78
  81. package/dist/types/excalidraw/actions/actionCanvas.d.ts +705 -502
  82. package/dist/types/excalidraw/actions/actionClipboard.d.ts +242 -228
  83. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +40 -38
  84. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +120 -113
  85. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  86. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  87. package/dist/types/excalidraw/actions/actionElementLink.d.ts +43 -41
  88. package/dist/types/excalidraw/actions/actionElementLock.d.ts +94 -92
  89. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +40 -48
  90. package/dist/types/excalidraw/actions/actionExport.d.ts +405 -387
  91. package/dist/types/excalidraw/actions/actionFinalize.d.ts +112 -67
  92. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  93. package/dist/types/excalidraw/actions/actionFrame.d.ts +276 -268
  94. package/dist/types/excalidraw/actions/actionGroup.d.ts +79 -75
  95. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  96. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +568 -42
  97. package/dist/types/excalidraw/actions/actionLink.d.ts +41 -39
  98. package/dist/types/excalidraw/actions/actionMenu.d.ts +116 -110
  99. package/dist/types/excalidraw/actions/actionNavigate.d.ts +77 -73
  100. package/dist/types/excalidraw/actions/actionProperties.d.ts +571 -524
  101. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +41 -39
  102. package/dist/types/excalidraw/actions/actionStyles.d.ts +42 -40
  103. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  104. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +40 -38
  105. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +40 -38
  106. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +39 -209
  107. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  108. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +39 -38
  109. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +40 -39
  110. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +40 -39
  111. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  112. package/dist/types/excalidraw/actions/index.d.ts +2 -1
  113. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  114. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  115. package/dist/types/excalidraw/actions/types.d.ts +6 -5
  116. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  117. package/dist/types/excalidraw/appState.d.ts +42 -28
  118. package/dist/types/excalidraw/charts.d.ts +1 -1
  119. package/dist/types/excalidraw/clipboard.d.ts +71 -8
  120. package/dist/types/excalidraw/components/Actions.d.ts +19 -9
  121. package/dist/types/excalidraw/components/App.d.ts +58 -34
  122. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  123. package/dist/types/excalidraw/components/ButtonIcon.d.ts +2 -1
  124. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  125. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +10 -5
  126. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  128. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +6 -5
  129. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +4 -4
  130. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -3
  131. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  132. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +4 -4
  133. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  134. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +2 -1
  135. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  136. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  137. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  138. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  139. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  140. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  141. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  142. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  143. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  144. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  145. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  146. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  147. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  148. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +3 -2
  149. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  150. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +4 -2
  151. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  152. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  153. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  154. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  155. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  156. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  157. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  158. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  159. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -4
  160. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  161. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  162. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +4 -4
  163. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  164. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  165. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  166. package/dist/types/excalidraw/components/MobileMenu.d.ts +5 -7
  167. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  168. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  169. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  170. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  171. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  172. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  173. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  174. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  175. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  176. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  177. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  178. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  179. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  180. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  181. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +14 -4
  182. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  183. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  185. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  186. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  187. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  188. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  189. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  190. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  191. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  192. package/dist/types/excalidraw/components/TextField.d.ts +2 -1
  193. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  194. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  195. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  196. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  197. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  198. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  199. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  200. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  201. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  202. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +5 -3
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  204. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  205. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  206. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  207. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
  208. package/dist/types/excalidraw/components/icons.d.ts +10 -1
  209. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  210. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  211. package/dist/types/excalidraw/components/shapes.d.ts +190 -0
  212. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  213. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  214. package/dist/types/excalidraw/data/blob.d.ts +7 -11
  215. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  216. package/dist/types/excalidraw/data/index.d.ts +2 -2
  217. package/dist/types/excalidraw/data/json.d.ts +1 -1
  218. package/dist/types/excalidraw/data/library.d.ts +3 -3
  219. package/dist/types/excalidraw/data/reconcile.d.ts +3 -2
  220. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  221. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  222. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  223. package/dist/types/excalidraw/data/types.d.ts +6 -3
  224. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  225. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  226. package/dist/types/excalidraw/errors.d.ts +0 -3
  227. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  228. package/dist/types/excalidraw/history.d.ts +31 -23
  229. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  230. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  231. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  232. package/dist/types/excalidraw/i18n.d.ts +1 -1
  233. package/dist/types/excalidraw/index.d.ts +18 -16
  234. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  235. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  236. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  237. package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
  238. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  239. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  240. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -4
  241. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  242. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  243. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  244. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  245. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  246. package/dist/types/excalidraw/snapping.d.ts +5 -6
  247. package/dist/types/excalidraw/types.d.ts +55 -26
  248. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  249. package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
  250. package/dist/types/math/src/constants.d.ts +3 -0
  251. package/dist/types/math/src/curve.d.ts +74 -0
  252. package/dist/types/math/{index.d.ts → src/index.d.ts} +1 -0
  253. package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
  254. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  255. package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +2 -0
  256. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +2 -1
  257. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  258. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +8 -2
  259. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  260. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  261. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  262. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  263. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  264. package/history.ts +148 -109
  265. package/package.json +26 -11
  266. package/dist/dev/chunk-3SN6HYVK.js +0 -25695
  267. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  268. package/dist/dev/chunk-53KHN5WM.js +0 -7
  269. package/dist/dev/chunk-53KHN5WM.js.map +0 -7
  270. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  271. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  272. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  273. package/dist/prod/chunk-36CXSE6H.js +0 -34
  274. package/dist/prod/chunk-6U3AYISY.js +0 -12
  275. package/dist/prod/chunk-EIO257PC.js +0 -86
  276. package/dist/prod/chunk-G5N3DNGT.js +0 -7
  277. package/dist/prod/data/image-N4WCURRR.js +0 -1
  278. package/dist/types/excalidraw/align.d.ts +0 -7
  279. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  280. package/dist/types/excalidraw/element/collision.d.ts +0 -26
  281. package/dist/types/excalidraw/element/distance.d.ts +0 -3
  282. package/dist/types/excalidraw/element/index.d.ts +0 -26
  283. package/dist/types/excalidraw/element/mutateElement.d.ts +0 -13
  284. package/dist/types/excalidraw/element/utils.d.ts +0 -21
  285. package/dist/types/excalidraw/scene/Shape.d.ts +0 -17
  286. package/dist/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  287. package/dist/types/excalidraw/shapes.d.ts +0 -85
  288. package/dist/types/excalidraw/store.d.ts +0 -129
  289. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  290. package/dist/types/math/curve.d.ts +0 -40
  291. package/dist/types/utils/collision.d.ts +0 -9
  292. /package/dist/dev/data/{image-V26YBSDB.js.map → image-L23D26XS.js.map} +0 -0
  293. /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-V3NQTBPG.js.map} +0 -0
  294. /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  295. /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  296. /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  297. /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  298. /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  299. /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  300. /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  301. /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  302. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  303. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  304. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  305. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  306. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- import type { Theme } from "../element/types";
2
+ import type { Theme } from "@excalidraw/element/types";
3
3
  import "../components/ToolIcon.scss";
4
4
  export declare const actionChangeProjectName: {
5
5
  name: "changeProjectName";
6
6
  label: string;
7
7
  trackEvent: false;
8
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
8
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
9
9
  appState: {
10
10
  name: any;
11
11
  contextMenu: {
@@ -17,17 +17,17 @@ export declare const actionChangeProjectName: {
17
17
  isLoading: boolean;
18
18
  errorMessage: import("react").ReactNode;
19
19
  activeEmbeddable: {
20
- element: import("../element/types").NonDeletedExcalidrawElement;
21
- state: "hover" | "active";
20
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
+ state: "active" | "hover";
22
22
  } | null;
23
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
23
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
27
  isBindingEnabled: boolean;
28
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("../element/binding").SuggestedBinding[];
30
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
28
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
31
  frameRendering: {
32
32
  enabled: boolean;
33
33
  name: boolean;
@@ -35,13 +35,17 @@ export declare const actionChangeProjectName: {
35
35
  clip: boolean;
36
36
  };
37
37
  editingFrame: string | null;
38
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
38
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
40
  activeTool: {
42
41
  lastActiveTool: import("../types").ActiveTool | null;
43
42
  locked: boolean;
43
+ fromSelection: boolean;
44
44
  } & import("../types").ActiveTool;
45
+ preferredSelectionTool: {
46
+ type: "selection" | "lasso";
47
+ initialized: boolean;
48
+ };
45
49
  penMode: boolean;
46
50
  penDetected: boolean;
47
51
  exportBackground: boolean;
@@ -50,18 +54,18 @@ export declare const actionChangeProjectName: {
50
54
  exportScale: number;
51
55
  currentItemStrokeColor: string;
52
56
  currentItemBackgroundColor: string;
53
- currentItemFillStyle: import("../element/types").FillStyle;
57
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
54
58
  currentItemStrokeWidth: number;
55
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
59
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
56
60
  currentItemRoughness: number;
57
61
  currentItemOpacity: number;
58
62
  currentItemFontFamily: number;
59
63
  currentItemFontSize: number;
60
64
  currentItemTextAlign: string;
61
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
62
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
67
  currentHoveredFontFamily: number | null;
64
- currentItemRoundness: import("../element/types").StrokeRoundness;
68
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
65
69
  currentItemArrowType: "round" | "sharp" | "elbow";
66
70
  viewBackgroundColor: string;
67
71
  scrollX: number;
@@ -74,7 +78,7 @@ export declare const actionChangeProjectName: {
74
78
  value: import("../types").NormalizedZoomValue;
75
79
  }>;
76
80
  openMenu: "canvas" | "shape" | null;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
78
82
  openSidebar: {
79
83
  name: string;
80
84
  tab?: string | undefined;
@@ -83,7 +87,7 @@ export declare const actionChangeProjectName: {
83
87
  name: "imageExport" | "help" | "jsonExport";
84
88
  } | {
85
89
  name: "ttd";
86
- tab: "text-to-diagram" | "mermaid";
90
+ tab: "mermaid" | "text-to-diagram";
87
91
  } | {
88
92
  name: "commandPalette";
89
93
  } | {
@@ -91,7 +95,7 @@ export declare const actionChangeProjectName: {
91
95
  sourceElementId: string;
92
96
  } | null;
93
97
  defaultSidebarDockedPreference: boolean;
94
- lastPointerDownWith: import("../element/types").PointerType;
98
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
95
99
  selectedElementIds: Readonly<{
96
100
  [id: string]: true;
97
101
  }>;
@@ -130,7 +134,7 @@ export declare const actionChangeProjectName: {
130
134
  [id: string]: true;
131
135
  }> | undefined;
132
136
  username?: string | null | undefined;
133
- userState?: import("../constants").UserIdleState | undefined;
137
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
134
138
  color?: {
135
139
  background: string;
136
140
  stroke: string;
@@ -147,7 +151,7 @@ export declare const actionChangeProjectName: {
147
151
  open: boolean;
148
152
  panels: number;
149
153
  };
150
- currentChartType: import("../element/types").ChartType;
154
+ currentChartType: import("@excalidraw/element/types").ChartType;
151
155
  pasteDialog: {
152
156
  shown: false;
153
157
  data: null;
@@ -155,9 +159,8 @@ export declare const actionChangeProjectName: {
155
159
  shown: true;
156
160
  data: import("../charts").Spreadsheet;
157
161
  };
158
- pendingImageElementId: string | null;
159
- showHyperlinkPopup: false | "info" | "editor";
160
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
162
+ showHyperlinkPopup: false | "editor" | "info";
163
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
164
  snapLines: readonly import("../snapping").SnapLine[];
162
165
  originSnapOffset: {
163
166
  x: number;
@@ -168,16 +171,15 @@ export declare const actionChangeProjectName: {
168
171
  followedBy: Set<import("../types").SocketId>;
169
172
  isCropping: boolean;
170
173
  croppingElementId: string | null;
171
- searchMatches: readonly {
172
- id: string;
173
- focus: boolean;
174
- matchedLines: {
175
- offsetX: number;
176
- offsetY: number;
177
- width: number;
178
- height: number;
179
- }[];
180
- }[];
174
+ searchMatches: Readonly<{
175
+ focusedId: string | null;
176
+ matches: readonly import("../types").SearchMatch[];
177
+ }> | null;
178
+ activeLockedId: string | null;
179
+ lockedMultiSelections: {
180
+ [groupId: string]: true;
181
+ };
182
+ stylesPanelMode: "compact" | "full" | "mobile";
181
183
  };
182
184
  captureUpdate: "EVENTUALLY";
183
185
  };
@@ -192,7 +194,7 @@ export declare const actionChangeExportScale: {
192
194
  category: "export";
193
195
  action: string;
194
196
  };
195
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
197
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
196
198
  appState: {
197
199
  exportScale: any;
198
200
  contextMenu: {
@@ -204,17 +206,17 @@ export declare const actionChangeExportScale: {
204
206
  isLoading: boolean;
205
207
  errorMessage: import("react").ReactNode;
206
208
  activeEmbeddable: {
207
- element: import("../element/types").NonDeletedExcalidrawElement;
208
- state: "hover" | "active";
209
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
210
+ state: "active" | "hover";
209
211
  } | null;
210
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
211
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
212
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
213
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
212
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
213
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
215
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
216
  isBindingEnabled: boolean;
215
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
216
- suggestedBindings: import("../element/binding").SuggestedBinding[];
217
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
217
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
218
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
219
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
218
220
  frameRendering: {
219
221
  enabled: boolean;
220
222
  name: boolean;
@@ -222,13 +224,17 @@ export declare const actionChangeExportScale: {
222
224
  clip: boolean;
223
225
  };
224
226
  editingFrame: string | null;
225
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
226
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
227
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
227
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
228
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
228
229
  activeTool: {
229
230
  lastActiveTool: import("../types").ActiveTool | null;
230
231
  locked: boolean;
232
+ fromSelection: boolean;
231
233
  } & import("../types").ActiveTool;
234
+ preferredSelectionTool: {
235
+ type: "selection" | "lasso";
236
+ initialized: boolean;
237
+ };
232
238
  penMode: boolean;
233
239
  penDetected: boolean;
234
240
  exportBackground: boolean;
@@ -236,18 +242,18 @@ export declare const actionChangeExportScale: {
236
242
  exportWithDarkMode: boolean;
237
243
  currentItemStrokeColor: string;
238
244
  currentItemBackgroundColor: string;
239
- currentItemFillStyle: import("../element/types").FillStyle;
245
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
240
246
  currentItemStrokeWidth: number;
241
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
247
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
242
248
  currentItemRoughness: number;
243
249
  currentItemOpacity: number;
244
250
  currentItemFontFamily: number;
245
251
  currentItemFontSize: number;
246
252
  currentItemTextAlign: string;
247
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
248
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
253
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
254
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
249
255
  currentHoveredFontFamily: number | null;
250
- currentItemRoundness: import("../element/types").StrokeRoundness;
256
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
251
257
  currentItemArrowType: "round" | "sharp" | "elbow";
252
258
  viewBackgroundColor: string;
253
259
  scrollX: number;
@@ -261,7 +267,7 @@ export declare const actionChangeExportScale: {
261
267
  value: import("../types").NormalizedZoomValue;
262
268
  }>;
263
269
  openMenu: "canvas" | "shape" | null;
264
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
270
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
265
271
  openSidebar: {
266
272
  name: string;
267
273
  tab?: string | undefined;
@@ -270,7 +276,7 @@ export declare const actionChangeExportScale: {
270
276
  name: "imageExport" | "help" | "jsonExport";
271
277
  } | {
272
278
  name: "ttd";
273
- tab: "text-to-diagram" | "mermaid";
279
+ tab: "mermaid" | "text-to-diagram";
274
280
  } | {
275
281
  name: "commandPalette";
276
282
  } | {
@@ -278,7 +284,7 @@ export declare const actionChangeExportScale: {
278
284
  sourceElementId: string;
279
285
  } | null;
280
286
  defaultSidebarDockedPreference: boolean;
281
- lastPointerDownWith: import("../element/types").PointerType;
287
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
282
288
  selectedElementIds: Readonly<{
283
289
  [id: string]: true;
284
290
  }>;
@@ -317,7 +323,7 @@ export declare const actionChangeExportScale: {
317
323
  [id: string]: true;
318
324
  }> | undefined;
319
325
  username?: string | null | undefined;
320
- userState?: import("../constants").UserIdleState | undefined;
326
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
321
327
  color?: {
322
328
  background: string;
323
329
  stroke: string;
@@ -334,7 +340,7 @@ export declare const actionChangeExportScale: {
334
340
  open: boolean;
335
341
  panels: number;
336
342
  };
337
- currentChartType: import("../element/types").ChartType;
343
+ currentChartType: import("@excalidraw/element/types").ChartType;
338
344
  pasteDialog: {
339
345
  shown: false;
340
346
  data: null;
@@ -342,9 +348,8 @@ export declare const actionChangeExportScale: {
342
348
  shown: true;
343
349
  data: import("../charts").Spreadsheet;
344
350
  };
345
- pendingImageElementId: string | null;
346
- showHyperlinkPopup: false | "info" | "editor";
347
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
351
+ showHyperlinkPopup: false | "editor" | "info";
352
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
348
353
  snapLines: readonly import("../snapping").SnapLine[];
349
354
  originSnapOffset: {
350
355
  x: number;
@@ -355,16 +360,15 @@ export declare const actionChangeExportScale: {
355
360
  followedBy: Set<import("../types").SocketId>;
356
361
  isCropping: boolean;
357
362
  croppingElementId: string | null;
358
- searchMatches: readonly {
359
- id: string;
360
- focus: boolean;
361
- matchedLines: {
362
- offsetX: number;
363
- offsetY: number;
364
- width: number;
365
- height: number;
366
- }[];
367
- }[];
363
+ searchMatches: Readonly<{
364
+ focusedId: string | null;
365
+ matches: readonly import("../types").SearchMatch[];
366
+ }> | null;
367
+ activeLockedId: string | null;
368
+ lockedMultiSelections: {
369
+ [groupId: string]: true;
370
+ };
371
+ stylesPanelMode: "compact" | "full" | "mobile";
368
372
  };
369
373
  captureUpdate: "EVENTUALLY";
370
374
  };
@@ -379,7 +383,7 @@ export declare const actionChangeExportBackground: {
379
383
  category: "export";
380
384
  action: string;
381
385
  };
382
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
386
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
383
387
  appState: {
384
388
  exportBackground: any;
385
389
  contextMenu: {
@@ -391,17 +395,17 @@ export declare const actionChangeExportBackground: {
391
395
  isLoading: boolean;
392
396
  errorMessage: import("react").ReactNode;
393
397
  activeEmbeddable: {
394
- element: import("../element/types").NonDeletedExcalidrawElement;
395
- state: "hover" | "active";
398
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
399
+ state: "active" | "hover";
396
400
  } | null;
397
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
398
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
399
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
400
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
401
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
402
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
403
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
404
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
401
405
  isBindingEnabled: boolean;
402
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
403
- suggestedBindings: import("../element/binding").SuggestedBinding[];
404
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
406
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
407
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
408
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
405
409
  frameRendering: {
406
410
  enabled: boolean;
407
411
  name: boolean;
@@ -409,13 +413,17 @@ export declare const actionChangeExportBackground: {
409
413
  clip: boolean;
410
414
  };
411
415
  editingFrame: string | null;
412
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
413
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
414
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
416
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
417
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
415
418
  activeTool: {
416
419
  lastActiveTool: import("../types").ActiveTool | null;
417
420
  locked: boolean;
421
+ fromSelection: boolean;
418
422
  } & import("../types").ActiveTool;
423
+ preferredSelectionTool: {
424
+ type: "selection" | "lasso";
425
+ initialized: boolean;
426
+ };
419
427
  penMode: boolean;
420
428
  penDetected: boolean;
421
429
  exportEmbedScene: boolean;
@@ -423,18 +431,18 @@ export declare const actionChangeExportBackground: {
423
431
  exportScale: number;
424
432
  currentItemStrokeColor: string;
425
433
  currentItemBackgroundColor: string;
426
- currentItemFillStyle: import("../element/types").FillStyle;
434
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
427
435
  currentItemStrokeWidth: number;
428
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
436
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
429
437
  currentItemRoughness: number;
430
438
  currentItemOpacity: number;
431
439
  currentItemFontFamily: number;
432
440
  currentItemFontSize: number;
433
441
  currentItemTextAlign: string;
434
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
435
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
442
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
443
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
436
444
  currentHoveredFontFamily: number | null;
437
- currentItemRoundness: import("../element/types").StrokeRoundness;
445
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
438
446
  currentItemArrowType: "round" | "sharp" | "elbow";
439
447
  viewBackgroundColor: string;
440
448
  scrollX: number;
@@ -448,7 +456,7 @@ export declare const actionChangeExportBackground: {
448
456
  value: import("../types").NormalizedZoomValue;
449
457
  }>;
450
458
  openMenu: "canvas" | "shape" | null;
451
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
459
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
452
460
  openSidebar: {
453
461
  name: string;
454
462
  tab?: string | undefined;
@@ -457,7 +465,7 @@ export declare const actionChangeExportBackground: {
457
465
  name: "imageExport" | "help" | "jsonExport";
458
466
  } | {
459
467
  name: "ttd";
460
- tab: "text-to-diagram" | "mermaid";
468
+ tab: "mermaid" | "text-to-diagram";
461
469
  } | {
462
470
  name: "commandPalette";
463
471
  } | {
@@ -465,7 +473,7 @@ export declare const actionChangeExportBackground: {
465
473
  sourceElementId: string;
466
474
  } | null;
467
475
  defaultSidebarDockedPreference: boolean;
468
- lastPointerDownWith: import("../element/types").PointerType;
476
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
469
477
  selectedElementIds: Readonly<{
470
478
  [id: string]: true;
471
479
  }>;
@@ -504,7 +512,7 @@ export declare const actionChangeExportBackground: {
504
512
  [id: string]: true;
505
513
  }> | undefined;
506
514
  username?: string | null | undefined;
507
- userState?: import("../constants").UserIdleState | undefined;
515
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
508
516
  color?: {
509
517
  background: string;
510
518
  stroke: string;
@@ -521,7 +529,7 @@ export declare const actionChangeExportBackground: {
521
529
  open: boolean;
522
530
  panels: number;
523
531
  };
524
- currentChartType: import("../element/types").ChartType;
532
+ currentChartType: import("@excalidraw/element/types").ChartType;
525
533
  pasteDialog: {
526
534
  shown: false;
527
535
  data: null;
@@ -529,9 +537,8 @@ export declare const actionChangeExportBackground: {
529
537
  shown: true;
530
538
  data: import("../charts").Spreadsheet;
531
539
  };
532
- pendingImageElementId: string | null;
533
- showHyperlinkPopup: false | "info" | "editor";
534
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
540
+ showHyperlinkPopup: false | "editor" | "info";
541
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
535
542
  snapLines: readonly import("../snapping").SnapLine[];
536
543
  originSnapOffset: {
537
544
  x: number;
@@ -542,16 +549,15 @@ export declare const actionChangeExportBackground: {
542
549
  followedBy: Set<import("../types").SocketId>;
543
550
  isCropping: boolean;
544
551
  croppingElementId: string | null;
545
- searchMatches: readonly {
546
- id: string;
547
- focus: boolean;
548
- matchedLines: {
549
- offsetX: number;
550
- offsetY: number;
551
- width: number;
552
- height: number;
553
- }[];
554
- }[];
552
+ searchMatches: Readonly<{
553
+ focusedId: string | null;
554
+ matches: readonly import("../types").SearchMatch[];
555
+ }> | null;
556
+ activeLockedId: string | null;
557
+ lockedMultiSelections: {
558
+ [groupId: string]: true;
559
+ };
560
+ stylesPanelMode: "compact" | "full" | "mobile";
555
561
  };
556
562
  captureUpdate: "EVENTUALLY";
557
563
  };
@@ -566,7 +572,7 @@ export declare const actionChangeExportEmbedScene: {
566
572
  category: "export";
567
573
  action: string;
568
574
  };
569
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
575
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
570
576
  appState: {
571
577
  exportEmbedScene: any;
572
578
  contextMenu: {
@@ -578,17 +584,17 @@ export declare const actionChangeExportEmbedScene: {
578
584
  isLoading: boolean;
579
585
  errorMessage: import("react").ReactNode;
580
586
  activeEmbeddable: {
581
- element: import("../element/types").NonDeletedExcalidrawElement;
582
- state: "hover" | "active";
587
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
588
+ state: "active" | "hover";
583
589
  } | null;
584
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
585
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
586
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
587
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
590
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
591
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
592
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
593
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
588
594
  isBindingEnabled: boolean;
589
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
590
- suggestedBindings: import("../element/binding").SuggestedBinding[];
591
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
595
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
596
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
597
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
592
598
  frameRendering: {
593
599
  enabled: boolean;
594
600
  name: boolean;
@@ -596,13 +602,17 @@ export declare const actionChangeExportEmbedScene: {
596
602
  clip: boolean;
597
603
  };
598
604
  editingFrame: string | null;
599
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
600
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
601
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
605
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
606
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
602
607
  activeTool: {
603
608
  lastActiveTool: import("../types").ActiveTool | null;
604
609
  locked: boolean;
610
+ fromSelection: boolean;
605
611
  } & import("../types").ActiveTool;
612
+ preferredSelectionTool: {
613
+ type: "selection" | "lasso";
614
+ initialized: boolean;
615
+ };
606
616
  penMode: boolean;
607
617
  penDetected: boolean;
608
618
  exportBackground: boolean;
@@ -610,18 +620,18 @@ export declare const actionChangeExportEmbedScene: {
610
620
  exportScale: number;
611
621
  currentItemStrokeColor: string;
612
622
  currentItemBackgroundColor: string;
613
- currentItemFillStyle: import("../element/types").FillStyle;
623
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
614
624
  currentItemStrokeWidth: number;
615
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
625
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
616
626
  currentItemRoughness: number;
617
627
  currentItemOpacity: number;
618
628
  currentItemFontFamily: number;
619
629
  currentItemFontSize: number;
620
630
  currentItemTextAlign: string;
621
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
622
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
631
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
632
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
623
633
  currentHoveredFontFamily: number | null;
624
- currentItemRoundness: import("../element/types").StrokeRoundness;
634
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
625
635
  currentItemArrowType: "round" | "sharp" | "elbow";
626
636
  viewBackgroundColor: string;
627
637
  scrollX: number;
@@ -635,7 +645,7 @@ export declare const actionChangeExportEmbedScene: {
635
645
  value: import("../types").NormalizedZoomValue;
636
646
  }>;
637
647
  openMenu: "canvas" | "shape" | null;
638
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
648
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
639
649
  openSidebar: {
640
650
  name: string;
641
651
  tab?: string | undefined;
@@ -644,7 +654,7 @@ export declare const actionChangeExportEmbedScene: {
644
654
  name: "imageExport" | "help" | "jsonExport";
645
655
  } | {
646
656
  name: "ttd";
647
- tab: "text-to-diagram" | "mermaid";
657
+ tab: "mermaid" | "text-to-diagram";
648
658
  } | {
649
659
  name: "commandPalette";
650
660
  } | {
@@ -652,7 +662,7 @@ export declare const actionChangeExportEmbedScene: {
652
662
  sourceElementId: string;
653
663
  } | null;
654
664
  defaultSidebarDockedPreference: boolean;
655
- lastPointerDownWith: import("../element/types").PointerType;
665
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
656
666
  selectedElementIds: Readonly<{
657
667
  [id: string]: true;
658
668
  }>;
@@ -691,7 +701,7 @@ export declare const actionChangeExportEmbedScene: {
691
701
  [id: string]: true;
692
702
  }> | undefined;
693
703
  username?: string | null | undefined;
694
- userState?: import("../constants").UserIdleState | undefined;
704
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
695
705
  color?: {
696
706
  background: string;
697
707
  stroke: string;
@@ -708,7 +718,7 @@ export declare const actionChangeExportEmbedScene: {
708
718
  open: boolean;
709
719
  panels: number;
710
720
  };
711
- currentChartType: import("../element/types").ChartType;
721
+ currentChartType: import("@excalidraw/element/types").ChartType;
712
722
  pasteDialog: {
713
723
  shown: false;
714
724
  data: null;
@@ -716,9 +726,8 @@ export declare const actionChangeExportEmbedScene: {
716
726
  shown: true;
717
727
  data: import("../charts").Spreadsheet;
718
728
  };
719
- pendingImageElementId: string | null;
720
- showHyperlinkPopup: false | "info" | "editor";
721
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
729
+ showHyperlinkPopup: false | "editor" | "info";
730
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
722
731
  snapLines: readonly import("../snapping").SnapLine[];
723
732
  originSnapOffset: {
724
733
  x: number;
@@ -729,16 +738,15 @@ export declare const actionChangeExportEmbedScene: {
729
738
  followedBy: Set<import("../types").SocketId>;
730
739
  isCropping: boolean;
731
740
  croppingElementId: string | null;
732
- searchMatches: readonly {
733
- id: string;
734
- focus: boolean;
735
- matchedLines: {
736
- offsetX: number;
737
- offsetY: number;
738
- width: number;
739
- height: number;
740
- }[];
741
- }[];
741
+ searchMatches: Readonly<{
742
+ focusedId: string | null;
743
+ matches: readonly import("../types").SearchMatch[];
744
+ }> | null;
745
+ activeLockedId: string | null;
746
+ lockedMultiSelections: {
747
+ [groupId: string]: true;
748
+ };
749
+ stylesPanelMode: "compact" | "full" | "mobile";
742
750
  };
743
751
  captureUpdate: "EVENTUALLY";
744
752
  };
@@ -753,8 +761,8 @@ export declare const actionSaveToActiveFile: {
753
761
  trackEvent: {
754
762
  category: "export";
755
763
  };
756
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
757
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
764
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
765
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
758
766
  captureUpdate: "EVENTUALLY";
759
767
  appState: {
760
768
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
@@ -770,17 +778,17 @@ export declare const actionSaveToActiveFile: {
770
778
  isLoading: boolean;
771
779
  errorMessage: import("react").ReactNode;
772
780
  activeEmbeddable: {
773
- element: import("../element/types").NonDeletedExcalidrawElement;
774
- state: "hover" | "active";
781
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
782
+ state: "active" | "hover";
775
783
  } | null;
776
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
777
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
778
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
779
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
784
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
785
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
786
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
787
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
780
788
  isBindingEnabled: boolean;
781
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
782
- suggestedBindings: import("../element/binding").SuggestedBinding[];
783
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
789
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
790
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
791
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
784
792
  frameRendering: {
785
793
  enabled: boolean;
786
794
  name: boolean;
@@ -788,13 +796,17 @@ export declare const actionSaveToActiveFile: {
788
796
  clip: boolean;
789
797
  };
790
798
  editingFrame: string | null;
791
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
792
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
793
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
799
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
800
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
794
801
  activeTool: {
795
802
  lastActiveTool: import("../types").ActiveTool | null;
796
803
  locked: boolean;
804
+ fromSelection: boolean;
797
805
  } & import("../types").ActiveTool;
806
+ preferredSelectionTool: {
807
+ type: "selection" | "lasso";
808
+ initialized: boolean;
809
+ };
798
810
  penMode: boolean;
799
811
  penDetected: boolean;
800
812
  exportBackground: boolean;
@@ -803,18 +815,18 @@ export declare const actionSaveToActiveFile: {
803
815
  exportScale: number;
804
816
  currentItemStrokeColor: string;
805
817
  currentItemBackgroundColor: string;
806
- currentItemFillStyle: import("../element/types").FillStyle;
818
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
807
819
  currentItemStrokeWidth: number;
808
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
820
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
809
821
  currentItemRoughness: number;
810
822
  currentItemOpacity: number;
811
823
  currentItemFontFamily: number;
812
824
  currentItemFontSize: number;
813
825
  currentItemTextAlign: string;
814
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
815
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
826
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
827
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
816
828
  currentHoveredFontFamily: number | null;
817
- currentItemRoundness: import("../element/types").StrokeRoundness;
829
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
818
830
  currentItemArrowType: "round" | "sharp" | "elbow";
819
831
  viewBackgroundColor: string;
820
832
  scrollX: number;
@@ -828,7 +840,7 @@ export declare const actionSaveToActiveFile: {
828
840
  value: import("../types").NormalizedZoomValue;
829
841
  }>;
830
842
  openMenu: "canvas" | "shape" | null;
831
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
843
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
832
844
  openSidebar: {
833
845
  name: string;
834
846
  tab?: string | undefined;
@@ -837,7 +849,7 @@ export declare const actionSaveToActiveFile: {
837
849
  name: "imageExport" | "help" | "jsonExport";
838
850
  } | {
839
851
  name: "ttd";
840
- tab: "text-to-diagram" | "mermaid";
852
+ tab: "mermaid" | "text-to-diagram";
841
853
  } | {
842
854
  name: "commandPalette";
843
855
  } | {
@@ -845,7 +857,7 @@ export declare const actionSaveToActiveFile: {
845
857
  sourceElementId: string;
846
858
  } | null;
847
859
  defaultSidebarDockedPreference: boolean;
848
- lastPointerDownWith: import("../element/types").PointerType;
860
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
849
861
  selectedElementIds: Readonly<{
850
862
  [id: string]: true;
851
863
  }>;
@@ -878,7 +890,7 @@ export declare const actionSaveToActiveFile: {
878
890
  [id: string]: true;
879
891
  }> | undefined;
880
892
  username?: string | null | undefined;
881
- userState?: import("../constants").UserIdleState | undefined;
893
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
882
894
  color?: {
883
895
  background: string;
884
896
  stroke: string;
@@ -895,7 +907,7 @@ export declare const actionSaveToActiveFile: {
895
907
  open: boolean;
896
908
  panels: number;
897
909
  };
898
- currentChartType: import("../element/types").ChartType;
910
+ currentChartType: import("@excalidraw/element/types").ChartType;
899
911
  pasteDialog: {
900
912
  shown: false;
901
913
  data: null;
@@ -903,9 +915,8 @@ export declare const actionSaveToActiveFile: {
903
915
  shown: true;
904
916
  data: import("../charts").Spreadsheet;
905
917
  };
906
- pendingImageElementId: string | null;
907
- showHyperlinkPopup: false | "info" | "editor";
908
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
918
+ showHyperlinkPopup: false | "editor" | "info";
919
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
909
920
  snapLines: readonly import("../snapping").SnapLine[];
910
921
  originSnapOffset: {
911
922
  x: number;
@@ -916,16 +927,15 @@ export declare const actionSaveToActiveFile: {
916
927
  followedBy: Set<import("../types").SocketId>;
917
928
  isCropping: boolean;
918
929
  croppingElementId: string | null;
919
- searchMatches: readonly {
920
- id: string;
921
- focus: boolean;
922
- matchedLines: {
923
- offsetX: number;
924
- offsetY: number;
925
- width: number;
926
- height: number;
927
- }[];
928
- }[];
930
+ searchMatches: Readonly<{
931
+ focusedId: string | null;
932
+ matches: readonly import("../types").SearchMatch[];
933
+ }> | null;
934
+ activeLockedId: string | null;
935
+ lockedMultiSelections: {
936
+ [groupId: string]: true;
937
+ };
938
+ stylesPanelMode: "compact" | "full" | "mobile";
929
939
  };
930
940
  } | {
931
941
  captureUpdate: "EVENTUALLY";
@@ -943,7 +953,7 @@ export declare const actionSaveFileToDisk: {
943
953
  trackEvent: {
944
954
  category: "export";
945
955
  };
946
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
956
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
947
957
  captureUpdate: "EVENTUALLY";
948
958
  appState: {
949
959
  openDialog: null;
@@ -960,17 +970,17 @@ export declare const actionSaveFileToDisk: {
960
970
  isLoading: boolean;
961
971
  errorMessage: import("react").ReactNode;
962
972
  activeEmbeddable: {
963
- element: import("../element/types").NonDeletedExcalidrawElement;
964
- state: "hover" | "active";
973
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
974
+ state: "active" | "hover";
965
975
  } | null;
966
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
967
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
968
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
969
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
976
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
977
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
978
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
979
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
970
980
  isBindingEnabled: boolean;
971
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
972
- suggestedBindings: import("../element/binding").SuggestedBinding[];
973
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
981
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
982
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
983
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
974
984
  frameRendering: {
975
985
  enabled: boolean;
976
986
  name: boolean;
@@ -978,13 +988,17 @@ export declare const actionSaveFileToDisk: {
978
988
  clip: boolean;
979
989
  };
980
990
  editingFrame: string | null;
981
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
982
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
983
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
991
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
992
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
984
993
  activeTool: {
985
994
  lastActiveTool: import("../types").ActiveTool | null;
986
995
  locked: boolean;
996
+ fromSelection: boolean;
987
997
  } & import("../types").ActiveTool;
998
+ preferredSelectionTool: {
999
+ type: "selection" | "lasso";
1000
+ initialized: boolean;
1001
+ };
988
1002
  penMode: boolean;
989
1003
  penDetected: boolean;
990
1004
  exportBackground: boolean;
@@ -993,18 +1007,18 @@ export declare const actionSaveFileToDisk: {
993
1007
  exportScale: number;
994
1008
  currentItemStrokeColor: string;
995
1009
  currentItemBackgroundColor: string;
996
- currentItemFillStyle: import("../element/types").FillStyle;
1010
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
997
1011
  currentItemStrokeWidth: number;
998
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1012
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
999
1013
  currentItemRoughness: number;
1000
1014
  currentItemOpacity: number;
1001
1015
  currentItemFontFamily: number;
1002
1016
  currentItemFontSize: number;
1003
1017
  currentItemTextAlign: string;
1004
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1005
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1018
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1019
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1006
1020
  currentHoveredFontFamily: number | null;
1007
- currentItemRoundness: import("../element/types").StrokeRoundness;
1021
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1008
1022
  currentItemArrowType: "round" | "sharp" | "elbow";
1009
1023
  viewBackgroundColor: string;
1010
1024
  scrollX: number;
@@ -1018,13 +1032,13 @@ export declare const actionSaveFileToDisk: {
1018
1032
  value: import("../types").NormalizedZoomValue;
1019
1033
  }>;
1020
1034
  openMenu: "canvas" | "shape" | null;
1021
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1035
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1022
1036
  openSidebar: {
1023
1037
  name: string;
1024
1038
  tab?: string | undefined;
1025
1039
  } | null;
1026
1040
  defaultSidebarDockedPreference: boolean;
1027
- lastPointerDownWith: import("../element/types").PointerType;
1041
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1028
1042
  selectedElementIds: Readonly<{
1029
1043
  [id: string]: true;
1030
1044
  }>;
@@ -1057,7 +1071,7 @@ export declare const actionSaveFileToDisk: {
1057
1071
  [id: string]: true;
1058
1072
  }> | undefined;
1059
1073
  username?: string | null | undefined;
1060
- userState?: import("../constants").UserIdleState | undefined;
1074
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1061
1075
  color?: {
1062
1076
  background: string;
1063
1077
  stroke: string;
@@ -1074,7 +1088,7 @@ export declare const actionSaveFileToDisk: {
1074
1088
  open: boolean;
1075
1089
  panels: number;
1076
1090
  };
1077
- currentChartType: import("../element/types").ChartType;
1091
+ currentChartType: import("@excalidraw/element/types").ChartType;
1078
1092
  pasteDialog: {
1079
1093
  shown: false;
1080
1094
  data: null;
@@ -1082,9 +1096,8 @@ export declare const actionSaveFileToDisk: {
1082
1096
  shown: true;
1083
1097
  data: import("../charts").Spreadsheet;
1084
1098
  };
1085
- pendingImageElementId: string | null;
1086
- showHyperlinkPopup: false | "info" | "editor";
1087
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1099
+ showHyperlinkPopup: false | "editor" | "info";
1100
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1088
1101
  snapLines: readonly import("../snapping").SnapLine[];
1089
1102
  originSnapOffset: {
1090
1103
  x: number;
@@ -1095,16 +1108,15 @@ export declare const actionSaveFileToDisk: {
1095
1108
  followedBy: Set<import("../types").SocketId>;
1096
1109
  isCropping: boolean;
1097
1110
  croppingElementId: string | null;
1098
- searchMatches: readonly {
1099
- id: string;
1100
- focus: boolean;
1101
- matchedLines: {
1102
- offsetX: number;
1103
- offsetY: number;
1104
- width: number;
1105
- height: number;
1106
- }[];
1107
- }[];
1111
+ searchMatches: Readonly<{
1112
+ focusedId: string | null;
1113
+ matches: readonly import("../types").SearchMatch[];
1114
+ }> | null;
1115
+ activeLockedId: string | null;
1116
+ lockedMultiSelections: {
1117
+ [groupId: string]: true;
1118
+ };
1119
+ stylesPanelMode: "compact" | "full" | "mobile";
1108
1120
  };
1109
1121
  } | {
1110
1122
  captureUpdate: "EVENTUALLY";
@@ -1121,17 +1133,85 @@ export declare const actionLoadScene: {
1121
1133
  trackEvent: {
1122
1134
  category: "export";
1123
1135
  };
1124
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1125
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1126
- elements: import("../element/types").OrderedExcalidrawElement[];
1136
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1137
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1138
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1127
1139
  appState: {
1140
+ viewBackgroundColor: string;
1141
+ frameRendering: {
1142
+ enabled: boolean;
1143
+ name: boolean;
1144
+ outline: boolean;
1145
+ clip: boolean;
1146
+ };
1147
+ name: string | null;
1148
+ zoom: Readonly<{
1149
+ value: import("../types").NormalizedZoomValue;
1150
+ }>;
1151
+ scrollX: number;
1152
+ scrollY: number;
1128
1153
  viewModeEnabled: boolean;
1129
- zenModeEnabled: boolean;
1130
- gridModeEnabled: boolean;
1131
- objectsSnapModeEnabled: boolean;
1154
+ openDialog: {
1155
+ name: "imageExport" | "help" | "jsonExport";
1156
+ } | {
1157
+ name: "ttd";
1158
+ tab: "mermaid" | "text-to-diagram";
1159
+ } | {
1160
+ name: "commandPalette";
1161
+ } | {
1162
+ name: "elementLinkSelector";
1163
+ sourceElementId: string;
1164
+ } | null;
1165
+ editingGroupId: string | null;
1166
+ selectedElementIds: Readonly<{
1167
+ [id: string]: true;
1168
+ }>;
1169
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1132
1170
  theme: Theme;
1133
- name: string | null;
1134
- currentItemArrowType: "round" | "sharp" | "elbow";
1171
+ activeEmbeddable: {
1172
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1173
+ state: "active" | "hover";
1174
+ } | null;
1175
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1176
+ selectedGroupIds: {
1177
+ [groupId: string]: boolean;
1178
+ };
1179
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1180
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1181
+ isBindingEnabled: boolean;
1182
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1183
+ isRotating: boolean;
1184
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1185
+ collaborators: Map<import("../types").SocketId, Readonly<{
1186
+ pointer?: import("../types").CollaboratorPointer | undefined;
1187
+ button?: "up" | "down" | undefined;
1188
+ selectedElementIds?: Readonly<{
1189
+ [id: string]: true;
1190
+ }> | undefined;
1191
+ username?: string | null | undefined;
1192
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1193
+ color?: {
1194
+ background: string;
1195
+ stroke: string;
1196
+ } | undefined;
1197
+ avatarUrl?: string | undefined;
1198
+ id?: string | undefined;
1199
+ socketId?: import("../types").SocketId | undefined;
1200
+ isCurrentUser?: boolean | undefined;
1201
+ isInCall?: boolean | undefined;
1202
+ isSpeaking?: boolean | undefined;
1203
+ isMuted?: boolean | undefined;
1204
+ }>>;
1205
+ snapLines: readonly import("../snapping").SnapLine[];
1206
+ zenModeEnabled: boolean;
1207
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1208
+ isCropping: boolean;
1209
+ croppingElementId: string | null;
1210
+ searchMatches: Readonly<{
1211
+ focusedId: string | null;
1212
+ matches: readonly import("../types").SearchMatch[];
1213
+ }> | null;
1214
+ activeLockedId: string | null;
1135
1215
  contextMenu: {
1136
1216
  items: import("../components/ContextMenu").ContextMenuItems;
1137
1217
  top: number;
@@ -1140,32 +1220,19 @@ export declare const actionLoadScene: {
1140
1220
  showWelcomeScreen: boolean;
1141
1221
  isLoading: boolean;
1142
1222
  errorMessage: import("react").ReactNode;
1143
- activeEmbeddable: {
1144
- element: import("../element/types").NonDeletedExcalidrawElement;
1145
- state: "hover" | "active";
1146
- } | null;
1147
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1148
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1149
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1150
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1151
- isBindingEnabled: boolean;
1152
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1153
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1154
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1155
- frameRendering: {
1156
- enabled: boolean;
1157
- name: boolean;
1158
- outline: boolean;
1159
- clip: boolean;
1160
- };
1223
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1224
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1225
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1161
1226
  editingFrame: string | null;
1162
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1163
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1164
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1165
1227
  activeTool: {
1166
1228
  lastActiveTool: import("../types").ActiveTool | null;
1167
1229
  locked: boolean;
1230
+ fromSelection: boolean;
1168
1231
  } & import("../types").ActiveTool;
1232
+ preferredSelectionTool: {
1233
+ type: "selection" | "lasso";
1234
+ initialized: boolean;
1235
+ };
1169
1236
  penMode: boolean;
1170
1237
  penDetected: boolean;
1171
1238
  exportBackground: boolean;
@@ -1174,50 +1241,30 @@ export declare const actionLoadScene: {
1174
1241
  exportScale: number;
1175
1242
  currentItemStrokeColor: string;
1176
1243
  currentItemBackgroundColor: string;
1177
- currentItemFillStyle: import("../element/types").FillStyle;
1244
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1178
1245
  currentItemStrokeWidth: number;
1179
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1246
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1180
1247
  currentItemRoughness: number;
1181
1248
  currentItemOpacity: number;
1182
1249
  currentItemFontFamily: number;
1183
1250
  currentItemFontSize: number;
1184
1251
  currentItemTextAlign: string;
1185
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1186
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1252
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1253
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1187
1254
  currentHoveredFontFamily: number | null;
1188
- currentItemRoundness: import("../element/types").StrokeRoundness;
1189
- viewBackgroundColor: string;
1190
- scrollX: number;
1191
- scrollY: number;
1255
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1256
+ currentItemArrowType: "round" | "sharp" | "elbow";
1192
1257
  cursorButton: "up" | "down";
1193
1258
  scrolledOutside: boolean;
1194
1259
  isResizing: boolean;
1195
- isRotating: boolean;
1196
- zoom: Readonly<{
1197
- value: import("../types").NormalizedZoomValue;
1198
- }>;
1199
1260
  openMenu: "canvas" | "shape" | null;
1200
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1261
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1201
1262
  openSidebar: {
1202
1263
  name: string;
1203
1264
  tab?: string | undefined;
1204
1265
  } | null;
1205
- openDialog: {
1206
- name: "imageExport" | "help" | "jsonExport";
1207
- } | {
1208
- name: "ttd";
1209
- tab: "text-to-diagram" | "mermaid";
1210
- } | {
1211
- name: "commandPalette";
1212
- } | {
1213
- name: "elementLinkSelector";
1214
- sourceElementId: string;
1215
- } | null;
1216
1266
  defaultSidebarDockedPreference: boolean;
1217
- lastPointerDownWith: import("../element/types").PointerType;
1218
- selectedElementIds: Readonly<{
1219
- [id: string]: true;
1220
- }>;
1267
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1221
1268
  hoveredElementIds: Readonly<{
1222
1269
  [id: string]: true;
1223
1270
  }>;
@@ -1233,36 +1280,13 @@ export declare const actionLoadScene: {
1233
1280
  } | null;
1234
1281
  gridSize: number;
1235
1282
  gridStep: number;
1236
- selectedGroupIds: {
1237
- [groupId: string]: boolean;
1238
- };
1239
- editingGroupId: string | null;
1283
+ gridModeEnabled: boolean;
1240
1284
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1241
- collaborators: Map<import("../types").SocketId, Readonly<{
1242
- pointer?: import("../types").CollaboratorPointer | undefined;
1243
- button?: "up" | "down" | undefined;
1244
- selectedElementIds?: Readonly<{
1245
- [id: string]: true;
1246
- }> | undefined;
1247
- username?: string | null | undefined;
1248
- userState?: import("../constants").UserIdleState | undefined;
1249
- color?: {
1250
- background: string;
1251
- stroke: string;
1252
- } | undefined;
1253
- avatarUrl?: string | undefined;
1254
- id?: string | undefined;
1255
- socketId?: import("../types").SocketId | undefined;
1256
- isCurrentUser?: boolean | undefined;
1257
- isInCall?: boolean | undefined;
1258
- isSpeaking?: boolean | undefined;
1259
- isMuted?: boolean | undefined;
1260
- }>>;
1261
1285
  stats: {
1262
1286
  open: boolean;
1263
1287
  panels: number;
1264
1288
  };
1265
- currentChartType: import("../element/types").ChartType;
1289
+ currentChartType: import("@excalidraw/element/types").ChartType;
1266
1290
  pasteDialog: {
1267
1291
  shown: false;
1268
1292
  data: null;
@@ -1270,33 +1294,23 @@ export declare const actionLoadScene: {
1270
1294
  shown: true;
1271
1295
  data: import("../charts").Spreadsheet;
1272
1296
  };
1273
- pendingImageElementId: string | null;
1274
- showHyperlinkPopup: false | "info" | "editor";
1275
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1276
- snapLines: readonly import("../snapping").SnapLine[];
1297
+ showHyperlinkPopup: false | "editor" | "info";
1277
1298
  originSnapOffset: {
1278
1299
  x: number;
1279
1300
  y: number;
1280
1301
  } | null;
1302
+ objectsSnapModeEnabled: boolean;
1281
1303
  userToFollow: import("../types").UserToFollow | null;
1282
1304
  followedBy: Set<import("../types").SocketId>;
1283
- isCropping: boolean;
1284
- croppingElementId: string | null;
1285
- searchMatches: readonly {
1286
- id: string;
1287
- focus: boolean;
1288
- matchedLines: {
1289
- offsetX: number;
1290
- offsetY: number;
1291
- width: number;
1292
- height: number;
1293
- }[];
1294
- }[];
1305
+ lockedMultiSelections: {
1306
+ [groupId: string]: true;
1307
+ };
1308
+ stylesPanelMode: "compact" | "full" | "mobile";
1295
1309
  };
1296
1310
  files: import("../types").BinaryFiles;
1297
1311
  captureUpdate: "IMMEDIATELY";
1298
1312
  } | {
1299
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
1313
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
1300
1314
  appState: {
1301
1315
  errorMessage: any;
1302
1316
  contextMenu: {
@@ -1307,17 +1321,17 @@ export declare const actionLoadScene: {
1307
1321
  showWelcomeScreen: boolean;
1308
1322
  isLoading: boolean;
1309
1323
  activeEmbeddable: {
1310
- element: import("../element/types").NonDeletedExcalidrawElement;
1311
- state: "hover" | "active";
1324
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1325
+ state: "active" | "hover";
1312
1326
  } | null;
1313
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1314
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1315
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1316
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1327
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1328
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1329
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1330
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1317
1331
  isBindingEnabled: boolean;
1318
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1319
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1320
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1332
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1333
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1334
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1321
1335
  frameRendering: {
1322
1336
  enabled: boolean;
1323
1337
  name: boolean;
@@ -1325,13 +1339,17 @@ export declare const actionLoadScene: {
1325
1339
  clip: boolean;
1326
1340
  };
1327
1341
  editingFrame: string | null;
1328
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1329
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1330
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1342
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1343
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1331
1344
  activeTool: {
1332
1345
  lastActiveTool: import("../types").ActiveTool | null;
1333
1346
  locked: boolean;
1347
+ fromSelection: boolean;
1334
1348
  } & import("../types").ActiveTool;
1349
+ preferredSelectionTool: {
1350
+ type: "selection" | "lasso";
1351
+ initialized: boolean;
1352
+ };
1335
1353
  penMode: boolean;
1336
1354
  penDetected: boolean;
1337
1355
  exportBackground: boolean;
@@ -1340,18 +1358,18 @@ export declare const actionLoadScene: {
1340
1358
  exportScale: number;
1341
1359
  currentItemStrokeColor: string;
1342
1360
  currentItemBackgroundColor: string;
1343
- currentItemFillStyle: import("../element/types").FillStyle;
1361
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1344
1362
  currentItemStrokeWidth: number;
1345
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1363
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1346
1364
  currentItemRoughness: number;
1347
1365
  currentItemOpacity: number;
1348
1366
  currentItemFontFamily: number;
1349
1367
  currentItemFontSize: number;
1350
1368
  currentItemTextAlign: string;
1351
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1352
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1369
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1370
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1353
1371
  currentHoveredFontFamily: number | null;
1354
- currentItemRoundness: import("../element/types").StrokeRoundness;
1372
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1355
1373
  currentItemArrowType: "round" | "sharp" | "elbow";
1356
1374
  viewBackgroundColor: string;
1357
1375
  scrollX: number;
@@ -1365,7 +1383,7 @@ export declare const actionLoadScene: {
1365
1383
  value: import("../types").NormalizedZoomValue;
1366
1384
  }>;
1367
1385
  openMenu: "canvas" | "shape" | null;
1368
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1386
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1369
1387
  openSidebar: {
1370
1388
  name: string;
1371
1389
  tab?: string | undefined;
@@ -1374,7 +1392,7 @@ export declare const actionLoadScene: {
1374
1392
  name: "imageExport" | "help" | "jsonExport";
1375
1393
  } | {
1376
1394
  name: "ttd";
1377
- tab: "text-to-diagram" | "mermaid";
1395
+ tab: "mermaid" | "text-to-diagram";
1378
1396
  } | {
1379
1397
  name: "commandPalette";
1380
1398
  } | {
@@ -1382,7 +1400,7 @@ export declare const actionLoadScene: {
1382
1400
  sourceElementId: string;
1383
1401
  } | null;
1384
1402
  defaultSidebarDockedPreference: boolean;
1385
- lastPointerDownWith: import("../element/types").PointerType;
1403
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1386
1404
  selectedElementIds: Readonly<{
1387
1405
  [id: string]: true;
1388
1406
  }>;
@@ -1421,7 +1439,7 @@ export declare const actionLoadScene: {
1421
1439
  [id: string]: true;
1422
1440
  }> | undefined;
1423
1441
  username?: string | null | undefined;
1424
- userState?: import("../constants").UserIdleState | undefined;
1442
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1425
1443
  color?: {
1426
1444
  background: string;
1427
1445
  stroke: string;
@@ -1438,7 +1456,7 @@ export declare const actionLoadScene: {
1438
1456
  open: boolean;
1439
1457
  panels: number;
1440
1458
  };
1441
- currentChartType: import("../element/types").ChartType;
1459
+ currentChartType: import("@excalidraw/element/types").ChartType;
1442
1460
  pasteDialog: {
1443
1461
  shown: false;
1444
1462
  data: null;
@@ -1446,9 +1464,8 @@ export declare const actionLoadScene: {
1446
1464
  shown: true;
1447
1465
  data: import("../charts").Spreadsheet;
1448
1466
  };
1449
- pendingImageElementId: string | null;
1450
- showHyperlinkPopup: false | "info" | "editor";
1451
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1467
+ showHyperlinkPopup: false | "editor" | "info";
1468
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1452
1469
  snapLines: readonly import("../snapping").SnapLine[];
1453
1470
  originSnapOffset: {
1454
1471
  x: number;
@@ -1459,16 +1476,15 @@ export declare const actionLoadScene: {
1459
1476
  followedBy: Set<import("../types").SocketId>;
1460
1477
  isCropping: boolean;
1461
1478
  croppingElementId: string | null;
1462
- searchMatches: readonly {
1463
- id: string;
1464
- focus: boolean;
1465
- matchedLines: {
1466
- offsetX: number;
1467
- offsetY: number;
1468
- width: number;
1469
- height: number;
1470
- }[];
1471
- }[];
1479
+ searchMatches: Readonly<{
1480
+ focusedId: string | null;
1481
+ matches: readonly import("../types").SearchMatch[];
1482
+ }> | null;
1483
+ activeLockedId: string | null;
1484
+ lockedMultiSelections: {
1485
+ [groupId: string]: true;
1486
+ };
1487
+ stylesPanelMode: "compact" | "full" | "mobile";
1472
1488
  };
1473
1489
  files: import("../types").BinaryFiles;
1474
1490
  captureUpdate: "EVENTUALLY";
@@ -1484,7 +1500,7 @@ export declare const actionExportWithDarkMode: {
1484
1500
  category: "export";
1485
1501
  action: string;
1486
1502
  };
1487
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1503
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1488
1504
  appState: {
1489
1505
  exportWithDarkMode: any;
1490
1506
  contextMenu: {
@@ -1496,17 +1512,17 @@ export declare const actionExportWithDarkMode: {
1496
1512
  isLoading: boolean;
1497
1513
  errorMessage: import("react").ReactNode;
1498
1514
  activeEmbeddable: {
1499
- element: import("../element/types").NonDeletedExcalidrawElement;
1500
- state: "hover" | "active";
1515
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1516
+ state: "active" | "hover";
1501
1517
  } | null;
1502
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1503
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1504
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1505
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1518
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1519
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1520
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1521
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1506
1522
  isBindingEnabled: boolean;
1507
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1508
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1509
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1523
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1524
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1525
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1510
1526
  frameRendering: {
1511
1527
  enabled: boolean;
1512
1528
  name: boolean;
@@ -1514,13 +1530,17 @@ export declare const actionExportWithDarkMode: {
1514
1530
  clip: boolean;
1515
1531
  };
1516
1532
  editingFrame: string | null;
1517
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1518
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1519
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1533
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1534
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1520
1535
  activeTool: {
1521
1536
  lastActiveTool: import("../types").ActiveTool | null;
1522
1537
  locked: boolean;
1538
+ fromSelection: boolean;
1523
1539
  } & import("../types").ActiveTool;
1540
+ preferredSelectionTool: {
1541
+ type: "selection" | "lasso";
1542
+ initialized: boolean;
1543
+ };
1524
1544
  penMode: boolean;
1525
1545
  penDetected: boolean;
1526
1546
  exportBackground: boolean;
@@ -1528,18 +1548,18 @@ export declare const actionExportWithDarkMode: {
1528
1548
  exportScale: number;
1529
1549
  currentItemStrokeColor: string;
1530
1550
  currentItemBackgroundColor: string;
1531
- currentItemFillStyle: import("../element/types").FillStyle;
1551
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1532
1552
  currentItemStrokeWidth: number;
1533
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1553
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1534
1554
  currentItemRoughness: number;
1535
1555
  currentItemOpacity: number;
1536
1556
  currentItemFontFamily: number;
1537
1557
  currentItemFontSize: number;
1538
1558
  currentItemTextAlign: string;
1539
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1540
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1559
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1560
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1541
1561
  currentHoveredFontFamily: number | null;
1542
- currentItemRoundness: import("../element/types").StrokeRoundness;
1562
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1543
1563
  currentItemArrowType: "round" | "sharp" | "elbow";
1544
1564
  viewBackgroundColor: string;
1545
1565
  scrollX: number;
@@ -1553,7 +1573,7 @@ export declare const actionExportWithDarkMode: {
1553
1573
  value: import("../types").NormalizedZoomValue;
1554
1574
  }>;
1555
1575
  openMenu: "canvas" | "shape" | null;
1556
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1576
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1557
1577
  openSidebar: {
1558
1578
  name: string;
1559
1579
  tab?: string | undefined;
@@ -1562,7 +1582,7 @@ export declare const actionExportWithDarkMode: {
1562
1582
  name: "imageExport" | "help" | "jsonExport";
1563
1583
  } | {
1564
1584
  name: "ttd";
1565
- tab: "text-to-diagram" | "mermaid";
1585
+ tab: "mermaid" | "text-to-diagram";
1566
1586
  } | {
1567
1587
  name: "commandPalette";
1568
1588
  } | {
@@ -1570,7 +1590,7 @@ export declare const actionExportWithDarkMode: {
1570
1590
  sourceElementId: string;
1571
1591
  } | null;
1572
1592
  defaultSidebarDockedPreference: boolean;
1573
- lastPointerDownWith: import("../element/types").PointerType;
1593
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1574
1594
  selectedElementIds: Readonly<{
1575
1595
  [id: string]: true;
1576
1596
  }>;
@@ -1609,7 +1629,7 @@ export declare const actionExportWithDarkMode: {
1609
1629
  [id: string]: true;
1610
1630
  }> | undefined;
1611
1631
  username?: string | null | undefined;
1612
- userState?: import("../constants").UserIdleState | undefined;
1632
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1613
1633
  color?: {
1614
1634
  background: string;
1615
1635
  stroke: string;
@@ -1626,7 +1646,7 @@ export declare const actionExportWithDarkMode: {
1626
1646
  open: boolean;
1627
1647
  panels: number;
1628
1648
  };
1629
- currentChartType: import("../element/types").ChartType;
1649
+ currentChartType: import("@excalidraw/element/types").ChartType;
1630
1650
  pasteDialog: {
1631
1651
  shown: false;
1632
1652
  data: null;
@@ -1634,9 +1654,8 @@ export declare const actionExportWithDarkMode: {
1634
1654
  shown: true;
1635
1655
  data: import("../charts").Spreadsheet;
1636
1656
  };
1637
- pendingImageElementId: string | null;
1638
- showHyperlinkPopup: false | "info" | "editor";
1639
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1657
+ showHyperlinkPopup: false | "editor" | "info";
1658
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1640
1659
  snapLines: readonly import("../snapping").SnapLine[];
1641
1660
  originSnapOffset: {
1642
1661
  x: number;
@@ -1647,16 +1666,15 @@ export declare const actionExportWithDarkMode: {
1647
1666
  followedBy: Set<import("../types").SocketId>;
1648
1667
  isCropping: boolean;
1649
1668
  croppingElementId: string | null;
1650
- searchMatches: readonly {
1651
- id: string;
1652
- focus: boolean;
1653
- matchedLines: {
1654
- offsetX: number;
1655
- offsetY: number;
1656
- width: number;
1657
- height: number;
1658
- }[];
1659
- }[];
1669
+ searchMatches: Readonly<{
1670
+ focusedId: string | null;
1671
+ matches: readonly import("../types").SearchMatch[];
1672
+ }> | null;
1673
+ activeLockedId: string | null;
1674
+ lockedMultiSelections: {
1675
+ [groupId: string]: true;
1676
+ };
1677
+ stylesPanelMode: "compact" | "full" | "mobile";
1660
1678
  };
1661
1679
  captureUpdate: "EVENTUALLY";
1662
1680
  };