@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-9036812b6

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 (298) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/chunk-CP5DND7P.js +7 -0
  3. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  4. package/dist/dev/chunk-FB2NA5UG.js +4132 -0
  5. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  6. package/dist/dev/chunk-FRLWKCNE.js +5668 -0
  7. package/dist/dev/chunk-FRLWKCNE.js.map +7 -0
  8. package/dist/dev/{chunk-LMHBUWQS.js → chunk-QF5FRM6O.js} +16 -5
  9. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  10. package/dist/dev/data/{image-V26YBSDB.js → image-T2LJEHDP.js} +3 -3
  11. package/dist/dev/index.css +3021 -2942
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +30882 -24351
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-SMAPCEOQ.js} +2 -2
  16. package/dist/dev/subset-shared.chunk.js +2 -2
  17. package/dist/dev/subset-worker.chunk.js +2 -2
  18. package/dist/prod/chunk-A66AFZZU.js +7 -0
  19. package/dist/prod/chunk-I4UNSFV6.js +12 -0
  20. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  21. package/dist/prod/chunk-YZO7PSYQ.js +4 -0
  22. package/dist/prod/data/image-53OPA26C.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +27 -16
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-TYY6KWIJ.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 +29 -8
  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 +22 -11
  38. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +14 -17
  39. package/dist/types/element/src/align.d.ts +8 -0
  40. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +30 -19
  41. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +19 -6
  42. package/dist/types/element/src/collision.d.ts +32 -0
  43. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  44. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +1 -1
  45. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +74 -40
  46. package/dist/types/element/src/distance.d.ts +3 -0
  47. package/dist/types/{excalidraw → element/src}/distribute.d.ts +3 -2
  48. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +5 -4
  49. package/dist/types/element/src/duplicate.d.ts +63 -0
  50. package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +1 -1
  51. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  52. package/dist/types/element/src/embeddable.d.ts +10 -0
  53. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +4 -3
  54. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +12 -3
  55. package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
  56. package/dist/types/{excalidraw → element/src}/groups.d.ts +6 -5
  57. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  58. package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  59. package/dist/types/element/src/index.d.ts +57 -0
  60. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +24 -37
  61. package/dist/types/element/src/mutateElement.d.ts +21 -0
  62. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -43
  63. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  64. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +7 -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/shape.d.ts +42 -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 +232 -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 +7 -7
  73. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +21 -3
  74. package/dist/types/{excalidraw/element → element/src}/types.d.ts +17 -4
  75. package/dist/types/element/src/utils.d.ts +31 -0
  76. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  77. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +97 -106
  78. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  79. package/dist/types/excalidraw/actions/actionBoundText.d.ts +70 -76
  80. package/dist/types/excalidraw/actions/actionCanvas.d.ts +627 -490
  81. package/dist/types/excalidraw/actions/actionClipboard.d.ts +206 -222
  82. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -37
  83. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +102 -110
  84. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  85. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  86. package/dist/types/excalidraw/actions/actionElementLink.d.ts +37 -40
  87. package/dist/types/excalidraw/actions/actionElementLock.d.ts +82 -90
  88. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +34 -47
  89. package/dist/types/excalidraw/actions/actionExport.d.ts +351 -378
  90. package/dist/types/excalidraw/actions/actionFinalize.d.ts +100 -65
  91. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  92. package/dist/types/excalidraw/actions/actionFrame.d.ts +252 -264
  93. package/dist/types/excalidraw/actions/actionGroup.d.ts +67 -73
  94. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  95. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +561 -40
  96. package/dist/types/excalidraw/actions/actionLink.d.ts +35 -38
  97. package/dist/types/excalidraw/actions/actionMenu.d.ts +98 -107
  98. package/dist/types/excalidraw/actions/actionNavigate.d.ts +65 -71
  99. package/dist/types/excalidraw/actions/actionProperties.d.ts +469 -506
  100. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +35 -38
  101. package/dist/types/excalidraw/actions/actionStyles.d.ts +36 -39
  102. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  103. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +34 -37
  104. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -37
  105. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +33 -208
  106. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  107. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +33 -37
  108. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +34 -38
  109. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +34 -38
  110. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  111. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  112. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  113. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  114. package/dist/types/excalidraw/actions/types.d.ts +6 -5
  115. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  116. package/dist/types/excalidraw/appState.d.ts +38 -28
  117. package/dist/types/excalidraw/charts.d.ts +1 -1
  118. package/dist/types/excalidraw/clipboard.d.ts +7 -7
  119. package/dist/types/excalidraw/components/Actions.d.ts +3 -7
  120. package/dist/types/excalidraw/components/App.d.ts +45 -29
  121. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  122. package/dist/types/excalidraw/components/ButtonIcon.d.ts +2 -1
  123. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  124. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -5
  125. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  126. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  127. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -5
  128. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -4
  129. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -3
  130. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  131. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +4 -4
  132. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  133. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  134. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  135. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  136. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  137. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  138. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  139. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  140. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  141. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  142. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  143. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  144. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  145. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  146. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  147. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  148. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  149. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  150. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  151. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  152. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  153. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  154. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  155. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  156. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  157. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  158. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  159. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  160. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  161. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  162. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  163. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  164. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  165. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  166. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  167. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  168. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  169. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  170. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  171. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  172. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  173. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  174. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  175. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  176. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  177. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +14 -4
  178. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  179. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  180. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  181. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  182. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  183. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  185. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  186. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  187. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  188. package/dist/types/excalidraw/components/TextField.d.ts +1 -1
  189. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  190. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  191. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  192. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  193. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  194. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  195. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  196. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  200. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  201. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
  202. package/dist/types/excalidraw/components/icons.d.ts +5 -1
  203. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  204. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  205. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  206. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  207. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  208. package/dist/types/excalidraw/data/blob.d.ts +4 -4
  209. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  210. package/dist/types/excalidraw/data/index.d.ts +2 -2
  211. package/dist/types/excalidraw/data/json.d.ts +1 -1
  212. package/dist/types/excalidraw/data/library.d.ts +3 -3
  213. package/dist/types/excalidraw/data/reconcile.d.ts +3 -2
  214. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  215. package/dist/types/excalidraw/data/restore.d.ts +1 -1
  216. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  217. package/dist/types/excalidraw/data/types.d.ts +3 -3
  218. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  219. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  220. package/dist/types/excalidraw/errors.d.ts +0 -3
  221. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  222. package/dist/types/excalidraw/history.d.ts +31 -23
  223. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  224. package/dist/types/excalidraw/i18n.d.ts +1 -1
  225. package/dist/types/excalidraw/index.d.ts +17 -15
  226. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  227. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  228. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  229. package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
  230. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  231. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  232. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -4
  233. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  234. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  235. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  236. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  237. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  238. package/dist/types/excalidraw/snapping.d.ts +5 -6
  239. package/dist/types/excalidraw/types.d.ts +44 -25
  240. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  241. package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
  242. package/dist/types/math/src/constants.d.ts +3 -0
  243. package/dist/types/math/src/curve.d.ts +74 -0
  244. package/dist/types/math/{index.d.ts → src/index.d.ts} +1 -0
  245. package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
  246. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  247. package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +2 -0
  248. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  249. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  250. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +8 -2
  251. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  252. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  253. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  254. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  255. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  256. package/history.ts +149 -110
  257. package/package.json +25 -10
  258. package/dist/dev/chunk-3SN6HYVK.js +0 -25695
  259. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  260. package/dist/dev/chunk-53KHN5WM.js +0 -7
  261. package/dist/dev/chunk-53KHN5WM.js.map +0 -7
  262. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  263. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  264. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  265. package/dist/prod/chunk-36CXSE6H.js +0 -34
  266. package/dist/prod/chunk-6U3AYISY.js +0 -12
  267. package/dist/prod/chunk-EIO257PC.js +0 -86
  268. package/dist/prod/chunk-G5N3DNGT.js +0 -7
  269. package/dist/prod/data/image-N4WCURRR.js +0 -1
  270. package/dist/types/excalidraw/align.d.ts +0 -7
  271. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  272. package/dist/types/excalidraw/element/collision.d.ts +0 -26
  273. package/dist/types/excalidraw/element/distance.d.ts +0 -3
  274. package/dist/types/excalidraw/element/index.d.ts +0 -26
  275. package/dist/types/excalidraw/element/mutateElement.d.ts +0 -13
  276. package/dist/types/excalidraw/element/utils.d.ts +0 -21
  277. package/dist/types/excalidraw/scene/Shape.d.ts +0 -17
  278. package/dist/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  279. package/dist/types/excalidraw/shapes.d.ts +0 -85
  280. package/dist/types/excalidraw/store.d.ts +0 -129
  281. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  282. package/dist/types/math/curve.d.ts +0 -40
  283. package/dist/types/utils/collision.d.ts +0 -9
  284. /package/dist/dev/data/{image-V26YBSDB.js.map → image-T2LJEHDP.js.map} +0 -0
  285. /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-SMAPCEOQ.js.map} +0 -0
  286. /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  287. /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  288. /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  289. /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  290. /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  291. /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  292. /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  293. /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  294. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  295. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  296. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  297. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  298. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -1,15 +1,15 @@
1
1
  /// <reference types="react" />
2
+ import { LinearElementEditor } from "@excalidraw/element";
3
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
2
4
  import type { AppClassProperties, AppState, Primitive } from "../types";
3
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
4
- import { LinearElementEditor } from "../element/linearElementEditor";
5
5
  export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
- export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
6
+ export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
7
7
  export declare const actionChangeStrokeColor: {
8
8
  name: "changeStrokeColor";
9
9
  label: string;
10
10
  trackEvent: false;
11
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
13
  } & {
14
14
  keyTest?: undefined;
15
15
  };
@@ -17,8 +17,16 @@ export declare const actionChangeBackgroundColor: {
17
17
  name: "changeBackgroundColor";
18
18
  label: string;
19
19
  trackEvent: false;
20
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
21
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
20
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
21
+ appState: any;
22
+ captureUpdate: "EVENTUALLY";
23
+ elements?: undefined;
24
+ } | {
25
+ elements: ExcalidrawElement[];
26
+ appState: any;
27
+ captureUpdate: "IMMEDIATELY";
28
+ };
29
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
22
30
  } & {
23
31
  keyTest?: undefined;
24
32
  };
