@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,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { ExcalidrawElement } from "../element/types";
2
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
3
3
  import type { AppClassProperties, AppState } from "../types";
4
4
  export declare const actionSelectAllElementsInFrame: {
5
5
  name: "selectAllElementsInFrame";
@@ -7,8 +7,8 @@ export declare const actionSelectAllElementsInFrame: {
7
7
  trackEvent: {
8
8
  category: "canvas";
9
9
  };
10
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
11
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
11
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
12
12
  appState: {
13
13
  selectedElementIds: Record<string, true>;
14
14
  contextMenu: {
@@ -20,17 +20,17 @@ export declare const actionSelectAllElementsInFrame: {
20
20
  isLoading: boolean;
21
21
  errorMessage: import("react").ReactNode;
22
22
  activeEmbeddable: {
23
- element: import("../element/types").NonDeletedExcalidrawElement;
23
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
24
  state: "hover" | "active";
25
25
  } | null;
26
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
27
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
29
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("../element/binding").SuggestedBinding[];
33
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
31
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
33
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
34
  frameRendering: {
35
35
  enabled: boolean;
36
36
  name: boolean;
@@ -38,12 +38,13 @@ export declare const actionSelectAllElementsInFrame: {
38
38
  clip: boolean;
39
39
  };
40
40
  editingFrame: string | null;
41
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
42
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
41
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
44
44
  activeTool: {
45
45
  lastActiveTool: import("../types").ActiveTool | null;
46
46
  locked: boolean;
47
+ fromSelection: boolean;
47
48
  } & import("../types").ActiveTool;
48
49
  penMode: boolean;
49
50
  penDetected: boolean;
@@ -53,18 +54,18 @@ export declare const actionSelectAllElementsInFrame: {
53
54
  exportScale: number;
54
55
  currentItemStrokeColor: string;
55
56
  currentItemBackgroundColor: string;
56
- currentItemFillStyle: import("../element/types").FillStyle;
57
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
57
58
  currentItemStrokeWidth: number;
58
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
59
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
59
60
  currentItemRoughness: number;
60
61
  currentItemOpacity: number;
61
62
  currentItemFontFamily: number;
62
63
  currentItemFontSize: number;
63
64
  currentItemTextAlign: string;
64
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
65
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
67
  currentHoveredFontFamily: number | null;
67
- currentItemRoundness: import("../element/types").StrokeRoundness;
68
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
68
69
  currentItemArrowType: "round" | "sharp" | "elbow";
69
70
  viewBackgroundColor: string;
70
71
  scrollX: number;
@@ -77,7 +78,7 @@ export declare const actionSelectAllElementsInFrame: {
77
78
  zoom: Readonly<{
78
79
  value: import("../types").NormalizedZoomValue;
79
80
  }>;
80
- openMenu: "canvas" | "shape" | null;
81
+ openMenu: "shape" | "canvas" | null;
81
82
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
83
  openSidebar: {
83
84
  name: string;
@@ -95,7 +96,7 @@ export declare const actionSelectAllElementsInFrame: {
95
96
  sourceElementId: string;
96
97
  } | null;
97
98
  defaultSidebarDockedPreference: boolean;
98
- lastPointerDownWith: import("../element/types").PointerType;
99
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
99
100
  hoveredElementIds: Readonly<{
100
101
  [id: string]: true;
101
102
  }>;
@@ -110,7 +111,7 @@ export declare const actionSelectAllElementsInFrame: {
110
111
  duration?: number | undefined;
111
112
  } | null;
112
113
  zenModeEnabled: boolean;
113
- theme: import("../element/types").Theme;
114
+ theme: import("@excalidraw/element/types").Theme;
114
115
  gridSize: number;
115
116
  gridStep: number;
116
117
  gridModeEnabled: boolean;
@@ -131,7 +132,7 @@ export declare const actionSelectAllElementsInFrame: {
131
132
  [id: string]: true;
132
133
  }> | undefined;
133
134
  username?: string | null | undefined;
134
- userState?: import("..").UserIdleState | undefined;
135
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
135
136
  color?: {
136
137
  background: string;
137
138
  stroke: string;
@@ -148,7 +149,7 @@ export declare const actionSelectAllElementsInFrame: {
148
149
  open: boolean;
149
150
  panels: number;
150
151
  };
151
- currentChartType: import("../element/types").ChartType;
152
+ currentChartType: import("@excalidraw/element/types").ChartType;
152
153
  pasteDialog: {
153
154
  shown: false;
154
155
  data: null;
@@ -157,8 +158,8 @@ export declare const actionSelectAllElementsInFrame: {
157
158
  data: import("../charts").Spreadsheet;
158
159
  };
159
160
  pendingImageElementId: string | null;
160
- showHyperlinkPopup: false | "info" | "editor";
161
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
161
+ showHyperlinkPopup: false | "editor" | "info";
162
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
162
163
  snapLines: readonly import("../snapping").SnapLine[];
163
164
  originSnapOffset: {
164
165
  x: number;
@@ -182,7 +183,7 @@ export declare const actionSelectAllElementsInFrame: {
182
183
  };
183
184
  captureUpdate: "IMMEDIATELY";
184
185
  } | {
185
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
186
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
186
187
  appState: Readonly<AppState>;
187
188
  captureUpdate: "EVENTUALLY";
188
189
  };
@@ -196,8 +197,8 @@ export declare const actionRemoveAllElementsFromFrame: {
196
197
  trackEvent: {
197
198
  category: "history";
198
199
  };
199
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
200
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
200
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
201
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
201
202
  appState: {
202
203
  selectedElementIds: {
203
204
  [x: string]: true;
@@ -211,17 +212,17 @@ export declare const actionRemoveAllElementsFromFrame: {
211
212
  isLoading: boolean;
212
213
  errorMessage: import("react").ReactNode;
213
214
  activeEmbeddable: {
214
- element: import("../element/types").NonDeletedExcalidrawElement;
215
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
215
216
  state: "hover" | "active";
216
217
  } | null;
217
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
218
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
219
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
220
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
218
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
219
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
220
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
221
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
221
222
  isBindingEnabled: boolean;
222
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
223
- suggestedBindings: import("../element/binding").SuggestedBinding[];
224
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
223
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
224
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
225
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
225
226
  frameRendering: {
226
227
  enabled: boolean;
227
228
  name: boolean;
@@ -229,12 +230,13 @@ export declare const actionRemoveAllElementsFromFrame: {
229
230
  clip: boolean;
230
231
  };
231
232
  editingFrame: string | null;
232
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
233
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
234
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
233
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
234
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
235
236
  activeTool: {
236
237
  lastActiveTool: import("../types").ActiveTool | null;
237
238
  locked: boolean;
239
+ fromSelection: boolean;
238
240
  } & import("../types").ActiveTool;
239
241
  penMode: boolean;
240
242
  penDetected: boolean;
@@ -244,18 +246,18 @@ export declare const actionRemoveAllElementsFromFrame: {
244
246
  exportScale: number;
245
247
  currentItemStrokeColor: string;
246
248
  currentItemBackgroundColor: string;
247
- currentItemFillStyle: import("../element/types").FillStyle;
249
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
248
250
  currentItemStrokeWidth: number;
249
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
251
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
250
252
  currentItemRoughness: number;
251
253
  currentItemOpacity: number;
252
254
  currentItemFontFamily: number;
253
255
  currentItemFontSize: number;
254
256
  currentItemTextAlign: string;
255
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
256
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
257
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
258
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
257
259
  currentHoveredFontFamily: number | null;
258
- currentItemRoundness: import("../element/types").StrokeRoundness;
260
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
259
261
  currentItemArrowType: "round" | "sharp" | "elbow";
260
262
  viewBackgroundColor: string;
261
263
  scrollX: number;
@@ -268,7 +270,7 @@ export declare const actionRemoveAllElementsFromFrame: {
268
270
  zoom: Readonly<{
269
271
  value: import("../types").NormalizedZoomValue;
270
272
  }>;
271
- openMenu: "canvas" | "shape" | null;
273
+ openMenu: "shape" | "canvas" | null;
272
274
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
273
275
  openSidebar: {
274
276
  name: string;
@@ -286,7 +288,7 @@ export declare const actionRemoveAllElementsFromFrame: {
286
288
  sourceElementId: string;
287
289
  } | null;
288
290
  defaultSidebarDockedPreference: boolean;
289
- lastPointerDownWith: import("../element/types").PointerType;
291
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
290
292
  hoveredElementIds: Readonly<{
291
293
  [id: string]: true;
292
294
  }>;
@@ -301,7 +303,7 @@ export declare const actionRemoveAllElementsFromFrame: {
301
303
  duration?: number | undefined;
302
304
  } | null;
303
305
  zenModeEnabled: boolean;
304
- theme: import("../element/types").Theme;
306
+ theme: import("@excalidraw/element/types").Theme;
305
307
  gridSize: number;
306
308
  gridStep: number;
307
309
  gridModeEnabled: boolean;
@@ -322,7 +324,7 @@ export declare const actionRemoveAllElementsFromFrame: {
322
324
  [id: string]: true;
323
325
  }> | undefined;
324
326
  username?: string | null | undefined;
325
- userState?: import("..").UserIdleState | undefined;
327
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
326
328
  color?: {
327
329
  background: string;
328
330
  stroke: string;
@@ -339,7 +341,7 @@ export declare const actionRemoveAllElementsFromFrame: {
339
341
  open: boolean;
340
342
  panels: number;
341
343
  };
342
- currentChartType: import("../element/types").ChartType;
344
+ currentChartType: import("@excalidraw/element/types").ChartType;
343
345
  pasteDialog: {
344
346
  shown: false;
345
347
  data: null;
@@ -348,8 +350,8 @@ export declare const actionRemoveAllElementsFromFrame: {
348
350
  data: import("../charts").Spreadsheet;
349
351
  };
350
352
  pendingImageElementId: string | null;
351
- showHyperlinkPopup: false | "info" | "editor";
352
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
353
+ showHyperlinkPopup: false | "editor" | "info";
354
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
353
355
  snapLines: readonly import("../snapping").SnapLine[];
354
356
  originSnapOffset: {
355
357
  x: number;
@@ -373,7 +375,7 @@ export declare const actionRemoveAllElementsFromFrame: {
373
375
  };
374
376
  captureUpdate: "IMMEDIATELY";
375
377
  } | {
376
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
378
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
377
379
  appState: Readonly<AppState>;
378
380
  captureUpdate: "EVENTUALLY";
379
381
  };
@@ -388,8 +390,8 @@ export declare const actionupdateFrameRendering: {
388
390
  trackEvent: {
389
391
  category: "canvas";
390
392
  };
391
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
392
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
393
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
394
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
393
395
  appState: {
394
396
  frameRendering: {
395
397
  enabled: boolean;
@@ -406,24 +408,25 @@ export declare const actionupdateFrameRendering: {
406
408
  isLoading: boolean;
407
409
  errorMessage: import("react").ReactNode;
408
410
  activeEmbeddable: {
409
- element: import("../element/types").NonDeletedExcalidrawElement;
411
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
410
412
  state: "hover" | "active";
411
413
  } | null;
412
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
413
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
414
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
415
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
414
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
415
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
416
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
417
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
416
418
  isBindingEnabled: boolean;
417
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
418
- suggestedBindings: import("../element/binding").SuggestedBinding[];
419
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
419
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
420
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
421
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
420
422
  editingFrame: string | null;
421
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
422
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
423
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
423
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
424
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
425
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
424
426
  activeTool: {
425
427
  lastActiveTool: import("../types").ActiveTool | null;
426
428
  locked: boolean;
429
+ fromSelection: boolean;
427
430
  } & import("../types").ActiveTool;
428
431
  penMode: boolean;
429
432
  penDetected: boolean;
@@ -433,18 +436,18 @@ export declare const actionupdateFrameRendering: {
433
436
  exportScale: number;
434
437
  currentItemStrokeColor: string;
435
438
  currentItemBackgroundColor: string;
436
- currentItemFillStyle: import("../element/types").FillStyle;
439
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
437
440
  currentItemStrokeWidth: number;
438
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
441
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
439
442
  currentItemRoughness: number;
440
443
  currentItemOpacity: number;
441
444
  currentItemFontFamily: number;
442
445
  currentItemFontSize: number;
443
446
  currentItemTextAlign: string;
444
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
445
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
447
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
448
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
446
449
  currentHoveredFontFamily: number | null;
447
- currentItemRoundness: import("../element/types").StrokeRoundness;
450
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
448
451
  currentItemArrowType: "round" | "sharp" | "elbow";
449
452
  viewBackgroundColor: string;
450
453
  scrollX: number;
@@ -457,7 +460,7 @@ export declare const actionupdateFrameRendering: {
457
460
  zoom: Readonly<{
458
461
  value: import("../types").NormalizedZoomValue;
459
462
  }>;
460
- openMenu: "canvas" | "shape" | null;
463
+ openMenu: "shape" | "canvas" | null;
461
464
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
462
465
  openSidebar: {
463
466
  name: string;
@@ -475,7 +478,7 @@ export declare const actionupdateFrameRendering: {
475
478
  sourceElementId: string;
476
479
  } | null;
477
480
  defaultSidebarDockedPreference: boolean;
478
- lastPointerDownWith: import("../element/types").PointerType;
481
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
479
482
  selectedElementIds: Readonly<{
480
483
  [id: string]: true;
481
484
  }>;
@@ -493,7 +496,7 @@ export declare const actionupdateFrameRendering: {
493
496
  duration?: number | undefined;
494
497
  } | null;
495
498
  zenModeEnabled: boolean;
496
- theme: import("../element/types").Theme;
499
+ theme: import("@excalidraw/element/types").Theme;
497
500
  gridSize: number;
498
501
  gridStep: number;
499
502
  gridModeEnabled: boolean;
@@ -514,7 +517,7 @@ export declare const actionupdateFrameRendering: {
514
517
  [id: string]: true;
515
518
  }> | undefined;
516
519
  username?: string | null | undefined;
517
- userState?: import("..").UserIdleState | undefined;
520
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
518
521
  color?: {
519
522
  background: string;
520
523
  stroke: string;
@@ -531,7 +534,7 @@ export declare const actionupdateFrameRendering: {
531
534
  open: boolean;
532
535
  panels: number;
533
536
  };
534
- currentChartType: import("../element/types").ChartType;
537
+ currentChartType: import("@excalidraw/element/types").ChartType;
535
538
  pasteDialog: {
536
539
  shown: false;
537
540
  data: null;
@@ -540,8 +543,8 @@ export declare const actionupdateFrameRendering: {
540
543
  data: import("../charts").Spreadsheet;
541
544
  };
542
545
  pendingImageElementId: string | null;
543
- showHyperlinkPopup: false | "info" | "editor";
544
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
546
+ showHyperlinkPopup: false | "editor" | "info";
547
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
545
548
  snapLines: readonly import("../snapping").SnapLine[];
546
549
  originSnapOffset: {
547
550
  x: number;
@@ -577,12 +580,13 @@ export declare const actionSetFrameAsActiveTool: {
577
580
  };
578
581
  icon: import("react/jsx-runtime").JSX.Element;
579
582
  viewMode: false;
580
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
581
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
583
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
584
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
582
585
  appState: {
583
586
  activeTool: {
584
587
  lastActiveTool: import("../types").ActiveTool | null;
585
588
  locked: boolean;
589
+ fromSelection: boolean;
586
590
  } & import("../types").ActiveTool;
587
591
  contextMenu: {
588
592
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -593,17 +597,17 @@ export declare const actionSetFrameAsActiveTool: {
593
597
  isLoading: boolean;
594
598
  errorMessage: import("react").ReactNode;
595
599
  activeEmbeddable: {
596
- element: import("../element/types").NonDeletedExcalidrawElement;
600
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
597
601
  state: "hover" | "active";
598
602
  } | null;
599
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
600
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
601
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
602
- 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<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
606
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
603
607
  isBindingEnabled: boolean;
604
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
605
- suggestedBindings: import("../element/binding").SuggestedBinding[];
606
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
608
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
610
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
607
611
  frameRendering: {
608
612
  enabled: boolean;
609
613
  name: boolean;
@@ -611,9 +615,9 @@ export declare const actionSetFrameAsActiveTool: {
611
615
  clip: boolean;
612
616
  };
613
617
  editingFrame: string | null;
614
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
615
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
616
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
618
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
619
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
617
621
  penMode: boolean;
618
622
  penDetected: boolean;
619
623
  exportBackground: boolean;
@@ -622,18 +626,18 @@ export declare const actionSetFrameAsActiveTool: {
622
626
  exportScale: number;
623
627
  currentItemStrokeColor: string;
624
628
  currentItemBackgroundColor: string;
625
- currentItemFillStyle: import("../element/types").FillStyle;
629
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
626
630
  currentItemStrokeWidth: number;
627
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
631
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
628
632
  currentItemRoughness: number;
629
633
  currentItemOpacity: number;
630
634
  currentItemFontFamily: number;
631
635
  currentItemFontSize: number;
632
636
  currentItemTextAlign: string;
633
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
634
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
637
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
638
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
635
639
  currentHoveredFontFamily: number | null;
636
- currentItemRoundness: import("../element/types").StrokeRoundness;
640
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
637
641
  currentItemArrowType: "round" | "sharp" | "elbow";
638
642
  viewBackgroundColor: string;
639
643
  scrollX: number;
@@ -646,7 +650,7 @@ export declare const actionSetFrameAsActiveTool: {
646
650
  zoom: Readonly<{
647
651
  value: import("../types").NormalizedZoomValue;
648
652
  }>;
649
- openMenu: "canvas" | "shape" | null;
653
+ openMenu: "shape" | "canvas" | null;
650
654
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
651
655
  openSidebar: {
652
656
  name: string;
@@ -664,7 +668,7 @@ export declare const actionSetFrameAsActiveTool: {
664
668
  sourceElementId: string;
665
669
  } | null;
666
670
  defaultSidebarDockedPreference: boolean;
667
- lastPointerDownWith: import("../element/types").PointerType;
671
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
668
672
  selectedElementIds: Readonly<{
669
673
  [id: string]: true;
670
674
  }>;
@@ -682,7 +686,7 @@ export declare const actionSetFrameAsActiveTool: {
682
686
  duration?: number | undefined;
683
687
  } | null;
684
688
  zenModeEnabled: boolean;
685
- theme: import("../element/types").Theme;
689
+ theme: import("@excalidraw/element/types").Theme;
686
690
  gridSize: number;
687
691
  gridStep: number;
688
692
  gridModeEnabled: boolean;
@@ -703,7 +707,7 @@ export declare const actionSetFrameAsActiveTool: {
703
707
  [id: string]: true;
704
708
  }> | undefined;
705
709
  username?: string | null | undefined;
706
- userState?: import("..").UserIdleState | undefined;
710
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
707
711
  color?: {
708
712
  background: string;
709
713
  stroke: string;
@@ -720,7 +724,7 @@ export declare const actionSetFrameAsActiveTool: {
720
724
  open: boolean;
721
725
  panels: number;
722
726
  };
723
- currentChartType: import("../element/types").ChartType;
727
+ currentChartType: import("@excalidraw/element/types").ChartType;
724
728
  pasteDialog: {
725
729
  shown: false;
726
730
  data: null;
@@ -729,8 +733,8 @@ export declare const actionSetFrameAsActiveTool: {
729
733
  data: import("../charts").Spreadsheet;
730
734
  };
731
735
  pendingImageElementId: string | null;
732
- showHyperlinkPopup: false | "info" | "editor";
733
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
736
+ showHyperlinkPopup: false | "editor" | "info";
737
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
734
738
  snapLines: readonly import("../snapping").SnapLine[];
735
739
  originSnapOffset: {
736
740
  x: number;
@@ -765,18 +769,18 @@ export declare const actionWrapSelectionInFrame: {
765
769
  category: "element";
766
770
  };
767
771
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
768
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
769
- elements: (import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | (Readonly<{
772
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
773
+ elements: ((Readonly<{
770
774
  id: string;
771
775
  x: number;
772
776
  y: number;
773
777
  strokeColor: string;
774
778
  backgroundColor: string;
775
- fillStyle: import("../element/types").FillStyle;
779
+ fillStyle: import("@excalidraw/element/types").FillStyle;
776
780
  strokeWidth: number;
777
- strokeStyle: import("../element/types").StrokeStyle;
781
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
778
782
  roundness: {
779
- type: import("../element/types").RoundnessType;
783
+ type: import("@excalidraw/element/types").RoundnessType;
780
784
  value?: number | undefined;
781
785
  } | null;
782
786
  roughness: number;
@@ -787,7 +791,7 @@ export declare const actionWrapSelectionInFrame: {
787
791
  seed: number;
788
792
  version: number;
789
793
  versionNonce: number;
790
- index: import("../element/types").FractionalIndex | null;
794
+ index: import("@excalidraw/element/types").FractionalIndex | null;
791
795
  isDeleted: boolean;
792
796
  groupIds: readonly string[];
793
797
  frameId: string | null;
@@ -800,20 +804,20 @@ export declare const actionWrapSelectionInFrame: {
800
804
  locked: boolean;
801
805
  customData?: Record<string, any> | undefined;
802
806
  }> & {
803
- type: "selection";
807
+ type: "rectangle";
804
808
  } & {
805
- index: import("../element/types").FractionalIndex;
809
+ index: import("@excalidraw/element/types").FractionalIndex;
806
810
  }) | (Readonly<{
807
811
  id: string;
808
812
  x: number;
809
813
  y: number;
810
814
  strokeColor: string;
811
815
  backgroundColor: string;
812
- fillStyle: import("../element/types").FillStyle;
816
+ fillStyle: import("@excalidraw/element/types").FillStyle;
813
817
  strokeWidth: number;
814
- strokeStyle: import("../element/types").StrokeStyle;
818
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
815
819
  roundness: {
816
- type: import("../element/types").RoundnessType;
820
+ type: import("@excalidraw/element/types").RoundnessType;
817
821
  value?: number | undefined;
818
822
  } | null;
819
823
  roughness: number;
@@ -824,7 +828,7 @@ export declare const actionWrapSelectionInFrame: {
824
828
  seed: number;
825
829
  version: number;
826
830
  versionNonce: number;
827
- index: import("../element/types").FractionalIndex | null;
831
+ index: import("@excalidraw/element/types").FractionalIndex | null;
828
832
  isDeleted: boolean;
829
833
  groupIds: readonly string[];
830
834
  frameId: string | null;
@@ -837,20 +841,20 @@ export declare const actionWrapSelectionInFrame: {
837
841
  locked: boolean;
838
842
  customData?: Record<string, any> | undefined;
839
843
  }> & {
840
- type: "rectangle";
844
+ type: "diamond";
841
845
  } & {
842
- index: import("../element/types").FractionalIndex;
846
+ index: import("@excalidraw/element/types").FractionalIndex;
843
847
  }) | (Readonly<{
844
848
  id: string;
845
849
  x: number;
846
850
  y: number;
847
851
  strokeColor: string;
848
852
  backgroundColor: string;
849
- fillStyle: import("../element/types").FillStyle;
853
+ fillStyle: import("@excalidraw/element/types").FillStyle;
850
854
  strokeWidth: number;
851
- strokeStyle: import("../element/types").StrokeStyle;
855
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
852
856
  roundness: {
853
- type: import("../element/types").RoundnessType;
857
+ type: import("@excalidraw/element/types").RoundnessType;
854
858
  value?: number | undefined;
855
859
  } | null;
856
860
  roughness: number;
@@ -861,7 +865,7 @@ export declare const actionWrapSelectionInFrame: {
861
865
  seed: number;
862
866
  version: number;
863
867
  versionNonce: number;
864
- index: import("../element/types").FractionalIndex | null;
868
+ index: import("@excalidraw/element/types").FractionalIndex | null;
865
869
  isDeleted: boolean;
866
870
  groupIds: readonly string[];
867
871
  frameId: string | null;
@@ -874,20 +878,21 @@ export declare const actionWrapSelectionInFrame: {
874
878
  locked: boolean;
875
879
  customData?: Record<string, any> | undefined;
876
880
  }> & {
877
- type: "diamond";
881
+ type: "frame";
882
+ name: string | null;
878
883
  } & {
879
- index: import("../element/types").FractionalIndex;
884
+ index: import("@excalidraw/element/types").FractionalIndex;
880
885
  }) | (Readonly<{
881
886
  id: string;
882
887
  x: number;
883
888
  y: number;
884
889
  strokeColor: string;
885
890
  backgroundColor: string;
886
- fillStyle: import("../element/types").FillStyle;
891
+ fillStyle: import("@excalidraw/element/types").FillStyle;
887
892
  strokeWidth: number;
888
- strokeStyle: import("../element/types").StrokeStyle;
893
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
889
894
  roundness: {
890
- type: import("../element/types").RoundnessType;
895
+ type: import("@excalidraw/element/types").RoundnessType;
891
896
  value?: number | undefined;
892
897
  } | null;
893
898
  roughness: number;
@@ -898,7 +903,7 @@ export declare const actionWrapSelectionInFrame: {
898
903
  seed: number;
899
904
  version: number;
900
905
  versionNonce: number;
901
- index: import("../element/types").FractionalIndex | null;
906
+ index: import("@excalidraw/element/types").FractionalIndex | null;
902
907
  isDeleted: boolean;
903
908
  groupIds: readonly string[];
904
909
  frameId: string | null;
@@ -911,20 +916,21 @@ export declare const actionWrapSelectionInFrame: {
911
916
  locked: boolean;
912
917
  customData?: Record<string, any> | undefined;
913
918
  }> & {
914
- type: "ellipse";
919
+ type: "magicframe";
920
+ name: string | null;
915
921
  } & {
916
- index: import("../element/types").FractionalIndex;
922
+ index: import("@excalidraw/element/types").FractionalIndex;
917
923
  }) | (Readonly<{
918
924
  id: string;
919
925
  x: number;
920
926
  y: number;
921
927
  strokeColor: string;
922
928
  backgroundColor: string;
923
- fillStyle: import("../element/types").FillStyle;
929
+ fillStyle: import("@excalidraw/element/types").FillStyle;
924
930
  strokeWidth: number;
925
- strokeStyle: import("../element/types").StrokeStyle;
931
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
926
932
  roundness: {
927
- type: import("../element/types").RoundnessType;
933
+ type: import("@excalidraw/element/types").RoundnessType;
928
934
  value?: number | undefined;
929
935
  } | null;
930
936
  roughness: number;
@@ -935,7 +941,7 @@ export declare const actionWrapSelectionInFrame: {
935
941
  seed: number;
936
942
  version: number;
937
943
  versionNonce: number;
938
- index: import("../element/types").FractionalIndex | null;
944
+ index: import("@excalidraw/element/types").FractionalIndex | null;
939
945
  isDeleted: boolean;
940
946
  groupIds: readonly string[];
941
947
  frameId: string | null;
@@ -948,31 +954,20 @@ export declare const actionWrapSelectionInFrame: {
948
954
  locked: boolean;
949
955
  customData?: Record<string, any> | undefined;
950
956
  }> & Readonly<{
951
- type: "text";
952
- fontSize: number;
953
- fontFamily: number;
954
- text: string;
955
- textAlign: string;
956
- verticalAlign: string;
957
- containerId: string | null;
958
- originalText: string;
959
- autoResize: boolean;
960
- lineHeight: number & {
961
- _brand: "unitlessLineHeight";
962
- };
957
+ type: "embeddable";
963
958
  }> & {
964
- index: import("../element/types").FractionalIndex;
959
+ index: import("@excalidraw/element/types").FractionalIndex;
965
960
  }) | (Readonly<{
966
961
  id: string;
967
962
  x: number;
968
963
  y: number;
969
964
  strokeColor: string;
970
965
  backgroundColor: string;
971
- fillStyle: import("../element/types").FillStyle;
966
+ fillStyle: import("@excalidraw/element/types").FillStyle;
972
967
  strokeWidth: number;
973
- strokeStyle: import("../element/types").StrokeStyle;
968
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
974
969
  roundness: {
975
- type: import("../element/types").RoundnessType;
970
+ type: import("@excalidraw/element/types").RoundnessType;
976
971
  value?: number | undefined;
977
972
  } | null;
978
973
  roughness: number;
@@ -983,7 +978,7 @@ export declare const actionWrapSelectionInFrame: {
983
978
  seed: number;
984
979
  version: number;
985
980
  versionNonce: number;
986
- index: import("../element/types").FractionalIndex | null;
981
+ index: import("@excalidraw/element/types").FractionalIndex | null;
987
982
  isDeleted: boolean;
988
983
  groupIds: readonly string[];
989
984
  frameId: string | null;
@@ -996,26 +991,24 @@ export declare const actionWrapSelectionInFrame: {
996
991
  locked: boolean;
997
992
  customData?: Record<string, any> | undefined;
998
993
  }> & Readonly<{
999
- type: "line" | "arrow";
1000
- points: readonly import("@excalidraw/math").LocalPoint[];
1001
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1002
- startBinding: import("../element/types").PointBinding | null;
1003
- endBinding: import("../element/types").PointBinding | null;
1004
- startArrowhead: import("../element/types").Arrowhead | null;
1005
- endArrowhead: import("../element/types").Arrowhead | null;
994
+ type: "image";
995
+ fileId: import("@excalidraw/element/types").FileId | null;
996
+ status: "pending" | "saved" | "error";
997
+ scale: [number, number];
998
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1006
999
  }> & {
1007
- index: import("../element/types").FractionalIndex;
1000
+ index: import("@excalidraw/element/types").FractionalIndex;
1008
1001
  }) | (Readonly<{
1009
1002
  id: string;
1010
1003
  x: number;
1011
1004
  y: number;
1012
1005
  strokeColor: string;
1013
1006
  backgroundColor: string;
1014
- fillStyle: import("../element/types").FillStyle;
1007
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1015
1008
  strokeWidth: number;
1016
- strokeStyle: import("../element/types").StrokeStyle;
1009
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1017
1010
  roundness: {
1018
- type: import("../element/types").RoundnessType;
1011
+ type: import("@excalidraw/element/types").RoundnessType;
1019
1012
  value?: number | undefined;
1020
1013
  } | null;
1021
1014
  roughness: number;
@@ -1026,7 +1019,7 @@ export declare const actionWrapSelectionInFrame: {
1026
1019
  seed: number;
1027
1020
  version: number;
1028
1021
  versionNonce: number;
1029
- index: import("../element/types").FractionalIndex | null;
1022
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1030
1023
  isDeleted: boolean;
1031
1024
  groupIds: readonly string[];
1032
1025
  frameId: string | null;
@@ -1039,24 +1032,23 @@ export declare const actionWrapSelectionInFrame: {
1039
1032
  locked: boolean;
1040
1033
  customData?: Record<string, any> | undefined;
1041
1034
  }> & Readonly<{
1042
- type: "freedraw";
1043
- points: readonly import("@excalidraw/math").LocalPoint[];
1044
- pressures: readonly number[];
1045
- simulatePressure: boolean;
1046
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1035
+ type: "iframe";
1036
+ customData?: {
1037
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1038
+ } | undefined;
1047
1039
  }> & {
1048
- index: import("../element/types").FractionalIndex;
1040
+ index: import("@excalidraw/element/types").FractionalIndex;
1049
1041
  }) | (Readonly<{
1050
1042
  id: string;
1051
1043
  x: number;
1052
1044
  y: number;
1053
1045
  strokeColor: string;
1054
1046
  backgroundColor: string;
1055
- fillStyle: import("../element/types").FillStyle;
1047
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1056
1048
  strokeWidth: number;
1057
- strokeStyle: import("../element/types").StrokeStyle;
1049
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1058
1050
  roundness: {
1059
- type: import("../element/types").RoundnessType;
1051
+ type: import("@excalidraw/element/types").RoundnessType;
1060
1052
  value?: number | undefined;
1061
1053
  } | null;
1062
1054
  roughness: number;
@@ -1067,7 +1059,7 @@ export declare const actionWrapSelectionInFrame: {
1067
1059
  seed: number;
1068
1060
  version: number;
1069
1061
  versionNonce: number;
1070
- index: import("../element/types").FractionalIndex | null;
1062
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1071
1063
  isDeleted: boolean;
1072
1064
  groupIds: readonly string[];
1073
1065
  frameId: string | null;
@@ -1080,24 +1072,31 @@ export declare const actionWrapSelectionInFrame: {
1080
1072
  locked: boolean;
1081
1073
  customData?: Record<string, any> | undefined;
1082
1074
  }> & Readonly<{
1083
- type: "image";
1084
- fileId: import("../element/types").FileId | null;
1085
- status: "error" | "pending" | "saved";
1086
- scale: [number, number];
1087
- crop: import("../element/types").ImageCrop | null;
1075
+ type: "text";
1076
+ fontSize: number;
1077
+ fontFamily: number;
1078
+ text: string;
1079
+ textAlign: string;
1080
+ verticalAlign: string;
1081
+ containerId: string | null;
1082
+ originalText: string;
1083
+ autoResize: boolean;
1084
+ lineHeight: number & {
1085
+ _brand: "unitlessLineHeight";
1086
+ };
1088
1087
  }> & {
1089
- index: import("../element/types").FractionalIndex;
1088
+ index: import("@excalidraw/element/types").FractionalIndex;
1090
1089
  }) | (Readonly<{
1091
1090
  id: string;
1092
1091
  x: number;
1093
1092
  y: number;
1094
1093
  strokeColor: string;
1095
1094
  backgroundColor: string;
1096
- fillStyle: import("../element/types").FillStyle;
1095
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1097
1096
  strokeWidth: number;
1098
- strokeStyle: import("../element/types").StrokeStyle;
1097
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1099
1098
  roundness: {
1100
- type: import("../element/types").RoundnessType;
1099
+ type: import("@excalidraw/element/types").RoundnessType;
1101
1100
  value?: number | undefined;
1102
1101
  } | null;
1103
1102
  roughness: number;
@@ -1108,7 +1107,7 @@ export declare const actionWrapSelectionInFrame: {
1108
1107
  seed: number;
1109
1108
  version: number;
1110
1109
  versionNonce: number;
1111
- index: import("../element/types").FractionalIndex | null;
1110
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1112
1111
  isDeleted: boolean;
1113
1112
  groupIds: readonly string[];
1114
1113
  frameId: string | null;
@@ -1121,21 +1120,20 @@ export declare const actionWrapSelectionInFrame: {
1121
1120
  locked: boolean;
1122
1121
  customData?: Record<string, any> | undefined;
1123
1122
  }> & {
1124
- type: "frame";
1125
- name: string | null;
1123
+ type: "selection";
1126
1124
  } & {
1127
- index: import("../element/types").FractionalIndex;
1125
+ index: import("@excalidraw/element/types").FractionalIndex;
1128
1126
  }) | (Readonly<{
1129
1127
  id: string;
1130
1128
  x: number;
1131
1129
  y: number;
1132
1130
  strokeColor: string;
1133
1131
  backgroundColor: string;
1134
- fillStyle: import("../element/types").FillStyle;
1132
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1135
1133
  strokeWidth: number;
1136
- strokeStyle: import("../element/types").StrokeStyle;
1134
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1137
1135
  roundness: {
1138
- type: import("../element/types").RoundnessType;
1136
+ type: import("@excalidraw/element/types").RoundnessType;
1139
1137
  value?: number | undefined;
1140
1138
  } | null;
1141
1139
  roughness: number;
@@ -1146,7 +1144,7 @@ export declare const actionWrapSelectionInFrame: {
1146
1144
  seed: number;
1147
1145
  version: number;
1148
1146
  versionNonce: number;
1149
- index: import("../element/types").FractionalIndex | null;
1147
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1150
1148
  isDeleted: boolean;
1151
1149
  groupIds: readonly string[];
1152
1150
  frameId: string | null;
@@ -1159,21 +1157,20 @@ export declare const actionWrapSelectionInFrame: {
1159
1157
  locked: boolean;
1160
1158
  customData?: Record<string, any> | undefined;
1161
1159
  }> & {
1162
- type: "magicframe";
1163
- name: string | null;
1160
+ type: "ellipse";
1164
1161
  } & {
1165
- index: import("../element/types").FractionalIndex;
1162
+ index: import("@excalidraw/element/types").FractionalIndex;
1166
1163
  }) | (Readonly<{
1167
1164
  id: string;
1168
1165
  x: number;
1169
1166
  y: number;
1170
1167
  strokeColor: string;
1171
1168
  backgroundColor: string;
1172
- fillStyle: import("../element/types").FillStyle;
1169
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1173
1170
  strokeWidth: number;
1174
- strokeStyle: import("../element/types").StrokeStyle;
1171
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1175
1172
  roundness: {
1176
- type: import("../element/types").RoundnessType;
1173
+ type: import("@excalidraw/element/types").RoundnessType;
1177
1174
  value?: number | undefined;
1178
1175
  } | null;
1179
1176
  roughness: number;
@@ -1184,7 +1181,7 @@ export declare const actionWrapSelectionInFrame: {
1184
1181
  seed: number;
1185
1182
  version: number;
1186
1183
  versionNonce: number;
1187
- index: import("../element/types").FractionalIndex | null;
1184
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1188
1185
  isDeleted: boolean;
1189
1186
  groupIds: readonly string[];
1190
1187
  frameId: string | null;
@@ -1197,23 +1194,26 @@ export declare const actionWrapSelectionInFrame: {
1197
1194
  locked: boolean;
1198
1195
  customData?: Record<string, any> | undefined;
1199
1196
  }> & Readonly<{
1200
- type: "iframe";
1201
- customData?: {
1202
- generationData?: import("../element/types").MagicGenerationData | undefined;
1203
- } | undefined;
1197
+ type: "line" | "arrow";
1198
+ points: readonly import("@excalidraw/math").LocalPoint[];
1199
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1200
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
1201
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
1202
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1203
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1204
1204
  }> & {
1205
- index: import("../element/types").FractionalIndex;
1205
+ index: import("@excalidraw/element/types").FractionalIndex;
1206
1206
  }) | (Readonly<{
1207
1207
  id: string;
1208
1208
  x: number;
1209
1209
  y: number;
1210
1210
  strokeColor: string;
1211
1211
  backgroundColor: string;
1212
- fillStyle: import("../element/types").FillStyle;
1212
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1213
1213
  strokeWidth: number;
1214
- strokeStyle: import("../element/types").StrokeStyle;
1214
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1215
1215
  roundness: {
1216
- type: import("../element/types").RoundnessType;
1216
+ type: import("@excalidraw/element/types").RoundnessType;
1217
1217
  value?: number | undefined;
1218
1218
  } | null;
1219
1219
  roughness: number;
@@ -1224,7 +1224,7 @@ export declare const actionWrapSelectionInFrame: {
1224
1224
  seed: number;
1225
1225
  version: number;
1226
1226
  versionNonce: number;
1227
- index: import("../element/types").FractionalIndex | null;
1227
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1228
1228
  isDeleted: boolean;
1229
1229
  groupIds: readonly string[];
1230
1230
  frameId: string | null;
@@ -1237,10 +1237,14 @@ export declare const actionWrapSelectionInFrame: {
1237
1237
  locked: boolean;
1238
1238
  customData?: Record<string, any> | undefined;
1239
1239
  }> & Readonly<{
1240
- type: "embeddable";
1240
+ type: "freedraw";
1241
+ points: readonly import("@excalidraw/math").LocalPoint[];
1242
+ pressures: readonly number[];
1243
+ simulatePressure: boolean;
1244
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1241
1245
  }> & {
1242
- index: import("../element/types").FractionalIndex;
1243
- }))[];
1246
+ index: import("@excalidraw/element/types").FractionalIndex;
1247
+ }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
1244
1248
  appState: {
1245
1249
  selectedElementIds: {
1246
1250
  [x: string]: true;