@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-a5d6939

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 (268) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/chunk-FB2NA5UG.js +4132 -0
  3. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  4. package/dist/dev/{chunk-3SN6HYVK.js → chunk-GBJ7S76A.js} +15490 -22586
  5. package/dist/dev/chunk-GBJ7S76A.js.map +7 -0
  6. package/dist/dev/{chunk-53KHN5WM.js → chunk-GIMGG4AT.js} +2 -2
  7. package/dist/dev/{chunk-53KHN5WM.js.map → chunk-GIMGG4AT.js.map} +1 -1
  8. package/dist/dev/{chunk-LMHBUWQS.js → chunk-X3RYHLJU.js} +2 -1
  9. package/dist/dev/chunk-X3RYHLJU.js.map +7 -0
  10. package/dist/dev/data/{image-V26YBSDB.js → image-JN3Y4CVN.js} +3 -3
  11. package/dist/dev/index.css +3031 -3034
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +30389 -22974
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-CKWC2GMK.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-G5N3DNGT.js → chunk-GKI4RZ6C.js} +1 -1
  19. package/dist/prod/{chunk-6U3AYISY.js → chunk-IUH5AXLB.js} +1 -1
  20. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  21. package/dist/prod/chunk-TVF64BAY.js +33 -0
  22. package/dist/prod/data/image-CZ2OEVDB.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +18 -15
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-SBO6ZHT2.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 +9 -6
  31. package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
  32. package/dist/types/common/src/index.d.ts +11 -0
  33. package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
  34. package/dist/types/common/src/promise-pool.d.ts +6 -0
  35. package/dist/types/{excalidraw → common/src}/utils.d.ts +10 -12
  36. package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
  37. package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
  38. package/dist/types/{excalidraw → element/src}/align.d.ts +2 -2
  39. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +8 -8
  40. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +7 -2
  41. package/dist/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
  42. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  43. package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
  44. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
  45. package/dist/types/element/src/duplicate.d.ts +63 -0
  46. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  47. package/dist/types/element/src/embeddable.d.ts +10 -0
  48. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
  49. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
  50. package/dist/types/{excalidraw → element/src}/frame.d.ts +7 -7
  51. package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -5
  52. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  53. package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  54. package/dist/types/{excalidraw/element → element/src}/index.d.ts +0 -10
  55. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +7 -7
  56. package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
  57. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
  58. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  59. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +4 -4
  60. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  61. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -2
  62. package/dist/types/element/src/shapes.d.ts +23 -0
  63. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  64. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
  65. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +5 -5
  66. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  67. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
  68. package/dist/types/{excalidraw/element → element/src}/types.d.ts +2 -2
  69. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  70. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +73 -70
  71. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  72. package/dist/types/excalidraw/actions/actionBoundText.d.ts +54 -52
  73. package/dist/types/excalidraw/actions/actionCanvas.d.ts +542 -353
  74. package/dist/types/excalidraw/actions/actionClipboard.d.ts +155 -149
  75. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +26 -25
  76. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +73 -70
  77. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  78. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  79. package/dist/types/excalidraw/actions/actionElementLink.d.ts +30 -29
  80. package/dist/types/excalidraw/actions/actionElementLock.d.ts +53 -52
  81. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +26 -35
  82. package/dist/types/excalidraw/actions/actionExport.d.ts +300 -291
  83. package/dist/types/excalidraw/actions/actionFinalize.d.ts +41 -39
  84. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  85. package/dist/types/excalidraw/actions/actionFrame.d.ts +212 -208
  86. package/dist/types/excalidraw/actions/actionGroup.d.ts +51 -49
  87. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -1
  88. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +27 -26
  89. package/dist/types/excalidraw/actions/actionLink.d.ts +26 -25
  90. package/dist/types/excalidraw/actions/actionMenu.d.ts +73 -70
  91. package/dist/types/excalidraw/actions/actionNavigate.d.ts +48 -46
  92. package/dist/types/excalidraw/actions/actionProperties.d.ts +317 -302
  93. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +26 -25
  94. package/dist/types/excalidraw/actions/actionStyles.d.ts +28 -27
  95. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  96. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +26 -25
  97. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +26 -25
  98. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +50 -48
  99. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +25 -25
  100. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +26 -26
  101. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -26
  102. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  103. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  104. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  105. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  106. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  107. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  108. package/dist/types/excalidraw/appState.d.ts +32 -31
  109. package/dist/types/excalidraw/change.d.ts +3 -3
  110. package/dist/types/excalidraw/charts.d.ts +1 -1
  111. package/dist/types/excalidraw/clipboard.d.ts +7 -7
  112. package/dist/types/excalidraw/components/Actions.d.ts +3 -3
  113. package/dist/types/excalidraw/components/App.d.ts +38 -19
  114. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  115. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -1
  116. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
  117. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  118. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  119. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  120. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  121. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
  122. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  123. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  124. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  125. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  126. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  127. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  128. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  129. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  130. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
  131. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  132. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  133. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  134. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  135. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  136. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  137. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  138. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  139. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  140. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  141. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  142. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  143. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  144. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  145. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  146. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  147. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  148. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  149. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  150. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  151. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  152. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  153. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  154. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  155. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  156. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  157. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  158. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  159. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  160. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  161. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  162. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  163. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  164. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  165. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  166. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  167. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  168. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  169. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  171. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  172. package/dist/types/excalidraw/components/TextField.d.ts +1 -1
  173. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  174. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  175. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  176. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  177. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -3
  178. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  179. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  181. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  182. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  183. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
  184. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  185. package/dist/types/excalidraw/components/icons.d.ts +2 -1
  186. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  187. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  188. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  189. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  190. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  191. package/dist/types/excalidraw/data/blob.d.ts +4 -4
  192. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  193. package/dist/types/excalidraw/data/index.d.ts +2 -2
  194. package/dist/types/excalidraw/data/json.d.ts +1 -1
  195. package/dist/types/excalidraw/data/library.d.ts +3 -3
  196. package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
  197. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  198. package/dist/types/excalidraw/data/restore.d.ts +1 -1
  199. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  200. package/dist/types/excalidraw/data/types.d.ts +3 -3
  201. package/dist/types/excalidraw/eraser/index.d.ts +14 -0
  202. package/dist/types/excalidraw/errors.d.ts +0 -3
  203. package/dist/types/excalidraw/fonts/Fonts.d.ts +2 -12
  204. package/dist/types/excalidraw/history.d.ts +2 -2
  205. package/dist/types/excalidraw/i18n.d.ts +1 -1
  206. package/dist/types/excalidraw/index.d.ts +15 -14
  207. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  208. package/dist/types/excalidraw/lasso/index.d.ts +15 -0
  209. package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
  210. package/dist/types/excalidraw/renderer/helpers.d.ts +2 -2
  211. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  212. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -3
  213. package/dist/types/excalidraw/scene/Scene.d.ts +5 -5
  214. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  215. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  216. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  217. package/dist/types/excalidraw/scene/scrollbars.d.ts +1 -1
  218. package/dist/types/excalidraw/scene/types.d.ts +4 -4
  219. package/dist/types/excalidraw/snapping.d.ts +5 -6
  220. package/dist/types/excalidraw/store.d.ts +2 -2
  221. package/dist/types/excalidraw/types.d.ts +18 -15
  222. package/dist/types/excalidraw/visualdebug.d.ts +2 -2
  223. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
  224. package/dist/types/math/{point.d.ts → src/point.d.ts} +2 -2
  225. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  226. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  227. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  228. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  229. package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
  230. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  231. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  232. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  233. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  234. package/history.ts +4 -2
  235. package/package.json +14 -2
  236. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  237. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  238. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  239. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  240. package/dist/prod/chunk-36CXSE6H.js +0 -34
  241. package/dist/prod/chunk-EIO257PC.js +0 -86
  242. package/dist/prod/data/image-N4WCURRR.js +0 -1
  243. package/dist/types/excalidraw/shapes.d.ts +0 -85
  244. package/dist/dev/data/{image-V26YBSDB.js.map → image-JN3Y4CVN.js.map} +0 -0
  245. package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-CKWC2GMK.js.map} +0 -0
  246. package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  247. package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  248. package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  249. package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  250. package/dist/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
  251. package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  252. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  253. package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  254. package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +0 -0
  255. package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  256. package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  257. package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  258. package/dist/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
  259. /package/dist/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
  260. /package/dist/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
  261. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  262. /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
  263. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  264. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  265. /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  266. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  267. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
  268. /package/dist/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
@@ -1,14 +1,14 @@
1
1
  /// <reference types="react" />
2
+ import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
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
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;
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;
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
12
  PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