@@ -26,7 +34,7 @@ export declare const actionChangeFillStyle: {
26
34
  name: "changeFillStyle";
27
35
  label: string;
28
36
  trackEvent: false;
29
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
37
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
30
38
  elements: ExcalidrawElement[];
31
39
  appState: {
32
40
  currentItemFillStyle: any;
@@ -39,17 +47,17 @@ export declare const actionChangeFillStyle: {
39
47
  isLoading: boolean;
40
48
  errorMessage: import("react").ReactNode;
41
49
  activeEmbeddable: {
42
- element: import("../element/types").NonDeletedExcalidrawElement;
43
- state: "hover" | "active";
50
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
51
+ state: "active" | "hover";
44
52
  } | null;
45
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
46
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
47
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
48
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
53
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
54
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
55
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
56
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
57
  isBindingEnabled: boolean;
50
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
51
- suggestedBindings: import("../element/binding").SuggestedBinding[];
52
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
58
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
59
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
60
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
53
61
  frameRendering: {
54
62
  enabled: boolean;
55
63
  name: boolean;
@@ -57,12 +65,12 @@ export declare const actionChangeFillStyle: {
57
65
  clip: boolean;
58
66
  };
59
67
  editingFrame: string | null;
60
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
61
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
62
- editingLinearElement: LinearElementEditor | null;
68
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
69
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
63
70
  activeTool: {
64
71
  lastActiveTool: import("../types").ActiveTool | null;
65
72
  locked: boolean;
73
+ fromSelection: boolean;
66
74
  } & import("../types").ActiveTool;
67
75
  penMode: boolean;
68
76
  penDetected: boolean;
@@ -73,7 +81,7 @@ export declare const actionChangeFillStyle: {
73
81
  currentItemStrokeColor: string;
74
82
  currentItemBackgroundColor: string;
75
83
  currentItemStrokeWidth: number;
76
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
84
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
77
85
  currentItemRoughness: number;
78
86
  currentItemOpacity: number;
79
87
  currentItemFontFamily: number;
@@ -82,7 +90,7 @@ export declare const actionChangeFillStyle: {
82
90
  currentItemStartArrowhead: Arrowhead | null;
83
91
  currentItemEndArrowhead: Arrowhead | null;
84
92
  currentHoveredFontFamily: number | null;
85
- currentItemRoundness: import("../element/types").StrokeRoundness;
93
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
86
94
  currentItemArrowType: "round" | "sharp" | "elbow";
87
95
  viewBackgroundColor: string;
88
96
  scrollX: number;
@@ -105,7 +113,7 @@ export declare const actionChangeFillStyle: {
105
113
  name: "imageExport" | "help" | "jsonExport";
106
114
  } | {
107
115
  name: "ttd";
108
- tab: "text-to-diagram" | "mermaid";
116
+ tab: "mermaid" | "text-to-diagram";
109
117
  } | {
110
118
  name: "commandPalette";
111
119
  } | {
@@ -113,7 +121,7 @@ export declare const actionChangeFillStyle: {
113
121
  sourceElementId: string;
114
122
  } | null;
115
123
  defaultSidebarDockedPreference: boolean;
116
- lastPointerDownWith: import("../element/types").PointerType;
124
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
117
125
  selectedElementIds: Readonly<{
118
126
  [id: string]: true;
119
127
  }>;
@@ -131,7 +139,7 @@ export declare const actionChangeFillStyle: {
131
139
  duration?: number | undefined;
132
140
  } | null;
133
141
  zenModeEnabled: boolean;
134
- theme: import("../element/types").Theme;
142
+ theme: import("@excalidraw/element/types").Theme;
135
143
  gridSize: number;
136
144
  gridStep: number;
137
145
  gridModeEnabled: boolean;
@@ -152,7 +160,7 @@ export declare const actionChangeFillStyle: {
152
160
  [id: string]: true;
153
161
  }> | undefined;
154
162
  username?: string | null | undefined;
155
- userState?: import("../constants").UserIdleState | undefined;
163
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
156
164
  color?: {
157
165
  background: string;
158
166
  stroke: string;
@@ -169,7 +177,7 @@ export declare const actionChangeFillStyle: {
169
177
  open: boolean;
170
178
  panels: number;
171
179
  };
172
- currentChartType: import("../element/types").ChartType;
180
+ currentChartType: import("@excalidraw/element/types").ChartType;
173
181
  pasteDialog: {
174
182
  shown: false;
175
183
  data: null;
@@ -177,8 +185,7 @@ export declare const actionChangeFillStyle: {
177
185
  shown: true;
178
186
  data: import("../charts").Spreadsheet;
179
187
  };
180
- pendingImageElementId: string | null;
181
- showHyperlinkPopup: false | "info" | "editor";
188
+ showHyperlinkPopup: false | "editor" | "info";
182
189
  selectedLinearElement: LinearElementEditor | null;
183
190
  snapLines: readonly import("../snapping").SnapLine[];
184
191
  originSnapOffset: {
@@ -190,20 +197,18 @@ export declare const actionChangeFillStyle: {
190
197
  followedBy: Set<import("../types").SocketId>;
191
198
  isCropping: boolean;
192
199
  croppingElementId: string | null;
193
- searchMatches: readonly {
194
- id: string;
195
- focus: boolean;
196
- matchedLines: {
197
- offsetX: number;
198
- offsetY: number;
199
- width: number;
200
- height: number;
201
- }[];
202
- }[];
200
+ searchMatches: Readonly<{
201
+ focusedId: string | null;
202
+ matches: readonly import("../types").SearchMatch[];
203
+ }> | null;
204
+ activeLockedId: string | null;
205
+ lockedMultiSelections: {
206
+ [groupId: string]: true;
207
+ };
203
208
  };
204
209
  captureUpdate: "IMMEDIATELY";
205
210
  };
206
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
211
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
207
212
  } & {
208
213
  keyTest?: undefined;
209
214
  };
@@ -211,7 +216,7 @@ export declare const actionChangeStrokeWidth: {
211
216
  name: "changeStrokeWidth";
212
217
  label: string;
213
218
  trackEvent: false;
214
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
219
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
215
220
  elements: ExcalidrawElement[];
216
221
  appState: {
217
222
  currentItemStrokeWidth: any;
@@ -224,17 +229,17 @@ export declare const actionChangeStrokeWidth: {
224
229
  isLoading: boolean;
225
230
  errorMessage: import("react").ReactNode;
226
231
  activeEmbeddable: {
227
- element: import("../element/types").NonDeletedExcalidrawElement;
228
- state: "hover" | "active";
232
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
233
+ state: "active" | "hover";
229
234
  } | null;
230
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
231
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
232
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
233
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
235
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
236
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
238
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
234
239
  isBindingEnabled: boolean;
235
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
236
- suggestedBindings: import("../element/binding").SuggestedBinding[];
237
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
240
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
241
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
242
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
238
243
  frameRendering: {
239
244
  enabled: boolean;
240
245
  name: boolean;
@@ -242,12 +247,12 @@ export declare const actionChangeStrokeWidth: {
242
247
  clip: boolean;
243
248
  };
244
249
  editingFrame: string | null;
245
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
246
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
247
- editingLinearElement: LinearElementEditor | null;
250
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
251
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
248
252
  activeTool: {
249
253
  lastActiveTool: import("../types").ActiveTool | null;
250
254
  locked: boolean;
255
+ fromSelection: boolean;
251
256
  } & import("../types").ActiveTool;
252
257
  penMode: boolean;
253
258
  penDetected: boolean;
@@ -257,8 +262,8 @@ export declare const actionChangeStrokeWidth: {
257
262
  exportScale: number;
258
263
  currentItemStrokeColor: string;
259
264
  currentItemBackgroundColor: string;
260
- currentItemFillStyle: import("../element/types").FillStyle;
261
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
265
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
266
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
262
267
  currentItemRoughness: number;
263
268
  currentItemOpacity: number;
264
269
  currentItemFontFamily: number;
@@ -267,7 +272,7 @@ export declare const actionChangeStrokeWidth: {
267
272
  currentItemStartArrowhead: Arrowhead | null;
268
273
  currentItemEndArrowhead: Arrowhead | null;
269
274
  currentHoveredFontFamily: number | null;
270
- currentItemRoundness: import("../element/types").StrokeRoundness;
275
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
271
276
  currentItemArrowType: "round" | "sharp" | "elbow";
272
277
  viewBackgroundColor: string;
273
278
  scrollX: number;
@@ -290,7 +295,7 @@ export declare const actionChangeStrokeWidth: {
290
295
  name: "imageExport" | "help" | "jsonExport";
291
296
  } | {
292
297
  name: "ttd";
293
- tab: "text-to-diagram" | "mermaid";
298
+ tab: "mermaid" | "text-to-diagram";
294
299
  } | {
295
300
  name: "commandPalette";
296
301
  } | {
@@ -298,7 +303,7 @@ export declare const actionChangeStrokeWidth: {
298
303
  sourceElementId: string;
299
304
  } | null;
300
305
  defaultSidebarDockedPreference: boolean;
301
- lastPointerDownWith: import("../element/types").PointerType;
306
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
302
307
  selectedElementIds: Readonly<{
303
308
  [id: string]: true;
304
309
  }>;
@@ -316,7 +321,7 @@ export declare const actionChangeStrokeWidth: {
316
321
  duration?: number | undefined;
317
322
  } | null;
318
323
  zenModeEnabled: boolean;
319
- theme: import("../element/types").Theme;
324
+ theme: import("@excalidraw/element/types").Theme;
320
325
  gridSize: number;
321
326
  gridStep: number;
322
327
  gridModeEnabled: boolean;
@@ -337,7 +342,7 @@ export declare const actionChangeStrokeWidth: {
337
342
  [id: string]: true;
338
343
  }> | undefined;
339
344
  username?: string | null | undefined;
340
- userState?: import("../constants").UserIdleState | undefined;
345
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
341
346
  color?: {
342
347
  background: string;
343
348
  stroke: string;
@@ -354,7 +359,7 @@ export declare const actionChangeStrokeWidth: {
354
359
  open: boolean;
355
360
  panels: number;
356
361
  };
357
- currentChartType: import("../element/types").ChartType;
362
+ currentChartType: import("@excalidraw/element/types").ChartType;
358
363
  pasteDialog: {
359
364
  shown: false;
360
365
  data: null;
@@ -362,8 +367,7 @@ export declare const actionChangeStrokeWidth: {
362
367
  shown: true;
363
368
  data: import("../charts").Spreadsheet;
364
369
  };
365
- pendingImageElementId: string | null;
366
- showHyperlinkPopup: false | "info" | "editor";
370
+ showHyperlinkPopup: false | "editor" | "info";
367
371
  selectedLinearElement: LinearElementEditor | null;
368
372
  snapLines: readonly import("../snapping").SnapLine[];
369
373
  originSnapOffset: {
@@ -375,20 +379,18 @@ export declare const actionChangeStrokeWidth: {
375
379
  followedBy: Set<import("../types").SocketId>;
376
380
  isCropping: boolean;
377
381
  croppingElementId: string | null;
378
- searchMatches: readonly {
379
- id: string;
380
- focus: boolean;
381
- matchedLines: {
382
- offsetX: number;
383
- offsetY: number;
384
- width: number;
385
- height: number;
386
- }[];
387
- }[];
382
+ searchMatches: Readonly<{
383
+ focusedId: string | null;
384
+ matches: readonly import("../types").SearchMatch[];
385
+ }> | null;
386
+ activeLockedId: string | null;
387
+ lockedMultiSelections: {
388
+ [groupId: string]: true;
389
+ };
388
390
  };
389
391
  captureUpdate: "IMMEDIATELY";
390
392
  };
391
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
393
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
392
394
  } & {
393
395
  keyTest?: undefined;
394
396
  };
@@ -396,7 +398,7 @@ export declare const actionChangeSloppiness: {
396
398
  name: "changeSloppiness";
397
399
  label: string;
398
400
  trackEvent: false;
399
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
401
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
400
402
  elements: ExcalidrawElement[];
401
403
  appState: {
402
404
  currentItemRoughness: any;
@@ -409,17 +411,17 @@ export declare const actionChangeSloppiness: {
409
411
  isLoading: boolean;
410
412
  errorMessage: import("react").ReactNode;
411
413
  activeEmbeddable: {
412
- element: import("../element/types").NonDeletedExcalidrawElement;
413
- state: "hover" | "active";
414
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
415
+ state: "active" | "hover";
414
416
  } | null;
415
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
416
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
417
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
418
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
417
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
418
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
419
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
420
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
419
421
  isBindingEnabled: boolean;
420
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
421
- suggestedBindings: import("../element/binding").SuggestedBinding[];
422
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
422
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
423
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
424
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
423
425
  frameRendering: {
424
426
  enabled: boolean;
425
427
  name: boolean;
@@ -427,12 +429,12 @@ export declare const actionChangeSloppiness: {
427
429
  clip: boolean;
428
430
  };
429
431
  editingFrame: string | null;
430
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
431
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
432
- editingLinearElement: LinearElementEditor | null;
432
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
433
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
433
434
  activeTool: {
434
435
  lastActiveTool: import("../types").ActiveTool | null;
435
436
  locked: boolean;
437
+ fromSelection: boolean;
436
438
  } & import("../types").ActiveTool;
437
439
  penMode: boolean;
438
440
  penDetected: boolean;
@@ -442,9 +444,9 @@ export declare const actionChangeSloppiness: {
442
444
  exportScale: number;
443
445
  currentItemStrokeColor: string;
444
446
  currentItemBackgroundColor: string;
445
- currentItemFillStyle: import("../element/types").FillStyle;
447
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
446
448
  currentItemStrokeWidth: number;
447
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
449
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
448
450
  currentItemOpacity: number;
449
451
  currentItemFontFamily: number;
450
452
  currentItemFontSize: number;
@@ -452,7 +454,7 @@ export declare const actionChangeSloppiness: {
452
454
  currentItemStartArrowhead: Arrowhead | null;
453
455
  currentItemEndArrowhead: Arrowhead | null;
454
456
  currentHoveredFontFamily: number | null;
455
- currentItemRoundness: import("../element/types").StrokeRoundness;
457
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
456
458
  currentItemArrowType: "round" | "sharp" | "elbow";
457
459
  viewBackgroundColor: string;
458
460
  scrollX: number;
@@ -475,7 +477,7 @@ export declare const actionChangeSloppiness: {
475
477
  name: "imageExport" | "help" | "jsonExport";
476
478
  } | {
477
479
  name: "ttd";
478
- tab: "text-to-diagram" | "mermaid";
480
+ tab: "mermaid" | "text-to-diagram";
479
481
  } | {
480
482
  name: "commandPalette";
481
483
  } | {
@@ -483,7 +485,7 @@ export declare const actionChangeSloppiness: {
483
485
  sourceElementId: string;
484
486
  } | null;
485
487
  defaultSidebarDockedPreference: boolean;
486
- lastPointerDownWith: import("../element/types").PointerType;
488
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
487
489
  selectedElementIds: Readonly<{
488
490
  [id: string]: true;
489
491
  }>;
@@ -501,7 +503,7 @@ export declare const actionChangeSloppiness: {
501
503
  duration?: number | undefined;
502
504
  } | null;
503
505
  zenModeEnabled: boolean;
504
- theme: import("../element/types").Theme;
506
+ theme: import("@excalidraw/element/types").Theme;
505
507
  gridSize: number;
506
508
  gridStep: number;
507
509
  gridModeEnabled: boolean;
@@ -522,7 +524,7 @@ export declare const actionChangeSloppiness: {
522
524
  [id: string]: true;
523
525
  }> | undefined;
524
526
  username?: string | null | undefined;
525
- userState?: import("../constants").UserIdleState | undefined;
527
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
526
528
  color?: {
527
529
  background: string;
528
530
  stroke: string;
@@ -539,7 +541,7 @@ export declare const actionChangeSloppiness: {
539
541
  open: boolean;
540
542
  panels: number;
541
543
  };
542
- currentChartType: import("../element/types").ChartType;
544
+ currentChartType: import("@excalidraw/element/types").ChartType;
543
545
  pasteDialog: {
544
546
  shown: false;
545
547
  data: null;
@@ -547,8 +549,7 @@ export declare const actionChangeSloppiness: {
547
549
  shown: true;
548
550
  data: import("../charts").Spreadsheet;
549
551
  };
550
- pendingImageElementId: string | null;
551
- showHyperlinkPopup: false | "info" | "editor";
552
+ showHyperlinkPopup: false | "editor" | "info";
552
553
  selectedLinearElement: LinearElementEditor | null;
553
554
  snapLines: readonly import("../snapping").SnapLine[];
554
555
  originSnapOffset: {
@@ -560,20 +561,18 @@ export declare const actionChangeSloppiness: {
560
561
  followedBy: Set<import("../types").SocketId>;
561
562
  isCropping: boolean;
562
563
  croppingElementId: string | null;
563
- searchMatches: readonly {
564
- id: string;
565
- focus: boolean;
566
- matchedLines: {
567
- offsetX: number;
568
- offsetY: number;
569
- width: number;
570
- height: number;
571
- }[];
572
- }[];
564
+ searchMatches: Readonly<{
565
+ focusedId: string | null;
566
+ matches: readonly import("../types").SearchMatch[];
567
+ }> | null;
568
+ activeLockedId: string | null;
569
+ lockedMultiSelections: {
570
+ [groupId: string]: true;
571
+ };
573
572
  };
574
573
  captureUpdate: "IMMEDIATELY";
575
574
  };
576
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
575
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
577
576
  } & {
578
577
  keyTest?: undefined;
579
578
  };
@@ -581,7 +580,7 @@ export declare const actionChangeStrokeStyle: {
581
580
  name: "changeStrokeStyle";
582
581
  label: string;
583
582
  trackEvent: false;
584
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
583
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
585
584
  elements: ExcalidrawElement[];
586
585
  appState: {
587
586
  currentItemStrokeStyle: any;
@@ -594,17 +593,17 @@ export declare const actionChangeStrokeStyle: {
594
593
  isLoading: boolean;
595
594
  errorMessage: import("react").ReactNode;
596
595
  activeEmbeddable: {
597
- element: import("../element/types").NonDeletedExcalidrawElement;
598
- state: "hover" | "active";
596
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
597
+ state: "active" | "hover";
599
598
  } | null;
600
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
601
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
602
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
603
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
599
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
600
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
601
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
602
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
604
603
  isBindingEnabled: boolean;
605
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
606
- suggestedBindings: import("../element/binding").SuggestedBinding[];
607
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
604
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
605
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
606
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
608
607
  frameRendering: {
609
608
  enabled: boolean;
610
609
  name: boolean;
@@ -612,12 +611,12 @@ export declare const actionChangeStrokeStyle: {
612
611
  clip: boolean;
613
612
  };
614
613
  editingFrame: string | null;
615
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
616
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
617
- editingLinearElement: LinearElementEditor | null;
614
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
615
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
618
616
  activeTool: {
619
617
  lastActiveTool: import("../types").ActiveTool | null;
620
618
  locked: boolean;
619
+ fromSelection: boolean;
621
620
  } & import("../types").ActiveTool;
622
621
  penMode: boolean;
623
622
  penDetected: boolean;
@@ -627,7 +626,7 @@ export declare const actionChangeStrokeStyle: {
627
626
  exportScale: number;
628
627
  currentItemStrokeColor: string;
629
628
  currentItemBackgroundColor: string;
630
- currentItemFillStyle: import("../element/types").FillStyle;
629
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
631
630
  currentItemStrokeWidth: number;
632
631
  currentItemRoughness: number;
633
632
  currentItemOpacity: number;
@@ -637,7 +636,7 @@ export declare const actionChangeStrokeStyle: {
637
636
  currentItemStartArrowhead: Arrowhead | null;
638
637
  currentItemEndArrowhead: Arrowhead | null;
639
638
  currentHoveredFontFamily: number | null;
640
- currentItemRoundness: import("../element/types").StrokeRoundness;
639
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
641
640
  currentItemArrowType: "round" | "sharp" | "elbow";
642
641
  viewBackgroundColor: string;
643
642
  scrollX: number;
@@ -660,7 +659,7 @@ export declare const actionChangeStrokeStyle: {
660
659
  name: "imageExport" | "help" | "jsonExport";
661
660
  } | {
662
661
  name: "ttd";
663
- tab: "text-to-diagram" | "mermaid";
662
+ tab: "mermaid" | "text-to-diagram";
664
663
  } | {
665
664
  name: "commandPalette";
666
665
  } | {
@@ -668,7 +667,7 @@ export declare const actionChangeStrokeStyle: {
668
667
  sourceElementId: string;
669
668
  } | null;
670
669
  defaultSidebarDockedPreference: boolean;
671
- lastPointerDownWith: import("../element/types").PointerType;
670
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
672
671
  selectedElementIds: Readonly<{
673
672
  [id: string]: true;
674
673
  }>;
@@ -686,7 +685,7 @@ export declare const actionChangeStrokeStyle: {
686
685
  duration?: number | undefined;
687
686
  } | null;
688
687
  zenModeEnabled: boolean;
689
- theme: import("../element/types").Theme;
688
+ theme: import("@excalidraw/element/types").Theme;
690
689
  gridSize: number;
691
690
  gridStep: number;
692
691
  gridModeEnabled: boolean;
@@ -707,7 +706,7 @@ export declare const actionChangeStrokeStyle: {
707
706
  [id: string]: true;
708
707
  }> | undefined;
709
708
  username?: string | null | undefined;
710
- userState?: import("../constants").UserIdleState | undefined;
709
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
711
710
  color?: {
712
711
  background: string;
713
712
  stroke: string;
@@ -724,7 +723,7 @@ export declare const actionChangeStrokeStyle: {
724
723
  open: boolean;
725
724
  panels: number;
726
725
  };
727
- currentChartType: import("../element/types").ChartType;
726
+ currentChartType: import("@excalidraw/element/types").ChartType;
728
727
  pasteDialog: {
729
728
  shown: false;
730
729
  data: null;
@@ -732,8 +731,7 @@ export declare const actionChangeStrokeStyle: {
732
731
  shown: true;
733
732
  data: import("../charts").Spreadsheet;
734
733
  };
735
- pendingImageElementId: string | null;
736
- showHyperlinkPopup: false | "info" | "editor";
734
+ showHyperlinkPopup: false | "editor" | "info";
737
735
  selectedLinearElement: LinearElementEditor | null;
738
736
  snapLines: readonly import("../snapping").SnapLine[];
739
737
  originSnapOffset: {
@@ -745,20 +743,18 @@ export declare const actionChangeStrokeStyle: {
745
743
  followedBy: Set<import("../types").SocketId>;
746
744
  isCropping: boolean;
747
745
  croppingElementId: string | null;
748
- searchMatches: readonly {
749
- id: string;
750
- focus: boolean;
751
- matchedLines: {
752
- offsetX: number;
753
- offsetY: number;
754
- width: number;
755
- height: number;
756
- }[];
757
- }[];
746
+ searchMatches: Readonly<{
747
+ focusedId: string | null;
748
+ matches: readonly import("../types").SearchMatch[];
749
+ }> | null;
750
+ activeLockedId: string | null;
751
+ lockedMultiSelections: {
752
+ [groupId: string]: true;
753
+ };
758
754
  };
759
755
  captureUpdate: "IMMEDIATELY";
760
756
  };
761
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
757
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
762
758
  } & {
763
759
  keyTest?: undefined;
764
760
  };
@@ -766,7 +762,7 @@ export declare const actionChangeOpacity: {
766
762
  name: "changeOpacity";
767
763
  label: string;
768
764
  trackEvent: false;
769
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
765
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
770
766
  elements: ExcalidrawElement[];
771
767
  appState: {
772
768
  currentItemOpacity: any;
@@ -779,17 +775,17 @@ export declare const actionChangeOpacity: {
779
775
  isLoading: boolean;
780
776
  errorMessage: import("react").ReactNode;
781
777
  activeEmbeddable: {
782
- element: import("../element/types").NonDeletedExcalidrawElement;
783
- state: "hover" | "active";
778
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
779
+ state: "active" | "hover";
784
780
  } | null;
785
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
786
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
787
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
788
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
781
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
782
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
783
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
784
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
789
785
  isBindingEnabled: boolean;
790
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
791
- suggestedBindings: import("../element/binding").SuggestedBinding[];
792
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
786
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
787
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
788
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
793
789
  frameRendering: {
794
790
  enabled: boolean;
795
791
  name: boolean;
@@ -797,12 +793,12 @@ export declare const actionChangeOpacity: {
797
793
  clip: boolean;
798
794
  };
799
795
  editingFrame: string | null;
800
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
801
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
802
- editingLinearElement: LinearElementEditor | null;
796
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
797
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
803
798
  activeTool: {
804
799
  lastActiveTool: import("../types").ActiveTool | null;
805
800
  locked: boolean;
801
+ fromSelection: boolean;
806
802
  } & import("../types").ActiveTool;
807
803
  penMode: boolean;
808
804
  penDetected: boolean;
@@ -812,9 +808,9 @@ export declare const actionChangeOpacity: {
812
808
  exportScale: number;
813
809
  currentItemStrokeColor: string;
814
810
  currentItemBackgroundColor: string;
815
- currentItemFillStyle: import("../element/types").FillStyle;
811
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
816
812
  currentItemStrokeWidth: number;
817
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
813
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
818
814
  currentItemRoughness: number;
819
815
  currentItemFontFamily: number;
820
816
  currentItemFontSize: number;
@@ -822,7 +818,7 @@ export declare const actionChangeOpacity: {
822
818
  currentItemStartArrowhead: Arrowhead | null;
823
819
  currentItemEndArrowhead: Arrowhead | null;
824
820
  currentHoveredFontFamily: number | null;
825
- currentItemRoundness: import("../element/types").StrokeRoundness;
821
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
826
822
  currentItemArrowType: "round" | "sharp" | "elbow";
827
823
  viewBackgroundColor: string;
828
824
  scrollX: number;
@@ -845,7 +841,7 @@ export declare const actionChangeOpacity: {
845
841
  name: "imageExport" | "help" | "jsonExport";
846
842
  } | {
847
843
  name: "ttd";
848
- tab: "text-to-diagram" | "mermaid";
844
+ tab: "mermaid" | "text-to-diagram";
849
845
  } | {
850
846
  name: "commandPalette";
851
847
  } | {
@@ -853,7 +849,7 @@ export declare const actionChangeOpacity: {
853
849
  sourceElementId: string;
854
850
  } | null;
855
851
  defaultSidebarDockedPreference: boolean;
856
- lastPointerDownWith: import("../element/types").PointerType;
852
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
857
853
  selectedElementIds: Readonly<{
858
854
  [id: string]: true;
859
855
  }>;
@@ -871,7 +867,7 @@ export declare const actionChangeOpacity: {
871
867
  duration?: number | undefined;
872
868
  } | null;
873
869
  zenModeEnabled: boolean;
874
- theme: import("../element/types").Theme;
870
+ theme: import("@excalidraw/element/types").Theme;
875
871
  gridSize: number;
876
872
  gridStep: number;
877
873
  gridModeEnabled: boolean;
@@ -892,7 +888,7 @@ export declare const actionChangeOpacity: {
892
888
  [id: string]: true;
893
889
  }> | undefined;
894
890
  username?: string | null | undefined;
895
- userState?: import("../constants").UserIdleState | undefined;
891
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
896
892
  color?: {
897
893
  background: string;
898
894
  stroke: string;
@@ -909,7 +905,7 @@ export declare const actionChangeOpacity: {
909
905
  open: boolean;
910
906
  panels: number;
911
907
  };
912
- currentChartType: import("../element/types").ChartType;
908
+ currentChartType: import("@excalidraw/element/types").ChartType;
913
909
  pasteDialog: {
914
910
  shown: false;
915
911
  data: null;
@@ -917,8 +913,7 @@ export declare const actionChangeOpacity: {
917
913
  shown: true;
918
914
  data: import("../charts").Spreadsheet;
919
915
  };
920
- pendingImageElementId: string | null;
921
- showHyperlinkPopup: false | "info" | "editor";
916
+ showHyperlinkPopup: false | "editor" | "info";
922
917
  selectedLinearElement: LinearElementEditor | null;
923
918
  snapLines: readonly import("../snapping").SnapLine[];
924
919
  originSnapOffset: {
@@ -930,20 +925,18 @@ export declare const actionChangeOpacity: {
930
925
  followedBy: Set<import("../types").SocketId>;
931
926
  isCropping: boolean;
932
927
  croppingElementId: string | null;
933
- searchMatches: readonly {
934
- id: string;
935
- focus: boolean;
936
- matchedLines: {
937
- offsetX: number;
938
- offsetY: number;
939
- width: number;
940
- height: number;
941
- }[];
942
- }[];
928
+ searchMatches: Readonly<{
929
+ focusedId: string | null;
930
+ matches: readonly import("../types").SearchMatch[];
931
+ }> | null;
932
+ activeLockedId: string | null;
933
+ lockedMultiSelections: {
934
+ [groupId: string]: true;
935
+ };
943
936
  };
944
937
  captureUpdate: "IMMEDIATELY";
945
938
  };
946
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
939
+ PanelComponent: ({ app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
947
940
  } & {
948
941
  keyTest?: undefined;
949
942
  };
@@ -951,7 +944,7 @@ export declare const actionChangeFontSize: {
951
944
  name: "changeFontSize";
952
945
  label: string;
953
946
  trackEvent: false;
954
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
947
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
955
948
  elements: ExcalidrawElement[];
956
949
  appState: {
957
950
  currentItemFontSize: number;
@@ -964,17 +957,17 @@ export declare const actionChangeFontSize: {
964
957
  isLoading: boolean;
965
958
  errorMessage: import("react").ReactNode;
966
959
  activeEmbeddable: {
967
- element: import("../element/types").NonDeletedExcalidrawElement;
968
- state: "hover" | "active";
960
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
961
+ state: "active" | "hover";
969
962
  } | null;
970
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
971
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
972
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
973
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
963
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
964
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
965
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
966
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
974
967
  isBindingEnabled: boolean;
975
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
976
- suggestedBindings: import("../element/binding").SuggestedBinding[];
977
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
968
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
969
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
970
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
978
971
  frameRendering: {
979
972
  enabled: boolean;
980
973
  name: boolean;
@@ -982,12 +975,12 @@ export declare const actionChangeFontSize: {
982
975
  clip: boolean;
983
976
  };
984
977
  editingFrame: string | null;
985
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
986
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
987
- editingLinearElement: LinearElementEditor | null;
978
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
979
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
988
980
  activeTool: {
989
981
  lastActiveTool: import("../types").ActiveTool | null;
990
982
  locked: boolean;
983
+ fromSelection: boolean;
991
984
  } & import("../types").ActiveTool;
992
985
  penMode: boolean;
993
986
  penDetected: boolean;
@@ -997,9 +990,9 @@ export declare const actionChangeFontSize: {
997
990
  exportScale: number;
998
991
  currentItemStrokeColor: string;
999
992
  currentItemBackgroundColor: string;
1000
- currentItemFillStyle: import("../element/types").FillStyle;
993
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1001
994
  currentItemStrokeWidth: number;
1002
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
995
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1003
996
  currentItemRoughness: number;
1004
997
  currentItemOpacity: number;
1005
998
  currentItemFontFamily: number;
@@ -1007,7 +1000,7 @@ export declare const actionChangeFontSize: {
1007
1000
  currentItemStartArrowhead: Arrowhead | null;
1008
1001
  currentItemEndArrowhead: Arrowhead | null;
1009
1002
  currentHoveredFontFamily: number | null;
1010
- currentItemRoundness: import("../element/types").StrokeRoundness;
1003
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1011
1004
  currentItemArrowType: "round" | "sharp" | "elbow";
1012
1005
  viewBackgroundColor: string;
1013
1006
  scrollX: number;
@@ -1030,7 +1023,7 @@ export declare const actionChangeFontSize: {
1030
1023
  name: "imageExport" | "help" | "jsonExport";
1031
1024
  } | {
1032
1025
  name: "ttd";
1033
- tab: "text-to-diagram" | "mermaid";
1026
+ tab: "mermaid" | "text-to-diagram";
1034
1027
  } | {
1035
1028
  name: "commandPalette";
1036
1029
  } | {
@@ -1038,7 +1031,7 @@ export declare const actionChangeFontSize: {
1038
1031
  sourceElementId: string;
1039
1032
  } | null;
1040
1033
  defaultSidebarDockedPreference: boolean;
1041
- lastPointerDownWith: import("../element/types").PointerType;
1034
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1042
1035
  selectedElementIds: Readonly<{
1043
1036
  [id: string]: true;
1044
1037
  }>;
@@ -1056,7 +1049,7 @@ export declare const actionChangeFontSize: {
1056
1049
  duration?: number | undefined;
1057
1050
  } | null;
1058
1051
  zenModeEnabled: boolean;
1059
- theme: import("../element/types").Theme;
1052
+ theme: import("@excalidraw/element/types").Theme;
1060
1053
  gridSize: number;
1061
1054
  gridStep: number;
1062
1055
  gridModeEnabled: boolean;
@@ -1077,7 +1070,7 @@ export declare const actionChangeFontSize: {
1077
1070
  [id: string]: true;
1078
1071
  }> | undefined;
1079
1072
  username?: string | null | undefined;
1080
- userState?: import("../constants").UserIdleState | undefined;
1073
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1081
1074
  color?: {
1082
1075
  background: string;
1083
1076
  stroke: string;
@@ -1094,7 +1087,7 @@ export declare const actionChangeFontSize: {
1094
1087
  open: boolean;
1095
1088
  panels: number;
1096
1089
  };
1097
- currentChartType: import("../element/types").ChartType;
1090
+ currentChartType: import("@excalidraw/element/types").ChartType;
1098
1091
  pasteDialog: {
1099
1092
  shown: false;
1100
1093
  data: null;
@@ -1102,8 +1095,7 @@ export declare const actionChangeFontSize: {
1102
1095
  shown: true;
1103
1096
  data: import("../charts").Spreadsheet;
1104
1097
  };
1105
- pendingImageElementId: string | null;
1106
- showHyperlinkPopup: false | "info" | "editor";
1098
+ showHyperlinkPopup: false | "editor" | "info";
1107
1099
  selectedLinearElement: LinearElementEditor | null;
1108
1100
  snapLines: readonly import("../snapping").SnapLine[];
1109
1101
  originSnapOffset: {
@@ -1115,16 +1107,14 @@ export declare const actionChangeFontSize: {
1115
1107
  followedBy: Set<import("../types").SocketId>;
1116
1108
  isCropping: boolean;
1117
1109
  croppingElementId: string | null;
1118
- searchMatches: readonly {
1119
- id: string;
1120
- focus: boolean;
1121
- matchedLines: {
1122
- offsetX: number;
1123
- offsetY: number;
1124
- width: number;
1125
- height: number;
1126
- }[];
1127
- }[];
1110
+ searchMatches: Readonly<{
1111
+ focusedId: string | null;
1112
+ matches: readonly import("../types").SearchMatch[];
1113
+ }> | null;
1114
+ activeLockedId: string | null;
1115
+ lockedMultiSelections: {
1116
+ [groupId: string]: true;
1117
+ };
1128
1118
  };
1129
1119
  captureUpdate: "IMMEDIATELY";
1130
1120
  };
@@ -1137,7 +1127,7 @@ export declare const actionDecreaseFontSize: {
1137
1127
  label: string;
1138
1128
  icon: import("react/jsx-runtime").JSX.Element;
1139
1129
  trackEvent: false;
1140
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1130
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1141
1131
  elements: ExcalidrawElement[];
1142
1132
  appState: {
1143
1133
  currentItemFontSize: number;
@@ -1150,17 +1140,17 @@ export declare const actionDecreaseFontSize: {
1150
1140
  isLoading: boolean;
1151
1141
  errorMessage: import("react").ReactNode;
1152
1142
  activeEmbeddable: {
1153
- element: import("../element/types").NonDeletedExcalidrawElement;
1154
- state: "hover" | "active";
1143
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1144
+ state: "active" | "hover";
1155
1145
  } | null;
1156
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1157
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1158
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1159
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1146
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1147
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1148
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1149
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1160
1150
  isBindingEnabled: boolean;
1161
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1162
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1163
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1151
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1152
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1153
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1164
1154
  frameRendering: {
1165
1155
  enabled: boolean;
1166
1156
  name: boolean;
@@ -1168,12 +1158,12 @@ export declare const actionDecreaseFontSize: {
1168
1158
  clip: boolean;
1169
1159
  };
1170
1160
  editingFrame: string | null;
1171
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1172
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1173
- editingLinearElement: LinearElementEditor | null;
1161
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1162
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1174
1163
  activeTool: {
1175
1164
  lastActiveTool: import("../types").ActiveTool | null;
1176
1165
  locked: boolean;
1166
+ fromSelection: boolean;
1177
1167
  } & import("../types").ActiveTool;
1178
1168
  penMode: boolean;
1179
1169
  penDetected: boolean;
@@ -1183,9 +1173,9 @@ export declare const actionDecreaseFontSize: {
1183
1173
  exportScale: number;
1184
1174
  currentItemStrokeColor: string;
1185
1175
  currentItemBackgroundColor: string;
1186
- currentItemFillStyle: import("../element/types").FillStyle;
1176
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1187
1177
  currentItemStrokeWidth: number;
1188
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1178
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1189
1179
  currentItemRoughness: number;
1190
1180
  currentItemOpacity: number;
1191
1181
  currentItemFontFamily: number;
@@ -1193,7 +1183,7 @@ export declare const actionDecreaseFontSize: {
1193
1183
  currentItemStartArrowhead: Arrowhead | null;
1194
1184
  currentItemEndArrowhead: Arrowhead | null;
1195
1185
  currentHoveredFontFamily: number | null;
1196
- currentItemRoundness: import("../element/types").StrokeRoundness;
1186
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1197
1187
  currentItemArrowType: "round" | "sharp" | "elbow";
1198
1188
  viewBackgroundColor: string;
1199
1189
  scrollX: number;
@@ -1216,7 +1206,7 @@ export declare const actionDecreaseFontSize: {
1216
1206
  name: "imageExport" | "help" | "jsonExport";
1217
1207
  } | {
1218
1208
  name: "ttd";
1219
- tab: "text-to-diagram" | "mermaid";
1209
+ tab: "mermaid" | "text-to-diagram";
1220
1210
  } | {
1221
1211
  name: "commandPalette";
1222
1212
  } | {
@@ -1224,7 +1214,7 @@ export declare const actionDecreaseFontSize: {
1224
1214
  sourceElementId: string;
1225
1215
  } | null;
1226
1216
  defaultSidebarDockedPreference: boolean;
1227
- lastPointerDownWith: import("../element/types").PointerType;
1217
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1228
1218
  selectedElementIds: Readonly<{
1229
1219
  [id: string]: true;
1230
1220
  }>;
@@ -1242,7 +1232,7 @@ export declare const actionDecreaseFontSize: {
1242
1232
  duration?: number | undefined;
1243
1233
  } | null;
1244
1234
  zenModeEnabled: boolean;
1245
- theme: import("../element/types").Theme;
1235
+ theme: import("@excalidraw/element/types").Theme;
1246
1236
  gridSize: number;
1247
1237
  gridStep: number;
1248
1238
  gridModeEnabled: boolean;
@@ -1263,7 +1253,7 @@ export declare const actionDecreaseFontSize: {
1263
1253
  [id: string]: true;
1264
1254
  }> | undefined;
1265
1255
  username?: string | null | undefined;
1266
- userState?: import("../constants").UserIdleState | undefined;
1256
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1267
1257
  color?: {
1268
1258
  background: string;
1269
1259
  stroke: string;
@@ -1280,7 +1270,7 @@ export declare const actionDecreaseFontSize: {
1280
1270
  open: boolean;
1281
1271
  panels: number;
1282
1272
  };
1283
- currentChartType: import("../element/types").ChartType;
1273
+ currentChartType: import("@excalidraw/element/types").ChartType;
1284
1274
  pasteDialog: {
1285
1275
  shown: false;
1286
1276
  data: null;
@@ -1288,8 +1278,7 @@ export declare const actionDecreaseFontSize: {
1288
1278
  shown: true;
1289
1279
  data: import("../charts").Spreadsheet;
1290
1280
  };
1291
- pendingImageElementId: string | null;
1292
- showHyperlinkPopup: false | "info" | "editor";
1281
+ showHyperlinkPopup: false | "editor" | "info";
1293
1282
  selectedLinearElement: LinearElementEditor | null;
1294
1283
  snapLines: readonly import("../snapping").SnapLine[];
1295
1284
  originSnapOffset: {
@@ -1301,16 +1290,14 @@ export declare const actionDecreaseFontSize: {
1301
1290
  followedBy: Set<import("../types").SocketId>;
1302
1291
  isCropping: boolean;
1303
1292
  croppingElementId: string | null;
1304
- searchMatches: readonly {
1305
- id: string;
1306
- focus: boolean;
1307
- matchedLines: {
1308
- offsetX: number;
1309
- offsetY: number;
1310
- width: number;
1311
- height: number;
1312
- }[];
1313
- }[];
1293
+ searchMatches: Readonly<{
1294
+ focusedId: string | null;
1295
+ matches: readonly import("../types").SearchMatch[];
1296
+ }> | null;
1297
+ activeLockedId: string | null;
1298
+ lockedMultiSelections: {
1299
+ [groupId: string]: true;
1300
+ };
1314
1301
  };
1315
1302
  captureUpdate: "IMMEDIATELY";
1316
1303
  };
@@ -1323,7 +1310,7 @@ export declare const actionIncreaseFontSize: {
1323
1310
  label: string;
1324
1311
  icon: import("react/jsx-runtime").JSX.Element;
1325
1312
  trackEvent: false;
1326
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1313
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1327
1314
  elements: ExcalidrawElement[];
1328
1315
  appState: {
1329
1316
  currentItemFontSize: number;
@@ -1336,17 +1323,17 @@ export declare const actionIncreaseFontSize: {
1336
1323
  isLoading: boolean;
1337
1324
  errorMessage: import("react").ReactNode;
1338
1325
  activeEmbeddable: {
1339
- element: import("../element/types").NonDeletedExcalidrawElement;
1340
- state: "hover" | "active";
1326
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1327
+ state: "active" | "hover";
1341
1328
  } | null;
1342
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1343
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1344
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1345
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1329
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1330
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1331
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1332
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1346
1333
  isBindingEnabled: boolean;
1347
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1348
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1349
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1334
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1335
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1336
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1350
1337
  frameRendering: {
1351
1338
  enabled: boolean;
1352
1339
  name: boolean;
@@ -1354,12 +1341,12 @@ export declare const actionIncreaseFontSize: {
1354
1341
  clip: boolean;
1355
1342
  };
1356
1343
  editingFrame: string | null;
1357
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1358
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1359
- editingLinearElement: LinearElementEditor | null;
1344
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1345
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1360
1346
  activeTool: {
1361
1347
  lastActiveTool: import("../types").ActiveTool | null;
1362
1348
  locked: boolean;
1349
+ fromSelection: boolean;
1363
1350
  } & import("../types").ActiveTool;
1364
1351
  penMode: boolean;
1365
1352
  penDetected: boolean;
@@ -1369,9 +1356,9 @@ export declare const actionIncreaseFontSize: {
1369
1356
  exportScale: number;
1370
1357
  currentItemStrokeColor: string;
1371
1358
  currentItemBackgroundColor: string;
1372
- currentItemFillStyle: import("../element/types").FillStyle;
1359
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1373
1360
  currentItemStrokeWidth: number;
1374
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1361
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1375
1362
  currentItemRoughness: number;
1376
1363
  currentItemOpacity: number;
1377
1364
  currentItemFontFamily: number;
@@ -1379,7 +1366,7 @@ export declare const actionIncreaseFontSize: {
1379
1366
  currentItemStartArrowhead: Arrowhead | null;
1380
1367
  currentItemEndArrowhead: Arrowhead | null;
1381
1368
  currentHoveredFontFamily: number | null;
1382
- currentItemRoundness: import("../element/types").StrokeRoundness;
1369
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1383
1370
  currentItemArrowType: "round" | "sharp" | "elbow";
1384
1371
  viewBackgroundColor: string;
1385
1372
  scrollX: number;
@@ -1402,7 +1389,7 @@ export declare const actionIncreaseFontSize: {
1402
1389
  name: "imageExport" | "help" | "jsonExport";
1403
1390
  } | {
1404
1391
  name: "ttd";
1405
- tab: "text-to-diagram" | "mermaid";
1392
+ tab: "mermaid" | "text-to-diagram";
1406
1393
  } | {
1407
1394
  name: "commandPalette";
1408
1395
  } | {
@@ -1410,7 +1397,7 @@ export declare const actionIncreaseFontSize: {
1410
1397
  sourceElementId: string;
1411
1398
  } | null;
1412
1399
  defaultSidebarDockedPreference: boolean;
1413
- lastPointerDownWith: import("../element/types").PointerType;
1400
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1414
1401
  selectedElementIds: Readonly<{
1415
1402
  [id: string]: true;
1416
1403
  }>;
@@ -1428,7 +1415,7 @@ export declare const actionIncreaseFontSize: {
1428
1415
  duration?: number | undefined;
1429
1416
  } | null;
1430
1417
  zenModeEnabled: boolean;
1431
- theme: import("../element/types").Theme;
1418
+ theme: import("@excalidraw/element/types").Theme;
1432
1419
  gridSize: number;
1433
1420
  gridStep: number;
1434
1421
  gridModeEnabled: boolean;
@@ -1449,7 +1436,7 @@ export declare const actionIncreaseFontSize: {
1449
1436
  [id: string]: true;
1450
1437
  }> | undefined;
1451
1438
  username?: string | null | undefined;
1452
- userState?: import("../constants").UserIdleState | undefined;
1439
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1453
1440
  color?: {
1454
1441
  background: string;
1455
1442
  stroke: string;
@@ -1466,7 +1453,7 @@ export declare const actionIncreaseFontSize: {
1466
1453
  open: boolean;
1467
1454
  panels: number;
1468
1455
  };
1469
- currentChartType: import("../element/types").ChartType;
1456
+ currentChartType: import("@excalidraw/element/types").ChartType;
1470
1457
  pasteDialog: {
1471
1458
  shown: false;
1472
1459
  data: null;
@@ -1474,8 +1461,7 @@ export declare const actionIncreaseFontSize: {
1474
1461
  shown: true;
1475
1462
  data: import("../charts").Spreadsheet;
1476
1463
  };
1477
- pendingImageElementId: string | null;
1478
- showHyperlinkPopup: false | "info" | "editor";
1464
+ showHyperlinkPopup: false | "editor" | "info";
1479
1465
  selectedLinearElement: LinearElementEditor | null;
1480
1466
  snapLines: readonly import("../snapping").SnapLine[];
1481
1467
  originSnapOffset: {
@@ -1487,16 +1473,14 @@ export declare const actionIncreaseFontSize: {
1487
1473
  followedBy: Set<import("../types").SocketId>;
1488
1474
  isCropping: boolean;
1489
1475
  croppingElementId: string | null;
1490
- searchMatches: readonly {
1491
- id: string;
1492
- focus: boolean;
1493
- matchedLines: {
1494
- offsetX: number;
1495
- offsetY: number;
1496
- width: number;
1497
- height: number;
1498
- }[];
1499
- }[];
1476
+ searchMatches: Readonly<{
1477
+ focusedId: string | null;
1478
+ matches: readonly import("../types").SearchMatch[];
1479
+ }> | null;
1480
+ activeLockedId: string | null;
1481
+ lockedMultiSelections: {
1482
+ [groupId: string]: true;
1483
+ };
1500
1484
  };
1501
1485
  captureUpdate: "IMMEDIATELY";
1502
1486
  };
@@ -1508,7 +1492,7 @@ export declare const actionChangeFontFamily: {
1508
1492
  name: "changeFontFamily";
1509
1493
  label: string;
1510
1494
  trackEvent: false;
1511
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1495
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1512
1496
  appState: {
1513
1497
  currentItemFontFamily: number;
1514
1498
  currentHoveredFontFamily: number | null;
@@ -1522,17 +1506,17 @@ export declare const actionChangeFontFamily: {
1522
1506
  isLoading: boolean;
1523
1507
  errorMessage: import("react").ReactNode;
1524
1508
  activeEmbeddable: {
1525
- element: import("../element/types").NonDeletedExcalidrawElement;
1526
- state: "hover" | "active";
1509
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1510
+ state: "active" | "hover";
1527
1511
  } | null;
1528
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1529
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1530
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1531
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1512
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1513
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1514
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1515
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1532
1516
  isBindingEnabled: boolean;
1533
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1534
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1535
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1517
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1518
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1519
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1536
1520
  frameRendering: {
1537
1521
  enabled: boolean;
1538
1522
  name: boolean;
@@ -1540,12 +1524,12 @@ export declare const actionChangeFontFamily: {
1540
1524
  clip: boolean;
1541
1525
  };
1542
1526
  editingFrame: string | null;
1543
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1544
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1545
- editingLinearElement: LinearElementEditor | null;
1527
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1528
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1546
1529
  activeTool: {
1547
1530
  lastActiveTool: import("../types").ActiveTool | null;
1548
1531
  locked: boolean;
1532
+ fromSelection: boolean;
1549
1533
  } & import("../types").ActiveTool;
1550
1534
  penMode: boolean;
1551
1535
  penDetected: boolean;
@@ -1555,16 +1539,16 @@ export declare const actionChangeFontFamily: {
1555
1539
  exportScale: number;
1556
1540
  currentItemStrokeColor: string;
1557
1541
  currentItemBackgroundColor: string;
1558
- currentItemFillStyle: import("../element/types").FillStyle;
1542
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1559
1543
  currentItemStrokeWidth: number;
1560
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1544
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1561
1545
  currentItemRoughness: number;
1562
1546
  currentItemOpacity: number;
1563
1547
  currentItemFontSize: number;
1564
1548
  currentItemTextAlign: string;
1565
1549
  currentItemStartArrowhead: Arrowhead | null;
1566
1550
  currentItemEndArrowhead: Arrowhead | null;
1567
- currentItemRoundness: import("../element/types").StrokeRoundness;
1551
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1568
1552
  currentItemArrowType: "round" | "sharp" | "elbow";
1569
1553
  viewBackgroundColor: string;
1570
1554
  scrollX: number;
@@ -1586,7 +1570,7 @@ export declare const actionChangeFontFamily: {
1586
1570
  name: "imageExport" | "help" | "jsonExport";
1587
1571
  } | {
1588
1572
  name: "ttd";
1589
- tab: "text-to-diagram" | "mermaid";
1573
+ tab: "mermaid" | "text-to-diagram";
1590
1574
  } | {
1591
1575
  name: "commandPalette";
1592
1576
  } | {
@@ -1594,7 +1578,7 @@ export declare const actionChangeFontFamily: {
1594
1578
  sourceElementId: string;
1595
1579
  } | null;
1596
1580
  defaultSidebarDockedPreference: boolean;
1597
- lastPointerDownWith: import("../element/types").PointerType;
1581
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1598
1582
  selectedElementIds: Readonly<{
1599
1583
  [id: string]: true;
1600
1584
  }>;
@@ -1612,7 +1596,7 @@ export declare const actionChangeFontFamily: {
1612
1596
  duration?: number | undefined;
1613
1597
  } | null;
1614
1598
  zenModeEnabled: boolean;
1615
- theme: import("../element/types").Theme;
1599
+ theme: import("@excalidraw/element/types").Theme;
1616
1600
  gridSize: number;
1617
1601
  gridStep: number;
1618
1602
  gridModeEnabled: boolean;
@@ -1633,7 +1617,7 @@ export declare const actionChangeFontFamily: {
1633
1617
  [id: string]: true;
1634
1618
  }> | undefined;
1635
1619
  username?: string | null | undefined;
1636
- userState?: import("../constants").UserIdleState | undefined;
1620
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1637
1621
  color?: {
1638
1622
  background: string;
1639
1623
  stroke: string;
@@ -1650,7 +1634,7 @@ export declare const actionChangeFontFamily: {
1650
1634
  open: boolean;
1651
1635
  panels: number;
1652
1636
  };
1653
- currentChartType: import("../element/types").ChartType;
1637
+ currentChartType: import("@excalidraw/element/types").ChartType;
1654
1638
  pasteDialog: {
1655
1639
  shown: false;
1656
1640
  data: null;
@@ -1658,8 +1642,7 @@ export declare const actionChangeFontFamily: {
1658
1642
  shown: true;
1659
1643
  data: import("../charts").Spreadsheet;
1660
1644
  };
1661
- pendingImageElementId: string | null;
1662
- showHyperlinkPopup: false | "info" | "editor";
1645
+ showHyperlinkPopup: false | "editor" | "info";
1663
1646
  selectedLinearElement: LinearElementEditor | null;
1664
1647
  snapLines: readonly import("../snapping").SnapLine[];
1665
1648
  originSnapOffset: {
@@ -1671,16 +1654,14 @@ export declare const actionChangeFontFamily: {
1671
1654
  followedBy: Set<import("../types").SocketId>;
1672
1655
  isCropping: boolean;
1673
1656
  croppingElementId: string | null;
1674
- searchMatches: readonly {
1675
- id: string;
1676
- focus: boolean;
1677
- matchedLines: {
1678
- offsetX: number;
1679
- offsetY: number;
1680
- width: number;
1681
- height: number;
1682
- }[];
1683
- }[];
1657
+ searchMatches: Readonly<{
1658
+ focusedId: string | null;
1659
+ matches: readonly import("../types").SearchMatch[];
1660
+ }> | null;
1661
+ activeLockedId: string | null;
1662
+ lockedMultiSelections: {
1663
+ [groupId: string]: true;
1664
+ };
1684
1665
  };
1685
1666
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1686
1667
  } | {
@@ -1698,17 +1679,17 @@ export declare const actionChangeFontFamily: {
1698
1679
  isLoading: boolean;
1699
1680
  errorMessage: import("react").ReactNode;
1700
1681
  activeEmbeddable: {
1701
- element: import("../element/types").NonDeletedExcalidrawElement;
1702
- state: "hover" | "active";
1682
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1683
+ state: "active" | "hover";
1703
1684
  } | null;
1704
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1705
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1706
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1707
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1685
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1686
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1687
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1688
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1708
1689
  isBindingEnabled: boolean;
1709
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1710
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1711
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1690
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1691
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1692
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1712
1693
  frameRendering: {
1713
1694
  enabled: boolean;
1714
1695
  name: boolean;
@@ -1716,12 +1697,12 @@ export declare const actionChangeFontFamily: {
1716
1697
  clip: boolean;
1717
1698
  };
1718
1699
  editingFrame: string | null;
1719
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1720
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1721
- editingLinearElement: LinearElementEditor | null;
1700
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1701
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1722
1702
  activeTool: {
1723
1703
  lastActiveTool: import("../types").ActiveTool | null;
1724
1704
  locked: boolean;
1705
+ fromSelection: boolean;
1725
1706
  } & import("../types").ActiveTool;
1726
1707
  penMode: boolean;
1727
1708
  penDetected: boolean;
@@ -1731,16 +1712,16 @@ export declare const actionChangeFontFamily: {
1731
1712
  exportScale: number;
1732
1713
  currentItemStrokeColor: string;
1733
1714
  currentItemBackgroundColor: string;
1734
- currentItemFillStyle: import("../element/types").FillStyle;
1715
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1735
1716
  currentItemStrokeWidth: number;
1736
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1717
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1737
1718
  currentItemRoughness: number;
1738
1719
  currentItemOpacity: number;
1739
1720
  currentItemFontSize: number;
1740
1721
  currentItemTextAlign: string;
1741
1722
  currentItemStartArrowhead: Arrowhead | null;
1742
1723
  currentItemEndArrowhead: Arrowhead | null;
1743
- currentItemRoundness: import("../element/types").StrokeRoundness;
1724
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1744
1725
  currentItemArrowType: "round" | "sharp" | "elbow";
1745
1726
  viewBackgroundColor: string;
1746
1727
  scrollX: number;
@@ -1762,7 +1743,7 @@ export declare const actionChangeFontFamily: {
1762
1743
  name: "imageExport" | "help" | "jsonExport";
1763
1744
  } | {
1764
1745
  name: "ttd";
1765
- tab: "text-to-diagram" | "mermaid";
1746
+ tab: "mermaid" | "text-to-diagram";
1766
1747
  } | {
1767
1748
  name: "commandPalette";
1768
1749
  } | {
@@ -1770,7 +1751,7 @@ export declare const actionChangeFontFamily: {
1770
1751
  sourceElementId: string;
1771
1752
  } | null;
1772
1753
  defaultSidebarDockedPreference: boolean;
1773
- lastPointerDownWith: import("../element/types").PointerType;
1754
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1774
1755
  selectedElementIds: Readonly<{
1775
1756
  [id: string]: true;
1776
1757
  }>;
@@ -1788,7 +1769,7 @@ export declare const actionChangeFontFamily: {
1788
1769
  duration?: number | undefined;
1789
1770
  } | null;
1790
1771
  zenModeEnabled: boolean;
1791
- theme: import("../element/types").Theme;
1772
+ theme: import("@excalidraw/element/types").Theme;
1792
1773
  gridSize: number;
1793
1774
  gridStep: number;
1794
1775
  gridModeEnabled: boolean;
@@ -1809,7 +1790,7 @@ export declare const actionChangeFontFamily: {
1809
1790
  [id: string]: true;
1810
1791
  }> | undefined;
1811
1792
  username?: string | null | undefined;
1812
- userState?: import("../constants").UserIdleState | undefined;
1793
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1813
1794
  color?: {
1814
1795
  background: string;
1815
1796
  stroke: string;
@@ -1826,7 +1807,7 @@ export declare const actionChangeFontFamily: {
1826
1807
  open: boolean;
1827
1808
  panels: number;
1828
1809
  };
1829
- currentChartType: import("../element/types").ChartType;
1810
+ currentChartType: import("@excalidraw/element/types").ChartType;
1830
1811
  pasteDialog: {
1831
1812
  shown: false;
1832
1813
  data: null;
@@ -1834,8 +1815,7 @@ export declare const actionChangeFontFamily: {
1834
1815
  shown: true;
1835
1816
  data: import("../charts").Spreadsheet;
1836
1817
  };
1837
- pendingImageElementId: string | null;
1838
- showHyperlinkPopup: false | "info" | "editor";
1818
+ showHyperlinkPopup: false | "editor" | "info";
1839
1819
  selectedLinearElement: LinearElementEditor | null;
1840
1820
  snapLines: readonly import("../snapping").SnapLine[];
1841
1821
  originSnapOffset: {
@@ -1847,16 +1827,14 @@ export declare const actionChangeFontFamily: {
1847
1827
  followedBy: Set<import("../types").SocketId>;
1848
1828
  isCropping: boolean;
1849
1829
  croppingElementId: string | null;
1850
- searchMatches: readonly {
1851
- id: string;
1852
- focus: boolean;
1853
- matchedLines: {
1854
- offsetX: number;
1855
- offsetY: number;
1856
- width: number;
1857
- height: number;
1858
- }[];
1859
- }[];
1830
+ searchMatches: Readonly<{
1831
+ focusedId: string | null;
1832
+ matches: readonly import("../types").SearchMatch[];
1833
+ }> | null;
1834
+ activeLockedId: string | null;
1835
+ lockedMultiSelections: {
1836
+ [groupId: string]: true;
1837
+ };
1860
1838
  };
1861
1839
  captureUpdate: "NEVER";
1862
1840
  };
@@ -1868,7 +1846,7 @@ export declare const actionChangeTextAlign: {
1868
1846
  name: "changeTextAlign";
1869
1847
  label: string;
1870
1848
  trackEvent: false;
1871
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1849
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1872
1850
  elements: ExcalidrawElement[];
1873
1851
  appState: {
1874
1852
  currentItemTextAlign: any;
@@ -1881,17 +1859,17 @@ export declare const actionChangeTextAlign: {
1881
1859
  isLoading: boolean;
1882
1860
  errorMessage: import("react").ReactNode;
1883
1861
  activeEmbeddable: {
1884
- element: import("../element/types").NonDeletedExcalidrawElement;
1885
- state: "hover" | "active";
1862
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1863
+ state: "active" | "hover";
1886
1864
  } | null;
1887
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1888
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1889
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1890
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1865
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1866
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1867
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1868
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1891
1869
  isBindingEnabled: boolean;
1892
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1893
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1894
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1870
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1871
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1872
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1895
1873
  frameRendering: {
1896
1874
  enabled: boolean;
1897
1875
  name: boolean;
@@ -1899,12 +1877,12 @@ export declare const actionChangeTextAlign: {
1899
1877
  clip: boolean;
1900
1878
  };
1901
1879
  editingFrame: string | null;
1902
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1903
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1904
- editingLinearElement: LinearElementEditor | null;
1880
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1881
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1905
1882
  activeTool: {
1906
1883
  lastActiveTool: import("../types").ActiveTool | null;
1907
1884
  locked: boolean;
1885
+ fromSelection: boolean;
1908
1886
  } & import("../types").ActiveTool;
1909
1887
  penMode: boolean;
1910
1888
  penDetected: boolean;
@@ -1914,9 +1892,9 @@ export declare const actionChangeTextAlign: {
1914
1892
  exportScale: number;
1915
1893
  currentItemStrokeColor: string;
1916
1894
  currentItemBackgroundColor: string;
1917
- currentItemFillStyle: import("../element/types").FillStyle;
1895
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1918
1896
  currentItemStrokeWidth: number;
1919
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1897
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1920
1898
  currentItemRoughness: number;
1921
1899
  currentItemOpacity: number;
1922
1900
  currentItemFontFamily: number;
@@ -1924,7 +1902,7 @@ export declare const actionChangeTextAlign: {
1924
1902
  currentItemStartArrowhead: Arrowhead | null;
1925
1903
  currentItemEndArrowhead: Arrowhead | null;
1926
1904
  currentHoveredFontFamily: number | null;
1927
- currentItemRoundness: import("../element/types").StrokeRoundness;
1905
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1928
1906
  currentItemArrowType: "round" | "sharp" | "elbow";
1929
1907
  viewBackgroundColor: string;
1930
1908
  scrollX: number;
@@ -1947,7 +1925,7 @@ export declare const actionChangeTextAlign: {
1947
1925
  name: "imageExport" | "help" | "jsonExport";
1948
1926
  } | {
1949
1927
  name: "ttd";
1950
- tab: "text-to-diagram" | "mermaid";
1928
+ tab: "mermaid" | "text-to-diagram";
1951
1929
  } | {
1952
1930
  name: "commandPalette";
1953
1931
  } | {
@@ -1955,7 +1933,7 @@ export declare const actionChangeTextAlign: {
1955
1933
  sourceElementId: string;
1956
1934
  } | null;
1957
1935
  defaultSidebarDockedPreference: boolean;
1958
- lastPointerDownWith: import("../element/types").PointerType;
1936
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1959
1937
  selectedElementIds: Readonly<{
1960
1938
  [id: string]: true;
1961
1939
  }>;
@@ -1973,7 +1951,7 @@ export declare const actionChangeTextAlign: {
1973
1951
  duration?: number | undefined;
1974
1952
  } | null;
1975
1953
  zenModeEnabled: boolean;
1976
- theme: import("../element/types").Theme;
1954
+ theme: import("@excalidraw/element/types").Theme;
1977
1955
  gridSize: number;
1978
1956
  gridStep: number;
1979
1957
  gridModeEnabled: boolean;
@@ -1994,7 +1972,7 @@ export declare const actionChangeTextAlign: {
1994
1972
  [id: string]: true;
1995
1973
  }> | undefined;
1996
1974
  username?: string | null | undefined;
1997
- userState?: import("../constants").UserIdleState | undefined;
1975
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1998
1976
  color?: {
1999
1977
  background: string;
2000
1978
  stroke: string;
@@ -2011,7 +1989,7 @@ export declare const actionChangeTextAlign: {
2011
1989
  open: boolean;
2012
1990
  panels: number;
2013
1991
  };
2014
- currentChartType: import("../element/types").ChartType;
1992
+ currentChartType: import("@excalidraw/element/types").ChartType;
2015
1993
  pasteDialog: {
2016
1994
  shown: false;
2017
1995
  data: null;
@@ -2019,8 +1997,7 @@ export declare const actionChangeTextAlign: {
2019
1997
  shown: true;
2020
1998
  data: import("../charts").Spreadsheet;
2021
1999
  };
2022
- pendingImageElementId: string | null;
2023
- showHyperlinkPopup: false | "info" | "editor";
2000
+ showHyperlinkPopup: false | "editor" | "info";
2024
2001
  selectedLinearElement: LinearElementEditor | null;
2025
2002
  snapLines: readonly import("../snapping").SnapLine[];
2026
2003
  originSnapOffset: {
@@ -2032,16 +2009,14 @@ export declare const actionChangeTextAlign: {
2032
2009
  followedBy: Set<import("../types").SocketId>;
2033
2010
  isCropping: boolean;
2034
2011
  croppingElementId: string | null;
2035
- searchMatches: readonly {
2036
- id: string;
2037
- focus: boolean;
2038
- matchedLines: {
2039
- offsetX: number;
2040
- offsetY: number;
2041
- width: number;
2042
- height: number;
2043
- }[];
2044
- }[];
2012
+ searchMatches: Readonly<{
2013
+ focusedId: string | null;
2014
+ matches: readonly import("../types").SearchMatch[];
2015
+ }> | null;
2016
+ activeLockedId: string | null;
2017
+ lockedMultiSelections: {
2018
+ [groupId: string]: true;
2019
+ };
2045
2020
  };
2046
2021
  captureUpdate: "IMMEDIATELY";
2047
2022
  };
@@ -2055,7 +2030,7 @@ export declare const actionChangeVerticalAlign: {
2055
2030
  trackEvent: {
2056
2031
  category: "element";
2057
2032
  };
2058
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2033
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2059
2034
  elements: ExcalidrawElement[];
2060
2035
  appState: {
2061
2036
  contextMenu: {
@@ -2067,17 +2042,17 @@ export declare const actionChangeVerticalAlign: {
2067
2042
  isLoading: boolean;
2068
2043
  errorMessage: import("react").ReactNode;
2069
2044
  activeEmbeddable: {
2070
- element: import("../element/types").NonDeletedExcalidrawElement;
2071
- state: "hover" | "active";
2045
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2046
+ state: "active" | "hover";
2072
2047
  } | null;
2073
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2074
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2075
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2076
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2048
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2049
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2050
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2051
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2077
2052
  isBindingEnabled: boolean;
2078
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2079
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2080
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2053
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2054
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2055
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2081
2056
  frameRendering: {
2082
2057
  enabled: boolean;
2083
2058
  name: boolean;
@@ -2085,12 +2060,12 @@ export declare const actionChangeVerticalAlign: {
2085
2060
  clip: boolean;
2086
2061
  };
2087
2062
  editingFrame: string | null;
2088
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2089
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2090
- editingLinearElement: LinearElementEditor | null;
2063
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2064
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2091
2065
  activeTool: {
2092
2066
  lastActiveTool: import("../types").ActiveTool | null;
2093
2067
  locked: boolean;
2068
+ fromSelection: boolean;
2094
2069
  } & import("../types").ActiveTool;
2095
2070
  penMode: boolean;
2096
2071
  penDetected: boolean;
@@ -2100,9 +2075,9 @@ export declare const actionChangeVerticalAlign: {
2100
2075
  exportScale: number;
2101
2076
  currentItemStrokeColor: string;
2102
2077
  currentItemBackgroundColor: string;
2103
- currentItemFillStyle: import("../element/types").FillStyle;
2078
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2104
2079
  currentItemStrokeWidth: number;
2105
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2080
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2106
2081
  currentItemRoughness: number;
2107
2082
  currentItemOpacity: number;
2108
2083
  currentItemFontFamily: number;
@@ -2111,7 +2086,7 @@ export declare const actionChangeVerticalAlign: {
2111
2086
  currentItemStartArrowhead: Arrowhead | null;
2112
2087
  currentItemEndArrowhead: Arrowhead | null;
2113
2088
  currentHoveredFontFamily: number | null;
2114
- currentItemRoundness: import("../element/types").StrokeRoundness;
2089
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2115
2090
  currentItemArrowType: "round" | "sharp" | "elbow";
2116
2091
  viewBackgroundColor: string;
2117
2092
  scrollX: number;
@@ -2134,7 +2109,7 @@ export declare const actionChangeVerticalAlign: {
2134
2109
  name: "imageExport" | "help" | "jsonExport";
2135
2110
  } | {
2136
2111
  name: "ttd";
2137
- tab: "text-to-diagram" | "mermaid";
2112
+ tab: "mermaid" | "text-to-diagram";
2138
2113
  } | {
2139
2114
  name: "commandPalette";
2140
2115
  } | {
@@ -2142,7 +2117,7 @@ export declare const actionChangeVerticalAlign: {
2142
2117
  sourceElementId: string;
2143
2118
  } | null;
2144
2119
  defaultSidebarDockedPreference: boolean;
2145
- lastPointerDownWith: import("../element/types").PointerType;
2120
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2146
2121
  selectedElementIds: Readonly<{
2147
2122
  [id: string]: true;
2148
2123
  }>;
@@ -2160,7 +2135,7 @@ export declare const actionChangeVerticalAlign: {
2160
2135
  duration?: number | undefined;
2161
2136
  } | null;
2162
2137
  zenModeEnabled: boolean;
2163
- theme: import("../element/types").Theme;
2138
+ theme: import("@excalidraw/element/types").Theme;
2164
2139
  gridSize: number;
2165
2140
  gridStep: number;
2166
2141
  gridModeEnabled: boolean;
@@ -2181,7 +2156,7 @@ export declare const actionChangeVerticalAlign: {
2181
2156
  [id: string]: true;
2182
2157
  }> | undefined;
2183
2158
  username?: string | null | undefined;
2184
- userState?: import("../constants").UserIdleState | undefined;
2159
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2185
2160
  color?: {
2186
2161
  background: string;
2187
2162
  stroke: string;
@@ -2198,7 +2173,7 @@ export declare const actionChangeVerticalAlign: {
2198
2173
  open: boolean;
2199
2174
  panels: number;
2200
2175
  };
2201
- currentChartType: import("../element/types").ChartType;
2176
+ currentChartType: import("@excalidraw/element/types").ChartType;
2202
2177
  pasteDialog: {
2203
2178
  shown: false;
2204
2179
  data: null;
@@ -2206,8 +2181,7 @@ export declare const actionChangeVerticalAlign: {
2206
2181
  shown: true;
2207
2182
  data: import("../charts").Spreadsheet;
2208
2183
  };
2209
- pendingImageElementId: string | null;
2210
- showHyperlinkPopup: false | "info" | "editor";
2184
+ showHyperlinkPopup: false | "editor" | "info";
2211
2185
  selectedLinearElement: LinearElementEditor | null;
2212
2186
  snapLines: readonly import("../snapping").SnapLine[];
2213
2187
  originSnapOffset: {
@@ -2219,16 +2193,14 @@ export declare const actionChangeVerticalAlign: {
2219
2193
  followedBy: Set<import("../types").SocketId>;
2220
2194
  isCropping: boolean;
2221
2195
  croppingElementId: string | null;
2222
- searchMatches: readonly {
2223
- id: string;
2224
- focus: boolean;
2225
- matchedLines: {
2226
- offsetX: number;
2227
- offsetY: number;
2228
- width: number;
2229
- height: number;
2230
- }[];
2231
- }[];
2196
+ searchMatches: Readonly<{
2197
+ focusedId: string | null;
2198
+ matches: readonly import("../types").SearchMatch[];
2199
+ }> | null;
2200
+ activeLockedId: string | null;
2201
+ lockedMultiSelections: {
2202
+ [groupId: string]: true;
2203
+ };
2232
2204
  };
2233
2205
  captureUpdate: "IMMEDIATELY";
2234
2206
  };
@@ -2240,7 +2212,7 @@ export declare const actionChangeRoundness: {
2240
2212
  name: "changeRoundness";
2241
2213
  label: string;
2242
2214
  trackEvent: false;
2243
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
2215
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
2244
2216
  elements: ExcalidrawElement[];
2245
2217
  appState: {
2246
2218
  currentItemRoundness: any;
@@ -2253,17 +2225,17 @@ export declare const actionChangeRoundness: {
2253
2225
  isLoading: boolean;
2254
2226
  errorMessage: import("react").ReactNode;
2255
2227
  activeEmbeddable: {
2256
- element: import("../element/types").NonDeletedExcalidrawElement;
2257
- state: "hover" | "active";
2228
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2229
+ state: "active" | "hover";
2258
2230
  } | null;
2259
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2260
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2261
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2262
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2231
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2232
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2233
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2234
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2263
2235
  isBindingEnabled: boolean;
2264
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2265
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2266
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2236
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2237
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2238
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2267
2239
  frameRendering: {
2268
2240
  enabled: boolean;
2269
2241
  name: boolean;
@@ -2271,12 +2243,12 @@ export declare const actionChangeRoundness: {
2271
2243
  clip: boolean;
2272
2244
  };
2273
2245
  editingFrame: string | null;
2274
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2275
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2276
- editingLinearElement: LinearElementEditor | null;
2246
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2247
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2277
2248
  activeTool: {
2278
2249
  lastActiveTool: import("../types").ActiveTool | null;
2279
2250
  locked: boolean;
2251
+ fromSelection: boolean;
2280
2252
  } & import("../types").ActiveTool;
2281
2253
  penMode: boolean;
2282
2254
  penDetected: boolean;
@@ -2286,9 +2258,9 @@ export declare const actionChangeRoundness: {
2286
2258
  exportScale: number;
2287
2259
  currentItemStrokeColor: string;
2288
2260
  currentItemBackgroundColor: string;
2289
- currentItemFillStyle: import("../element/types").FillStyle;
2261
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2290
2262
  currentItemStrokeWidth: number;
2291
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2263
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2292
2264
  currentItemRoughness: number;
2293
2265
  currentItemOpacity: number;
2294
2266
  currentItemFontFamily: number;
@@ -2319,7 +2291,7 @@ export declare const actionChangeRoundness: {
2319
2291
  name: "imageExport" | "help" | "jsonExport";
2320
2292
  } | {
2321
2293
  name: "ttd";
2322
- tab: "text-to-diagram" | "mermaid";
2294
+ tab: "mermaid" | "text-to-diagram";
2323
2295
  } | {
2324
2296
  name: "commandPalette";
2325
2297
  } | {
@@ -2327,7 +2299,7 @@ export declare const actionChangeRoundness: {
2327
2299
  sourceElementId: string;
2328
2300
  } | null;
2329
2301
  defaultSidebarDockedPreference: boolean;
2330
- lastPointerDownWith: import("../element/types").PointerType;
2302
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2331
2303
  selectedElementIds: Readonly<{
2332
2304
  [id: string]: true;
2333
2305
  }>;
@@ -2345,7 +2317,7 @@ export declare const actionChangeRoundness: {
2345
2317
  duration?: number | undefined;
2346
2318
  } | null;
2347
2319
  zenModeEnabled: boolean;
2348
- theme: import("../element/types").Theme;
2320
+ theme: import("@excalidraw/element/types").Theme;
2349
2321
  gridSize: number;
2350
2322
  gridStep: number;
2351
2323
  gridModeEnabled: boolean;
@@ -2366,7 +2338,7 @@ export declare const actionChangeRoundness: {
2366
2338
  [id: string]: true;
2367
2339
  }> | undefined;
2368
2340
  username?: string | null | undefined;
2369
- userState?: import("../constants").UserIdleState | undefined;
2341
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2370
2342
  color?: {
2371
2343
  background: string;
2372
2344
  stroke: string;
@@ -2383,7 +2355,7 @@ export declare const actionChangeRoundness: {
2383
2355
  open: boolean;
2384
2356
  panels: number;
2385
2357
  };
2386
- currentChartType: import("../element/types").ChartType;
2358
+ currentChartType: import("@excalidraw/element/types").ChartType;
2387
2359
  pasteDialog: {
2388
2360
  shown: false;
2389
2361
  data: null;
@@ -2391,8 +2363,7 @@ export declare const actionChangeRoundness: {
2391
2363
  shown: true;
2392
2364
  data: import("../charts").Spreadsheet;
2393
2365
  };
2394
- pendingImageElementId: string | null;
2395
- showHyperlinkPopup: false | "info" | "editor";
2366
+ showHyperlinkPopup: false | "editor" | "info";
2396
2367
  selectedLinearElement: LinearElementEditor | null;
2397
2368
  snapLines: readonly import("../snapping").SnapLine[];
2398
2369
  originSnapOffset: {
@@ -2404,20 +2375,18 @@ export declare const actionChangeRoundness: {
2404
2375
  followedBy: Set<import("../types").SocketId>;
2405
2376
  isCropping: boolean;
2406
2377
  croppingElementId: string | null;
2407
- searchMatches: readonly {
2408
- id: string;
2409
- focus: boolean;
2410
- matchedLines: {
2411
- offsetX: number;
2412
- offsetY: number;
2413
- width: number;
2414
- height: number;
2415
- }[];
2416
- }[];
2378
+ searchMatches: Readonly<{
2379
+ focusedId: string | null;
2380
+ matches: readonly import("../types").SearchMatch[];
2381
+ }> | null;
2382
+ activeLockedId: string | null;
2383
+ lockedMultiSelections: {
2384
+ [groupId: string]: true;
2385
+ };
2417
2386
  };
2418
2387
  captureUpdate: "IMMEDIATELY";
2419
2388
  };
2420
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2389
+ PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2421
2390
  } & {
2422
2391
  keyTest?: undefined;
2423
2392
  };
@@ -2425,7 +2394,7 @@ export declare const actionChangeArrowhead: {
2425
2394
  name: "changeArrowhead";
2426
2395
  label: string;
2427
2396
  trackEvent: false;
2428
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2397
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2429
2398
  position: "start" | "end";
2430
2399
  type: Arrowhead;
2431
2400
  }) => {
@@ -2440,17 +2409,17 @@ export declare const actionChangeArrowhead: {
2440
2409
  isLoading: boolean;
2441
2410
  errorMessage: import("react").ReactNode;
2442
2411
  activeEmbeddable: {
2443
- element: import("../element/types").NonDeletedExcalidrawElement;
2444
- state: "hover" | "active";
2412
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2413
+ state: "active" | "hover";
2445
2414
  } | null;
2446
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2447
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2448
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2449
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2415
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2416
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2417
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2418
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2450
2419
  isBindingEnabled: boolean;
2451
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2452
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2453
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2420
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2421
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2422
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2454
2423
  frameRendering: {
2455
2424
  enabled: boolean;
2456
2425
  name: boolean;
@@ -2458,12 +2427,12 @@ export declare const actionChangeArrowhead: {
2458
2427
  clip: boolean;
2459
2428
  };
2460
2429
  editingFrame: string | null;
2461
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2462
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2463
- editingLinearElement: LinearElementEditor | null;
2430
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2431
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2464
2432
  activeTool: {
2465
2433
  lastActiveTool: import("../types").ActiveTool | null;
2466
2434
  locked: boolean;
2435
+ fromSelection: boolean;
2467
2436
  } & import("../types").ActiveTool;
2468
2437
  penMode: boolean;
2469
2438
  penDetected: boolean;
@@ -2473,9 +2442,9 @@ export declare const actionChangeArrowhead: {
2473
2442
  exportScale: number;
2474
2443
  currentItemStrokeColor: string;
2475
2444
  currentItemBackgroundColor: string;
2476
- currentItemFillStyle: import("../element/types").FillStyle;
2445
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2477
2446
  currentItemStrokeWidth: number;
2478
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2447
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2479
2448
  currentItemRoughness: number;
2480
2449
  currentItemOpacity: number;
2481
2450
  currentItemFontFamily: number;
@@ -2484,7 +2453,7 @@ export declare const actionChangeArrowhead: {
2484
2453
  currentItemStartArrowhead: Arrowhead | null;
2485
2454
  currentItemEndArrowhead: Arrowhead | null;
2486
2455
  currentHoveredFontFamily: number | null;
2487
- currentItemRoundness: import("../element/types").StrokeRoundness;
2456
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2488
2457
  currentItemArrowType: "round" | "sharp" | "elbow";
2489
2458
  viewBackgroundColor: string;
2490
2459
  scrollX: number;
@@ -2507,7 +2476,7 @@ export declare const actionChangeArrowhead: {
2507
2476
  name: "imageExport" | "help" | "jsonExport";
2508
2477
  } | {
2509
2478
  name: "ttd";
2510
- tab: "text-to-diagram" | "mermaid";
2479
+ tab: "mermaid" | "text-to-diagram";
2511
2480
  } | {
2512
2481
  name: "commandPalette";
2513
2482
  } | {
@@ -2515,7 +2484,7 @@ export declare const actionChangeArrowhead: {
2515
2484
  sourceElementId: string;
2516
2485
  } | null;
2517
2486
  defaultSidebarDockedPreference: boolean;
2518
- lastPointerDownWith: import("../element/types").PointerType;
2487
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2519
2488
  selectedElementIds: Readonly<{
2520
2489
  [id: string]: true;
2521
2490
  }>;
@@ -2533,7 +2502,7 @@ export declare const actionChangeArrowhead: {
2533
2502
  duration?: number | undefined;
2534
2503
  } | null;
2535
2504
  zenModeEnabled: boolean;
2536
- theme: import("../element/types").Theme;
2505
+ theme: import("@excalidraw/element/types").Theme;
2537
2506
  gridSize: number;
2538
2507
  gridStep: number;
2539
2508
  gridModeEnabled: boolean;
@@ -2554,7 +2523,7 @@ export declare const actionChangeArrowhead: {
2554
2523
  [id: string]: true;
2555
2524
  }> | undefined;
2556
2525
  username?: string | null | undefined;
2557
- userState?: import("../constants").UserIdleState | undefined;
2526
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2558
2527
  color?: {
2559
2528
  background: string;
2560
2529
  stroke: string;
@@ -2571,7 +2540,7 @@ export declare const actionChangeArrowhead: {
2571
2540
  open: boolean;
2572
2541
  panels: number;
2573
2542
  };
2574
- currentChartType: import("../element/types").ChartType;
2543
+ currentChartType: import("@excalidraw/element/types").ChartType;
2575
2544
  pasteDialog: {
2576
2545
  shown: false;
2577
2546
  data: null;
@@ -2579,8 +2548,7 @@ export declare const actionChangeArrowhead: {
2579
2548
  shown: true;
2580
2549
  data: import("../charts").Spreadsheet;
2581
2550
  };
2582
- pendingImageElementId: string | null;
2583
- showHyperlinkPopup: false | "info" | "editor";
2551
+ showHyperlinkPopup: false | "editor" | "info";
2584
2552
  selectedLinearElement: LinearElementEditor | null;
2585
2553
  snapLines: readonly import("../snapping").SnapLine[];
2586
2554
  originSnapOffset: {
@@ -2592,20 +2560,18 @@ export declare const actionChangeArrowhead: {
2592
2560
  followedBy: Set<import("../types").SocketId>;
2593
2561
  isCropping: boolean;
2594
2562
  croppingElementId: string | null;
2595
- searchMatches: readonly {
2596
- id: string;
2597
- focus: boolean;
2598
- matchedLines: {
2599
- offsetX: number;
2600
- offsetY: number;
2601
- width: number;
2602
- height: number;
2603
- }[];
2604
- }[];
2563
+ searchMatches: Readonly<{
2564
+ focusedId: string | null;
2565
+ matches: readonly import("../types").SearchMatch[];
2566
+ }> | null;
2567
+ activeLockedId: string | null;
2568
+ lockedMultiSelections: {
2569
+ [groupId: string]: true;
2570
+ };
2605
2571
  };
2606
2572
  captureUpdate: "IMMEDIATELY";
2607
2573
  };
2608
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2574
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2609
2575
  } & {
2610
2576
  keyTest?: undefined;
2611
2577
  };
@@ -2613,7 +2579,7 @@ export declare const actionChangeArrowType: {
2613
2579
  name: "changeArrowType";
2614
2580
  label: string;
2615
2581
  trackEvent: false;
2616
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2582
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2617
2583
  elements: ExcalidrawElement[];
2618
2584
  appState: {
2619
2585
  currentItemArrowType: any;
@@ -2626,17 +2592,17 @@ export declare const actionChangeArrowType: {
2626
2592
  isLoading: boolean;
2627
2593
  errorMessage: import("react").ReactNode;
2628
2594
  activeEmbeddable: {
2629
- element: import("../element/types").NonDeletedExcalidrawElement;
2630
- state: "hover" | "active";
2595
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2596
+ state: "active" | "hover";
2631
2597
  } | null;
2632
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2633
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2634
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2635
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2598
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2599
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2600
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2601
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2636
2602
  isBindingEnabled: boolean;
2637
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2638
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2639
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2603
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2604
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2605
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2640
2606
  frameRendering: {
2641
2607
  enabled: boolean;
2642
2608
  name: boolean;
@@ -2644,12 +2610,12 @@ export declare const actionChangeArrowType: {
2644
2610
  clip: boolean;
2645
2611
  };
2646
2612
  editingFrame: string | null;
2647
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2648
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2649
- editingLinearElement: LinearElementEditor | null;
2613
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2614
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2650
2615
  activeTool: {
2651
2616
  lastActiveTool: import("../types").ActiveTool | null;
2652
2617
  locked: boolean;
2618
+ fromSelection: boolean;
2653
2619
  } & import("../types").ActiveTool;
2654
2620
  penMode: boolean;
2655
2621
  penDetected: boolean;
@@ -2659,9 +2625,9 @@ export declare const actionChangeArrowType: {
2659
2625
  exportScale: number;
2660
2626
  currentItemStrokeColor: string;
2661
2627
  currentItemBackgroundColor: string;
2662
- currentItemFillStyle: import("../element/types").FillStyle;
2628
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2663
2629
  currentItemStrokeWidth: number;
2664
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2630
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2665
2631
  currentItemRoughness: number;
2666
2632
  currentItemOpacity: number;
2667
2633
  currentItemFontFamily: number;
@@ -2670,7 +2636,7 @@ export declare const actionChangeArrowType: {
2670
2636
  currentItemStartArrowhead: Arrowhead | null;
2671
2637
  currentItemEndArrowhead: Arrowhead | null;
2672
2638
  currentHoveredFontFamily: number | null;
2673
- currentItemRoundness: import("../element/types").StrokeRoundness;
2639
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2674
2640
  viewBackgroundColor: string;
2675
2641
  scrollX: number;
2676
2642
  scrollY: number;
@@ -2692,7 +2658,7 @@ export declare const actionChangeArrowType: {
2692
2658
  name: "imageExport" | "help" | "jsonExport";
2693
2659
  } | {
2694
2660
  name: "ttd";
2695
- tab: "text-to-diagram" | "mermaid";
2661
+ tab: "mermaid" | "text-to-diagram";
2696
2662
  } | {
2697
2663
  name: "commandPalette";
2698
2664
  } | {
@@ -2700,7 +2666,7 @@ export declare const actionChangeArrowType: {
2700
2666
  sourceElementId: string;
2701
2667
  } | null;
2702
2668
  defaultSidebarDockedPreference: boolean;
2703
- lastPointerDownWith: import("../element/types").PointerType;
2669
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2704
2670
  selectedElementIds: Readonly<{
2705
2671
  [id: string]: true;
2706
2672
  }>;
@@ -2718,7 +2684,7 @@ export declare const actionChangeArrowType: {
2718
2684
  duration?: number | undefined;
2719
2685
  } | null;
2720
2686
  zenModeEnabled: boolean;
2721
- theme: import("../element/types").Theme;
2687
+ theme: import("@excalidraw/element/types").Theme;
2722
2688
  gridSize: number;
2723
2689
  gridStep: number;
2724
2690
  gridModeEnabled: boolean;
@@ -2739,7 +2705,7 @@ export declare const actionChangeArrowType: {
2739
2705
  [id: string]: true;
2740
2706
  }> | undefined;
2741
2707
  username?: string | null | undefined;
2742
- userState?: import("../constants").UserIdleState | undefined;
2708
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2743
2709
  color?: {
2744
2710
  background: string;
2745
2711
  stroke: string;
@@ -2756,7 +2722,7 @@ export declare const actionChangeArrowType: {
2756
2722
  open: boolean;
2757
2723
  panels: number;
2758
2724
  };
2759
- currentChartType: import("../element/types").ChartType;
2725
+ currentChartType: import("@excalidraw/element/types").ChartType;
2760
2726
  pasteDialog: {
2761
2727
  shown: false;
2762
2728
  data: null;
@@ -2764,8 +2730,7 @@ export declare const actionChangeArrowType: {
2764
2730
  shown: true;
2765
2731
  data: import("../charts").Spreadsheet;
2766
2732
  };
2767
- pendingImageElementId: string | null;
2768
- showHyperlinkPopup: false | "info" | "editor";
2733
+ showHyperlinkPopup: false | "editor" | "info";
2769
2734
  selectedLinearElement: LinearElementEditor | null;
2770
2735
  snapLines: readonly import("../snapping").SnapLine[];
2771
2736
  originSnapOffset: {
@@ -2777,20 +2742,18 @@ export declare const actionChangeArrowType: {
2777
2742
  followedBy: Set<import("../types").SocketId>;
2778
2743
  isCropping: boolean;
2779
2744
  croppingElementId: string | null;
2780
- searchMatches: readonly {
2781
- id: string;
2782
- focus: boolean;
2783
- matchedLines: {
2784
- offsetX: number;
2785
- offsetY: number;
2786
- width: number;
2787
- height: number;
2788
- }[];
2789
- }[];
2745
+ searchMatches: Readonly<{
2746
+ focusedId: string | null;
2747
+ matches: readonly import("../types").SearchMatch[];
2748
+ }> | null;
2749
+ activeLockedId: string | null;
2750
+ lockedMultiSelections: {
2751
+ [groupId: string]: true;
2752
+ };
2790
2753
  };
2791
2754
  captureUpdate: "IMMEDIATELY";
2792
2755
  };
2793
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2756
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2794
2757
  } & {
2795
2758
  keyTest?: undefined;
2796
2759
  };