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

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 (279) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/{chunk-LMHBUWQS.js → chunk-CARD3WJZ.js} +10 -4
  3. package/dist/dev/chunk-CARD3WJZ.js.map +7 -0
  4. package/dist/dev/{chunk-3SN6HYVK.js → chunk-ETWEPOFC.js} +15663 -22657
  5. package/dist/dev/chunk-ETWEPOFC.js.map +7 -0
  6. package/dist/dev/chunk-FB2NA5UG.js +4132 -0
  7. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  8. package/dist/dev/{chunk-53KHN5WM.js → chunk-RS23HYC4.js} +2 -2
  9. package/dist/dev/{chunk-53KHN5WM.js.map → chunk-RS23HYC4.js.map} +1 -1
  10. package/dist/dev/data/{image-V26YBSDB.js → image-AYLHSOBV.js} +3 -3
  11. package/dist/dev/index.css +3093 -3055
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +32056 -23232
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-E3O5XSXJ.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-6BSJPDKJ.js +33 -0
  19. package/dist/prod/{chunk-6U3AYISY.js → chunk-FGHASORR.js} +4 -4
  20. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  21. package/dist/prod/{chunk-G5N3DNGT.js → chunk-SBKTMZM7.js} +1 -1
  22. package/dist/prod/data/image-VAYKYPXV.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +19 -15
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-44IKVKYT.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 +11 -6
  31. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  32. package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +15 -5
  33. package/dist/types/common/src/index.d.ts +12 -0
  34. package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
  35. package/dist/types/common/src/promise-pool.d.ts +6 -0
  36. package/dist/types/{excalidraw → common/src}/utility-types.d.ts +5 -0
  37. package/dist/types/{excalidraw → common/src}/utils.d.ts +22 -12
  38. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +12 -15
  39. package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
  40. package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
  41. package/dist/types/element/src/align.d.ts +7 -0
  42. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +24 -16
  43. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +9 -4
  44. package/dist/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
  45. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  46. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +41 -36
  47. package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
  48. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +5 -4
  49. package/dist/types/element/src/duplicate.d.ts +63 -0
  50. package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +1 -1
  51. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  52. package/dist/types/element/src/embeddable.d.ts +10 -0
  53. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +4 -3
  54. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +5 -2
  55. package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
  56. package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -5
  57. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  58. package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  59. package/dist/types/element/src/index.d.ts +16 -0
  60. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +16 -20
  61. package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +11 -3
  62. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -44
  63. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  64. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +6 -6
  65. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  66. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -2
  67. package/dist/types/element/src/shapes.d.ts +23 -0
  68. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  69. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -2
  70. package/dist/types/element/src/store.d.ts +227 -0
  71. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
  72. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  73. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +5 -2
  74. package/dist/types/{excalidraw/element → element/src}/types.d.ts +9 -2
  75. package/dist/types/element/src/zindex.d.ts +7 -0
  76. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -103
  77. package/dist/types/excalidraw/actions/actionAlign.d.ts +15 -15
  78. package/dist/types/excalidraw/actions/actionBoundText.d.ts +64 -74
  79. package/dist/types/excalidraw/actions/actionCanvas.d.ts +608 -497
  80. package/dist/types/excalidraw/actions/actionClipboard.d.ts +188 -218
  81. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -36
  82. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +89 -104
  83. package/dist/types/excalidraw/actions/actionDistribute.d.ts +7 -7
  84. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +5 -9
  85. package/dist/types/excalidraw/actions/actionElementLink.d.ts +34 -39
  86. package/dist/types/excalidraw/actions/actionElementLock.d.ts +65 -76
  87. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +31 -46
  88. package/dist/types/excalidraw/actions/actionExport.d.ts +342 -387
  89. package/dist/types/excalidraw/actions/actionFinalize.d.ts +52 -62
  90. package/dist/types/excalidraw/actions/actionFlip.d.ts +7 -7
  91. package/dist/types/excalidraw/actions/actionFrame.d.ts +234 -254
  92. package/dist/types/excalidraw/actions/actionGroup.d.ts +65 -75
  93. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  94. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +32 -37
  95. package/dist/types/excalidraw/actions/actionLink.d.ts +34 -39
  96. package/dist/types/excalidraw/actions/actionMenu.d.ts +91 -106
  97. package/dist/types/excalidraw/actions/actionNavigate.d.ts +59 -69
  98. package/dist/types/excalidraw/actions/actionProperties.d.ts +396 -471
  99. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +33 -38
  100. package/dist/types/excalidraw/actions/actionStyles.d.ts +37 -42
  101. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  102. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -38
  103. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +33 -38
  104. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +32 -209
  105. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  106. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -38
  107. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -39
  108. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -39
  109. package/dist/types/excalidraw/actions/actionZindex.d.ts +16 -16
  110. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  111. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  112. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  113. package/dist/types/excalidraw/actions/types.d.ts +5 -5
  114. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  115. package/dist/types/excalidraw/appState.d.ts +34 -33
  116. package/dist/types/excalidraw/charts.d.ts +1 -1
  117. package/dist/types/excalidraw/clipboard.d.ts +7 -7
  118. package/dist/types/excalidraw/components/Actions.d.ts +3 -3
  119. package/dist/types/excalidraw/components/App.d.ts +38 -20
  120. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  121. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -1
  122. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
  123. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  124. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  125. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  126. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
  128. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  129. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  130. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  131. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  132. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +49 -0
  133. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  134. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  135. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  136. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  137. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  138. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  139. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  140. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  141. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  142. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  143. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  144. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  145. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  146. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  147. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  148. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  149. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  150. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  151. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  152. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  153. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  154. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  155. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  156. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  157. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  158. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  159. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  160. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  161. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  162. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  163. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  164. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  165. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  166. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  167. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  168. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  169. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  170. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +3 -3
  171. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  172. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  173. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  174. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  175. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  176. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  177. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  178. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  179. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  180. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  181. package/dist/types/excalidraw/components/TextField.d.ts +1 -1
  182. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  183. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  185. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  186. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  187. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  188. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  192. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  193. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  194. package/dist/types/excalidraw/components/icons.d.ts +2 -1
  195. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  196. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  197. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  198. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  199. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  200. package/dist/types/excalidraw/data/blob.d.ts +4 -4
  201. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  202. package/dist/types/excalidraw/data/index.d.ts +2 -2
  203. package/dist/types/excalidraw/data/json.d.ts +1 -1
  204. package/dist/types/excalidraw/data/library.d.ts +3 -3
  205. package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
  206. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  207. package/dist/types/excalidraw/data/restore.d.ts +1 -1
  208. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  209. package/dist/types/excalidraw/data/types.d.ts +3 -3
  210. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  211. package/dist/types/excalidraw/eraser/index.d.ts +14 -0
  212. package/dist/types/excalidraw/errors.d.ts +0 -3
  213. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  214. package/dist/types/excalidraw/history.d.ts +15 -23
  215. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  216. package/dist/types/excalidraw/i18n.d.ts +1 -1
  217. package/dist/types/excalidraw/index.d.ts +16 -15
  218. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  219. package/dist/types/excalidraw/lasso/index.d.ts +15 -0
  220. package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
  221. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  222. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  223. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -3
  224. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  225. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  226. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  227. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  228. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  229. package/dist/types/excalidraw/snapping.d.ts +5 -6
  230. package/dist/types/excalidraw/types.d.ts +31 -18
  231. package/dist/types/excalidraw/visualdebug.d.ts +2 -2
  232. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  233. package/dist/types/math/{curve.d.ts → src/curve.d.ts} +2 -0
  234. package/dist/types/math/{point.d.ts → src/point.d.ts} +2 -2
  235. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  236. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  237. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  238. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +4 -0
  239. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  240. package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
  241. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  242. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  243. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  244. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  245. package/history.ts +70 -94
  246. package/package.json +16 -4
  247. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  248. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  249. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  250. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  251. package/dist/prod/chunk-36CXSE6H.js +0 -34
  252. package/dist/prod/chunk-EIO257PC.js +0 -86
  253. package/dist/prod/data/image-N4WCURRR.js +0 -1
  254. package/dist/types/excalidraw/align.d.ts +0 -7
  255. package/dist/types/excalidraw/element/index.d.ts +0 -26
  256. package/dist/types/excalidraw/shapes.d.ts +0 -85
  257. package/dist/types/excalidraw/store.d.ts +0 -129
  258. package/dist/types/excalidraw/zindex.d.ts +0 -6
  259. package/dist/dev/data/{image-V26YBSDB.js.map → image-AYLHSOBV.js.map} +0 -0
  260. package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-E3O5XSXJ.js.map} +0 -0
  261. package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  262. package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  263. package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  264. package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  265. package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  266. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  267. package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  268. package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  269. package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  270. package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  271. package/dist/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
  272. /package/dist/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
  273. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  274. /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
  275. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  276. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  277. /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  278. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  279. /package/dist/types/math/{utils.d.ts → src/utils.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;
24
- state: "hover" | "active";
23
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
+ state: "active" | "hover";
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;
@@ -87,7 +88,7 @@ export declare const actionSelectAllElementsInFrame: {
87
88
  name: "imageExport" | "help" | "jsonExport";
88
89
  } | {
89
90
  name: "ttd";
90
- tab: "text-to-diagram" | "mermaid";
91
+ tab: "mermaid" | "text-to-diagram";
91
92
  } | {
92
93
  name: "commandPalette";
93
94
  } | {
@@ -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;
@@ -169,20 +170,14 @@ export declare const actionSelectAllElementsInFrame: {
169
170
  followedBy: Set<import("../types").SocketId>;
170
171
  isCropping: boolean;
171
172
  croppingElementId: string | null;
172
- searchMatches: readonly {
173
- id: string;
174
- focus: boolean;
175
- matchedLines: {
176
- offsetX: number;
177
- offsetY: number;
178
- width: number;
179
- height: number;
180
- }[];
181
- }[];
173
+ searchMatches: Readonly<{
174
+ focusedId: string | null;
175
+ matches: readonly import("../types").SearchMatch[];
176
+ }> | null;
182
177
  };
183
178
  captureUpdate: "IMMEDIATELY";
184
179
  } | {
185
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
180
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
186
181
  appState: Readonly<AppState>;
187
182
  captureUpdate: "EVENTUALLY";
188
183
  };
@@ -196,8 +191,8 @@ export declare const actionRemoveAllElementsFromFrame: {
196
191
  trackEvent: {
197
192
  category: "history";
198
193
  };
199
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
200
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
194
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
195
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
201
196
  appState: {
202
197
  selectedElementIds: {
203
198
  [x: string]: true;
@@ -211,17 +206,17 @@ export declare const actionRemoveAllElementsFromFrame: {
211
206
  isLoading: boolean;
212
207
  errorMessage: import("react").ReactNode;
213
208
  activeEmbeddable: {
214
- element: import("../element/types").NonDeletedExcalidrawElement;
215
- state: "hover" | "active";
209
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
210
+ state: "active" | "hover";
216
211
  } | 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;
212
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
213
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
215
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
221
216
  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;
217
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
218
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
219
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
225
220
  frameRendering: {
226
221
  enabled: boolean;
227
222
  name: boolean;
@@ -229,12 +224,13 @@ export declare const actionRemoveAllElementsFromFrame: {
229
224
  clip: boolean;
230
225
  };
231
226
  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;
227
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
228
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
235
230
  activeTool: {
236
231
  lastActiveTool: import("../types").ActiveTool | null;
237
232
  locked: boolean;
233
+ fromSelection: boolean;
238
234
  } & import("../types").ActiveTool;
239
235
  penMode: boolean;
240
236
  penDetected: boolean;
@@ -244,18 +240,18 @@ export declare const actionRemoveAllElementsFromFrame: {
244
240
  exportScale: number;
245
241
  currentItemStrokeColor: string;
246
242
  currentItemBackgroundColor: string;
247
- currentItemFillStyle: import("../element/types").FillStyle;
243
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
248
244
  currentItemStrokeWidth: number;
249
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
245
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
250
246
  currentItemRoughness: number;
251
247
  currentItemOpacity: number;
252
248
  currentItemFontFamily: number;
253
249
  currentItemFontSize: number;
254
250
  currentItemTextAlign: string;
255
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
256
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
251
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
252
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
257
253
  currentHoveredFontFamily: number | null;
258
- currentItemRoundness: import("../element/types").StrokeRoundness;
254
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
259
255
  currentItemArrowType: "round" | "sharp" | "elbow";
260
256
  viewBackgroundColor: string;
261
257
  scrollX: number;
@@ -278,7 +274,7 @@ export declare const actionRemoveAllElementsFromFrame: {
278
274
  name: "imageExport" | "help" | "jsonExport";
279
275
  } | {
280
276
  name: "ttd";
281
- tab: "text-to-diagram" | "mermaid";
277
+ tab: "mermaid" | "text-to-diagram";
282
278
  } | {
283
279
  name: "commandPalette";
284
280
  } | {
@@ -286,7 +282,7 @@ export declare const actionRemoveAllElementsFromFrame: {
286
282
  sourceElementId: string;
287
283
  } | null;
288
284
  defaultSidebarDockedPreference: boolean;
289
- lastPointerDownWith: import("../element/types").PointerType;
285
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
290
286
  hoveredElementIds: Readonly<{
291
287
  [id: string]: true;
292
288
  }>;
@@ -301,7 +297,7 @@ export declare const actionRemoveAllElementsFromFrame: {
301
297
  duration?: number | undefined;
302
298
  } | null;
303
299
  zenModeEnabled: boolean;
304
- theme: import("../element/types").Theme;
300
+ theme: import("@excalidraw/element/types").Theme;
305
301
  gridSize: number;
306
302
  gridStep: number;
307
303
  gridModeEnabled: boolean;
@@ -322,7 +318,7 @@ export declare const actionRemoveAllElementsFromFrame: {
322
318
  [id: string]: true;
323
319
  }> | undefined;
324
320
  username?: string | null | undefined;
325
- userState?: import("..").UserIdleState | undefined;
321
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
326
322
  color?: {
327
323
  background: string;
328
324
  stroke: string;
@@ -339,7 +335,7 @@ export declare const actionRemoveAllElementsFromFrame: {
339
335
  open: boolean;
340
336
  panels: number;
341
337
  };
342
- currentChartType: import("../element/types").ChartType;
338
+ currentChartType: import("@excalidraw/element/types").ChartType;
343
339
  pasteDialog: {
344
340
  shown: false;
345
341
  data: null;
@@ -348,8 +344,8 @@ export declare const actionRemoveAllElementsFromFrame: {
348
344
  data: import("../charts").Spreadsheet;
349
345
  };
350
346
  pendingImageElementId: string | null;
351
- showHyperlinkPopup: false | "info" | "editor";
352
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
347
+ showHyperlinkPopup: false | "editor" | "info";
348
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
353
349
  snapLines: readonly import("../snapping").SnapLine[];
354
350
  originSnapOffset: {
355
351
  x: number;
@@ -360,20 +356,14 @@ export declare const actionRemoveAllElementsFromFrame: {
360
356
  followedBy: Set<import("../types").SocketId>;
361
357
  isCropping: boolean;
362
358
  croppingElementId: string | null;
363
- searchMatches: readonly {
364
- id: string;
365
- focus: boolean;
366
- matchedLines: {
367
- offsetX: number;
368
- offsetY: number;
369
- width: number;
370
- height: number;
371
- }[];
372
- }[];
359
+ searchMatches: Readonly<{
360
+ focusedId: string | null;
361
+ matches: readonly import("../types").SearchMatch[];
362
+ }> | null;
373
363
  };
374
364
  captureUpdate: "IMMEDIATELY";
375
365
  } | {
376
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
366
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
377
367
  appState: Readonly<AppState>;
378
368
  captureUpdate: "EVENTUALLY";
379
369
  };
@@ -388,8 +378,8 @@ export declare const actionupdateFrameRendering: {
388
378
  trackEvent: {
389
379
  category: "canvas";
390
380
  };
391
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
392
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
381
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
382
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
393
383
  appState: {
394
384
  frameRendering: {
395
385
  enabled: boolean;
@@ -406,24 +396,25 @@ export declare const actionupdateFrameRendering: {
406
396
  isLoading: boolean;
407
397
  errorMessage: import("react").ReactNode;
408
398
  activeEmbeddable: {
409
- element: import("../element/types").NonDeletedExcalidrawElement;
410
- state: "hover" | "active";
399
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
400
+ state: "active" | "hover";
411
401
  } | 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;
402
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
403
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
404
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
405
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
416
406
  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;
407
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
408
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
409
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
420
410
  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;
411
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
412
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
413
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
424
414
  activeTool: {
425
415
  lastActiveTool: import("../types").ActiveTool | null;
426
416
  locked: boolean;
417
+ fromSelection: boolean;
427
418
  } & import("../types").ActiveTool;
428
419
  penMode: boolean;
429
420
  penDetected: boolean;
@@ -433,18 +424,18 @@ export declare const actionupdateFrameRendering: {
433
424
  exportScale: number;
434
425
  currentItemStrokeColor: string;
435
426
  currentItemBackgroundColor: string;
436
- currentItemFillStyle: import("../element/types").FillStyle;
427
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
437
428
  currentItemStrokeWidth: number;
438
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
429
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
439
430
  currentItemRoughness: number;
440
431
  currentItemOpacity: number;
441
432
  currentItemFontFamily: number;
442
433
  currentItemFontSize: number;
443
434
  currentItemTextAlign: string;
444
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
445
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
435
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
436
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
446
437
  currentHoveredFontFamily: number | null;
447
- currentItemRoundness: import("../element/types").StrokeRoundness;
438
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
448
439
  currentItemArrowType: "round" | "sharp" | "elbow";
449
440
  viewBackgroundColor: string;
450
441
  scrollX: number;
@@ -467,7 +458,7 @@ export declare const actionupdateFrameRendering: {
467
458
  name: "imageExport" | "help" | "jsonExport";
468
459
  } | {
469
460
  name: "ttd";
470
- tab: "text-to-diagram" | "mermaid";
461
+ tab: "mermaid" | "text-to-diagram";
471
462
  } | {
472
463
  name: "commandPalette";
473
464
  } | {
@@ -475,7 +466,7 @@ export declare const actionupdateFrameRendering: {
475
466
  sourceElementId: string;
476
467
  } | null;
477
468
  defaultSidebarDockedPreference: boolean;
478
- lastPointerDownWith: import("../element/types").PointerType;
469
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
479
470
  selectedElementIds: Readonly<{
480
471
  [id: string]: true;
481
472
  }>;
@@ -493,7 +484,7 @@ export declare const actionupdateFrameRendering: {
493
484
  duration?: number | undefined;
494
485
  } | null;
495
486
  zenModeEnabled: boolean;
496
- theme: import("../element/types").Theme;
487
+ theme: import("@excalidraw/element/types").Theme;
497
488
  gridSize: number;
498
489
  gridStep: number;
499
490
  gridModeEnabled: boolean;
@@ -514,7 +505,7 @@ export declare const actionupdateFrameRendering: {
514
505
  [id: string]: true;
515
506
  }> | undefined;
516
507
  username?: string | null | undefined;
517
- userState?: import("..").UserIdleState | undefined;
508
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
518
509
  color?: {
519
510
  background: string;
520
511
  stroke: string;
@@ -531,7 +522,7 @@ export declare const actionupdateFrameRendering: {
531
522
  open: boolean;
532
523
  panels: number;
533
524
  };
534
- currentChartType: import("../element/types").ChartType;
525
+ currentChartType: import("@excalidraw/element/types").ChartType;
535
526
  pasteDialog: {
536
527
  shown: false;
537
528
  data: null;
@@ -540,8 +531,8 @@ export declare const actionupdateFrameRendering: {
540
531
  data: import("../charts").Spreadsheet;
541
532
  };
542
533
  pendingImageElementId: string | null;
543
- showHyperlinkPopup: false | "info" | "editor";
544
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
534
+ showHyperlinkPopup: false | "editor" | "info";
535
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
545
536
  snapLines: readonly import("../snapping").SnapLine[];
546
537
  originSnapOffset: {
547
538
  x: number;
@@ -552,16 +543,10 @@ export declare const actionupdateFrameRendering: {
552
543
  followedBy: Set<import("../types").SocketId>;
553
544
  isCropping: boolean;
554
545
  croppingElementId: string | null;
555
- searchMatches: readonly {
556
- id: string;
557
- focus: boolean;
558
- matchedLines: {
559
- offsetX: number;
560
- offsetY: number;
561
- width: number;
562
- height: number;
563
- }[];
564
- }[];
546
+ searchMatches: Readonly<{
547
+ focusedId: string | null;
548
+ matches: readonly import("../types").SearchMatch[];
549
+ }> | null;
565
550
  };
566
551
  captureUpdate: "EVENTUALLY";
567
552
  };
@@ -577,12 +562,13 @@ export declare const actionSetFrameAsActiveTool: {
577
562
  };
578
563
  icon: import("react/jsx-runtime").JSX.Element;
579
564
  viewMode: false;
580
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
581
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
565
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
566
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
582
567
  appState: {
583
568
  activeTool: {
584
569
  lastActiveTool: import("../types").ActiveTool | null;
585
570
  locked: boolean;
571
+ fromSelection: boolean;
586
572
  } & import("../types").ActiveTool;
587
573
  contextMenu: {
588
574
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -593,17 +579,17 @@ export declare const actionSetFrameAsActiveTool: {
593
579
  isLoading: boolean;
594
580
  errorMessage: import("react").ReactNode;
595
581
  activeEmbeddable: {
596
- element: import("../element/types").NonDeletedExcalidrawElement;
597
- state: "hover" | "active";
582
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
583
+ state: "active" | "hover";
598
584
  } | 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;
585
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
586
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
587
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
588
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
603
589
  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;
590
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
591
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
592
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
607
593
  frameRendering: {
608
594
  enabled: boolean;
609
595
  name: boolean;
@@ -611,9 +597,9 @@ export declare const actionSetFrameAsActiveTool: {
611
597
  clip: boolean;
612
598
  };
613
599
  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;
600
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
601
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
602
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
617
603
  penMode: boolean;
618
604
  penDetected: boolean;
619
605
  exportBackground: boolean;
@@ -622,18 +608,18 @@ export declare const actionSetFrameAsActiveTool: {
622
608
  exportScale: number;
623
609
  currentItemStrokeColor: string;
624
610
  currentItemBackgroundColor: string;
625
- currentItemFillStyle: import("../element/types").FillStyle;
611
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
626
612
  currentItemStrokeWidth: number;
627
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
613
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
628
614
  currentItemRoughness: number;
629
615
  currentItemOpacity: number;
630
616
  currentItemFontFamily: number;
631
617
  currentItemFontSize: number;
632
618
  currentItemTextAlign: string;
633
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
634
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
619
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
620
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
635
621
  currentHoveredFontFamily: number | null;
636
- currentItemRoundness: import("../element/types").StrokeRoundness;
622
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
637
623
  currentItemArrowType: "round" | "sharp" | "elbow";
638
624
  viewBackgroundColor: string;
639
625
  scrollX: number;
@@ -656,7 +642,7 @@ export declare const actionSetFrameAsActiveTool: {
656
642
  name: "imageExport" | "help" | "jsonExport";
657
643
  } | {
658
644
  name: "ttd";
659
- tab: "text-to-diagram" | "mermaid";
645
+ tab: "mermaid" | "text-to-diagram";
660
646
  } | {
661
647
  name: "commandPalette";
662
648
  } | {
@@ -664,7 +650,7 @@ export declare const actionSetFrameAsActiveTool: {
664
650
  sourceElementId: string;
665
651
  } | null;
666
652
  defaultSidebarDockedPreference: boolean;
667
- lastPointerDownWith: import("../element/types").PointerType;
653
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
668
654
  selectedElementIds: Readonly<{
669
655
  [id: string]: true;
670
656
  }>;
@@ -682,7 +668,7 @@ export declare const actionSetFrameAsActiveTool: {
682
668
  duration?: number | undefined;
683
669
  } | null;
684
670
  zenModeEnabled: boolean;
685
- theme: import("../element/types").Theme;
671
+ theme: import("@excalidraw/element/types").Theme;
686
672
  gridSize: number;
687
673
  gridStep: number;
688
674
  gridModeEnabled: boolean;
@@ -703,7 +689,7 @@ export declare const actionSetFrameAsActiveTool: {
703
689
  [id: string]: true;
704
690
  }> | undefined;
705
691
  username?: string | null | undefined;
706
- userState?: import("..").UserIdleState | undefined;
692
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
707
693
  color?: {
708
694
  background: string;
709
695
  stroke: string;
@@ -720,7 +706,7 @@ export declare const actionSetFrameAsActiveTool: {
720
706
  open: boolean;
721
707
  panels: number;
722
708
  };
723
- currentChartType: import("../element/types").ChartType;
709
+ currentChartType: import("@excalidraw/element/types").ChartType;
724
710
  pasteDialog: {
725
711
  shown: false;
726
712
  data: null;
@@ -729,8 +715,8 @@ export declare const actionSetFrameAsActiveTool: {
729
715
  data: import("../charts").Spreadsheet;
730
716
  };
731
717
  pendingImageElementId: string | null;
732
- showHyperlinkPopup: false | "info" | "editor";
733
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
718
+ showHyperlinkPopup: false | "editor" | "info";
719
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
734
720
  snapLines: readonly import("../snapping").SnapLine[];
735
721
  originSnapOffset: {
736
722
  x: number;
@@ -741,22 +727,16 @@ export declare const actionSetFrameAsActiveTool: {
741
727
  followedBy: Set<import("../types").SocketId>;
742
728
  isCropping: boolean;
743
729
  croppingElementId: string | null;
744
- searchMatches: readonly {
745
- id: string;
746
- focus: boolean;
747
- matchedLines: {
748
- offsetX: number;
749
- offsetY: number;
750
- width: number;
751
- height: number;
752
- }[];
753
- }[];
730
+ searchMatches: Readonly<{
731
+ focusedId: string | null;
732
+ matches: readonly import("../types").SearchMatch[];
733
+ }> | null;
754
734
  };
755
735
  captureUpdate: "EVENTUALLY";
756
736
  };
757
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
737
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
758
738
  } & {
759
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
739
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
760
740
  };
761
741
  export declare const actionWrapSelectionInFrame: {
762
742
  name: "wrapSelectionInFrame";
@@ -765,18 +745,18 @@ export declare const actionWrapSelectionInFrame: {
765
745
  category: "element";
766
746
  };
767
747
  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<{
748
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
749
+ elements: ((Readonly<{
770
750
  id: string;
771
751
  x: number;
772
752
  y: number;
773
753
  strokeColor: string;
774
754
  backgroundColor: string;
775
- fillStyle: import("../element/types").FillStyle;
755
+ fillStyle: import("@excalidraw/element/types").FillStyle;
776
756
  strokeWidth: number;
777
- strokeStyle: import("../element/types").StrokeStyle;
757
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
778
758
  roundness: {
779
- type: import("../element/types").RoundnessType;
759
+ type: import("@excalidraw/element/types").RoundnessType;
780
760
  value?: number | undefined;
781
761
  } | null;
782
762
  roughness: number;
@@ -787,7 +767,7 @@ export declare const actionWrapSelectionInFrame: {
787
767
  seed: number;
788
768
  version: number;
789
769
  versionNonce: number;
790
- index: import("../element/types").FractionalIndex | null;
770
+ index: import("@excalidraw/element/types").FractionalIndex | null;
791
771
  isDeleted: boolean;
792
772
  groupIds: readonly string[];
793
773
  frameId: string | null;
@@ -800,20 +780,20 @@ export declare const actionWrapSelectionInFrame: {
800
780
  locked: boolean;
801
781
  customData?: Record<string, any> | undefined;
802
782
  }> & {
803
- type: "selection";
783
+ type: "rectangle";
804
784
  } & {
805
- index: import("../element/types").FractionalIndex;
785
+ index: import("@excalidraw/element/types").FractionalIndex;
806
786
  }) | (Readonly<{
807
787
  id: string;
808
788
  x: number;
809
789
  y: number;
810
790
  strokeColor: string;
811
791
  backgroundColor: string;
812
- fillStyle: import("../element/types").FillStyle;
792
+ fillStyle: import("@excalidraw/element/types").FillStyle;
813
793
  strokeWidth: number;
814
- strokeStyle: import("../element/types").StrokeStyle;
794
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
815
795
  roundness: {
816
- type: import("../element/types").RoundnessType;
796
+ type: import("@excalidraw/element/types").RoundnessType;
817
797
  value?: number | undefined;
818
798
  } | null;
819
799
  roughness: number;
@@ -824,7 +804,7 @@ export declare const actionWrapSelectionInFrame: {
824
804
  seed: number;
825
805
  version: number;
826
806
  versionNonce: number;
827
- index: import("../element/types").FractionalIndex | null;
807
+ index: import("@excalidraw/element/types").FractionalIndex | null;
828
808
  isDeleted: boolean;
829
809
  groupIds: readonly string[];
830
810
  frameId: string | null;
@@ -837,20 +817,20 @@ export declare const actionWrapSelectionInFrame: {
837
817
  locked: boolean;
838
818
  customData?: Record<string, any> | undefined;
839
819
  }> & {
840
- type: "rectangle";
820
+ type: "diamond";
841
821
  } & {
842
- index: import("../element/types").FractionalIndex;
822
+ index: import("@excalidraw/element/types").FractionalIndex;
843
823
  }) | (Readonly<{
844
824
  id: string;
845
825
  x: number;
846
826
  y: number;
847
827
  strokeColor: string;
848
828
  backgroundColor: string;
849
- fillStyle: import("../element/types").FillStyle;
829
+ fillStyle: import("@excalidraw/element/types").FillStyle;
850
830
  strokeWidth: number;
851
- strokeStyle: import("../element/types").StrokeStyle;
831
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
852
832
  roundness: {
853
- type: import("../element/types").RoundnessType;
833
+ type: import("@excalidraw/element/types").RoundnessType;
854
834
  value?: number | undefined;
855
835
  } | null;
856
836
  roughness: number;
@@ -861,7 +841,7 @@ export declare const actionWrapSelectionInFrame: {
861
841
  seed: number;
862
842
  version: number;
863
843
  versionNonce: number;
864
- index: import("../element/types").FractionalIndex | null;
844
+ index: import("@excalidraw/element/types").FractionalIndex | null;
865
845
  isDeleted: boolean;
866
846
  groupIds: readonly string[];
867
847
  frameId: string | null;
@@ -874,20 +854,21 @@ export declare const actionWrapSelectionInFrame: {
874
854
  locked: boolean;
875
855
  customData?: Record<string, any> | undefined;
876
856
  }> & {
877
- type: "diamond";
857
+ type: "frame";
858
+ name: string | null;
878
859
  } & {
879
- index: import("../element/types").FractionalIndex;
860
+ index: import("@excalidraw/element/types").FractionalIndex;
880
861
  }) | (Readonly<{
881
862
  id: string;
882
863
  x: number;
883
864
  y: number;
884
865
  strokeColor: string;
885
866
  backgroundColor: string;
886
- fillStyle: import("../element/types").FillStyle;
867
+ fillStyle: import("@excalidraw/element/types").FillStyle;
887
868
  strokeWidth: number;
888
- strokeStyle: import("../element/types").StrokeStyle;
869
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
889
870
  roundness: {
890
- type: import("../element/types").RoundnessType;
871
+ type: import("@excalidraw/element/types").RoundnessType;
891
872
  value?: number | undefined;
892
873
  } | null;
893
874
  roughness: number;
@@ -898,7 +879,7 @@ export declare const actionWrapSelectionInFrame: {
898
879
  seed: number;
899
880
  version: number;
900
881
  versionNonce: number;
901
- index: import("../element/types").FractionalIndex | null;
882
+ index: import("@excalidraw/element/types").FractionalIndex | null;
902
883
  isDeleted: boolean;
903
884
  groupIds: readonly string[];
904
885
  frameId: string | null;
@@ -911,20 +892,21 @@ export declare const actionWrapSelectionInFrame: {
911
892
  locked: boolean;
912
893
  customData?: Record<string, any> | undefined;
913
894
  }> & {
914
- type: "ellipse";
895
+ type: "magicframe";
896
+ name: string | null;
915
897
  } & {
916
- index: import("../element/types").FractionalIndex;
898
+ index: import("@excalidraw/element/types").FractionalIndex;
917
899
  }) | (Readonly<{
918
900
  id: string;
919
901
  x: number;
920
902
  y: number;
921
903
  strokeColor: string;
922
904
  backgroundColor: string;
923
- fillStyle: import("../element/types").FillStyle;
905
+ fillStyle: import("@excalidraw/element/types").FillStyle;
924
906
  strokeWidth: number;
925
- strokeStyle: import("../element/types").StrokeStyle;
907
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
926
908
  roundness: {
927
- type: import("../element/types").RoundnessType;
909
+ type: import("@excalidraw/element/types").RoundnessType;
928
910
  value?: number | undefined;
929
911
  } | null;
930
912
  roughness: number;
@@ -935,7 +917,7 @@ export declare const actionWrapSelectionInFrame: {
935
917
  seed: number;
936
918
  version: number;
937
919
  versionNonce: number;
938
- index: import("../element/types").FractionalIndex | null;
920
+ index: import("@excalidraw/element/types").FractionalIndex | null;
939
921
  isDeleted: boolean;
940
922
  groupIds: readonly string[];
941
923
  frameId: string | null;
@@ -948,31 +930,20 @@ export declare const actionWrapSelectionInFrame: {
948
930
  locked: boolean;
949
931
  customData?: Record<string, any> | undefined;
950
932
  }> & 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
- };
933
+ type: "embeddable";
963
934
  }> & {
964
- index: import("../element/types").FractionalIndex;
935
+ index: import("@excalidraw/element/types").FractionalIndex;
965
936
  }) | (Readonly<{
966
937
  id: string;
967
938
  x: number;
968
939
  y: number;
969
940
  strokeColor: string;
970
941
  backgroundColor: string;
971
- fillStyle: import("../element/types").FillStyle;
942
+ fillStyle: import("@excalidraw/element/types").FillStyle;
972
943
  strokeWidth: number;
973
- strokeStyle: import("../element/types").StrokeStyle;
944
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
974
945
  roundness: {
975
- type: import("../element/types").RoundnessType;
946
+ type: import("@excalidraw/element/types").RoundnessType;
976
947
  value?: number | undefined;
977
948
  } | null;
978
949
  roughness: number;
@@ -983,7 +954,7 @@ export declare const actionWrapSelectionInFrame: {
983
954
  seed: number;
984
955
  version: number;
985
956
  versionNonce: number;
986
- index: import("../element/types").FractionalIndex | null;
957
+ index: import("@excalidraw/element/types").FractionalIndex | null;
987
958
  isDeleted: boolean;
988
959
  groupIds: readonly string[];
989
960
  frameId: string | null;
@@ -996,26 +967,24 @@ export declare const actionWrapSelectionInFrame: {
996
967
  locked: boolean;
997
968
  customData?: Record<string, any> | undefined;
998
969
  }> & 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;
970
+ type: "image";
971
+ fileId: import("@excalidraw/element/types").FileId | null;
972
+ status: "pending" | "saved" | "error";
973
+ scale: [number, number];
974
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1006
975
  }> & {
1007
- index: import("../element/types").FractionalIndex;
976
+ index: import("@excalidraw/element/types").FractionalIndex;
1008
977
  }) | (Readonly<{
1009
978
  id: string;
1010
979
  x: number;
1011
980
  y: number;
1012
981
  strokeColor: string;
1013
982
  backgroundColor: string;
1014
- fillStyle: import("../element/types").FillStyle;
983
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1015
984
  strokeWidth: number;
1016
- strokeStyle: import("../element/types").StrokeStyle;
985
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1017
986
  roundness: {
1018
- type: import("../element/types").RoundnessType;
987
+ type: import("@excalidraw/element/types").RoundnessType;
1019
988
  value?: number | undefined;
1020
989
  } | null;
1021
990
  roughness: number;
@@ -1026,7 +995,7 @@ export declare const actionWrapSelectionInFrame: {
1026
995
  seed: number;
1027
996
  version: number;
1028
997
  versionNonce: number;
1029
- index: import("../element/types").FractionalIndex | null;
998
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1030
999
  isDeleted: boolean;
1031
1000
  groupIds: readonly string[];
1032
1001
  frameId: string | null;
@@ -1039,24 +1008,23 @@ export declare const actionWrapSelectionInFrame: {
1039
1008
  locked: boolean;
1040
1009
  customData?: Record<string, any> | undefined;
1041
1010
  }> & 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;
1011
+ type: "iframe";
1012
+ customData?: {
1013
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1014
+ } | undefined;
1047
1015
  }> & {
1048
- index: import("../element/types").FractionalIndex;
1016
+ index: import("@excalidraw/element/types").FractionalIndex;
1049
1017
  }) | (Readonly<{
1050
1018
  id: string;
1051
1019
  x: number;
1052
1020
  y: number;
1053
1021
  strokeColor: string;
1054
1022
  backgroundColor: string;
1055
- fillStyle: import("../element/types").FillStyle;
1023
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1056
1024
  strokeWidth: number;
1057
- strokeStyle: import("../element/types").StrokeStyle;
1025
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1058
1026
  roundness: {
1059
- type: import("../element/types").RoundnessType;
1027
+ type: import("@excalidraw/element/types").RoundnessType;
1060
1028
  value?: number | undefined;
1061
1029
  } | null;
1062
1030
  roughness: number;
@@ -1067,7 +1035,7 @@ export declare const actionWrapSelectionInFrame: {
1067
1035
  seed: number;
1068
1036
  version: number;
1069
1037
  versionNonce: number;
1070
- index: import("../element/types").FractionalIndex | null;
1038
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1071
1039
  isDeleted: boolean;
1072
1040
  groupIds: readonly string[];
1073
1041
  frameId: string | null;
@@ -1080,24 +1048,31 @@ export declare const actionWrapSelectionInFrame: {
1080
1048
  locked: boolean;
1081
1049
  customData?: Record<string, any> | undefined;
1082
1050
  }> & 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;
1051
+ type: "text";
1052
+ fontSize: number;
1053
+ fontFamily: number;
1054
+ text: string;
1055
+ textAlign: string;
1056
+ verticalAlign: string;
1057
+ containerId: string | null;
1058
+ originalText: string;
1059
+ autoResize: boolean;
1060
+ lineHeight: number & {
1061
+ _brand: "unitlessLineHeight";
1062
+ };
1088
1063
  }> & {
1089
- index: import("../element/types").FractionalIndex;
1064
+ index: import("@excalidraw/element/types").FractionalIndex;
1090
1065
  }) | (Readonly<{
1091
1066
  id: string;
1092
1067
  x: number;
1093
1068
  y: number;
1094
1069
  strokeColor: string;
1095
1070
  backgroundColor: string;
1096
- fillStyle: import("../element/types").FillStyle;
1071
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1097
1072
  strokeWidth: number;
1098
- strokeStyle: import("../element/types").StrokeStyle;
1073
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1099
1074
  roundness: {
1100
- type: import("../element/types").RoundnessType;
1075
+ type: import("@excalidraw/element/types").RoundnessType;
1101
1076
  value?: number | undefined;
1102
1077
  } | null;
1103
1078
  roughness: number;
@@ -1108,7 +1083,7 @@ export declare const actionWrapSelectionInFrame: {
1108
1083
  seed: number;
1109
1084
  version: number;
1110
1085
  versionNonce: number;
1111
- index: import("../element/types").FractionalIndex | null;
1086
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1112
1087
  isDeleted: boolean;
1113
1088
  groupIds: readonly string[];
1114
1089
  frameId: string | null;
@@ -1121,21 +1096,20 @@ export declare const actionWrapSelectionInFrame: {
1121
1096
  locked: boolean;
1122
1097
  customData?: Record<string, any> | undefined;
1123
1098
  }> & {
1124
- type: "frame";
1125
- name: string | null;
1099
+ type: "selection";
1126
1100
  } & {
1127
- index: import("../element/types").FractionalIndex;
1101
+ index: import("@excalidraw/element/types").FractionalIndex;
1128
1102
  }) | (Readonly<{
1129
1103
  id: string;
1130
1104
  x: number;
1131
1105
  y: number;
1132
1106
  strokeColor: string;
1133
1107
  backgroundColor: string;
1134
- fillStyle: import("../element/types").FillStyle;
1108
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1135
1109
  strokeWidth: number;
1136
- strokeStyle: import("../element/types").StrokeStyle;
1110
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1137
1111
  roundness: {
1138
- type: import("../element/types").RoundnessType;
1112
+ type: import("@excalidraw/element/types").RoundnessType;
1139
1113
  value?: number | undefined;
1140
1114
  } | null;
1141
1115
  roughness: number;
@@ -1146,7 +1120,7 @@ export declare const actionWrapSelectionInFrame: {
1146
1120
  seed: number;
1147
1121
  version: number;
1148
1122
  versionNonce: number;
1149
- index: import("../element/types").FractionalIndex | null;
1123
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1150
1124
  isDeleted: boolean;
1151
1125
  groupIds: readonly string[];
1152
1126
  frameId: string | null;
@@ -1159,21 +1133,20 @@ export declare const actionWrapSelectionInFrame: {
1159
1133
  locked: boolean;
1160
1134
  customData?: Record<string, any> | undefined;
1161
1135
  }> & {
1162
- type: "magicframe";
1163
- name: string | null;
1136
+ type: "ellipse";
1164
1137
  } & {
1165
- index: import("../element/types").FractionalIndex;
1138
+ index: import("@excalidraw/element/types").FractionalIndex;
1166
1139
  }) | (Readonly<{
1167
1140
  id: string;
1168
1141
  x: number;
1169
1142
  y: number;
1170
1143
  strokeColor: string;
1171
1144
  backgroundColor: string;
1172
- fillStyle: import("../element/types").FillStyle;
1145
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1173
1146
  strokeWidth: number;
1174
- strokeStyle: import("../element/types").StrokeStyle;
1147
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1175
1148
  roundness: {
1176
- type: import("../element/types").RoundnessType;
1149
+ type: import("@excalidraw/element/types").RoundnessType;
1177
1150
  value?: number | undefined;
1178
1151
  } | null;
1179
1152
  roughness: number;
@@ -1184,7 +1157,7 @@ export declare const actionWrapSelectionInFrame: {
1184
1157
  seed: number;
1185
1158
  version: number;
1186
1159
  versionNonce: number;
1187
- index: import("../element/types").FractionalIndex | null;
1160
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1188
1161
  isDeleted: boolean;
1189
1162
  groupIds: readonly string[];
1190
1163
  frameId: string | null;
@@ -1197,23 +1170,26 @@ export declare const actionWrapSelectionInFrame: {
1197
1170
  locked: boolean;
1198
1171
  customData?: Record<string, any> | undefined;
1199
1172
  }> & Readonly<{
1200
- type: "iframe";
1201
- customData?: {
1202
- generationData?: import("../element/types").MagicGenerationData | undefined;
1203
- } | undefined;
1173
+ type: "line" | "arrow";
1174
+ points: readonly import("@excalidraw/math").LocalPoint[];
1175
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1176
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
1177
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
1178
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1179
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1204
1180
  }> & {
1205
- index: import("../element/types").FractionalIndex;
1181
+ index: import("@excalidraw/element/types").FractionalIndex;
1206
1182
  }) | (Readonly<{
1207
1183
  id: string;
1208
1184
  x: number;
1209
1185
  y: number;
1210
1186
  strokeColor: string;
1211
1187
  backgroundColor: string;
1212
- fillStyle: import("../element/types").FillStyle;
1188
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1213
1189
  strokeWidth: number;
1214
- strokeStyle: import("../element/types").StrokeStyle;
1190
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1215
1191
  roundness: {
1216
- type: import("../element/types").RoundnessType;
1192
+ type: import("@excalidraw/element/types").RoundnessType;
1217
1193
  value?: number | undefined;
1218
1194
  } | null;
1219
1195
  roughness: number;
@@ -1224,7 +1200,7 @@ export declare const actionWrapSelectionInFrame: {
1224
1200
  seed: number;
1225
1201
  version: number;
1226
1202
  versionNonce: number;
1227
- index: import("../element/types").FractionalIndex | null;
1203
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1228
1204
  isDeleted: boolean;
1229
1205
  groupIds: readonly string[];
1230
1206
  frameId: string | null;
@@ -1237,10 +1213,14 @@ export declare const actionWrapSelectionInFrame: {
1237
1213
  locked: boolean;
1238
1214
  customData?: Record<string, any> | undefined;
1239
1215
  }> & Readonly<{
1240
- type: "embeddable";
1216
+ type: "freedraw";
1217
+ points: readonly import("@excalidraw/math").LocalPoint[];
1218
+ pressures: readonly number[];
1219
+ simulatePressure: boolean;
1220
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1241
1221
  }> & {
1242
- index: import("../element/types").FractionalIndex;
1243
- }))[];
1222
+ index: import("@excalidraw/element/types").FractionalIndex;
1223
+ }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
1244
1224
  appState: {
1245
1225
  selectedElementIds: {
1246
1226
  [x: string]: true;