@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-864353b

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 (288) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/{chunk-LMHBUWQS.js → chunk-7YMZV3TY.js} +15 -4
  3. package/dist/dev/chunk-7YMZV3TY.js.map +7 -0
  4. package/dist/dev/chunk-BBNNHA7I.js +7 -0
  5. package/dist/dev/chunk-BBNNHA7I.js.map +7 -0
  6. package/dist/dev/chunk-FB2NA5UG.js +4132 -0
  7. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  8. package/dist/dev/{chunk-3SN6HYVK.js → chunk-LL55DS44.js} +19504 -21522
  9. package/dist/dev/chunk-LL55DS44.js.map +7 -0
  10. package/dist/dev/data/{image-V26YBSDB.js → image-OFYK7EOY.js} +3 -3
  11. package/dist/dev/index.css +3098 -3023
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +27238 -22881
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-KIY5SGI3.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-F44EGBV2.js +33 -0
  19. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  20. package/dist/prod/{chunk-6U3AYISY.js → chunk-OUULIERA.js} +4 -4
  21. package/dist/prod/chunk-UH6Q3EIV.js +7 -0
  22. package/dist/prod/data/image-CUOH64HE.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +20 -16
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-GCLCIHXH.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 +18 -7
  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 +24 -11
  38. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +14 -17
  39. package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
  40. package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
  41. package/dist/types/element/src/align.d.ts +7 -0
  42. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +24 -16
  43. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +9 -4
  44. package/dist/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
  45. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  46. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +41 -36
  47. package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
  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 +5 -2
  55. package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
  56. package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -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 +59 -0
  60. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +22 -33
  61. package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +11 -3
  62. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -43
  63. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  64. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +6 -6
  65. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  66. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -7
  67. package/dist/types/element/src/shapes.d.ts +27 -0
  68. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  69. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +3 -3
  70. package/dist/types/element/src/store.d.ts +227 -0
  71. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
  72. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +3 -3
  73. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +17 -3
  74. package/dist/types/{excalidraw/element → element/src}/types.d.ts +16 -3
  75. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  76. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +91 -94
  77. package/dist/types/excalidraw/actions/actionAlign.d.ts +15 -15
  78. package/dist/types/excalidraw/actions/actionBoundText.d.ts +66 -68
  79. package/dist/types/excalidraw/actions/actionCanvas.d.ts +576 -413
  80. package/dist/types/excalidraw/actions/actionClipboard.d.ts +195 -200
  81. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +32 -33
  82. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +93 -95
  83. package/dist/types/excalidraw/actions/actionDistribute.d.ts +7 -7
  84. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +5 -9
  85. package/dist/types/excalidraw/actions/actionElementLink.d.ts +36 -37
  86. package/dist/types/excalidraw/actions/actionElementLock.d.ts +78 -82
  87. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +32 -43
  88. package/dist/types/excalidraw/actions/actionExport.d.ts +295 -304
  89. package/dist/types/excalidraw/actions/actionFinalize.d.ts +95 -57
  90. package/dist/types/excalidraw/actions/actionFlip.d.ts +7 -7
  91. package/dist/types/excalidraw/actions/actionFrame.d.ts +203 -207
  92. package/dist/types/excalidraw/actions/actionGroup.d.ts +65 -67
  93. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  94. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +526 -34
  95. package/dist/types/excalidraw/actions/actionLink.d.ts +36 -37
  96. package/dist/types/excalidraw/actions/actionMenu.d.ts +95 -98
  97. package/dist/types/excalidraw/actions/actionNavigate.d.ts +61 -63
  98. package/dist/types/excalidraw/actions/actionProperties.d.ts +428 -435
  99. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +33 -34
  100. package/dist/types/excalidraw/actions/actionStyles.d.ts +38 -39
  101. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  102. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +34 -35
  103. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -35
  104. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +34 -207
  105. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  106. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +33 -35
  107. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +34 -36
  108. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +34 -36
  109. package/dist/types/excalidraw/actions/actionZindex.d.ts +16 -16
  110. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  111. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  112. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  113. package/dist/types/excalidraw/actions/types.d.ts +6 -5
  114. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  115. package/dist/types/excalidraw/appState.d.ts +33 -23
  116. package/dist/types/excalidraw/charts.d.ts +1 -1
  117. package/dist/types/excalidraw/clipboard.d.ts +7 -7
  118. package/dist/types/excalidraw/components/Actions.d.ts +3 -3
  119. package/dist/types/excalidraw/components/App.d.ts +38 -20
  120. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  121. package/dist/types/excalidraw/components/ButtonIcon.d.ts +2 -1
  122. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  123. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -5
  124. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  125. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  126. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -5
  127. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -4
  128. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -3
  129. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  130. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +4 -4
  131. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  132. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  133. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  134. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  135. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  136. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  137. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  138. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  139. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  140. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  141. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  142. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  143. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  144. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  145. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  146. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  147. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  148. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  149. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  150. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  151. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  152. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  153. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  154. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  155. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  156. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  157. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  158. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  159. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  160. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  161. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  162. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  163. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  164. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  165. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  166. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  167. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  168. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  169. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  170. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  171. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  172. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  173. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  174. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  175. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +3 -3
  176. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  177. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  178. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  179. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  180. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  181. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  182. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  183. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  184. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  185. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  186. package/dist/types/excalidraw/components/TextField.d.ts +1 -1
  187. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  188. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  189. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  190. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  191. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  192. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  193. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  194. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  198. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  199. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
  200. package/dist/types/excalidraw/components/icons.d.ts +5 -1
  201. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  202. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  203. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  204. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  205. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  206. package/dist/types/excalidraw/data/blob.d.ts +3 -3
  207. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  208. package/dist/types/excalidraw/data/index.d.ts +2 -2
  209. package/dist/types/excalidraw/data/json.d.ts +1 -1
  210. package/dist/types/excalidraw/data/library.d.ts +3 -3
  211. package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
  212. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  213. package/dist/types/excalidraw/data/restore.d.ts +1 -1
  214. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  215. package/dist/types/excalidraw/data/types.d.ts +3 -3
  216. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  217. package/dist/types/excalidraw/eraser/index.d.ts +14 -0
  218. package/dist/types/excalidraw/errors.d.ts +0 -3
  219. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  220. package/dist/types/excalidraw/history.d.ts +15 -23
  221. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  222. package/dist/types/excalidraw/i18n.d.ts +1 -1
  223. package/dist/types/excalidraw/index.d.ts +16 -15
  224. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  225. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  226. package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
  227. package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
  228. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  229. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -3
  230. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  231. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  232. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  233. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  234. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  235. package/dist/types/excalidraw/snapping.d.ts +5 -6
  236. package/dist/types/excalidraw/types.d.ts +39 -18
  237. package/dist/types/excalidraw/visualdebug.d.ts +2 -2
  238. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  239. package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
  240. package/dist/types/math/{curve.d.ts → src/curve.d.ts} +2 -0
  241. package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
  242. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  243. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  244. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  245. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +4 -0
  246. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  247. package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
  248. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  249. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  250. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  251. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  252. package/history.ts +70 -94
  253. package/package.json +16 -4
  254. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  255. package/dist/dev/chunk-53KHN5WM.js +0 -7
  256. package/dist/dev/chunk-53KHN5WM.js.map +0 -7
  257. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  258. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  259. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  260. package/dist/prod/chunk-36CXSE6H.js +0 -34
  261. package/dist/prod/chunk-EIO257PC.js +0 -86
  262. package/dist/prod/chunk-G5N3DNGT.js +0 -7
  263. package/dist/prod/data/image-N4WCURRR.js +0 -1
  264. package/dist/types/excalidraw/align.d.ts +0 -7
  265. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  266. package/dist/types/excalidraw/element/index.d.ts +0 -26
  267. package/dist/types/excalidraw/shapes.d.ts +0 -85
  268. package/dist/types/excalidraw/store.d.ts +0 -129
  269. package/dist/dev/data/{image-V26YBSDB.js.map → image-OFYK7EOY.js.map} +0 -0
  270. package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-KIY5SGI3.js.map} +0 -0
  271. package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  272. package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  273. package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  274. package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  275. package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  276. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  277. package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  278. package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  279. package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  280. package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  281. package/dist/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
  282. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  283. /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
  284. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  285. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  286. /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  287. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  288. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -1,14 +1,13 @@
1
1
  /// <reference types="react" />
2
- import type { ExcalidrawElement } from "../element/types";
2
+ import { type SceneBounds } from "@excalidraw/element";
3
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
3
4
  import type { AppState, Offsets } from "../types";
4
- import type { SceneBounds } from "../element/bounds";
5
5
  export declare const actionChangeViewBackgroundColor: {
6
6
  name: "changeViewBackgroundColor";
7
7
  label: string;
8
- paletteName: string;
9
8
  trackEvent: false;
10
9
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
10
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
12
11
  appState: any;
13
12
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
14
13
  };