13
  } & {
14
14
  keyTest?: undefined;
@@ -17,7 +17,7 @@ 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;
20
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
21
21
  PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
22
22
  } & {
23
23
  keyTest?: undefined;
@@ -26,7 +26,7 @@ export declare const actionChangeFillStyle: {
26
26
  name: "changeFillStyle";
27
27
  label: string;
28
28
  trackEvent: false;
29
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
29
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
30
30
  elements: ExcalidrawElement[];
31
31
  appState: {
32
32
  currentItemFillStyle: any;
@@ -39,17 +39,17 @@ export declare const actionChangeFillStyle: {
39
39
  isLoading: boolean;
40
40
  errorMessage: import("react").ReactNode;
41
41
  activeEmbeddable: {
42
- element: import("../element/types").NonDeletedExcalidrawElement;
42
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
43
43
  state: "hover" | "active";
44
44
  } | 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;
45
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
46
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
47
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
48
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
49
  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;
50
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
51
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
52
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
53
53
  frameRendering: {
54
54
  enabled: boolean;
55
55
  name: boolean;
@@ -57,12 +57,13 @@ export declare const actionChangeFillStyle: {
57
57
  clip: boolean;
58
58
  };
59
59
  editingFrame: string | null;
60
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
61
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
60
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
61
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
62
62
  editingLinearElement: LinearElementEditor | null;
63
63
  activeTool: {
64
64
  lastActiveTool: import("../types").ActiveTool | null;
65
65
  locked: boolean;
66
+ fromSelection: boolean;
66
67
  } & import("../types").ActiveTool;
67
68
  penMode: boolean;
68
69
  penDetected: boolean;
@@ -73,7 +74,7 @@ export declare const actionChangeFillStyle: {
73
74
  currentItemStrokeColor: string;
74
75
  currentItemBackgroundColor: string;
75
76
  currentItemStrokeWidth: number;
76
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
77
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
77
78
  currentItemRoughness: number;
78
79
  currentItemOpacity: number;
79
80
  currentItemFontFamily: number;
@@ -82,7 +83,7 @@ export declare const actionChangeFillStyle: {
82
83
  currentItemStartArrowhead: Arrowhead | null;
83
84
  currentItemEndArrowhead: Arrowhead | null;
84
85
  currentHoveredFontFamily: number | null;
85
- currentItemRoundness: import("../element/types").StrokeRoundness;
86
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
86
87
  currentItemArrowType: "round" | "sharp" | "elbow";
87
88
  viewBackgroundColor: string;
88
89
  scrollX: number;
@@ -95,7 +96,7 @@ export declare const actionChangeFillStyle: {
95
96
  zoom: Readonly<{
96
97
  value: import("../types").NormalizedZoomValue;
97
98
  }>;
98
- openMenu: "canvas" | "shape" | null;
99
+ openMenu: "shape" | "canvas" | null;
99
100
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
100
101
  openSidebar: {
101
102
  name: string;
@@ -113,7 +114,7 @@ export declare const actionChangeFillStyle: {
113
114
  sourceElementId: string;
114
115
  } | null;
115
116
  defaultSidebarDockedPreference: boolean;
116
- lastPointerDownWith: import("../element/types").PointerType;
117
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
117
118
  selectedElementIds: Readonly<{
118
119
  [id: string]: true;
119
120
  }>;
@@ -131,7 +132,7 @@ export declare const actionChangeFillStyle: {
131
132
  duration?: number | undefined;
132
133
  } | null;
133
134
  zenModeEnabled: boolean;
134
- theme: import("../element/types").Theme;
135
+ theme: import("@excalidraw/element/types").Theme;
135
136
  gridSize: number;
136
137
  gridStep: number;
137
138
  gridModeEnabled: boolean;
@@ -152,7 +153,7 @@ export declare const actionChangeFillStyle: {
152
153
  [id: string]: true;
153
154
  }> | undefined;
154
155
  username?: string | null | undefined;
155
- userState?: import("../constants").UserIdleState | undefined;
156
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
156
157
  color?: {
157
158
  background: string;
158
159
  stroke: string;
@@ -169,7 +170,7 @@ export declare const actionChangeFillStyle: {
169
170
  open: boolean;
170
171
  panels: number;
171
172
  };
172
- currentChartType: import("../element/types").ChartType;
173
+ currentChartType: import("@excalidraw/element/types").ChartType;
173
174
  pasteDialog: {
174
175
  shown: false;
175
176
  data: null;
@@ -178,7 +179,7 @@ export declare const actionChangeFillStyle: {
178
179
  data: import("../charts").Spreadsheet;
179
180
  };
180
181
  pendingImageElementId: string | null;
181
- showHyperlinkPopup: false | "info" | "editor";
182
+ showHyperlinkPopup: false | "editor" | "info";
182
183
  selectedLinearElement: LinearElementEditor | null;
183
184
  snapLines: readonly import("../snapping").SnapLine[];
184
185
  originSnapOffset: {
@@ -211,7 +212,7 @@ export declare const actionChangeStrokeWidth: {
211
212
  name: "changeStrokeWidth";
212
213
  label: string;
213
214
  trackEvent: false;
214
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
215
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
215
216
  elements: ExcalidrawElement[];
216
217
  appState: {
217
218
  currentItemStrokeWidth: any;
@@ -224,17 +225,17 @@ export declare const actionChangeStrokeWidth: {
224
225
  isLoading: boolean;
225
226
  errorMessage: import("react").ReactNode;
226
227
  activeEmbeddable: {
227
- element: import("../element/types").NonDeletedExcalidrawElement;
228
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
228
229
  state: "hover" | "active";
229
230
  } | 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;
231
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
232
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
233
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
234
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
234
235
  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;
236
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
237
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
238
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
238
239
  frameRendering: {
239
240
  enabled: boolean;
240
241
  name: boolean;
@@ -242,12 +243,13 @@ export declare const actionChangeStrokeWidth: {
242
243
  clip: boolean;
243
244
  };
244
245
  editingFrame: string | null;
245
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
246
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
246
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
247
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
247
248
  editingLinearElement: LinearElementEditor | null;
248
249
  activeTool: {
249
250
  lastActiveTool: import("../types").ActiveTool | null;
250
251
  locked: boolean;
252
+ fromSelection: boolean;
251
253
  } & import("../types").ActiveTool;
252
254
  penMode: boolean;
253
255
  penDetected: boolean;
@@ -257,8 +259,8 @@ export declare const actionChangeStrokeWidth: {
257
259
  exportScale: number;
258
260
  currentItemStrokeColor: string;
259
261
  currentItemBackgroundColor: string;
260
- currentItemFillStyle: import("../element/types").FillStyle;
261
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
262
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
263
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
262
264
  currentItemRoughness: number;
263
265
  currentItemOpacity: number;
264
266
  currentItemFontFamily: number;
@@ -267,7 +269,7 @@ export declare const actionChangeStrokeWidth: {
267
269
  currentItemStartArrowhead: Arrowhead | null;
268
270
  currentItemEndArrowhead: Arrowhead | null;
269
271
  currentHoveredFontFamily: number | null;
270
- currentItemRoundness: import("../element/types").StrokeRoundness;
272
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
271
273
  currentItemArrowType: "round" | "sharp" | "elbow";
272
274
  viewBackgroundColor: string;
273
275
  scrollX: number;
@@ -280,7 +282,7 @@ export declare const actionChangeStrokeWidth: {
280
282
  zoom: Readonly<{
281
283
  value: import("../types").NormalizedZoomValue;
282
284
  }>;
283
- openMenu: "canvas" | "shape" | null;
285
+ openMenu: "shape" | "canvas" | null;
284
286
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
285
287
  openSidebar: {
286
288
  name: string;
@@ -298,7 +300,7 @@ export declare const actionChangeStrokeWidth: {
298
300
  sourceElementId: string;
299
301
  } | null;
300
302
  defaultSidebarDockedPreference: boolean;
301
- lastPointerDownWith: import("../element/types").PointerType;
303
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
302
304
  selectedElementIds: Readonly<{
303
305
  [id: string]: true;
304
306
  }>;
@@ -316,7 +318,7 @@ export declare const actionChangeStrokeWidth: {
316
318
  duration?: number | undefined;
317
319
  } | null;
318
320
  zenModeEnabled: boolean;
319
- theme: import("../element/types").Theme;
321
+ theme: import("@excalidraw/element/types").Theme;
320
322
  gridSize: number;
321
323
  gridStep: number;
322
324
  gridModeEnabled: boolean;
@@ -337,7 +339,7 @@ export declare const actionChangeStrokeWidth: {
337
339
  [id: string]: true;
338
340
  }> | undefined;
339
341
  username?: string | null | undefined;
340
- userState?: import("../constants").UserIdleState | undefined;
342
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
341
343
  color?: {
342
344
  background: string;
343
345
  stroke: string;
@@ -354,7 +356,7 @@ export declare const actionChangeStrokeWidth: {
354
356
  open: boolean;
355
357
  panels: number;
356
358
  };
357
- currentChartType: import("../element/types").ChartType;
359
+ currentChartType: import("@excalidraw/element/types").ChartType;
358
360
  pasteDialog: {
359
361
  shown: false;
360
362
  data: null;
@@ -363,7 +365,7 @@ export declare const actionChangeStrokeWidth: {
363
365
  data: import("../charts").Spreadsheet;
364
366
  };
365
367
  pendingImageElementId: string | null;
366
- showHyperlinkPopup: false | "info" | "editor";
368
+ showHyperlinkPopup: false | "editor" | "info";
367
369
  selectedLinearElement: LinearElementEditor | null;
368
370
  snapLines: readonly import("../snapping").SnapLine[];
369
371
  originSnapOffset: {
@@ -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;
414
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
413
415
  state: "hover" | "active";
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/binding").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,13 @@ 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
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
433
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
432
434
  editingLinearElement: LinearElementEditor | null;
433
435
  activeTool: {
434
436
  lastActiveTool: import("../types").ActiveTool | null;
435
437
  locked: boolean;
438
+ fromSelection: boolean;
436
439
  } & import("../types").ActiveTool;
437
440
  penMode: boolean;
438
441
  penDetected: boolean;
@@ -442,9 +445,9 @@ export declare const actionChangeSloppiness: {
442
445
  exportScale: number;
443
446
  currentItemStrokeColor: string;
444
447
  currentItemBackgroundColor: string;
445
- currentItemFillStyle: import("../element/types").FillStyle;
448
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
446
449
  currentItemStrokeWidth: number;
447
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
450
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
448
451
  currentItemOpacity: number;
449
452
  currentItemFontFamily: number;
450
453
  currentItemFontSize: number;
@@ -452,7 +455,7 @@ export declare const actionChangeSloppiness: {
452
455
  currentItemStartArrowhead: Arrowhead | null;
453
456
  currentItemEndArrowhead: Arrowhead | null;
454
457
  currentHoveredFontFamily: number | null;
455
- currentItemRoundness: import("../element/types").StrokeRoundness;
458
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
456
459
  currentItemArrowType: "round" | "sharp" | "elbow";
457
460
  viewBackgroundColor: string;
458
461
  scrollX: number;
@@ -465,7 +468,7 @@ export declare const actionChangeSloppiness: {
465
468
  zoom: Readonly<{
466
469
  value: import("../types").NormalizedZoomValue;
467
470
  }>;
468
- openMenu: "canvas" | "shape" | null;
471
+ openMenu: "shape" | "canvas" | null;
469
472
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
470
473
  openSidebar: {
471
474
  name: string;
@@ -483,7 +486,7 @@ export declare const actionChangeSloppiness: {
483
486
  sourceElementId: string;
484
487
  } | null;
485
488
  defaultSidebarDockedPreference: boolean;
486
- lastPointerDownWith: import("../element/types").PointerType;
489
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
487
490
  selectedElementIds: Readonly<{
488
491
  [id: string]: true;
489
492
  }>;
@@ -501,7 +504,7 @@ export declare const actionChangeSloppiness: {
501
504
  duration?: number | undefined;
502
505
  } | null;
503
506
  zenModeEnabled: boolean;
504
- theme: import("../element/types").Theme;
507
+ theme: import("@excalidraw/element/types").Theme;
505
508
  gridSize: number;
506
509
  gridStep: number;
507
510
  gridModeEnabled: boolean;
@@ -522,7 +525,7 @@ export declare const actionChangeSloppiness: {
522
525
  [id: string]: true;
523
526
  }> | undefined;
524
527
  username?: string | null | undefined;
525
- userState?: import("../constants").UserIdleState | undefined;
528
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
526
529
  color?: {
527
530
  background: string;
528
531
  stroke: string;
@@ -539,7 +542,7 @@ export declare const actionChangeSloppiness: {
539
542
  open: boolean;
540
543
  panels: number;
541
544
  };
542
- currentChartType: import("../element/types").ChartType;
545
+ currentChartType: import("@excalidraw/element/types").ChartType;
543
546
  pasteDialog: {
544
547
  shown: false;
545
548
  data: null;
@@ -548,7 +551,7 @@ export declare const actionChangeSloppiness: {
548
551
  data: import("../charts").Spreadsheet;
549
552
  };
550
553
  pendingImageElementId: string | null;
551
- showHyperlinkPopup: false | "info" | "editor";
554
+ showHyperlinkPopup: false | "editor" | "info";
552
555
  selectedLinearElement: LinearElementEditor | null;
553
556
  snapLines: readonly import("../snapping").SnapLine[];
554
557
  originSnapOffset: {
@@ -581,7 +584,7 @@ export declare const actionChangeStrokeStyle: {
581
584
  name: "changeStrokeStyle";
582
585
  label: string;
583
586
  trackEvent: false;
584
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
587
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
585
588
  elements: ExcalidrawElement[];
586
589
  appState: {
587
590
  currentItemStrokeStyle: any;
@@ -594,17 +597,17 @@ export declare const actionChangeStrokeStyle: {
594
597
  isLoading: boolean;
595
598
  errorMessage: import("react").ReactNode;
596
599
  activeEmbeddable: {
597
- element: import("../element/types").NonDeletedExcalidrawElement;
600
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
598
601
  state: "hover" | "active";
599
602
  } | 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;
603
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
605
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
606
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
604
607
  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;
608
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
609
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
610
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
608
611
  frameRendering: {
609
612
  enabled: boolean;
610
613
  name: boolean;
@@ -612,12 +615,13 @@ export declare const actionChangeStrokeStyle: {
612
615
  clip: boolean;
613
616
  };
614
617
  editingFrame: string | null;
615
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
616
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
618
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
619
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
617
620
  editingLinearElement: LinearElementEditor | null;
618
621
  activeTool: {
619
622
  lastActiveTool: import("../types").ActiveTool | null;
620
623
  locked: boolean;
624
+ fromSelection: boolean;
621
625
  } & import("../types").ActiveTool;
622
626
  penMode: boolean;
623
627
  penDetected: boolean;
@@ -627,7 +631,7 @@ export declare const actionChangeStrokeStyle: {
627
631
  exportScale: number;
628
632
  currentItemStrokeColor: string;
629
633
  currentItemBackgroundColor: string;
630
- currentItemFillStyle: import("../element/types").FillStyle;
634
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
631
635
  currentItemStrokeWidth: number;
632
636
  currentItemRoughness: number;
633
637
  currentItemOpacity: number;
@@ -637,7 +641,7 @@ export declare const actionChangeStrokeStyle: {
637
641
  currentItemStartArrowhead: Arrowhead | null;
638
642
  currentItemEndArrowhead: Arrowhead | null;
639
643
  currentHoveredFontFamily: number | null;
640
- currentItemRoundness: import("../element/types").StrokeRoundness;
644
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
641
645
  currentItemArrowType: "round" | "sharp" | "elbow";
642
646
  viewBackgroundColor: string;
643
647
  scrollX: number;
@@ -650,7 +654,7 @@ export declare const actionChangeStrokeStyle: {
650
654
  zoom: Readonly<{
651
655
  value: import("../types").NormalizedZoomValue;
652
656
  }>;
653
- openMenu: "canvas" | "shape" | null;
657
+ openMenu: "shape" | "canvas" | null;
654
658
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
655
659
  openSidebar: {
656
660
  name: string;
@@ -668,7 +672,7 @@ export declare const actionChangeStrokeStyle: {
668
672
  sourceElementId: string;
669
673
  } | null;
670
674
  defaultSidebarDockedPreference: boolean;
671
- lastPointerDownWith: import("../element/types").PointerType;
675
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
672
676
  selectedElementIds: Readonly<{
673
677
  [id: string]: true;
674
678
  }>;
@@ -686,7 +690,7 @@ export declare const actionChangeStrokeStyle: {
686
690
  duration?: number | undefined;
687
691
  } | null;
688
692
  zenModeEnabled: boolean;
689
- theme: import("../element/types").Theme;
693
+ theme: import("@excalidraw/element/types").Theme;
690
694
  gridSize: number;
691
695
  gridStep: number;
692
696
  gridModeEnabled: boolean;
@@ -707,7 +711,7 @@ export declare const actionChangeStrokeStyle: {
707
711
  [id: string]: true;
708
712
  }> | undefined;
709
713
  username?: string | null | undefined;
710
- userState?: import("../constants").UserIdleState | undefined;
714
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
711
715
  color?: {
712
716
  background: string;
713
717
  stroke: string;
@@ -724,7 +728,7 @@ export declare const actionChangeStrokeStyle: {
724
728
  open: boolean;
725
729
  panels: number;
726
730
  };
727
- currentChartType: import("../element/types").ChartType;
731
+ currentChartType: import("@excalidraw/element/types").ChartType;
728
732
  pasteDialog: {
729
733
  shown: false;
730
734
  data: null;
@@ -733,7 +737,7 @@ export declare const actionChangeStrokeStyle: {
733
737
  data: import("../charts").Spreadsheet;
734
738
  };
735
739
  pendingImageElementId: string | null;
736
- showHyperlinkPopup: false | "info" | "editor";
740
+ showHyperlinkPopup: false | "editor" | "info";
737
741
  selectedLinearElement: LinearElementEditor | null;
738
742
  snapLines: readonly import("../snapping").SnapLine[];
739
743
  originSnapOffset: {
@@ -766,7 +770,7 @@ export declare const actionChangeOpacity: {
766
770
  name: "changeOpacity";
767
771
  label: string;
768
772
  trackEvent: false;
769
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
773
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
770
774
  elements: ExcalidrawElement[];
771
775
  appState: {
772
776
  currentItemOpacity: any;
@@ -779,17 +783,17 @@ export declare const actionChangeOpacity: {
779
783
  isLoading: boolean;
780
784
  errorMessage: import("react").ReactNode;
781
785
  activeEmbeddable: {
782
- element: import("../element/types").NonDeletedExcalidrawElement;
786
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
783
787
  state: "hover" | "active";
784
788
  } | 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;
789
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
790
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
791
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
792
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
789
793
  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;
794
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
795
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
796
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
793
797
  frameRendering: {
794
798
  enabled: boolean;
795
799
  name: boolean;
@@ -797,12 +801,13 @@ export declare const actionChangeOpacity: {
797
801
  clip: boolean;
798
802
  };
799
803
  editingFrame: string | null;
800
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
801
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
804
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
805
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
802
806
  editingLinearElement: LinearElementEditor | null;
803
807
  activeTool: {
804
808
  lastActiveTool: import("../types").ActiveTool | null;
805
809
  locked: boolean;
810
+ fromSelection: boolean;
806
811
  } & import("../types").ActiveTool;
807
812
  penMode: boolean;
808
813
  penDetected: boolean;
@@ -812,9 +817,9 @@ export declare const actionChangeOpacity: {
812
817
  exportScale: number;
813
818
  currentItemStrokeColor: string;
814
819
  currentItemBackgroundColor: string;
815
- currentItemFillStyle: import("../element/types").FillStyle;
820
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
816
821
  currentItemStrokeWidth: number;
817
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
822
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
818
823
  currentItemRoughness: number;
819
824
  currentItemFontFamily: number;
820
825
  currentItemFontSize: number;
@@ -822,7 +827,7 @@ export declare const actionChangeOpacity: {
822
827
  currentItemStartArrowhead: Arrowhead | null;
823
828
  currentItemEndArrowhead: Arrowhead | null;
824
829
  currentHoveredFontFamily: number | null;
825
- currentItemRoundness: import("../element/types").StrokeRoundness;
830
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
826
831
  currentItemArrowType: "round" | "sharp" | "elbow";
827
832
  viewBackgroundColor: string;
828
833
  scrollX: number;
@@ -835,7 +840,7 @@ export declare const actionChangeOpacity: {
835
840
  zoom: Readonly<{
836
841
  value: import("../types").NormalizedZoomValue;
837
842
  }>;
838
- openMenu: "canvas" | "shape" | null;
843
+ openMenu: "shape" | "canvas" | null;
839
844
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
840
845
  openSidebar: {
841
846
  name: string;
@@ -853,7 +858,7 @@ export declare const actionChangeOpacity: {
853
858
  sourceElementId: string;
854
859
  } | null;
855
860
  defaultSidebarDockedPreference: boolean;
856
- lastPointerDownWith: import("../element/types").PointerType;
861
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
857
862
  selectedElementIds: Readonly<{
858
863
  [id: string]: true;
859
864
  }>;
@@ -871,7 +876,7 @@ export declare const actionChangeOpacity: {
871
876
  duration?: number | undefined;
872
877
  } | null;
873
878
  zenModeEnabled: boolean;
874
- theme: import("../element/types").Theme;
879
+ theme: import("@excalidraw/element/types").Theme;
875
880
  gridSize: number;
876
881
  gridStep: number;
877
882
  gridModeEnabled: boolean;
@@ -892,7 +897,7 @@ export declare const actionChangeOpacity: {
892
897
  [id: string]: true;
893
898
  }> | undefined;
894
899
  username?: string | null | undefined;
895
- userState?: import("../constants").UserIdleState | undefined;
900
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
896
901
  color?: {
897
902
  background: string;
898
903
  stroke: string;
@@ -909,7 +914,7 @@ export declare const actionChangeOpacity: {
909
914
  open: boolean;
910
915
  panels: number;
911
916
  };
912
- currentChartType: import("../element/types").ChartType;
917
+ currentChartType: import("@excalidraw/element/types").ChartType;
913
918
  pasteDialog: {
914
919
  shown: false;
915
920
  data: null;
@@ -918,7 +923,7 @@ export declare const actionChangeOpacity: {
918
923
  data: import("../charts").Spreadsheet;
919
924
  };
920
925
  pendingImageElementId: string | null;
921
- showHyperlinkPopup: false | "info" | "editor";
926
+ showHyperlinkPopup: false | "editor" | "info";
922
927
  selectedLinearElement: LinearElementEditor | null;
923
928
  snapLines: readonly import("../snapping").SnapLine[];
924
929
  originSnapOffset: {
@@ -951,7 +956,7 @@ export declare const actionChangeFontSize: {
951
956
  name: "changeFontSize";
952
957
  label: string;
953
958
  trackEvent: false;
954
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
959
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
955
960
  elements: ExcalidrawElement[];
956
961
  appState: {
957
962
  currentItemFontSize: number;
@@ -964,17 +969,17 @@ export declare const actionChangeFontSize: {
964
969
  isLoading: boolean;
965
970
  errorMessage: import("react").ReactNode;
966
971
  activeEmbeddable: {
967
- element: import("../element/types").NonDeletedExcalidrawElement;
972
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
968
973
  state: "hover" | "active";
969
974
  } | 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;
975
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
976
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
977
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
978
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
974
979
  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;
980
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
981
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
982
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
978
983
  frameRendering: {
979
984
  enabled: boolean;
980
985
  name: boolean;
@@ -982,12 +987,13 @@ export declare const actionChangeFontSize: {
982
987
  clip: boolean;
983
988
  };
984
989
  editingFrame: string | null;
985
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
986
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
990
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
991
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
987
992
  editingLinearElement: LinearElementEditor | null;
988
993
  activeTool: {
989
994
  lastActiveTool: import("../types").ActiveTool | null;
990
995
  locked: boolean;
996
+ fromSelection: boolean;
991
997
  } & import("../types").ActiveTool;
992
998
  penMode: boolean;
993
999
  penDetected: boolean;
@@ -997,9 +1003,9 @@ export declare const actionChangeFontSize: {
997
1003
  exportScale: number;
998
1004
  currentItemStrokeColor: string;
999
1005
  currentItemBackgroundColor: string;
1000
- currentItemFillStyle: import("../element/types").FillStyle;
1006
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1001
1007
  currentItemStrokeWidth: number;
1002
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1008
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1003
1009
  currentItemRoughness: number;
1004
1010
  currentItemOpacity: number;
1005
1011
  currentItemFontFamily: number;
@@ -1007,7 +1013,7 @@ export declare const actionChangeFontSize: {
1007
1013
  currentItemStartArrowhead: Arrowhead | null;
1008
1014
  currentItemEndArrowhead: Arrowhead | null;
1009
1015
  currentHoveredFontFamily: number | null;
1010
- currentItemRoundness: import("../element/types").StrokeRoundness;
1016
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1011
1017
  currentItemArrowType: "round" | "sharp" | "elbow";
1012
1018
  viewBackgroundColor: string;
1013
1019
  scrollX: number;
@@ -1020,7 +1026,7 @@ export declare const actionChangeFontSize: {
1020
1026
  zoom: Readonly<{
1021
1027
  value: import("../types").NormalizedZoomValue;
1022
1028
  }>;
1023
- openMenu: "canvas" | "shape" | null;
1029
+ openMenu: "shape" | "canvas" | null;
1024
1030
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1025
1031
  openSidebar: {
1026
1032
  name: string;
@@ -1038,7 +1044,7 @@ export declare const actionChangeFontSize: {
1038
1044
  sourceElementId: string;
1039
1045
  } | null;
1040
1046
  defaultSidebarDockedPreference: boolean;
1041
- lastPointerDownWith: import("../element/types").PointerType;
1047
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1042
1048
  selectedElementIds: Readonly<{
1043
1049
  [id: string]: true;
1044
1050
  }>;
@@ -1056,7 +1062,7 @@ export declare const actionChangeFontSize: {
1056
1062
  duration?: number | undefined;
1057
1063
  } | null;
1058
1064
  zenModeEnabled: boolean;
1059
- theme: import("../element/types").Theme;
1065
+ theme: import("@excalidraw/element/types").Theme;
1060
1066
  gridSize: number;
1061
1067
  gridStep: number;
1062
1068
  gridModeEnabled: boolean;
@@ -1077,7 +1083,7 @@ export declare const actionChangeFontSize: {
1077
1083
  [id: string]: true;
1078
1084
  }> | undefined;
1079
1085
  username?: string | null | undefined;
1080
- userState?: import("../constants").UserIdleState | undefined;
1086
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1081
1087
  color?: {
1082
1088
  background: string;
1083
1089
  stroke: string;
@@ -1094,7 +1100,7 @@ export declare const actionChangeFontSize: {
1094
1100
  open: boolean;
1095
1101
  panels: number;
1096
1102
  };
1097
- currentChartType: import("../element/types").ChartType;
1103
+ currentChartType: import("@excalidraw/element/types").ChartType;
1098
1104
  pasteDialog: {
1099
1105
  shown: false;
1100
1106
  data: null;
@@ -1103,7 +1109,7 @@ export declare const actionChangeFontSize: {
1103
1109
  data: import("../charts").Spreadsheet;
1104
1110
  };
1105
1111
  pendingImageElementId: string | null;
1106
- showHyperlinkPopup: false | "info" | "editor";
1112
+ showHyperlinkPopup: false | "editor" | "info";
1107
1113
  selectedLinearElement: LinearElementEditor | null;
1108
1114
  snapLines: readonly import("../snapping").SnapLine[];
1109
1115
  originSnapOffset: {
@@ -1137,7 +1143,7 @@ export declare const actionDecreaseFontSize: {
1137
1143
  label: string;
1138
1144
  icon: import("react/jsx-runtime").JSX.Element;
1139
1145
  trackEvent: false;
1140
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1146
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1141
1147
  elements: ExcalidrawElement[];
1142
1148
  appState: {
1143
1149
  currentItemFontSize: number;
@@ -1150,17 +1156,17 @@ export declare const actionDecreaseFontSize: {
1150
1156
  isLoading: boolean;
1151
1157
  errorMessage: import("react").ReactNode;
1152
1158
  activeEmbeddable: {
1153
- element: import("../element/types").NonDeletedExcalidrawElement;
1159
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1154
1160
  state: "hover" | "active";
1155
1161
  } | 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;
1162
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1163
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1164
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1165
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1160
1166
  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;
1167
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1168
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1169
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1164
1170
  frameRendering: {
1165
1171
  enabled: boolean;
1166
1172
  name: boolean;
@@ -1168,12 +1174,13 @@ export declare const actionDecreaseFontSize: {
1168
1174
  clip: boolean;
1169
1175
  };
1170
1176
  editingFrame: string | null;
1171
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1172
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1177
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1178
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1173
1179
  editingLinearElement: LinearElementEditor | null;
1174
1180
  activeTool: {
1175
1181
  lastActiveTool: import("../types").ActiveTool | null;
1176
1182
  locked: boolean;
1183
+ fromSelection: boolean;
1177
1184
  } & import("../types").ActiveTool;
1178
1185
  penMode: boolean;
1179
1186
  penDetected: boolean;
@@ -1183,9 +1190,9 @@ export declare const actionDecreaseFontSize: {
1183
1190
  exportScale: number;
1184
1191
  currentItemStrokeColor: string;
1185
1192
  currentItemBackgroundColor: string;
1186
- currentItemFillStyle: import("../element/types").FillStyle;
1193
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1187
1194
  currentItemStrokeWidth: number;
1188
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1195
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1189
1196
  currentItemRoughness: number;
1190
1197
  currentItemOpacity: number;
1191
1198
  currentItemFontFamily: number;
@@ -1193,7 +1200,7 @@ export declare const actionDecreaseFontSize: {
1193
1200
  currentItemStartArrowhead: Arrowhead | null;
1194
1201
  currentItemEndArrowhead: Arrowhead | null;
1195
1202
  currentHoveredFontFamily: number | null;
1196
- currentItemRoundness: import("../element/types").StrokeRoundness;
1203
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1197
1204
  currentItemArrowType: "round" | "sharp" | "elbow";
1198
1205
  viewBackgroundColor: string;
1199
1206
  scrollX: number;
@@ -1206,7 +1213,7 @@ export declare const actionDecreaseFontSize: {
1206
1213
  zoom: Readonly<{
1207
1214
  value: import("../types").NormalizedZoomValue;
1208
1215
  }>;
1209
- openMenu: "canvas" | "shape" | null;
1216
+ openMenu: "shape" | "canvas" | null;
1210
1217
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1211
1218
  openSidebar: {
1212
1219
  name: string;
@@ -1224,7 +1231,7 @@ export declare const actionDecreaseFontSize: {
1224
1231
  sourceElementId: string;
1225
1232
  } | null;
1226
1233
  defaultSidebarDockedPreference: boolean;
1227
- lastPointerDownWith: import("../element/types").PointerType;
1234
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1228
1235
  selectedElementIds: Readonly<{
1229
1236
  [id: string]: true;
1230
1237
  }>;
@@ -1242,7 +1249,7 @@ export declare const actionDecreaseFontSize: {
1242
1249
  duration?: number | undefined;
1243
1250
  } | null;
1244
1251
  zenModeEnabled: boolean;
1245
- theme: import("../element/types").Theme;
1252
+ theme: import("@excalidraw/element/types").Theme;
1246
1253
  gridSize: number;
1247
1254
  gridStep: number;
1248
1255
  gridModeEnabled: boolean;
@@ -1263,7 +1270,7 @@ export declare const actionDecreaseFontSize: {
1263
1270
  [id: string]: true;
1264
1271
  }> | undefined;
1265
1272
  username?: string | null | undefined;
1266
- userState?: import("../constants").UserIdleState | undefined;
1273
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1267
1274
  color?: {
1268
1275
  background: string;
1269
1276
  stroke: string;
@@ -1280,7 +1287,7 @@ export declare const actionDecreaseFontSize: {
1280
1287
  open: boolean;
1281
1288
  panels: number;
1282
1289
  };
1283
- currentChartType: import("../element/types").ChartType;
1290
+ currentChartType: import("@excalidraw/element/types").ChartType;
1284
1291
  pasteDialog: {
1285
1292
  shown: false;
1286
1293
  data: null;
@@ -1289,7 +1296,7 @@ export declare const actionDecreaseFontSize: {
1289
1296
  data: import("../charts").Spreadsheet;
1290
1297
  };
1291
1298
  pendingImageElementId: string | null;
1292
- showHyperlinkPopup: false | "info" | "editor";
1299
+ showHyperlinkPopup: false | "editor" | "info";
1293
1300
  selectedLinearElement: LinearElementEditor | null;
1294
1301
  snapLines: readonly import("../snapping").SnapLine[];
1295
1302
  originSnapOffset: {
@@ -1323,7 +1330,7 @@ export declare const actionIncreaseFontSize: {
1323
1330
  label: string;
1324
1331
  icon: import("react/jsx-runtime").JSX.Element;
1325
1332
  trackEvent: false;
1326
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1333
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1327
1334
  elements: ExcalidrawElement[];
1328
1335
  appState: {
1329
1336
  currentItemFontSize: number;
@@ -1336,17 +1343,17 @@ export declare const actionIncreaseFontSize: {
1336
1343
  isLoading: boolean;
1337
1344
  errorMessage: import("react").ReactNode;
1338
1345
  activeEmbeddable: {
1339
- element: import("../element/types").NonDeletedExcalidrawElement;
1346
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1340
1347
  state: "hover" | "active";
1341
1348
  } | 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;
1349
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1350
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1351
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1352
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1346
1353
  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;
1354
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1355
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1356
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1350
1357
  frameRendering: {
1351
1358
  enabled: boolean;
1352
1359
  name: boolean;
@@ -1354,12 +1361,13 @@ export declare const actionIncreaseFontSize: {
1354
1361
  clip: boolean;
1355
1362
  };
1356
1363
  editingFrame: string | null;
1357
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1358
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1364
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1365
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1359
1366
  editingLinearElement: LinearElementEditor | null;
1360
1367
  activeTool: {
1361
1368
  lastActiveTool: import("../types").ActiveTool | null;
1362
1369
  locked: boolean;
1370
+ fromSelection: boolean;
1363
1371
  } & import("../types").ActiveTool;
1364
1372
  penMode: boolean;
1365
1373
  penDetected: boolean;
@@ -1369,9 +1377,9 @@ export declare const actionIncreaseFontSize: {
1369
1377
  exportScale: number;
1370
1378
  currentItemStrokeColor: string;
1371
1379
  currentItemBackgroundColor: string;
1372
- currentItemFillStyle: import("../element/types").FillStyle;
1380
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1373
1381
  currentItemStrokeWidth: number;
1374
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1382
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1375
1383
  currentItemRoughness: number;
1376
1384
  currentItemOpacity: number;
1377
1385
  currentItemFontFamily: number;
@@ -1379,7 +1387,7 @@ export declare const actionIncreaseFontSize: {
1379
1387
  currentItemStartArrowhead: Arrowhead | null;
1380
1388
  currentItemEndArrowhead: Arrowhead | null;
1381
1389
  currentHoveredFontFamily: number | null;
1382
- currentItemRoundness: import("../element/types").StrokeRoundness;
1390
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1383
1391
  currentItemArrowType: "round" | "sharp" | "elbow";
1384
1392
  viewBackgroundColor: string;
1385
1393
  scrollX: number;
@@ -1392,7 +1400,7 @@ export declare const actionIncreaseFontSize: {
1392
1400
  zoom: Readonly<{
1393
1401
  value: import("../types").NormalizedZoomValue;
1394
1402
  }>;
1395
- openMenu: "canvas" | "shape" | null;
1403
+ openMenu: "shape" | "canvas" | null;
1396
1404
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1397
1405
  openSidebar: {
1398
1406
  name: string;
@@ -1410,7 +1418,7 @@ export declare const actionIncreaseFontSize: {
1410
1418
  sourceElementId: string;
1411
1419
  } | null;
1412
1420
  defaultSidebarDockedPreference: boolean;
1413
- lastPointerDownWith: import("../element/types").PointerType;
1421
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1414
1422
  selectedElementIds: Readonly<{
1415
1423
  [id: string]: true;
1416
1424
  }>;
@@ -1428,7 +1436,7 @@ export declare const actionIncreaseFontSize: {
1428
1436
  duration?: number | undefined;
1429
1437
  } | null;
1430
1438
  zenModeEnabled: boolean;
1431
- theme: import("../element/types").Theme;
1439
+ theme: import("@excalidraw/element/types").Theme;
1432
1440
  gridSize: number;
1433
1441
  gridStep: number;
1434
1442
  gridModeEnabled: boolean;
@@ -1449,7 +1457,7 @@ export declare const actionIncreaseFontSize: {
1449
1457
  [id: string]: true;
1450
1458
  }> | undefined;
1451
1459
  username?: string | null | undefined;
1452
- userState?: import("../constants").UserIdleState | undefined;
1460
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1453
1461
  color?: {
1454
1462
  background: string;
1455
1463
  stroke: string;
@@ -1466,7 +1474,7 @@ export declare const actionIncreaseFontSize: {
1466
1474
  open: boolean;
1467
1475
  panels: number;
1468
1476
  };
1469
- currentChartType: import("../element/types").ChartType;
1477
+ currentChartType: import("@excalidraw/element/types").ChartType;
1470
1478
  pasteDialog: {
1471
1479
  shown: false;
1472
1480
  data: null;
@@ -1475,7 +1483,7 @@ export declare const actionIncreaseFontSize: {
1475
1483
  data: import("../charts").Spreadsheet;
1476
1484
  };
1477
1485
  pendingImageElementId: string | null;
1478
- showHyperlinkPopup: false | "info" | "editor";
1486
+ showHyperlinkPopup: false | "editor" | "info";
1479
1487
  selectedLinearElement: LinearElementEditor | null;
1480
1488
  snapLines: readonly import("../snapping").SnapLine[];
1481
1489
  originSnapOffset: {
@@ -1508,10 +1516,10 @@ export declare const actionChangeFontFamily: {
1508
1516
  name: "changeFontFamily";
1509
1517
  label: string;
1510
1518
  trackEvent: false;
1511
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1519
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1512
1520
  appState: {
1513
- currentItemFontFamily: number;
1514
1521
  currentHoveredFontFamily: number | null;
1522
+ currentItemFontFamily: number;
1515
1523
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1516
1524
  contextMenu: {
1517
1525
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1522,17 +1530,17 @@ export declare const actionChangeFontFamily: {
1522
1530
  isLoading: boolean;
1523
1531
  errorMessage: import("react").ReactNode;
1524
1532
  activeEmbeddable: {
1525
- element: import("../element/types").NonDeletedExcalidrawElement;
1533
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1526
1534
  state: "hover" | "active";
1527
1535
  } | 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;
1536
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1537
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1538
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1539
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1532
1540
  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;
1541
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1542
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1543
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1536
1544
  frameRendering: {
1537
1545
  enabled: boolean;
1538
1546
  name: boolean;
@@ -1540,12 +1548,13 @@ export declare const actionChangeFontFamily: {
1540
1548
  clip: boolean;
1541
1549
  };
1542
1550
  editingFrame: string | null;
1543
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1544
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1551
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1552
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1545
1553
  editingLinearElement: LinearElementEditor | null;
1546
1554
  activeTool: {
1547
1555
  lastActiveTool: import("../types").ActiveTool | null;
1548
1556
  locked: boolean;
1557
+ fromSelection: boolean;
1549
1558
  } & import("../types").ActiveTool;
1550
1559
  penMode: boolean;
1551
1560
  penDetected: boolean;
@@ -1555,16 +1564,16 @@ export declare const actionChangeFontFamily: {
1555
1564
  exportScale: number;
1556
1565
  currentItemStrokeColor: string;
1557
1566
  currentItemBackgroundColor: string;
1558
- currentItemFillStyle: import("../element/types").FillStyle;
1567
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1559
1568
  currentItemStrokeWidth: number;
1560
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1569
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1561
1570
  currentItemRoughness: number;
1562
1571
  currentItemOpacity: number;
1563
1572
  currentItemFontSize: number;
1564
1573
  currentItemTextAlign: string;
1565
1574
  currentItemStartArrowhead: Arrowhead | null;
1566
1575
  currentItemEndArrowhead: Arrowhead | null;
1567
- currentItemRoundness: import("../element/types").StrokeRoundness;
1576
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1568
1577
  currentItemArrowType: "round" | "sharp" | "elbow";
1569
1578
  viewBackgroundColor: string;
1570
1579
  scrollX: number;
@@ -1577,7 +1586,7 @@ export declare const actionChangeFontFamily: {
1577
1586
  zoom: Readonly<{
1578
1587
  value: import("../types").NormalizedZoomValue;
1579
1588
  }>;
1580
- openMenu: "canvas" | "shape" | null;
1589
+ openMenu: "shape" | "canvas" | null;
1581
1590
  openSidebar: {
1582
1591
  name: string;
1583
1592
  tab?: string | undefined;
@@ -1594,7 +1603,7 @@ export declare const actionChangeFontFamily: {
1594
1603
  sourceElementId: string;
1595
1604
  } | null;
1596
1605
  defaultSidebarDockedPreference: boolean;
1597
- lastPointerDownWith: import("../element/types").PointerType;
1606
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1598
1607
  selectedElementIds: Readonly<{
1599
1608
  [id: string]: true;
1600
1609
  }>;
@@ -1612,7 +1621,7 @@ export declare const actionChangeFontFamily: {
1612
1621
  duration?: number | undefined;
1613
1622
  } | null;
1614
1623
  zenModeEnabled: boolean;
1615
- theme: import("../element/types").Theme;
1624
+ theme: import("@excalidraw/element/types").Theme;
1616
1625
  gridSize: number;
1617
1626
  gridStep: number;
1618
1627
  gridModeEnabled: boolean;
@@ -1633,7 +1642,7 @@ export declare const actionChangeFontFamily: {
1633
1642
  [id: string]: true;
1634
1643
  }> | undefined;
1635
1644
  username?: string | null | undefined;
1636
- userState?: import("../constants").UserIdleState | undefined;
1645
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1637
1646
  color?: {
1638
1647
  background: string;
1639
1648
  stroke: string;
@@ -1650,7 +1659,7 @@ export declare const actionChangeFontFamily: {
1650
1659
  open: boolean;
1651
1660
  panels: number;
1652
1661
  };
1653
- currentChartType: import("../element/types").ChartType;
1662
+ currentChartType: import("@excalidraw/element/types").ChartType;
1654
1663
  pasteDialog: {
1655
1664
  shown: false;
1656
1665
  data: null;
@@ -1659,7 +1668,7 @@ export declare const actionChangeFontFamily: {
1659
1668
  data: import("../charts").Spreadsheet;
1660
1669
  };
1661
1670
  pendingImageElementId: string | null;
1662
- showHyperlinkPopup: false | "info" | "editor";
1671
+ showHyperlinkPopup: false | "editor" | "info";
1663
1672
  selectedLinearElement: LinearElementEditor | null;
1664
1673
  snapLines: readonly import("../snapping").SnapLine[];
1665
1674
  originSnapOffset: {
@@ -1686,8 +1695,8 @@ export declare const actionChangeFontFamily: {
1686
1695
  } | {
1687
1696
  elements: ExcalidrawElement[];
1688
1697
  appState: {
1689
- currentItemFontFamily: number;
1690
1698
  currentHoveredFontFamily: number | null;
1699
+ currentItemFontFamily: number;
1691
1700
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1692
1701
  contextMenu: {
1693
1702
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1698,17 +1707,17 @@ export declare const actionChangeFontFamily: {
1698
1707
  isLoading: boolean;
1699
1708
  errorMessage: import("react").ReactNode;
1700
1709
  activeEmbeddable: {
1701
- element: import("../element/types").NonDeletedExcalidrawElement;
1710
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1702
1711
  state: "hover" | "active";
1703
1712
  } | 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;
1713
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1714
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1715
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1716
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1708
1717
  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;
1718
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1719
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1720
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1712
1721
  frameRendering: {
1713
1722
  enabled: boolean;
1714
1723
  name: boolean;
@@ -1716,12 +1725,13 @@ export declare const actionChangeFontFamily: {
1716
1725
  clip: boolean;
1717
1726
  };
1718
1727
  editingFrame: string | null;
1719
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1720
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1728
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1729
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1721
1730
  editingLinearElement: LinearElementEditor | null;
1722
1731
  activeTool: {
1723
1732
  lastActiveTool: import("../types").ActiveTool | null;
1724
1733
  locked: boolean;
1734
+ fromSelection: boolean;
1725
1735
  } & import("../types").ActiveTool;
1726
1736
  penMode: boolean;
1727
1737
  penDetected: boolean;
@@ -1731,16 +1741,16 @@ export declare const actionChangeFontFamily: {
1731
1741
  exportScale: number;
1732
1742
  currentItemStrokeColor: string;
1733
1743
  currentItemBackgroundColor: string;
1734
- currentItemFillStyle: import("../element/types").FillStyle;
1744
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1735
1745
  currentItemStrokeWidth: number;
1736
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1746
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1737
1747
  currentItemRoughness: number;
1738
1748
  currentItemOpacity: number;
1739
1749
  currentItemFontSize: number;
1740
1750
  currentItemTextAlign: string;
1741
1751
  currentItemStartArrowhead: Arrowhead | null;
1742
1752
  currentItemEndArrowhead: Arrowhead | null;
1743
- currentItemRoundness: import("../element/types").StrokeRoundness;
1753
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1744
1754
  currentItemArrowType: "round" | "sharp" | "elbow";
1745
1755
  viewBackgroundColor: string;
1746
1756
  scrollX: number;
@@ -1753,7 +1763,7 @@ export declare const actionChangeFontFamily: {
1753
1763
  zoom: Readonly<{
1754
1764
  value: import("../types").NormalizedZoomValue;
1755
1765
  }>;
1756
- openMenu: "canvas" | "shape" | null;
1766
+ openMenu: "shape" | "canvas" | null;
1757
1767
  openSidebar: {
1758
1768
  name: string;
1759
1769
  tab?: string | undefined;
@@ -1770,7 +1780,7 @@ export declare const actionChangeFontFamily: {
1770
1780
  sourceElementId: string;
1771
1781
  } | null;
1772
1782
  defaultSidebarDockedPreference: boolean;
1773
- lastPointerDownWith: import("../element/types").PointerType;
1783
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1774
1784
  selectedElementIds: Readonly<{
1775
1785
  [id: string]: true;
1776
1786
  }>;
@@ -1788,7 +1798,7 @@ export declare const actionChangeFontFamily: {
1788
1798
  duration?: number | undefined;
1789
1799
  } | null;
1790
1800
  zenModeEnabled: boolean;
1791
- theme: import("../element/types").Theme;
1801
+ theme: import("@excalidraw/element/types").Theme;
1792
1802
  gridSize: number;
1793
1803
  gridStep: number;
1794
1804
  gridModeEnabled: boolean;
@@ -1809,7 +1819,7 @@ export declare const actionChangeFontFamily: {
1809
1819
  [id: string]: true;
1810
1820
  }> | undefined;
1811
1821
  username?: string | null | undefined;
1812
- userState?: import("../constants").UserIdleState | undefined;
1822
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1813
1823
  color?: {
1814
1824
  background: string;
1815
1825
  stroke: string;
@@ -1826,7 +1836,7 @@ export declare const actionChangeFontFamily: {
1826
1836
  open: boolean;
1827
1837
  panels: number;
1828
1838
  };
1829
- currentChartType: import("../element/types").ChartType;
1839
+ currentChartType: import("@excalidraw/element/types").ChartType;
1830
1840
  pasteDialog: {
1831
1841
  shown: false;
1832
1842
  data: null;
@@ -1835,7 +1845,7 @@ export declare const actionChangeFontFamily: {
1835
1845
  data: import("../charts").Spreadsheet;
1836
1846
  };
1837
1847
  pendingImageElementId: string | null;
1838
- showHyperlinkPopup: false | "info" | "editor";
1848
+ showHyperlinkPopup: false | "editor" | "info";
1839
1849
  selectedLinearElement: LinearElementEditor | null;
1840
1850
  snapLines: readonly import("../snapping").SnapLine[];
1841
1851
  originSnapOffset: {
@@ -1868,7 +1878,7 @@ export declare const actionChangeTextAlign: {
1868
1878
  name: "changeTextAlign";
1869
1879
  label: string;
1870
1880
  trackEvent: false;
1871
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1881
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1872
1882
  elements: ExcalidrawElement[];
1873
1883
  appState: {
1874
1884
  currentItemTextAlign: any;
@@ -1881,17 +1891,17 @@ export declare const actionChangeTextAlign: {
1881
1891
  isLoading: boolean;
1882
1892
  errorMessage: import("react").ReactNode;
1883
1893
  activeEmbeddable: {
1884
- element: import("../element/types").NonDeletedExcalidrawElement;
1894
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1885
1895
  state: "hover" | "active";
1886
1896
  } | 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;
1897
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1898
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1899
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1900
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1891
1901
  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;
1902
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1903
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1904
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1895
1905
  frameRendering: {
1896
1906
  enabled: boolean;
1897
1907
  name: boolean;
@@ -1899,12 +1909,13 @@ export declare const actionChangeTextAlign: {
1899
1909
  clip: boolean;
1900
1910
  };
1901
1911
  editingFrame: string | null;
1902
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1903
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1912
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1913
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1904
1914
  editingLinearElement: LinearElementEditor | null;
1905
1915
  activeTool: {
1906
1916
  lastActiveTool: import("../types").ActiveTool | null;
1907
1917
  locked: boolean;
1918
+ fromSelection: boolean;
1908
1919
  } & import("../types").ActiveTool;
1909
1920
  penMode: boolean;
1910
1921
  penDetected: boolean;
@@ -1914,9 +1925,9 @@ export declare const actionChangeTextAlign: {
1914
1925
  exportScale: number;
1915
1926
  currentItemStrokeColor: string;
1916
1927
  currentItemBackgroundColor: string;
1917
- currentItemFillStyle: import("../element/types").FillStyle;
1928
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1918
1929
  currentItemStrokeWidth: number;
1919
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1930
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1920
1931
  currentItemRoughness: number;
1921
1932
  currentItemOpacity: number;
1922
1933
  currentItemFontFamily: number;
@@ -1924,7 +1935,7 @@ export declare const actionChangeTextAlign: {
1924
1935
  currentItemStartArrowhead: Arrowhead | null;
1925
1936
  currentItemEndArrowhead: Arrowhead | null;
1926
1937
  currentHoveredFontFamily: number | null;
1927
- currentItemRoundness: import("../element/types").StrokeRoundness;
1938
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1928
1939
  currentItemArrowType: "round" | "sharp" | "elbow";
1929
1940
  viewBackgroundColor: string;
1930
1941
  scrollX: number;
@@ -1937,7 +1948,7 @@ export declare const actionChangeTextAlign: {
1937
1948
  zoom: Readonly<{
1938
1949
  value: import("../types").NormalizedZoomValue;
1939
1950
  }>;
1940
- openMenu: "canvas" | "shape" | null;
1951
+ openMenu: "shape" | "canvas" | null;
1941
1952
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1942
1953
  openSidebar: {
1943
1954
  name: string;
@@ -1955,7 +1966,7 @@ export declare const actionChangeTextAlign: {
1955
1966
  sourceElementId: string;
1956
1967
  } | null;
1957
1968
  defaultSidebarDockedPreference: boolean;
1958
- lastPointerDownWith: import("../element/types").PointerType;
1969
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1959
1970
  selectedElementIds: Readonly<{
1960
1971
  [id: string]: true;
1961
1972
  }>;
@@ -1973,7 +1984,7 @@ export declare const actionChangeTextAlign: {
1973
1984
  duration?: number | undefined;
1974
1985
  } | null;
1975
1986
  zenModeEnabled: boolean;
1976
- theme: import("../element/types").Theme;
1987
+ theme: import("@excalidraw/element/types").Theme;
1977
1988
  gridSize: number;
1978
1989
  gridStep: number;
1979
1990
  gridModeEnabled: boolean;
@@ -1994,7 +2005,7 @@ export declare const actionChangeTextAlign: {
1994
2005
  [id: string]: true;
1995
2006
  }> | undefined;
1996
2007
  username?: string | null | undefined;
1997
- userState?: import("../constants").UserIdleState | undefined;
2008
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1998
2009
  color?: {
1999
2010
  background: string;
2000
2011
  stroke: string;
@@ -2011,7 +2022,7 @@ export declare const actionChangeTextAlign: {
2011
2022
  open: boolean;
2012
2023
  panels: number;
2013
2024
  };
2014
- currentChartType: import("../element/types").ChartType;
2025
+ currentChartType: import("@excalidraw/element/types").ChartType;
2015
2026
  pasteDialog: {
2016
2027
  shown: false;
2017
2028
  data: null;
@@ -2020,7 +2031,7 @@ export declare const actionChangeTextAlign: {
2020
2031
  data: import("../charts").Spreadsheet;
2021
2032
  };
2022
2033
  pendingImageElementId: string | null;
2023
- showHyperlinkPopup: false | "info" | "editor";
2034
+ showHyperlinkPopup: false | "editor" | "info";
2024
2035
  selectedLinearElement: LinearElementEditor | null;
2025
2036
  snapLines: readonly import("../snapping").SnapLine[];
2026
2037
  originSnapOffset: {
@@ -2055,7 +2066,7 @@ export declare const actionChangeVerticalAlign: {
2055
2066
  trackEvent: {
2056
2067
  category: "element";
2057
2068
  };
2058
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2069
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2059
2070
  elements: ExcalidrawElement[];
2060
2071
  appState: {
2061
2072
  contextMenu: {
@@ -2067,17 +2078,17 @@ export declare const actionChangeVerticalAlign: {
2067
2078
  isLoading: boolean;
2068
2079
  errorMessage: import("react").ReactNode;
2069
2080
  activeEmbeddable: {
2070
- element: import("../element/types").NonDeletedExcalidrawElement;
2081
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2071
2082
  state: "hover" | "active";
2072
2083
  } | 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;
2084
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2085
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2086
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2087
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2077
2088
  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;
2089
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2090
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2091
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2081
2092
  frameRendering: {
2082
2093
  enabled: boolean;
2083
2094
  name: boolean;
@@ -2085,12 +2096,13 @@ export declare const actionChangeVerticalAlign: {
2085
2096
  clip: boolean;
2086
2097
  };
2087
2098
  editingFrame: string | null;
2088
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2089
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2099
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2100
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2090
2101
  editingLinearElement: LinearElementEditor | null;
2091
2102
  activeTool: {
2092
2103
  lastActiveTool: import("../types").ActiveTool | null;
2093
2104
  locked: boolean;
2105
+ fromSelection: boolean;
2094
2106
  } & import("../types").ActiveTool;
2095
2107
  penMode: boolean;
2096
2108
  penDetected: boolean;
@@ -2100,9 +2112,9 @@ export declare const actionChangeVerticalAlign: {
2100
2112
  exportScale: number;
2101
2113
  currentItemStrokeColor: string;
2102
2114
  currentItemBackgroundColor: string;
2103
- currentItemFillStyle: import("../element/types").FillStyle;
2115
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2104
2116
  currentItemStrokeWidth: number;
2105
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2117
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2106
2118
  currentItemRoughness: number;
2107
2119
  currentItemOpacity: number;
2108
2120
  currentItemFontFamily: number;
@@ -2111,7 +2123,7 @@ export declare const actionChangeVerticalAlign: {
2111
2123
  currentItemStartArrowhead: Arrowhead | null;
2112
2124
  currentItemEndArrowhead: Arrowhead | null;
2113
2125
  currentHoveredFontFamily: number | null;
2114
- currentItemRoundness: import("../element/types").StrokeRoundness;
2126
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2115
2127
  currentItemArrowType: "round" | "sharp" | "elbow";
2116
2128
  viewBackgroundColor: string;
2117
2129
  scrollX: number;
@@ -2124,7 +2136,7 @@ export declare const actionChangeVerticalAlign: {
2124
2136
  zoom: Readonly<{
2125
2137
  value: import("../types").NormalizedZoomValue;
2126
2138
  }>;
2127
- openMenu: "canvas" | "shape" | null;
2139
+ openMenu: "shape" | "canvas" | null;
2128
2140
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2129
2141
  openSidebar: {
2130
2142
  name: string;
@@ -2142,7 +2154,7 @@ export declare const actionChangeVerticalAlign: {
2142
2154
  sourceElementId: string;
2143
2155
  } | null;
2144
2156
  defaultSidebarDockedPreference: boolean;
2145
- lastPointerDownWith: import("../element/types").PointerType;
2157
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2146
2158
  selectedElementIds: Readonly<{
2147
2159
  [id: string]: true;
2148
2160
  }>;
@@ -2160,7 +2172,7 @@ export declare const actionChangeVerticalAlign: {
2160
2172
  duration?: number | undefined;
2161
2173
  } | null;
2162
2174
  zenModeEnabled: boolean;
2163
- theme: import("../element/types").Theme;
2175
+ theme: import("@excalidraw/element/types").Theme;
2164
2176
  gridSize: number;
2165
2177
  gridStep: number;
2166
2178
  gridModeEnabled: boolean;
@@ -2181,7 +2193,7 @@ export declare const actionChangeVerticalAlign: {
2181
2193
  [id: string]: true;
2182
2194
  }> | undefined;
2183
2195
  username?: string | null | undefined;
2184
- userState?: import("../constants").UserIdleState | undefined;
2196
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2185
2197
  color?: {
2186
2198
  background: string;
2187
2199
  stroke: string;
@@ -2198,7 +2210,7 @@ export declare const actionChangeVerticalAlign: {
2198
2210
  open: boolean;
2199
2211
  panels: number;
2200
2212
  };
2201
- currentChartType: import("../element/types").ChartType;
2213
+ currentChartType: import("@excalidraw/element/types").ChartType;
2202
2214
  pasteDialog: {
2203
2215
  shown: false;
2204
2216
  data: null;
@@ -2207,7 +2219,7 @@ export declare const actionChangeVerticalAlign: {
2207
2219
  data: import("../charts").Spreadsheet;
2208
2220
  };
2209
2221
  pendingImageElementId: string | null;
2210
- showHyperlinkPopup: false | "info" | "editor";
2222
+ showHyperlinkPopup: false | "editor" | "info";
2211
2223
  selectedLinearElement: LinearElementEditor | null;
2212
2224
  snapLines: readonly import("../snapping").SnapLine[];
2213
2225
  originSnapOffset: {
@@ -2240,7 +2252,7 @@ export declare const actionChangeRoundness: {
2240
2252
  name: "changeRoundness";
2241
2253
  label: string;
2242
2254
  trackEvent: false;
2243
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
2255
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
2244
2256
  elements: ExcalidrawElement[];
2245
2257
  appState: {
2246
2258
  currentItemRoundness: any;
@@ -2253,17 +2265,17 @@ export declare const actionChangeRoundness: {
2253
2265
  isLoading: boolean;
2254
2266
  errorMessage: import("react").ReactNode;
2255
2267
  activeEmbeddable: {
2256
- element: import("../element/types").NonDeletedExcalidrawElement;
2268
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2257
2269
  state: "hover" | "active";
2258
2270
  } | 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;
2271
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2272
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2273
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2274
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2263
2275
  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;
2276
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2277
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2278
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2267
2279
  frameRendering: {
2268
2280
  enabled: boolean;
2269
2281
  name: boolean;
@@ -2271,12 +2283,13 @@ export declare const actionChangeRoundness: {
2271
2283
  clip: boolean;
2272
2284
  };
2273
2285
  editingFrame: string | null;
2274
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2275
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2286
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2287
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2276
2288
  editingLinearElement: LinearElementEditor | null;
2277
2289
  activeTool: {
2278
2290
  lastActiveTool: import("../types").ActiveTool | null;
2279
2291
  locked: boolean;
2292
+ fromSelection: boolean;
2280
2293
  } & import("../types").ActiveTool;
2281
2294
  penMode: boolean;
2282
2295
  penDetected: boolean;
@@ -2286,9 +2299,9 @@ export declare const actionChangeRoundness: {
2286
2299
  exportScale: number;
2287
2300
  currentItemStrokeColor: string;
2288
2301
  currentItemBackgroundColor: string;
2289
- currentItemFillStyle: import("../element/types").FillStyle;
2302
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2290
2303
  currentItemStrokeWidth: number;
2291
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2304
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2292
2305
  currentItemRoughness: number;
2293
2306
  currentItemOpacity: number;
2294
2307
  currentItemFontFamily: number;
@@ -2309,7 +2322,7 @@ export declare const actionChangeRoundness: {
2309
2322
  zoom: Readonly<{
2310
2323
  value: import("../types").NormalizedZoomValue;
2311
2324
  }>;
2312
- openMenu: "canvas" | "shape" | null;
2325
+ openMenu: "shape" | "canvas" | null;
2313
2326
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2314
2327
  openSidebar: {
2315
2328
  name: string;
@@ -2327,7 +2340,7 @@ export declare const actionChangeRoundness: {
2327
2340
  sourceElementId: string;
2328
2341
  } | null;
2329
2342
  defaultSidebarDockedPreference: boolean;
2330
- lastPointerDownWith: import("../element/types").PointerType;
2343
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2331
2344
  selectedElementIds: Readonly<{
2332
2345
  [id: string]: true;
2333
2346
  }>;
@@ -2345,7 +2358,7 @@ export declare const actionChangeRoundness: {
2345
2358
  duration?: number | undefined;
2346
2359
  } | null;
2347
2360
  zenModeEnabled: boolean;
2348
- theme: import("../element/types").Theme;
2361
+ theme: import("@excalidraw/element/types").Theme;
2349
2362
  gridSize: number;
2350
2363
  gridStep: number;
2351
2364
  gridModeEnabled: boolean;
@@ -2366,7 +2379,7 @@ export declare const actionChangeRoundness: {
2366
2379
  [id: string]: true;
2367
2380
  }> | undefined;
2368
2381
  username?: string | null | undefined;
2369
- userState?: import("../constants").UserIdleState | undefined;
2382
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2370
2383
  color?: {
2371
2384
  background: string;
2372
2385
  stroke: string;
@@ -2383,7 +2396,7 @@ export declare const actionChangeRoundness: {
2383
2396
  open: boolean;
2384
2397
  panels: number;
2385
2398
  };
2386
- currentChartType: import("../element/types").ChartType;
2399
+ currentChartType: import("@excalidraw/element/types").ChartType;
2387
2400
  pasteDialog: {
2388
2401
  shown: false;
2389
2402
  data: null;
@@ -2392,7 +2405,7 @@ export declare const actionChangeRoundness: {
2392
2405
  data: import("../charts").Spreadsheet;
2393
2406
  };
2394
2407
  pendingImageElementId: string | null;
2395
- showHyperlinkPopup: false | "info" | "editor";
2408
+ showHyperlinkPopup: false | "editor" | "info";
2396
2409
  selectedLinearElement: LinearElementEditor | null;
2397
2410
  snapLines: readonly import("../snapping").SnapLine[];
2398
2411
  originSnapOffset: {
@@ -2425,7 +2438,7 @@ export declare const actionChangeArrowhead: {
2425
2438
  name: "changeArrowhead";
2426
2439
  label: string;
2427
2440
  trackEvent: false;
2428
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2441
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2429
2442
  position: "start" | "end";
2430
2443
  type: Arrowhead;
2431
2444
  }) => {
@@ -2440,17 +2453,17 @@ export declare const actionChangeArrowhead: {
2440
2453
  isLoading: boolean;
2441
2454
  errorMessage: import("react").ReactNode;
2442
2455
  activeEmbeddable: {
2443
- element: import("../element/types").NonDeletedExcalidrawElement;
2456
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2444
2457
  state: "hover" | "active";
2445
2458
  } | 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;
2459
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2460
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2461
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2462
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2450
2463
  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;
2464
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2465
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2466
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2454
2467
  frameRendering: {
2455
2468
  enabled: boolean;
2456
2469
  name: boolean;
@@ -2458,12 +2471,13 @@ export declare const actionChangeArrowhead: {
2458
2471
  clip: boolean;
2459
2472
  };
2460
2473
  editingFrame: string | null;
2461
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2462
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2474
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2475
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2463
2476
  editingLinearElement: LinearElementEditor | null;
2464
2477
  activeTool: {
2465
2478
  lastActiveTool: import("../types").ActiveTool | null;
2466
2479
  locked: boolean;
2480
+ fromSelection: boolean;
2467
2481
  } & import("../types").ActiveTool;
2468
2482
  penMode: boolean;
2469
2483
  penDetected: boolean;
@@ -2473,9 +2487,9 @@ export declare const actionChangeArrowhead: {
2473
2487
  exportScale: number;
2474
2488
  currentItemStrokeColor: string;
2475
2489
  currentItemBackgroundColor: string;
2476
- currentItemFillStyle: import("../element/types").FillStyle;
2490
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2477
2491
  currentItemStrokeWidth: number;
2478
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2492
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2479
2493
  currentItemRoughness: number;
2480
2494
  currentItemOpacity: number;
2481
2495
  currentItemFontFamily: number;
@@ -2484,7 +2498,7 @@ export declare const actionChangeArrowhead: {
2484
2498
  currentItemStartArrowhead: Arrowhead | null;
2485
2499
  currentItemEndArrowhead: Arrowhead | null;
2486
2500
  currentHoveredFontFamily: number | null;
2487
- currentItemRoundness: import("../element/types").StrokeRoundness;
2501
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2488
2502
  currentItemArrowType: "round" | "sharp" | "elbow";
2489
2503
  viewBackgroundColor: string;
2490
2504
  scrollX: number;
@@ -2497,7 +2511,7 @@ export declare const actionChangeArrowhead: {
2497
2511
  zoom: Readonly<{
2498
2512
  value: import("../types").NormalizedZoomValue;
2499
2513
  }>;
2500
- openMenu: "canvas" | "shape" | null;
2514
+ openMenu: "shape" | "canvas" | null;
2501
2515
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2502
2516
  openSidebar: {
2503
2517
  name: string;
@@ -2515,7 +2529,7 @@ export declare const actionChangeArrowhead: {
2515
2529
  sourceElementId: string;
2516
2530
  } | null;
2517
2531
  defaultSidebarDockedPreference: boolean;
2518
- lastPointerDownWith: import("../element/types").PointerType;
2532
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2519
2533
  selectedElementIds: Readonly<{
2520
2534
  [id: string]: true;
2521
2535
  }>;
@@ -2533,7 +2547,7 @@ export declare const actionChangeArrowhead: {
2533
2547
  duration?: number | undefined;
2534
2548
  } | null;
2535
2549
  zenModeEnabled: boolean;
2536
- theme: import("../element/types").Theme;
2550
+ theme: import("@excalidraw/element/types").Theme;
2537
2551
  gridSize: number;
2538
2552
  gridStep: number;
2539
2553
  gridModeEnabled: boolean;
@@ -2554,7 +2568,7 @@ export declare const actionChangeArrowhead: {
2554
2568
  [id: string]: true;
2555
2569
  }> | undefined;
2556
2570
  username?: string | null | undefined;
2557
- userState?: import("../constants").UserIdleState | undefined;
2571
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2558
2572
  color?: {
2559
2573
  background: string;
2560
2574
  stroke: string;
@@ -2571,7 +2585,7 @@ export declare const actionChangeArrowhead: {
2571
2585
  open: boolean;
2572
2586
  panels: number;
2573
2587
  };
2574
- currentChartType: import("../element/types").ChartType;
2588
+ currentChartType: import("@excalidraw/element/types").ChartType;
2575
2589
  pasteDialog: {
2576
2590
  shown: false;
2577
2591
  data: null;
@@ -2580,7 +2594,7 @@ export declare const actionChangeArrowhead: {
2580
2594
  data: import("../charts").Spreadsheet;
2581
2595
  };
2582
2596
  pendingImageElementId: string | null;
2583
- showHyperlinkPopup: false | "info" | "editor";
2597
+ showHyperlinkPopup: false | "editor" | "info";
2584
2598
  selectedLinearElement: LinearElementEditor | null;
2585
2599
  snapLines: readonly import("../snapping").SnapLine[];
2586
2600
  originSnapOffset: {
@@ -2613,7 +2627,7 @@ export declare const actionChangeArrowType: {
2613
2627
  name: "changeArrowType";
2614
2628
  label: string;
2615
2629
  trackEvent: false;
2616
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2630
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2617
2631
  elements: ExcalidrawElement[];
2618
2632
  appState: {
2619
2633
  currentItemArrowType: any;
@@ -2626,17 +2640,17 @@ export declare const actionChangeArrowType: {
2626
2640
  isLoading: boolean;
2627
2641
  errorMessage: import("react").ReactNode;
2628
2642
  activeEmbeddable: {
2629
- element: import("../element/types").NonDeletedExcalidrawElement;
2643
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2630
2644
  state: "hover" | "active";
2631
2645
  } | 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;
2646
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2647
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2648
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2649
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2636
2650
  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;
2651
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2652
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2653
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2640
2654
  frameRendering: {
2641
2655
  enabled: boolean;
2642
2656
  name: boolean;
@@ -2644,12 +2658,13 @@ export declare const actionChangeArrowType: {
2644
2658
  clip: boolean;
2645
2659
  };
2646
2660
  editingFrame: string | null;
2647
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2648
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2661
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2662
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2649
2663
  editingLinearElement: LinearElementEditor | null;
2650
2664
  activeTool: {
2651
2665
  lastActiveTool: import("../types").ActiveTool | null;
2652
2666
  locked: boolean;
2667
+ fromSelection: boolean;
2653
2668
  } & import("../types").ActiveTool;
2654
2669
  penMode: boolean;
2655
2670
  penDetected: boolean;
@@ -2659,9 +2674,9 @@ export declare const actionChangeArrowType: {
2659
2674
  exportScale: number;
2660
2675
  currentItemStrokeColor: string;
2661
2676
  currentItemBackgroundColor: string;
2662
- currentItemFillStyle: import("../element/types").FillStyle;
2677
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2663
2678
  currentItemStrokeWidth: number;
2664
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2679
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2665
2680
  currentItemRoughness: number;
2666
2681
  currentItemOpacity: number;
2667
2682
  currentItemFontFamily: number;
@@ -2670,7 +2685,7 @@ export declare const actionChangeArrowType: {
2670
2685
  currentItemStartArrowhead: Arrowhead | null;
2671
2686
  currentItemEndArrowhead: Arrowhead | null;
2672
2687
  currentHoveredFontFamily: number | null;
2673
- currentItemRoundness: import("../element/types").StrokeRoundness;
2688
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2674
2689
  viewBackgroundColor: string;
2675
2690
  scrollX: number;
2676
2691
  scrollY: number;
@@ -2682,7 +2697,7 @@ export declare const actionChangeArrowType: {
2682
2697
  zoom: Readonly<{
2683
2698
  value: import("../types").NormalizedZoomValue;
2684
2699
  }>;
2685
- openMenu: "canvas" | "shape" | null;
2700
+ openMenu: "shape" | "canvas" | null;
2686
2701
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2687
2702
  openSidebar: {
2688
2703
  name: string;
@@ -2700,7 +2715,7 @@ export declare const actionChangeArrowType: {
2700
2715
  sourceElementId: string;
2701
2716
  } | null;
2702
2717
  defaultSidebarDockedPreference: boolean;
2703
- lastPointerDownWith: import("../element/types").PointerType;
2718
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2704
2719
  selectedElementIds: Readonly<{
2705
2720
  [id: string]: true;
2706
2721
  }>;
@@ -2718,7 +2733,7 @@ export declare const actionChangeArrowType: {
2718
2733
  duration?: number | undefined;
2719
2734
  } | null;
2720
2735
  zenModeEnabled: boolean;
2721
- theme: import("../element/types").Theme;
2736
+ theme: import("@excalidraw/element/types").Theme;
2722
2737
  gridSize: number;
2723
2738
  gridStep: number;
2724
2739
  gridModeEnabled: boolean;
@@ -2739,7 +2754,7 @@ export declare const actionChangeArrowType: {
2739
2754
  [id: string]: true;
2740
2755
  }> | undefined;
2741
2756
  username?: string | null | undefined;
2742
- userState?: import("../constants").UserIdleState | undefined;
2757
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2743
2758
  color?: {
2744
2759
  background: string;
2745
2760
  stroke: string;
@@ -2756,7 +2771,7 @@ export declare const actionChangeArrowType: {
2756
2771
  open: boolean;
2757
2772
  panels: number;
2758
2773
  };
2759
- currentChartType: import("../element/types").ChartType;
2774
+ currentChartType: import("@excalidraw/element/types").ChartType;
2760
2775
  pasteDialog: {
2761
2776
  shown: false;
2762
2777
  data: null;
@@ -2765,7 +2780,7 @@ export declare const actionChangeArrowType: {
2765
2780
  data: import("../charts").Spreadsheet;
2766
2781
  };
2767
2782
  pendingImageElementId: string | null;
2768
- showHyperlinkPopup: false | "info" | "editor";
2783
+ showHyperlinkPopup: false | "editor" | "info";
2769
2784
  selectedLinearElement: LinearElementEditor | null;
2770
2785
  snapLines: readonly import("../snapping").SnapLine[];
2771
2786
  originSnapOffset: {