@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-835eb8d

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