@@ -19,17 +18,16 @@ export declare const actionChangeViewBackgroundColor: {
19
18
  export declare const actionClearCanvas: {
20
19
  name: "clearCanvas";
21
20
  label: string;
22
- paletteName: string;
23
21
  icon: import("react/jsx-runtime").JSX.Element;
24
22
  trackEvent: {
25
23
  category: "canvas";
26
24
  };
27
25
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
28
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
29
- elements: import("../element/types").OrderedExcalidrawElement[];
26
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
27
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
30
28
  appState: {
31
29
  files: {};
32
- theme: import("../element/types").Theme;
30
+ theme: import("@excalidraw/element/types").Theme;
33
31
  penMode: boolean;
34
32
  penDetected: boolean;
35
33
  exportBackground: boolean;
@@ -51,32 +49,32 @@ export declare const actionClearCanvas: {
51
49
  activeTool: {
52
50
  lastActiveTool: import("../types").ActiveTool | null;
53
51
  locked: boolean;
52
+ fromSelection: boolean;
54
53
  } & import("../types").ActiveTool;
55
- viewModeEnabled: boolean;
56
- zenModeEnabled: boolean;
57
- objectsSnapModeEnabled: boolean;
58
- name: string | null;
59
- currentItemArrowType: "round" | "sharp" | "elbow";
60
54
  contextMenu: {
61
55
  items: import("../components/ContextMenu").ContextMenuItems;
62
56
  top: number;
63
57
  left: number;
64
58
  } | null;
59
+ exportWithDarkMode: boolean;
60
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
61
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
62
+ cursorButton: "up" | "down";
63
+ scrollX: number;
64
+ scrollY: number;
65
65
  showWelcomeScreen: boolean;
66
66
  isLoading: boolean;
67
67
  errorMessage: import("react").ReactNode;
68
68
  activeEmbeddable: {
69
- element: import("../element/types").NonDeletedExcalidrawElement;
69
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
70
70
  state: "hover" | "active";
71
71
  } | null;
72
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
73
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
74
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
75
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
72
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
73
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
74
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
75
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
76
76
  isBindingEnabled: boolean;
77
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
78
- suggestedBindings: import("../element/binding").SuggestedBinding[];
79
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
77
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
80
78
  frameRendering: {
81
79
  enabled: boolean;
82
80
  name: boolean;
@@ -84,30 +82,28 @@ export declare const actionClearCanvas: {
84
82
  clip: boolean;
85
83
  };
86
84
  editingFrame: string | null;
87
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
88
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
89
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
90
- exportWithDarkMode: boolean;
85
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
86
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
87
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
91
88
  exportScale: number;
92
89
  currentItemStrokeColor: string;
93
90
  currentItemBackgroundColor: string;
94
- currentItemFillStyle: import("../element/types").FillStyle;
91
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
95
92
  currentItemStrokeWidth: number;
96
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
93
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
97
94
  currentItemRoughness: number;
98
95
  currentItemOpacity: number;
99
96
  currentItemFontFamily: number;
100
97
  currentItemFontSize: number;
101
98
  currentItemTextAlign: string;
102
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
103
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
99
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
100
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
104
101
  currentHoveredFontFamily: number | null;
105
- currentItemRoundness: import("../element/types").StrokeRoundness;
102
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
103
+ currentItemArrowType: "round" | "sharp" | "elbow";
106
104
  viewBackgroundColor: string;
107
- scrollX: number;
108
- scrollY: number;
109
- cursorButton: "up" | "down";
110
105
  scrolledOutside: boolean;
106
+ name: string | null;
111
107
  isResizing: boolean;
112
108
  isRotating: boolean;
113
109
  zoom: Readonly<{
@@ -131,7 +127,7 @@ export declare const actionClearCanvas: {
131
127
  sourceElementId: string;
132
128
  } | null;
133
129
  defaultSidebarDockedPreference: boolean;
134
- lastPointerDownWith: import("../element/types").PointerType;
130
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
135
131
  selectedElementIds: Readonly<{
136
132
  [id: string]: true;
137
133
  }>;
@@ -148,6 +144,8 @@ export declare const actionClearCanvas: {
148
144
  closable?: boolean | undefined;
149
145
  duration?: number | undefined;
150
146
  } | null;
147
+ zenModeEnabled: boolean;
148
+ viewModeEnabled: boolean;
151
149
  selectedGroupIds: {
152
150
  [groupId: string]: boolean;
153
151
  };
@@ -160,7 +158,7 @@ export declare const actionClearCanvas: {
160
158
  [id: string]: true;
161
159
  }> | undefined;
162
160
  username?: string | null | undefined;
163
- userState?: import("../constants").UserIdleState | undefined;
161
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
164
162
  color?: {
165
163
  background: string;
166
164
  stroke: string;
@@ -173,29 +171,28 @@ export declare const actionClearCanvas: {
173
171
  isSpeaking?: boolean | undefined;
174
172
  isMuted?: boolean | undefined;
175
173
  }>>;
176
- currentChartType: import("../element/types").ChartType;
174
+ currentChartType: import("@excalidraw/element/types").ChartType;
177
175
  pendingImageElementId: string | null;
178
176
  showHyperlinkPopup: false | "info" | "editor";
179
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
177
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
180
178
  snapLines: readonly import("../snapping").SnapLine[];
181
179
  originSnapOffset: {
182
180
  x: number;
183
181
  y: number;
184
182
  } | null;
183
+ objectsSnapModeEnabled: boolean;
185
184
  userToFollow: import("../types").UserToFollow | null;
186
185
  followedBy: Set<import("../types").SocketId>;
187
186
  isCropping: boolean;
188
187
  croppingElementId: string | null;
189
- searchMatches: readonly {
190
- id: string;
191
- focus: boolean;
192
- matchedLines: {
193
- offsetX: number;
194
- offsetY: number;
195
- width: number;
196
- height: number;
197
- }[];
198
- }[];
188
+ searchMatches: Readonly<{
189
+ focusedId: string | null;
190
+ matches: readonly import("../types").SearchMatch[];
191
+ }> | null;
192
+ activeLockedId: string | null;
193
+ lockedMultiSelections: {
194
+ [groupId: string]: true;
195
+ };
199
196
  };
200
197
  captureUpdate: "IMMEDIATELY";
201
198
  };
@@ -210,7 +207,7 @@ export declare const actionZoomIn: {
210
207
  trackEvent: {
211
208
  category: "canvas";
212
209
  };
213
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
210
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
214
211
  appState: {
215
212
  userToFollow: null;
216
213
  scrollX: number;
@@ -227,17 +224,17 @@ export declare const actionZoomIn: {
227
224
  isLoading: boolean;
228
225
  errorMessage: import("react").ReactNode;
229
226
  activeEmbeddable: {
230
- element: import("../element/types").NonDeletedExcalidrawElement;
227
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
231
228
  state: "hover" | "active";
232
229
  } | null;
233
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
234
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
235
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
236
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
230
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
231
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
232
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
233
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
234
  isBindingEnabled: boolean;
238
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
239
- suggestedBindings: import("../element/binding").SuggestedBinding[];
240
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
235
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
236
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
237
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
241
238
  frameRendering: {
242
239
  enabled: boolean;
243
240
  name: boolean;
@@ -245,12 +242,13 @@ export declare const actionZoomIn: {
245
242
  clip: boolean;
246
243
  };
247
244
  editingFrame: string | null;
248
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
249
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
250
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
245
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
246
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
247
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
251
248
  activeTool: {
252
249
  lastActiveTool: import("../types").ActiveTool | null;
253
250
  locked: boolean;
251
+ fromSelection: boolean;
254
252
  } & import("../types").ActiveTool;
255
253
  penMode: boolean;
256
254
  penDetected: boolean;
@@ -260,18 +258,18 @@ export declare const actionZoomIn: {
260
258
  exportScale: number;
261
259
  currentItemStrokeColor: string;
262
260
  currentItemBackgroundColor: string;
263
- currentItemFillStyle: import("../element/types").FillStyle;
261
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
264
262
  currentItemStrokeWidth: number;
265
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
263
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
266
264
  currentItemRoughness: number;
267
265
  currentItemOpacity: number;
268
266
  currentItemFontFamily: number;
269
267
  currentItemFontSize: number;
270
268
  currentItemTextAlign: string;
271
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
272
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
269
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
270
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
273
271
  currentHoveredFontFamily: number | null;
274
- currentItemRoundness: import("../element/types").StrokeRoundness;
272
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
275
273
  currentItemArrowType: "round" | "sharp" | "elbow";
276
274
  viewBackgroundColor: string;
277
275
  cursorButton: "up" | "down";
@@ -297,7 +295,7 @@ export declare const actionZoomIn: {
297
295
  sourceElementId: string;
298
296
  } | null;
299
297
  defaultSidebarDockedPreference: boolean;
300
- lastPointerDownWith: import("../element/types").PointerType;
298
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
301
299
  selectedElementIds: Readonly<{
302
300
  [id: string]: true;
303
301
  }>;
@@ -315,7 +313,7 @@ export declare const actionZoomIn: {
315
313
  duration?: number | undefined;
316
314
  } | null;
317
315
  zenModeEnabled: boolean;
318
- theme: import("../element/types").Theme;
316
+ theme: import("@excalidraw/element/types").Theme;
319
317
  gridSize: number;
320
318
  gridStep: number;
321
319
  gridModeEnabled: boolean;
@@ -336,7 +334,7 @@ export declare const actionZoomIn: {
336
334
  [id: string]: true;
337
335
  }> | undefined;
338
336
  username?: string | null | undefined;
339
- userState?: import("../constants").UserIdleState | undefined;
337
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
340
338
  color?: {
341
339
  background: string;
342
340
  stroke: string;
@@ -353,7 +351,7 @@ export declare const actionZoomIn: {
353
351
  open: boolean;
354
352
  panels: number;
355
353
  };
356
- currentChartType: import("../element/types").ChartType;
354
+ currentChartType: import("@excalidraw/element/types").ChartType;
357
355
  pasteDialog: {
358
356
  shown: false;
359
357
  data: null;
@@ -363,7 +361,7 @@ export declare const actionZoomIn: {
363
361
  };
364
362
  pendingImageElementId: string | null;
365
363
  showHyperlinkPopup: false | "info" | "editor";
366
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
364
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
367
365
  snapLines: readonly import("../snapping").SnapLine[];
368
366
  originSnapOffset: {
369
367
  x: number;
@@ -373,23 +371,21 @@ export declare const actionZoomIn: {
373
371
  followedBy: Set<import("../types").SocketId>;
374
372
  isCropping: boolean;
375
373
  croppingElementId: string | null;
376
- searchMatches: readonly {
377
- id: string;
378
- focus: boolean;
379
- matchedLines: {
380
- offsetX: number;
381
- offsetY: number;
382
- width: number;
383
- height: number;
384
- }[];
385
- }[];
374
+ searchMatches: Readonly<{
375
+ focusedId: string | null;
376
+ matches: readonly import("../types").SearchMatch[];
377
+ }> | null;
378
+ activeLockedId: string | null;
379
+ lockedMultiSelections: {
380
+ [groupId: string]: true;
381
+ };
386
382
  };
387
383
  captureUpdate: "EVENTUALLY";
388
384
  };
389
385
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
390
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
386
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
391
387
  } & {
392
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
388
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
393
389
  };
394
390
  export declare const actionZoomOut: {
395
391
  name: "zoomOut";
@@ -399,7 +395,7 @@ export declare const actionZoomOut: {
399
395
  trackEvent: {
400
396
  category: "canvas";
401
397
  };
402
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
398
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
403
399
  appState: {
404
400
  userToFollow: null;
405
401
  scrollX: number;
@@ -416,17 +412,17 @@ export declare const actionZoomOut: {
416
412
  isLoading: boolean;
417
413
  errorMessage: import("react").ReactNode;
418
414
  activeEmbeddable: {
419
- element: import("../element/types").NonDeletedExcalidrawElement;
415
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
420
416
  state: "hover" | "active";
421
417
  } | null;
422
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
423
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
424
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
425
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
418
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
419
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
420
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
421
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
422
  isBindingEnabled: boolean;
427
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
428
- suggestedBindings: import("../element/binding").SuggestedBinding[];
429
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
423
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
424
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
425
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
430
426
  frameRendering: {
431
427
  enabled: boolean;
432
428
  name: boolean;
@@ -434,12 +430,13 @@ export declare const actionZoomOut: {
434
430
  clip: boolean;
435
431
  };
436
432
  editingFrame: string | null;
437
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
438
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
439
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
433
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
434
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
435
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
440
436
  activeTool: {
441
437
  lastActiveTool: import("../types").ActiveTool | null;
442
438
  locked: boolean;
439
+ fromSelection: boolean;
443
440
  } & import("../types").ActiveTool;
444
441
  penMode: boolean;
445
442
  penDetected: boolean;
@@ -449,18 +446,18 @@ export declare const actionZoomOut: {
449
446
  exportScale: number;
450
447
  currentItemStrokeColor: string;
451
448
  currentItemBackgroundColor: string;
452
- currentItemFillStyle: import("../element/types").FillStyle;
449
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
453
450
  currentItemStrokeWidth: number;
454
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
451
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
455
452
  currentItemRoughness: number;
456
453
  currentItemOpacity: number;
457
454
  currentItemFontFamily: number;
458
455
  currentItemFontSize: number;
459
456
  currentItemTextAlign: string;
460
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
461
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
457
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
458
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
462
459
  currentHoveredFontFamily: number | null;
463
- currentItemRoundness: import("../element/types").StrokeRoundness;
460
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
464
461
  currentItemArrowType: "round" | "sharp" | "elbow";
465
462
  viewBackgroundColor: string;
466
463
  cursorButton: "up" | "down";
@@ -486,7 +483,7 @@ export declare const actionZoomOut: {
486
483
  sourceElementId: string;
487
484
  } | null;
488
485
  defaultSidebarDockedPreference: boolean;
489
- lastPointerDownWith: import("../element/types").PointerType;
486
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
490
487
  selectedElementIds: Readonly<{
491
488
  [id: string]: true;
492
489
  }>;
@@ -504,7 +501,7 @@ export declare const actionZoomOut: {
504
501
  duration?: number | undefined;
505
502
  } | null;
506
503
  zenModeEnabled: boolean;
507
- theme: import("../element/types").Theme;
504
+ theme: import("@excalidraw/element/types").Theme;
508
505
  gridSize: number;
509
506
  gridStep: number;
510
507
  gridModeEnabled: boolean;
@@ -525,7 +522,7 @@ export declare const actionZoomOut: {
525
522
  [id: string]: true;
526
523
  }> | undefined;
527
524
  username?: string | null | undefined;
528
- userState?: import("../constants").UserIdleState | undefined;
525
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
529
526
  color?: {
530
527
  background: string;
531
528
  stroke: string;
@@ -542,7 +539,7 @@ export declare const actionZoomOut: {
542
539
  open: boolean;
543
540
  panels: number;
544
541
  };
545
- currentChartType: import("../element/types").ChartType;
542
+ currentChartType: import("@excalidraw/element/types").ChartType;
546
543
  pasteDialog: {
547
544
  shown: false;
548
545
  data: null;
@@ -552,7 +549,7 @@ export declare const actionZoomOut: {
552
549
  };
553
550
  pendingImageElementId: string | null;
554
551
  showHyperlinkPopup: false | "info" | "editor";
555
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
552
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
556
553
  snapLines: readonly import("../snapping").SnapLine[];
557
554
  originSnapOffset: {
558
555
  x: number;
@@ -562,23 +559,21 @@ export declare const actionZoomOut: {
562
559
  followedBy: Set<import("../types").SocketId>;
563
560
  isCropping: boolean;
564
561
  croppingElementId: string | null;
565
- searchMatches: readonly {
566
- id: string;
567
- focus: boolean;
568
- matchedLines: {
569
- offsetX: number;
570
- offsetY: number;
571
- width: number;
572
- height: number;
573
- }[];
574
- }[];
562
+ searchMatches: Readonly<{
563
+ focusedId: string | null;
564
+ matches: readonly import("../types").SearchMatch[];
565
+ }> | null;
566
+ activeLockedId: string | null;
567
+ lockedMultiSelections: {
568
+ [groupId: string]: true;
569
+ };
575
570
  };
576
571
  captureUpdate: "EVENTUALLY";
577
572
  };
578
573
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
579
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
574
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
580
575
  } & {
581
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
576
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
582
577
  };
583
578
  export declare const actionResetZoom: {
584
579
  name: "resetZoom";
@@ -588,7 +583,7 @@ export declare const actionResetZoom: {
588
583
  trackEvent: {
589
584
  category: "canvas";
590
585
  };
591
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
586
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
592
587
  appState: {
593
588
  userToFollow: null;
594
589
  scrollX: number;
@@ -605,17 +600,17 @@ export declare const actionResetZoom: {
605
600
  isLoading: boolean;
606
601
  errorMessage: import("react").ReactNode;
607
602
  activeEmbeddable: {
608
- element: import("../element/types").NonDeletedExcalidrawElement;
603
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
609
604
  state: "hover" | "active";
610
605
  } | null;
611
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
612
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
613
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
614
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
606
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
607
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
608
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
609
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
615
610
  isBindingEnabled: boolean;
616
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
617
- suggestedBindings: import("../element/binding").SuggestedBinding[];
618
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
611
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
612
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
613
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
619
614
  frameRendering: {
620
615
  enabled: boolean;
621
616
  name: boolean;
@@ -623,12 +618,13 @@ export declare const actionResetZoom: {
623
618
  clip: boolean;
624
619
  };
625
620
  editingFrame: string | null;
626
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
627
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
628
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
621
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
622
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
623
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
629
624
  activeTool: {
630
625
  lastActiveTool: import("../types").ActiveTool | null;
631
626
  locked: boolean;
627
+ fromSelection: boolean;
632
628
  } & import("../types").ActiveTool;
633
629
  penMode: boolean;
634
630
  penDetected: boolean;
@@ -638,18 +634,18 @@ export declare const actionResetZoom: {
638
634
  exportScale: number;
639
635
  currentItemStrokeColor: string;
640
636
  currentItemBackgroundColor: string;
641
- currentItemFillStyle: import("../element/types").FillStyle;
637
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
642
638
  currentItemStrokeWidth: number;
643
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
639
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
644
640
  currentItemRoughness: number;
645
641
  currentItemOpacity: number;
646
642
  currentItemFontFamily: number;
647
643
  currentItemFontSize: number;
648
644
  currentItemTextAlign: string;
649
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
650
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
645
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
646
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
651
647
  currentHoveredFontFamily: number | null;
652
- currentItemRoundness: import("../element/types").StrokeRoundness;
648
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
653
649
  currentItemArrowType: "round" | "sharp" | "elbow";
654
650
  viewBackgroundColor: string;
655
651
  cursorButton: "up" | "down";
@@ -675,7 +671,7 @@ export declare const actionResetZoom: {
675
671
  sourceElementId: string;
676
672
  } | null;
677
673
  defaultSidebarDockedPreference: boolean;
678
- lastPointerDownWith: import("../element/types").PointerType;
674
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
679
675
  selectedElementIds: Readonly<{
680
676
  [id: string]: true;
681
677
  }>;
@@ -693,7 +689,7 @@ export declare const actionResetZoom: {
693
689
  duration?: number | undefined;
694
690
  } | null;
695
691
  zenModeEnabled: boolean;
696
- theme: import("../element/types").Theme;
692
+ theme: import("@excalidraw/element/types").Theme;
697
693
  gridSize: number;
698
694
  gridStep: number;
699
695
  gridModeEnabled: boolean;
@@ -714,7 +710,7 @@ export declare const actionResetZoom: {
714
710
  [id: string]: true;
715
711
  }> | undefined;
716
712
  username?: string | null | undefined;
717
- userState?: import("../constants").UserIdleState | undefined;
713
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
718
714
  color?: {
719
715
  background: string;
720
716
  stroke: string;
@@ -731,7 +727,7 @@ export declare const actionResetZoom: {
731
727
  open: boolean;
732
728
  panels: number;
733
729
  };
734
- currentChartType: import("../element/types").ChartType;
730
+ currentChartType: import("@excalidraw/element/types").ChartType;
735
731
  pasteDialog: {
736
732
  shown: false;
737
733
  data: null;
@@ -741,7 +737,7 @@ export declare const actionResetZoom: {
741
737
  };
742
738
  pendingImageElementId: string | null;
743
739
  showHyperlinkPopup: false | "info" | "editor";
744
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
740
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
745
741
  snapLines: readonly import("../snapping").SnapLine[];
746
742
  originSnapOffset: {
747
743
  x: number;
@@ -751,23 +747,21 @@ export declare const actionResetZoom: {
751
747
  followedBy: Set<import("../types").SocketId>;
752
748
  isCropping: boolean;
753
749
  croppingElementId: string | null;
754
- searchMatches: readonly {
755
- id: string;
756
- focus: boolean;
757
- matchedLines: {
758
- offsetX: number;
759
- offsetY: number;
760
- width: number;
761
- height: number;
762
- }[];
763
- }[];
750
+ searchMatches: Readonly<{
751
+ focusedId: string | null;
752
+ matches: readonly import("../types").SearchMatch[];
753
+ }> | null;
754
+ activeLockedId: string | null;
755
+ lockedMultiSelections: {
756
+ [groupId: string]: true;
757
+ };
764
758
  };
765
759
  captureUpdate: "EVENTUALLY";
766
760
  };
767
761
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
768
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
762
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
769
763
  } & {
770
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
764
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
771
765
  };
772
766
  export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
773
767
  bounds: SceneBounds;
@@ -800,17 +794,17 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
800
794
  isLoading: boolean;
801
795
  errorMessage: import("react").ReactNode;
802
796
  activeEmbeddable: {
803
- element: import("../element/types").NonDeletedExcalidrawElement;
797
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
804
798
  state: "hover" | "active";
805
799
  } | null;
806
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
807
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
808
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
809
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
800
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
801
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
802
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
803
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
810
804
  isBindingEnabled: boolean;
811
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
812
- suggestedBindings: import("../element/binding").SuggestedBinding[];
813
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
805
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
806
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
807
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
814
808
  frameRendering: {
815
809
  enabled: boolean;
816
810
  name: boolean;
@@ -818,12 +812,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
818
812
  clip: boolean;
819
813
  };
820
814
  editingFrame: string | null;
821
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
822
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
823
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
815
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
816
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
817
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
824
818
  activeTool: {
825
819
  lastActiveTool: import("../types").ActiveTool | null;
826
820
  locked: boolean;
821
+ fromSelection: boolean;
827
822
  } & import("../types").ActiveTool;
828
823
  penMode: boolean;
829
824
  penDetected: boolean;
@@ -833,18 +828,18 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
833
828
  exportScale: number;
834
829
  currentItemStrokeColor: string;
835
830
  currentItemBackgroundColor: string;
836
- currentItemFillStyle: import("../element/types").FillStyle;
831
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
837
832
  currentItemStrokeWidth: number;
838
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
833
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
839
834
  currentItemRoughness: number;
840
835
  currentItemOpacity: number;
841
836
  currentItemFontFamily: number;
842
837
  currentItemFontSize: number;
843
838
  currentItemTextAlign: string;
844
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
845
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
839
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
840
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
846
841
  currentHoveredFontFamily: number | null;
847
- currentItemRoundness: import("../element/types").StrokeRoundness;
842
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
848
843
  currentItemArrowType: "round" | "sharp" | "elbow";
849
844
  viewBackgroundColor: string;
850
845
  cursorButton: "up" | "down";
@@ -870,7 +865,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
870
865
  sourceElementId: string;
871
866
  } | null;
872
867
  defaultSidebarDockedPreference: boolean;
873
- lastPointerDownWith: import("../element/types").PointerType;
868
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
874
869
  selectedElementIds: Readonly<{
875
870
  [id: string]: true;
876
871
  }>;
@@ -888,7 +883,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
888
883
  duration?: number | undefined;
889
884
  } | null;
890
885
  zenModeEnabled: boolean;
891
- theme: import("../element/types").Theme;
886
+ theme: import("@excalidraw/element/types").Theme;
892
887
  gridSize: number;
893
888
  gridStep: number;
894
889
  gridModeEnabled: boolean;
@@ -909,7 +904,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
909
904
  [id: string]: true;
910
905
  }> | undefined;
911
906
  username?: string | null | undefined;
912
- userState?: import("../constants").UserIdleState | undefined;
907
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
913
908
  color?: {
914
909
  background: string;
915
910
  stroke: string;
@@ -926,7 +921,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
926
921
  open: boolean;
927
922
  panels: number;
928
923
  };
929
- currentChartType: import("../element/types").ChartType;
924
+ currentChartType: import("@excalidraw/element/types").ChartType;
930
925
  pasteDialog: {
931
926
  shown: false;
932
927
  data: null;
@@ -936,7 +931,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
936
931
  };
937
932
  pendingImageElementId: string | null;
938
933
  showHyperlinkPopup: false | "info" | "editor";
939
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
934
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
940
935
  snapLines: readonly import("../snapping").SnapLine[];
941
936
  originSnapOffset: {
942
937
  x: number;
@@ -947,16 +942,14 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
947
942
  followedBy: Set<import("../types").SocketId>;
948
943
  isCropping: boolean;
949
944
  croppingElementId: string | null;
950
- searchMatches: readonly {
951
- id: string;
952
- focus: boolean;
953
- matchedLines: {
954
- offsetX: number;
955
- offsetY: number;
956
- width: number;
957
- height: number;
958
- }[];
959
- }[];
945
+ searchMatches: Readonly<{
946
+ focusedId: string | null;
947
+ matches: readonly import("../types").SearchMatch[];
948
+ }> | null;
949
+ activeLockedId: string | null;
950
+ lockedMultiSelections: {
951
+ [groupId: string]: true;
952
+ };
960
953
  };
961
954
  captureUpdate: "EVENTUALLY";
962
955
  };
@@ -991,17 +984,17 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
991
984
  isLoading: boolean;
992
985
  errorMessage: import("react").ReactNode;
993
986
  activeEmbeddable: {
994
- element: import("../element/types").NonDeletedExcalidrawElement;
987
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
995
988
  state: "hover" | "active";
996
989
  } | null;
997
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
998
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
999
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1000
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
990
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
991
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
992
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
993
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1001
994
  isBindingEnabled: boolean;
1002
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1003
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1004
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
995
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
996
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
997
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1005
998
  frameRendering: {
1006
999
  enabled: boolean;
1007
1000
  name: boolean;
@@ -1009,12 +1002,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1009
1002
  clip: boolean;
1010
1003
  };
1011
1004
  editingFrame: string | null;
1012
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1013
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1014
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1005
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1006
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1007
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1015
1008
  activeTool: {
1016
1009
  lastActiveTool: import("../types").ActiveTool | null;
1017
1010
  locked: boolean;
1011
+ fromSelection: boolean;
1018
1012
  } & import("../types").ActiveTool;
1019
1013
  penMode: boolean;
1020
1014
  penDetected: boolean;
@@ -1024,18 +1018,18 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1024
1018
  exportScale: number;
1025
1019
  currentItemStrokeColor: string;
1026
1020
  currentItemBackgroundColor: string;
1027
- currentItemFillStyle: import("../element/types").FillStyle;
1021
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1028
1022
  currentItemStrokeWidth: number;
1029
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1023
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1030
1024
  currentItemRoughness: number;
1031
1025
  currentItemOpacity: number;
1032
1026
  currentItemFontFamily: number;
1033
1027
  currentItemFontSize: number;
1034
1028
  currentItemTextAlign: string;
1035
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1036
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1029
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1030
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1037
1031
  currentHoveredFontFamily: number | null;
1038
- currentItemRoundness: import("../element/types").StrokeRoundness;
1032
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1039
1033
  currentItemArrowType: "round" | "sharp" | "elbow";
1040
1034
  viewBackgroundColor: string;
1041
1035
  cursorButton: "up" | "down";
@@ -1061,7 +1055,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1061
1055
  sourceElementId: string;
1062
1056
  } | null;
1063
1057
  defaultSidebarDockedPreference: boolean;
1064
- lastPointerDownWith: import("../element/types").PointerType;
1058
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1065
1059
  selectedElementIds: Readonly<{
1066
1060
  [id: string]: true;
1067
1061
  }>;
@@ -1079,7 +1073,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1079
1073
  duration?: number | undefined;
1080
1074
  } | null;
1081
1075
  zenModeEnabled: boolean;
1082
- theme: import("../element/types").Theme;
1076
+ theme: import("@excalidraw/element/types").Theme;
1083
1077
  gridSize: number;
1084
1078
  gridStep: number;
1085
1079
  gridModeEnabled: boolean;
@@ -1100,7 +1094,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1100
1094
  [id: string]: true;
1101
1095
  }> | undefined;
1102
1096
  username?: string | null | undefined;
1103
- userState?: import("../constants").UserIdleState | undefined;
1097
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1104
1098
  color?: {
1105
1099
  background: string;
1106
1100
  stroke: string;
@@ -1117,7 +1111,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1117
1111
  open: boolean;
1118
1112
  panels: number;
1119
1113
  };
1120
- currentChartType: import("../element/types").ChartType;
1114
+ currentChartType: import("@excalidraw/element/types").ChartType;
1121
1115
  pasteDialog: {
1122
1116
  shown: false;
1123
1117
  data: null;
@@ -1127,7 +1121,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1127
1121
  };
1128
1122
  pendingImageElementId: string | null;
1129
1123
  showHyperlinkPopup: false | "info" | "editor";
1130
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1124
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1131
1125
  snapLines: readonly import("../snapping").SnapLine[];
1132
1126
  originSnapOffset: {
1133
1127
  x: number;
@@ -1138,16 +1132,14 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1138
1132
  followedBy: Set<import("../types").SocketId>;
1139
1133
  isCropping: boolean;
1140
1134
  croppingElementId: string | null;
1141
- searchMatches: readonly {
1142
- id: string;
1143
- focus: boolean;
1144
- matchedLines: {
1145
- offsetX: number;
1146
- offsetY: number;
1147
- width: number;
1148
- height: number;
1149
- }[];
1150
- }[];
1135
+ searchMatches: Readonly<{
1136
+ focusedId: string | null;
1137
+ matches: readonly import("../types").SearchMatch[];
1138
+ }> | null;
1139
+ activeLockedId: string | null;
1140
+ lockedMultiSelections: {
1141
+ [groupId: string]: true;
1142
+ };
1151
1143
  };
1152
1144
  captureUpdate: "EVENTUALLY";
1153
1145
  };
@@ -1158,7 +1150,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1158
1150
  trackEvent: {
1159
1151
  category: "canvas";
1160
1152
  };
1161
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1153
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1162
1154
  appState: {
1163
1155
  scrollX: number;
1164
1156
  scrollY: number;
@@ -1174,17 +1166,17 @@ export declare const actionZoomToFitSelectionInViewport: {
1174
1166
  isLoading: boolean;
1175
1167
  errorMessage: import("react").ReactNode;
1176
1168
  activeEmbeddable: {
1177
- element: import("../element/types").NonDeletedExcalidrawElement;
1169
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1178
1170
  state: "hover" | "active";
1179
1171
  } | null;
1180
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1181
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1182
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1183
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1172
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1173
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1174
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1175
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1184
1176
  isBindingEnabled: boolean;
1185
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1186
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1187
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1177
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1178
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1179
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1188
1180
  frameRendering: {
1189
1181
  enabled: boolean;
1190
1182
  name: boolean;
@@ -1192,12 +1184,13 @@ export declare const actionZoomToFitSelectionInViewport: {
1192
1184
  clip: boolean;
1193
1185
  };
1194
1186
  editingFrame: string | null;
1195
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1196
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1197
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1187
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1188
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1189
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1198
1190
  activeTool: {
1199
1191
  lastActiveTool: import("../types").ActiveTool | null;
1200
1192
  locked: boolean;
1193
+ fromSelection: boolean;
1201
1194
  } & import("../types").ActiveTool;
1202
1195
  penMode: boolean;
1203
1196
  penDetected: boolean;
@@ -1207,18 +1200,18 @@ export declare const actionZoomToFitSelectionInViewport: {
1207
1200
  exportScale: number;
1208
1201
  currentItemStrokeColor: string;
1209
1202
  currentItemBackgroundColor: string;
1210
- currentItemFillStyle: import("../element/types").FillStyle;
1203
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1211
1204
  currentItemStrokeWidth: number;
1212
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1205
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1213
1206
  currentItemRoughness: number;
1214
1207
  currentItemOpacity: number;
1215
1208
  currentItemFontFamily: number;
1216
1209
  currentItemFontSize: number;
1217
1210
  currentItemTextAlign: string;
1218
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1219
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1211
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1212
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1220
1213
  currentHoveredFontFamily: number | null;
1221
- currentItemRoundness: import("../element/types").StrokeRoundness;
1214
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1222
1215
  currentItemArrowType: "round" | "sharp" | "elbow";
1223
1216
  viewBackgroundColor: string;
1224
1217
  cursorButton: "up" | "down";
@@ -1244,7 +1237,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1244
1237
  sourceElementId: string;
1245
1238
  } | null;
1246
1239
  defaultSidebarDockedPreference: boolean;
1247
- lastPointerDownWith: import("../element/types").PointerType;
1240
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1248
1241
  selectedElementIds: Readonly<{
1249
1242
  [id: string]: true;
1250
1243
  }>;
@@ -1262,7 +1255,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1262
1255
  duration?: number | undefined;
1263
1256
  } | null;
1264
1257
  zenModeEnabled: boolean;
1265
- theme: import("../element/types").Theme;
1258
+ theme: import("@excalidraw/element/types").Theme;
1266
1259
  gridSize: number;
1267
1260
  gridStep: number;
1268
1261
  gridModeEnabled: boolean;
@@ -1283,7 +1276,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1283
1276
  [id: string]: true;
1284
1277
  }> | undefined;
1285
1278
  username?: string | null | undefined;
1286
- userState?: import("../constants").UserIdleState | undefined;
1279
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1287
1280
  color?: {
1288
1281
  background: string;
1289
1282
  stroke: string;
@@ -1300,7 +1293,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1300
1293
  open: boolean;
1301
1294
  panels: number;
1302
1295
  };
1303
- currentChartType: import("../element/types").ChartType;
1296
+ currentChartType: import("@excalidraw/element/types").ChartType;
1304
1297
  pasteDialog: {
1305
1298
  shown: false;
1306
1299
  data: null;
@@ -1310,7 +1303,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1310
1303
  };
1311
1304
  pendingImageElementId: string | null;
1312
1305
  showHyperlinkPopup: false | "info" | "editor";
1313
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1306
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1314
1307
  snapLines: readonly import("../snapping").SnapLine[];
1315
1308
  originSnapOffset: {
1316
1309
  x: number;
@@ -1321,22 +1314,20 @@ export declare const actionZoomToFitSelectionInViewport: {
1321
1314
  followedBy: Set<import("../types").SocketId>;
1322
1315
  isCropping: boolean;
1323
1316
  croppingElementId: string | null;
1324
- searchMatches: readonly {
1325
- id: string;
1326
- focus: boolean;
1327
- matchedLines: {
1328
- offsetX: number;
1329
- offsetY: number;
1330
- width: number;
1331
- height: number;
1332
- }[];
1333
- }[];
1317
+ searchMatches: Readonly<{
1318
+ focusedId: string | null;
1319
+ matches: readonly import("../types").SearchMatch[];
1320
+ }> | null;
1321
+ activeLockedId: string | null;
1322
+ lockedMultiSelections: {
1323
+ [groupId: string]: true;
1324
+ };
1334
1325
  };
1335
1326
  captureUpdate: "EVENTUALLY";
1336
1327
  };
1337
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1328
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1338
1329
  } & {
1339
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1330
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1340
1331
  };
1341
1332
  export declare const actionZoomToFitSelection: {
1342
1333
  name: "zoomToFitSelection";
@@ -1345,7 +1336,7 @@ export declare const actionZoomToFitSelection: {
1345
1336
  trackEvent: {
1346
1337
  category: "canvas";
1347
1338
  };
1348
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1339
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1349
1340
  appState: {
1350
1341
  scrollX: number;
1351
1342
  scrollY: number;
@@ -1361,17 +1352,17 @@ export declare const actionZoomToFitSelection: {
1361
1352
  isLoading: boolean;
1362
1353
  errorMessage: import("react").ReactNode;
1363
1354
  activeEmbeddable: {
1364
- element: import("../element/types").NonDeletedExcalidrawElement;
1355
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1365
1356
  state: "hover" | "active";
1366
1357
  } | null;
1367
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1368
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1369
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1370
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1358
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1359
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1360
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1361
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1371
1362
  isBindingEnabled: boolean;
1372
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1373
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1374
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1363
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1364
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1365
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1375
1366
  frameRendering: {
1376
1367
  enabled: boolean;
1377
1368
  name: boolean;
@@ -1379,12 +1370,13 @@ export declare const actionZoomToFitSelection: {
1379
1370
  clip: boolean;
1380
1371
  };
1381
1372
  editingFrame: string | null;
1382
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1383
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1384
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1373
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1374
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1375
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1385
1376
  activeTool: {
1386
1377
  lastActiveTool: import("../types").ActiveTool | null;
1387
1378
  locked: boolean;
1379
+ fromSelection: boolean;
1388
1380
  } & import("../types").ActiveTool;
1389
1381
  penMode: boolean;
1390
1382
  penDetected: boolean;
@@ -1394,18 +1386,18 @@ export declare const actionZoomToFitSelection: {
1394
1386
  exportScale: number;
1395
1387
  currentItemStrokeColor: string;
1396
1388
  currentItemBackgroundColor: string;
1397
- currentItemFillStyle: import("../element/types").FillStyle;
1389
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1398
1390
  currentItemStrokeWidth: number;
1399
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1391
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1400
1392
  currentItemRoughness: number;
1401
1393
  currentItemOpacity: number;
1402
1394
  currentItemFontFamily: number;
1403
1395
  currentItemFontSize: number;
1404
1396
  currentItemTextAlign: string;
1405
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1406
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1397
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1398
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1407
1399
  currentHoveredFontFamily: number | null;
1408
- currentItemRoundness: import("../element/types").StrokeRoundness;
1400
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1409
1401
  currentItemArrowType: "round" | "sharp" | "elbow";
1410
1402
  viewBackgroundColor: string;
1411
1403
  cursorButton: "up" | "down";
@@ -1431,7 +1423,7 @@ export declare const actionZoomToFitSelection: {
1431
1423
  sourceElementId: string;
1432
1424
  } | null;
1433
1425
  defaultSidebarDockedPreference: boolean;
1434
- lastPointerDownWith: import("../element/types").PointerType;
1426
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1435
1427
  selectedElementIds: Readonly<{
1436
1428
  [id: string]: true;
1437
1429
  }>;
@@ -1449,7 +1441,7 @@ export declare const actionZoomToFitSelection: {
1449
1441
  duration?: number | undefined;
1450
1442
  } | null;
1451
1443
  zenModeEnabled: boolean;
1452
- theme: import("../element/types").Theme;
1444
+ theme: import("@excalidraw/element/types").Theme;
1453
1445
  gridSize: number;
1454
1446
  gridStep: number;
1455
1447
  gridModeEnabled: boolean;
@@ -1470,7 +1462,7 @@ export declare const actionZoomToFitSelection: {
1470
1462
  [id: string]: true;
1471
1463
  }> | undefined;
1472
1464
  username?: string | null | undefined;
1473
- userState?: import("../constants").UserIdleState | undefined;
1465
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1474
1466
  color?: {
1475
1467
  background: string;
1476
1468
  stroke: string;
@@ -1487,7 +1479,7 @@ export declare const actionZoomToFitSelection: {
1487
1479
  open: boolean;
1488
1480
  panels: number;
1489
1481
  };
1490
- currentChartType: import("../element/types").ChartType;
1482
+ currentChartType: import("@excalidraw/element/types").ChartType;
1491
1483
  pasteDialog: {
1492
1484
  shown: false;
1493
1485
  data: null;
@@ -1497,7 +1489,7 @@ export declare const actionZoomToFitSelection: {
1497
1489
  };
1498
1490
  pendingImageElementId: string | null;
1499
1491
  showHyperlinkPopup: false | "info" | "editor";
1500
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1492
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1501
1493
  snapLines: readonly import("../snapping").SnapLine[];
1502
1494
  originSnapOffset: {
1503
1495
  x: number;
@@ -1508,22 +1500,20 @@ export declare const actionZoomToFitSelection: {
1508
1500
  followedBy: Set<import("../types").SocketId>;
1509
1501
  isCropping: boolean;
1510
1502
  croppingElementId: string | null;
1511
- searchMatches: readonly {
1512
- id: string;
1513
- focus: boolean;
1514
- matchedLines: {
1515
- offsetX: number;
1516
- offsetY: number;
1517
- width: number;
1518
- height: number;
1519
- }[];
1520
- }[];
1503
+ searchMatches: Readonly<{
1504
+ focusedId: string | null;
1505
+ matches: readonly import("../types").SearchMatch[];
1506
+ }> | null;
1507
+ activeLockedId: string | null;
1508
+ lockedMultiSelections: {
1509
+ [groupId: string]: true;
1510
+ };
1521
1511
  };
1522
1512
  captureUpdate: "EVENTUALLY";
1523
1513
  };
1524
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1514
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1525
1515
  } & {
1526
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1516
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1527
1517
  };
1528
1518
  export declare const actionZoomToFit: {
1529
1519
  name: "zoomToFit";
@@ -1533,7 +1523,7 @@ export declare const actionZoomToFit: {
1533
1523
  trackEvent: {
1534
1524
  category: "canvas";
1535
1525
  };
1536
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1526
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1537
1527
  appState: {
1538
1528
  scrollX: number;
1539
1529
  scrollY: number;
@@ -1549,17 +1539,17 @@ export declare const actionZoomToFit: {
1549
1539
  isLoading: boolean;
1550
1540
  errorMessage: import("react").ReactNode;
1551
1541
  activeEmbeddable: {
1552
- element: import("../element/types").NonDeletedExcalidrawElement;
1542
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1553
1543
  state: "hover" | "active";
1554
1544
  } | null;
1555
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1556
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1557
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1558
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1545
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1546
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1547
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1548
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1559
1549
  isBindingEnabled: boolean;
1560
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1561
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1562
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1550
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1551
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1552
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1563
1553
  frameRendering: {
1564
1554
  enabled: boolean;
1565
1555
  name: boolean;
@@ -1567,12 +1557,13 @@ export declare const actionZoomToFit: {
1567
1557
  clip: boolean;
1568
1558
  };
1569
1559
  editingFrame: string | null;
1570
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1571
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1572
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1560
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1561
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1562
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1573
1563
  activeTool: {
1574
1564
  lastActiveTool: import("../types").ActiveTool | null;
1575
1565
  locked: boolean;
1566
+ fromSelection: boolean;
1576
1567
  } & import("../types").ActiveTool;
1577
1568
  penMode: boolean;
1578
1569
  penDetected: boolean;
@@ -1582,18 +1573,18 @@ export declare const actionZoomToFit: {
1582
1573
  exportScale: number;
1583
1574
  currentItemStrokeColor: string;
1584
1575
  currentItemBackgroundColor: string;
1585
- currentItemFillStyle: import("../element/types").FillStyle;
1576
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1586
1577
  currentItemStrokeWidth: number;
1587
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1578
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1588
1579
  currentItemRoughness: number;
1589
1580
  currentItemOpacity: number;
1590
1581
  currentItemFontFamily: number;
1591
1582
  currentItemFontSize: number;
1592
1583
  currentItemTextAlign: string;
1593
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1594
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1584
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1585
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1595
1586
  currentHoveredFontFamily: number | null;
1596
- currentItemRoundness: import("../element/types").StrokeRoundness;
1587
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1597
1588
  currentItemArrowType: "round" | "sharp" | "elbow";
1598
1589
  viewBackgroundColor: string;
1599
1590
  cursorButton: "up" | "down";
@@ -1619,7 +1610,7 @@ export declare const actionZoomToFit: {
1619
1610
  sourceElementId: string;
1620
1611
  } | null;
1621
1612
  defaultSidebarDockedPreference: boolean;
1622
- lastPointerDownWith: import("../element/types").PointerType;
1613
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1623
1614
  selectedElementIds: Readonly<{
1624
1615
  [id: string]: true;
1625
1616
  }>;
@@ -1637,7 +1628,7 @@ export declare const actionZoomToFit: {
1637
1628
  duration?: number | undefined;
1638
1629
  } | null;
1639
1630
  zenModeEnabled: boolean;
1640
- theme: import("../element/types").Theme;
1631
+ theme: import("@excalidraw/element/types").Theme;
1641
1632
  gridSize: number;
1642
1633
  gridStep: number;
1643
1634
  gridModeEnabled: boolean;
@@ -1658,7 +1649,7 @@ export declare const actionZoomToFit: {
1658
1649
  [id: string]: true;
1659
1650
  }> | undefined;
1660
1651
  username?: string | null | undefined;
1661
- userState?: import("../constants").UserIdleState | undefined;
1652
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1662
1653
  color?: {
1663
1654
  background: string;
1664
1655
  stroke: string;
@@ -1675,7 +1666,7 @@ export declare const actionZoomToFit: {
1675
1666
  open: boolean;
1676
1667
  panels: number;
1677
1668
  };
1678
- currentChartType: import("../element/types").ChartType;
1669
+ currentChartType: import("@excalidraw/element/types").ChartType;
1679
1670
  pasteDialog: {
1680
1671
  shown: false;
1681
1672
  data: null;
@@ -1685,7 +1676,7 @@ export declare const actionZoomToFit: {
1685
1676
  };
1686
1677
  pendingImageElementId: string | null;
1687
1678
  showHyperlinkPopup: false | "info" | "editor";
1688
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1679
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1689
1680
  snapLines: readonly import("../snapping").SnapLine[];
1690
1681
  originSnapOffset: {
1691
1682
  x: number;
@@ -1696,22 +1687,20 @@ export declare const actionZoomToFit: {
1696
1687
  followedBy: Set<import("../types").SocketId>;
1697
1688
  isCropping: boolean;
1698
1689
  croppingElementId: string | null;
1699
- searchMatches: readonly {
1700
- id: string;
1701
- focus: boolean;
1702
- matchedLines: {
1703
- offsetX: number;
1704
- offsetY: number;
1705
- width: number;
1706
- height: number;
1707
- }[];
1708
- }[];
1690
+ searchMatches: Readonly<{
1691
+ focusedId: string | null;
1692
+ matches: readonly import("../types").SearchMatch[];
1693
+ }> | null;
1694
+ activeLockedId: string | null;
1695
+ lockedMultiSelections: {
1696
+ [groupId: string]: true;
1697
+ };
1709
1698
  };
1710
1699
  captureUpdate: "EVENTUALLY";
1711
1700
  };
1712
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1701
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1713
1702
  } & {
1714
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1703
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1715
1704
  };
1716
1705
  export declare const actionToggleTheme: {
1717
1706
  name: "toggleTheme";
@@ -1722,7 +1711,7 @@ export declare const actionToggleTheme: {
1722
1711
  trackEvent: {
1723
1712
  category: "canvas";
1724
1713
  };
1725
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1714
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1726
1715
  appState: {
1727
1716
  theme: any;
1728
1717
  contextMenu: {
@@ -1734,17 +1723,17 @@ export declare const actionToggleTheme: {
1734
1723
  isLoading: boolean;
1735
1724
  errorMessage: import("react").ReactNode;
1736
1725
  activeEmbeddable: {
1737
- element: import("../element/types").NonDeletedExcalidrawElement;
1726
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1738
1727
  state: "hover" | "active";
1739
1728
  } | null;
1740
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1741
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1742
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1743
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1729
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1730
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1731
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1732
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1744
1733
  isBindingEnabled: boolean;
1745
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1746
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1747
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1734
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1735
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1736
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1748
1737
  frameRendering: {
1749
1738
  enabled: boolean;
1750
1739
  name: boolean;
@@ -1752,12 +1741,13 @@ export declare const actionToggleTheme: {
1752
1741
  clip: boolean;
1753
1742
  };
1754
1743
  editingFrame: string | null;
1755
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1756
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1757
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1744
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1745
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1746
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1758
1747
  activeTool: {
1759
1748
  lastActiveTool: import("../types").ActiveTool | null;
1760
1749
  locked: boolean;
1750
+ fromSelection: boolean;
1761
1751
  } & import("../types").ActiveTool;
1762
1752
  penMode: boolean;
1763
1753
  penDetected: boolean;
@@ -1767,18 +1757,18 @@ export declare const actionToggleTheme: {
1767
1757
  exportScale: number;
1768
1758
  currentItemStrokeColor: string;
1769
1759
  currentItemBackgroundColor: string;
1770
- currentItemFillStyle: import("../element/types").FillStyle;
1760
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1771
1761
  currentItemStrokeWidth: number;
1772
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1762
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1773
1763
  currentItemRoughness: number;
1774
1764
  currentItemOpacity: number;
1775
1765
  currentItemFontFamily: number;
1776
1766
  currentItemFontSize: number;
1777
1767
  currentItemTextAlign: string;
1778
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1779
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1768
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1769
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1780
1770
  currentHoveredFontFamily: number | null;
1781
- currentItemRoundness: import("../element/types").StrokeRoundness;
1771
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1782
1772
  currentItemArrowType: "round" | "sharp" | "elbow";
1783
1773
  viewBackgroundColor: string;
1784
1774
  scrollX: number;
@@ -1809,7 +1799,7 @@ export declare const actionToggleTheme: {
1809
1799
  sourceElementId: string;
1810
1800
  } | null;
1811
1801
  defaultSidebarDockedPreference: boolean;
1812
- lastPointerDownWith: import("../element/types").PointerType;
1802
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1813
1803
  selectedElementIds: Readonly<{
1814
1804
  [id: string]: true;
1815
1805
  }>;
@@ -1847,7 +1837,7 @@ export declare const actionToggleTheme: {
1847
1837
  [id: string]: true;
1848
1838
  }> | undefined;
1849
1839
  username?: string | null | undefined;
1850
- userState?: import("../constants").UserIdleState | undefined;
1840
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1851
1841
  color?: {
1852
1842
  background: string;
1853
1843
  stroke: string;
@@ -1864,7 +1854,7 @@ export declare const actionToggleTheme: {
1864
1854
  open: boolean;
1865
1855
  panels: number;
1866
1856
  };
1867
- currentChartType: import("../element/types").ChartType;
1857
+ currentChartType: import("@excalidraw/element/types").ChartType;
1868
1858
  pasteDialog: {
1869
1859
  shown: false;
1870
1860
  data: null;
@@ -1874,7 +1864,7 @@ export declare const actionToggleTheme: {
1874
1864
  };
1875
1865
  pendingImageElementId: string | null;
1876
1866
  showHyperlinkPopup: false | "info" | "editor";
1877
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1867
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1878
1868
  snapLines: readonly import("../snapping").SnapLine[];
1879
1869
  originSnapOffset: {
1880
1870
  x: number;
@@ -1885,23 +1875,21 @@ export declare const actionToggleTheme: {
1885
1875
  followedBy: Set<import("../types").SocketId>;
1886
1876
  isCropping: boolean;
1887
1877
  croppingElementId: string | null;
1888
- searchMatches: readonly {
1889
- id: string;
1890
- focus: boolean;
1891
- matchedLines: {
1892
- offsetX: number;
1893
- offsetY: number;
1894
- width: number;
1895
- height: number;
1896
- }[];
1897
- }[];
1878
+ searchMatches: Readonly<{
1879
+ focusedId: string | null;
1880
+ matches: readonly import("../types").SearchMatch[];
1881
+ }> | null;
1882
+ activeLockedId: string | null;
1883
+ lockedMultiSelections: {
1884
+ [groupId: string]: true;
1885
+ };
1898
1886
  };
1899
1887
  captureUpdate: "EVENTUALLY";
1900
1888
  };
1901
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1889
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1902
1890
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1903
1891
  } & {
1904
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1892
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1905
1893
  };
1906
1894
  export declare const actionToggleEraserTool: {
1907
1895
  name: "toggleEraserTool";
@@ -1909,7 +1897,7 @@ export declare const actionToggleEraserTool: {
1909
1897
  trackEvent: {
1910
1898
  category: "toolbar";
1911
1899
  };
1912
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1900
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1913
1901
  appState: {
1914
1902
  selectedElementIds: {};
1915
1903
  selectedGroupIds: {};
@@ -1917,6 +1905,7 @@ export declare const actionToggleEraserTool: {
1917
1905
  activeTool: {
1918
1906
  lastActiveTool: import("../types").ActiveTool | null;
1919
1907
  locked: boolean;
1908
+ fromSelection: boolean;
1920
1909
  } & import("../types").ActiveTool;
1921
1910
  contextMenu: {
1922
1911
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1926,14 +1915,14 @@ export declare const actionToggleEraserTool: {
1926
1915
  showWelcomeScreen: boolean;
1927
1916
  isLoading: boolean;
1928
1917
  errorMessage: import("react").ReactNode;
1929
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1930
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1931
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1932
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1918
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1919
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1920
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1921
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1933
1922
  isBindingEnabled: boolean;
1934
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1935
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1936
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1923
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1924
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1925
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1937
1926
  frameRendering: {
1938
1927
  enabled: boolean;
1939
1928
  name: boolean;
@@ -1941,9 +1930,9 @@ export declare const actionToggleEraserTool: {
1941
1930
  clip: boolean;
1942
1931
  };
1943
1932
  editingFrame: string | null;
1944
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1945
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1946
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1933
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1934
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1935
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1947
1936
  penMode: boolean;
1948
1937
  penDetected: boolean;
1949
1938
  exportBackground: boolean;
@@ -1952,18 +1941,18 @@ export declare const actionToggleEraserTool: {
1952
1941
  exportScale: number;
1953
1942
  currentItemStrokeColor: string;
1954
1943
  currentItemBackgroundColor: string;
1955
- currentItemFillStyle: import("../element/types").FillStyle;
1944
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1956
1945
  currentItemStrokeWidth: number;
1957
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1946
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1958
1947
  currentItemRoughness: number;
1959
1948
  currentItemOpacity: number;
1960
1949
  currentItemFontFamily: number;
1961
1950
  currentItemFontSize: number;
1962
1951
  currentItemTextAlign: string;
1963
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1964
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1952
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1953
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1965
1954
  currentHoveredFontFamily: number | null;
1966
- currentItemRoundness: import("../element/types").StrokeRoundness;
1955
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1967
1956
  currentItemArrowType: "round" | "sharp" | "elbow";
1968
1957
  viewBackgroundColor: string;
1969
1958
  scrollX: number;
@@ -1994,7 +1983,7 @@ export declare const actionToggleEraserTool: {
1994
1983
  sourceElementId: string;
1995
1984
  } | null;
1996
1985
  defaultSidebarDockedPreference: boolean;
1997
- lastPointerDownWith: import("../element/types").PointerType;
1986
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1998
1987
  hoveredElementIds: Readonly<{
1999
1988
  [id: string]: true;
2000
1989
  }>;
@@ -2009,7 +1998,7 @@ export declare const actionToggleEraserTool: {
2009
1998
  duration?: number | undefined;
2010
1999
  } | null;
2011
2000
  zenModeEnabled: boolean;
2012
- theme: import("../element/types").Theme;
2001
+ theme: import("@excalidraw/element/types").Theme;
2013
2002
  gridSize: number;
2014
2003
  gridStep: number;
2015
2004
  gridModeEnabled: boolean;
@@ -2027,7 +2016,7 @@ export declare const actionToggleEraserTool: {
2027
2016
  [id: string]: true;
2028
2017
  }> | undefined;
2029
2018
  username?: string | null | undefined;
2030
- userState?: import("../constants").UserIdleState | undefined;
2019
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2031
2020
  color?: {
2032
2021
  background: string;
2033
2022
  stroke: string;
@@ -2044,7 +2033,7 @@ export declare const actionToggleEraserTool: {
2044
2033
  open: boolean;
2045
2034
  panels: number;
2046
2035
  };
2047
- currentChartType: import("../element/types").ChartType;
2036
+ currentChartType: import("@excalidraw/element/types").ChartType;
2048
2037
  pasteDialog: {
2049
2038
  shown: false;
2050
2039
  data: null;
@@ -2054,7 +2043,7 @@ export declare const actionToggleEraserTool: {
2054
2043
  };
2055
2044
  pendingImageElementId: string | null;
2056
2045
  showHyperlinkPopup: false | "info" | "editor";
2057
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2046
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2058
2047
  snapLines: readonly import("../snapping").SnapLine[];
2059
2048
  originSnapOffset: {
2060
2049
  x: number;
@@ -2065,33 +2054,208 @@ export declare const actionToggleEraserTool: {
2065
2054
  followedBy: Set<import("../types").SocketId>;
2066
2055
  isCropping: boolean;
2067
2056
  croppingElementId: string | null;
2068
- searchMatches: readonly {
2069
- id: string;
2070
- focus: boolean;
2071
- matchedLines: {
2072
- offsetX: number;
2073
- offsetY: number;
2074
- width: number;
2075
- height: number;
2076
- }[];
2077
- }[];
2057
+ searchMatches: Readonly<{
2058
+ focusedId: string | null;
2059
+ matches: readonly import("../types").SearchMatch[];
2060
+ }> | null;
2061
+ activeLockedId: string | null;
2062
+ lockedMultiSelections: {
2063
+ [groupId: string]: true;
2064
+ };
2078
2065
  };
2079
2066
  captureUpdate: "IMMEDIATELY";
2080
2067
  };
2081
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2068
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2069
+ } & {
2070
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2071
+ };
2072
+ export declare const actionToggleLassoTool: {
2073
+ name: "toggleLassoTool";
2074
+ label: string;
2075
+ icon: import("react/jsx-runtime").JSX.Element;
2076
+ trackEvent: {
2077
+ category: "toolbar";
2078
+ };
2079
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2080
+ appState: {
2081
+ selectedElementIds: {};
2082
+ selectedGroupIds: {};
2083
+ activeEmbeddable: null;
2084
+ activeTool: {
2085
+ lastActiveTool: import("../types").ActiveTool | null;
2086
+ locked: boolean;
2087
+ fromSelection: boolean;
2088
+ } & import("../types").ActiveTool;
2089
+ contextMenu: {
2090
+ items: import("../components/ContextMenu").ContextMenuItems;
2091
+ top: number;
2092
+ left: number;
2093
+ } | null;
2094
+ showWelcomeScreen: boolean;
2095
+ isLoading: boolean;
2096
+ errorMessage: import("react").ReactNode;
2097
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2098
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2099
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2100
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2101
+ isBindingEnabled: boolean;
2102
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2103
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2104
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2105
+ frameRendering: {
2106
+ enabled: boolean;
2107
+ name: boolean;
2108
+ outline: boolean;
2109
+ clip: boolean;
2110
+ };
2111
+ editingFrame: string | null;
2112
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2113
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2114
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2115
+ penMode: boolean;
2116
+ penDetected: boolean;
2117
+ exportBackground: boolean;
2118
+ exportEmbedScene: boolean;
2119
+ exportWithDarkMode: boolean;
2120
+ exportScale: number;
2121
+ currentItemStrokeColor: string;
2122
+ currentItemBackgroundColor: string;
2123
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2124
+ currentItemStrokeWidth: number;
2125
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2126
+ currentItemRoughness: number;
2127
+ currentItemOpacity: number;
2128
+ currentItemFontFamily: number;
2129
+ currentItemFontSize: number;
2130
+ currentItemTextAlign: string;
2131
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2132
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2133
+ currentHoveredFontFamily: number | null;
2134
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2135
+ currentItemArrowType: "round" | "sharp" | "elbow";
2136
+ viewBackgroundColor: string;
2137
+ scrollX: number;
2138
+ scrollY: number;
2139
+ cursorButton: "up" | "down";
2140
+ scrolledOutside: boolean;
2141
+ name: string | null;
2142
+ isResizing: boolean;
2143
+ isRotating: boolean;
2144
+ zoom: Readonly<{
2145
+ value: import("../types").NormalizedZoomValue;
2146
+ }>;
2147
+ openMenu: "canvas" | "shape" | null;
2148
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2149
+ openSidebar: {
2150
+ name: string;
2151
+ tab?: string | undefined;
2152
+ } | null;
2153
+ openDialog: {
2154
+ name: "imageExport" | "help" | "jsonExport";
2155
+ } | {
2156
+ name: "ttd";
2157
+ tab: "text-to-diagram" | "mermaid";
2158
+ } | {
2159
+ name: "commandPalette";
2160
+ } | {
2161
+ name: "elementLinkSelector";
2162
+ sourceElementId: string;
2163
+ } | null;
2164
+ defaultSidebarDockedPreference: boolean;
2165
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2166
+ hoveredElementIds: Readonly<{
2167
+ [id: string]: true;
2168
+ }>;
2169
+ previousSelectedElementIds: {
2170
+ [id: string]: true;
2171
+ };
2172
+ selectedElementsAreBeingDragged: boolean;
2173
+ shouldCacheIgnoreZoom: boolean;
2174
+ toast: {
2175
+ message: string;
2176
+ closable?: boolean | undefined;
2177
+ duration?: number | undefined;
2178
+ } | null;
2179
+ zenModeEnabled: boolean;
2180
+ theme: import("@excalidraw/element/types").Theme;
2181
+ gridSize: number;
2182
+ gridStep: number;
2183
+ gridModeEnabled: boolean;
2184
+ viewModeEnabled: boolean;
2185
+ editingGroupId: string | null;
2186
+ width: number;
2187
+ height: number;
2188
+ offsetTop: number;
2189
+ offsetLeft: number;
2190
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
2191
+ collaborators: Map<import("../types").SocketId, Readonly<{
2192
+ pointer?: import("../types").CollaboratorPointer | undefined;
2193
+ button?: "up" | "down" | undefined;
2194
+ selectedElementIds?: Readonly<{
2195
+ [id: string]: true;
2196
+ }> | undefined;
2197
+ username?: string | null | undefined;
2198
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2199
+ color?: {
2200
+ background: string;
2201
+ stroke: string;
2202
+ } | undefined;
2203
+ avatarUrl?: string | undefined;
2204
+ id?: string | undefined;
2205
+ socketId?: import("../types").SocketId | undefined;
2206
+ isCurrentUser?: boolean | undefined;
2207
+ isInCall?: boolean | undefined;
2208
+ isSpeaking?: boolean | undefined;
2209
+ isMuted?: boolean | undefined;
2210
+ }>>;
2211
+ stats: {
2212
+ open: boolean;
2213
+ panels: number;
2214
+ };
2215
+ currentChartType: import("@excalidraw/element/types").ChartType;
2216
+ pasteDialog: {
2217
+ shown: false;
2218
+ data: null;
2219
+ } | {
2220
+ shown: true;
2221
+ data: import("../charts").Spreadsheet;
2222
+ };
2223
+ pendingImageElementId: string | null;
2224
+ showHyperlinkPopup: false | "info" | "editor";
2225
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2226
+ snapLines: readonly import("../snapping").SnapLine[];
2227
+ originSnapOffset: {
2228
+ x: number;
2229
+ y: number;
2230
+ } | null;
2231
+ objectsSnapModeEnabled: boolean;
2232
+ userToFollow: import("../types").UserToFollow | null;
2233
+ followedBy: Set<import("../types").SocketId>;
2234
+ isCropping: boolean;
2235
+ croppingElementId: string | null;
2236
+ searchMatches: Readonly<{
2237
+ focusedId: string | null;
2238
+ matches: readonly import("../types").SearchMatch[];
2239
+ }> | null;
2240
+ activeLockedId: string | null;
2241
+ lockedMultiSelections: {
2242
+ [groupId: string]: true;
2243
+ };
2244
+ };
2245
+ captureUpdate: "NEVER";
2246
+ };
2082
2247
  } & {
2083
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2248
+ keyTest?: undefined;
2084
2249
  };
2085
2250
  export declare const actionToggleHandTool: {
2086
2251
  name: "toggleHandTool";
2087
2252
  label: string;
2088
- paletteName: string;
2089
2253
  trackEvent: {
2090
2254
  category: "toolbar";
2091
2255
  };
2092
2256
  icon: import("react/jsx-runtime").JSX.Element;
2093
2257
  viewMode: false;
2094
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2258
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2095
2259
  appState: {
2096
2260
  selectedElementIds: {};
2097
2261
  selectedGroupIds: {};
@@ -2099,6 +2263,7 @@ export declare const actionToggleHandTool: {
2099
2263
  activeTool: {
2100
2264
  lastActiveTool: import("../types").ActiveTool | null;
2101
2265
  locked: boolean;
2266
+ fromSelection: boolean;
2102
2267
  } & import("../types").ActiveTool;
2103
2268
  contextMenu: {
2104
2269
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -2108,14 +2273,14 @@ export declare const actionToggleHandTool: {
2108
2273
  showWelcomeScreen: boolean;
2109
2274
  isLoading: boolean;
2110
2275
  errorMessage: import("react").ReactNode;
2111
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2112
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2113
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2114
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2276
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2277
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2278
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2279
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2115
2280
  isBindingEnabled: boolean;
2116
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2117
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2118
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2281
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2282
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2283
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2119
2284
  frameRendering: {
2120
2285
  enabled: boolean;
2121
2286
  name: boolean;
@@ -2123,9 +2288,9 @@ export declare const actionToggleHandTool: {
2123
2288
  clip: boolean;
2124
2289
  };
2125
2290
  editingFrame: string | null;
2126
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2127
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2128
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2291
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2292
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2293
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2129
2294
  penMode: boolean;
2130
2295
  penDetected: boolean;
2131
2296
  exportBackground: boolean;
@@ -2134,18 +2299,18 @@ export declare const actionToggleHandTool: {
2134
2299
  exportScale: number;
2135
2300
  currentItemStrokeColor: string;
2136
2301
  currentItemBackgroundColor: string;
2137
- currentItemFillStyle: import("../element/types").FillStyle;
2302
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2138
2303
  currentItemStrokeWidth: number;
2139
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2304
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2140
2305
  currentItemRoughness: number;
2141
2306
  currentItemOpacity: number;
2142
2307
  currentItemFontFamily: number;
2143
2308
  currentItemFontSize: number;
2144
2309
  currentItemTextAlign: string;
2145
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2146
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2310
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2311
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2147
2312
  currentHoveredFontFamily: number | null;
2148
- currentItemRoundness: import("../element/types").StrokeRoundness;
2313
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2149
2314
  currentItemArrowType: "round" | "sharp" | "elbow";
2150
2315
  viewBackgroundColor: string;
2151
2316
  scrollX: number;
@@ -2176,7 +2341,7 @@ export declare const actionToggleHandTool: {
2176
2341
  sourceElementId: string;
2177
2342
  } | null;
2178
2343
  defaultSidebarDockedPreference: boolean;
2179
- lastPointerDownWith: import("../element/types").PointerType;
2344
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2180
2345
  hoveredElementIds: Readonly<{
2181
2346
  [id: string]: true;
2182
2347
  }>;
@@ -2191,7 +2356,7 @@ export declare const actionToggleHandTool: {
2191
2356
  duration?: number | undefined;
2192
2357
  } | null;
2193
2358
  zenModeEnabled: boolean;
2194
- theme: import("../element/types").Theme;
2359
+ theme: import("@excalidraw/element/types").Theme;
2195
2360
  gridSize: number;
2196
2361
  gridStep: number;
2197
2362
  gridModeEnabled: boolean;
@@ -2209,7 +2374,7 @@ export declare const actionToggleHandTool: {
2209
2374
  [id: string]: true;
2210
2375
  }> | undefined;
2211
2376
  username?: string | null | undefined;
2212
- userState?: import("../constants").UserIdleState | undefined;
2377
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2213
2378
  color?: {
2214
2379
  background: string;
2215
2380
  stroke: string;
@@ -2226,7 +2391,7 @@ export declare const actionToggleHandTool: {
2226
2391
  open: boolean;
2227
2392
  panels: number;
2228
2393
  };
2229
- currentChartType: import("../element/types").ChartType;
2394
+ currentChartType: import("@excalidraw/element/types").ChartType;
2230
2395
  pasteDialog: {
2231
2396
  shown: false;
2232
2397
  data: null;
@@ -2236,7 +2401,7 @@ export declare const actionToggleHandTool: {
2236
2401
  };
2237
2402
  pendingImageElementId: string | null;
2238
2403
  showHyperlinkPopup: false | "info" | "editor";
2239
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2404
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2240
2405
  snapLines: readonly import("../snapping").SnapLine[];
2241
2406
  originSnapOffset: {
2242
2407
  x: number;
@@ -2247,20 +2412,18 @@ export declare const actionToggleHandTool: {
2247
2412
  followedBy: Set<import("../types").SocketId>;
2248
2413
  isCropping: boolean;
2249
2414
  croppingElementId: string | null;
2250
- searchMatches: readonly {
2251
- id: string;
2252
- focus: boolean;
2253
- matchedLines: {
2254
- offsetX: number;
2255
- offsetY: number;
2256
- width: number;
2257
- height: number;
2258
- }[];
2259
- }[];
2415
+ searchMatches: Readonly<{
2416
+ focusedId: string | null;
2417
+ matches: readonly import("../types").SearchMatch[];
2418
+ }> | null;
2419
+ activeLockedId: string | null;
2420
+ lockedMultiSelections: {
2421
+ [groupId: string]: true;
2422
+ };
2260
2423
  };
2261
2424
  captureUpdate: "IMMEDIATELY";
2262
2425
  };
2263
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2426
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2264
2427
  } & {
2265
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2428
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2266
2429
  };