@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
@@ -6,7 +6,7 @@ export declare const actionCopy: {
6
6
  trackEvent: {
7
7
  category: "element";
8
8
  };
9
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
10
10
  captureUpdate: "EVENTUALLY";
11
11
  appState: {
12
12
  errorMessage: any;
@@ -18,17 +18,17 @@ export declare const actionCopy: {
18
18
  showWelcomeScreen: boolean;
19
19
  isLoading: boolean;
20
20
  activeEmbeddable: {
21
- element: import("../element/types").NonDeletedExcalidrawElement;
22
- state: "hover" | "active";
21
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
+ state: "active" | "hover";
23
23
  } | null;
24
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
25
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
27
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("../element/binding").SuggestedBinding[];
31
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
29
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
34
34
  name: boolean;
@@ -36,12 +36,12 @@ export declare const actionCopy: {
36
36
  clip: boolean;
37
37
  };
38
38
  editingFrame: string | null;
39
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
40
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
39
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
41
  activeTool: {
43
42
  lastActiveTool: import("../types").ActiveTool | null;
44
43
  locked: boolean;
44
+ fromSelection: boolean;
45
45
  } & import("../types").ActiveTool;
46
46
  penMode: boolean;
47
47
  penDetected: boolean;
@@ -51,18 +51,18 @@ export declare const actionCopy: {
51
51
  exportScale: number;
52
52
  currentItemStrokeColor: string;
53
53
  currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("../element/types").FillStyle;
54
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
55
  currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
56
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
57
  currentItemRoughness: number;
58
58
  currentItemOpacity: number;
59
59
  currentItemFontFamily: number;
60
60
  currentItemFontSize: number;
61
61
  currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
62
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
64
  currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("../element/types").StrokeRoundness;
65
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
66
  currentItemArrowType: "round" | "sharp" | "elbow";
67
67
  viewBackgroundColor: string;
68
68
  scrollX: number;
@@ -76,7 +76,7 @@ export declare const actionCopy: {
76
76
  value: import("../types").NormalizedZoomValue;
77
77
  }>;
78
78
  openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
79
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
80
80
  openSidebar: {
81
81
  name: string;
82
82
  tab?: string | undefined;
@@ -85,7 +85,7 @@ export declare const actionCopy: {
85
85
  name: "imageExport" | "help" | "jsonExport";
86
86
  } | {
87
87
  name: "ttd";
88
- tab: "text-to-diagram" | "mermaid";
88
+ tab: "mermaid" | "text-to-diagram";
89
89
  } | {
90
90
  name: "commandPalette";
91
91
  } | {
@@ -93,7 +93,7 @@ export declare const actionCopy: {
93
93
  sourceElementId: string;
94
94
  } | null;
95
95
  defaultSidebarDockedPreference: boolean;
96
- lastPointerDownWith: import("../element/types").PointerType;
96
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
97
97
  selectedElementIds: Readonly<{
98
98
  [id: string]: true;
99
99
  }>;
@@ -111,7 +111,7 @@ export declare const actionCopy: {
111
111
  duration?: number | undefined;
112
112
  } | null;
113
113
  zenModeEnabled: boolean;
114
- theme: import("../element/types").Theme;
114
+ theme: import("@excalidraw/element/types").Theme;
115
115
  gridSize: number;
116
116
  gridStep: number;
117
117
  gridModeEnabled: boolean;
@@ -132,7 +132,7 @@ export declare const actionCopy: {
132
132
  [id: string]: true;
133
133
  }> | undefined;
134
134
  username?: string | null | undefined;
135
- userState?: import("../constants").UserIdleState | undefined;
135
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
136
136
  color?: {
137
137
  background: string;
138
138
  stroke: string;
@@ -149,7 +149,7 @@ export declare const actionCopy: {
149
149
  open: boolean;
150
150
  panels: number;
151
151
  };
152
- currentChartType: import("../element/types").ChartType;
152
+ currentChartType: import("@excalidraw/element/types").ChartType;
153
153
  pasteDialog: {
154
154
  shown: false;
155
155
  data: null;
@@ -157,9 +157,8 @@ export declare const actionCopy: {
157
157
  shown: true;
158
158
  data: import("../charts").Spreadsheet;
159
159
  };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "info" | "editor";
162
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
160
+ showHyperlinkPopup: false | "editor" | "info";
161
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
162
  snapLines: readonly import("../snapping").SnapLine[];
164
163
  originSnapOffset: {
165
164
  x: number;
@@ -170,16 +169,15 @@ export declare const actionCopy: {
170
169
  followedBy: Set<import("../types").SocketId>;
171
170
  isCropping: boolean;
172
171
  croppingElementId: string | null;
173
- searchMatches: readonly {
174
- id: string;
175
- focus: boolean;
176
- matchedLines: {
177
- offsetX: number;
178
- offsetY: number;
179
- width: number;
180
- height: number;
181
- }[];
182
- }[];
172
+ searchMatches: Readonly<{
173
+ focusedId: string | null;
174
+ matches: readonly import("../types").SearchMatch[];
175
+ }> | null;
176
+ activeLockedId: string | null;
177
+ lockedMultiSelections: {
178
+ [groupId: string]: true;
179
+ };
180
+ stylesPanelMode: "compact" | "full";
183
181
  };
184
182
  } | {
185
183
  captureUpdate: "EVENTUALLY";
@@ -195,7 +193,7 @@ export declare const actionPaste: {
195
193
  trackEvent: {
196
194
  category: "element";
197
195
  };
198
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
196
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
199
197
  captureUpdate: "EVENTUALLY";
200
198
  appState: {
201
199
  errorMessage: string;
@@ -207,17 +205,17 @@ export declare const actionPaste: {
207
205
  showWelcomeScreen: boolean;
208
206
  isLoading: boolean;
209
207
  activeEmbeddable: {
210
- element: import("../element/types").NonDeletedExcalidrawElement;
211
- state: "hover" | "active";
208
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
209
+ state: "active" | "hover";
212
210
  } | null;
213
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
214
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
215
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
216
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
211
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
212
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
213
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
214
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
217
215
  isBindingEnabled: boolean;
218
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
219
- suggestedBindings: import("../element/binding").SuggestedBinding[];
220
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
216
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
217
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
218
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
221
219
  frameRendering: {
222
220
  enabled: boolean;
223
221
  name: boolean;
@@ -225,12 +223,12 @@ export declare const actionPaste: {
225
223
  clip: boolean;
226
224
  };
227
225
  editingFrame: string | null;
228
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
229
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
230
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
226
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
227
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
231
228
  activeTool: {
232
229
  lastActiveTool: import("../types").ActiveTool | null;
233
230
  locked: boolean;
231
+ fromSelection: boolean;
234
232
  } & import("../types").ActiveTool;
235
233
  penMode: boolean;
236
234
  penDetected: boolean;
@@ -240,18 +238,18 @@ export declare const actionPaste: {
240
238
  exportScale: number;
241
239
  currentItemStrokeColor: string;
242
240
  currentItemBackgroundColor: string;
243
- currentItemFillStyle: import("../element/types").FillStyle;
241
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
244
242
  currentItemStrokeWidth: number;
245
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
243
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
246
244
  currentItemRoughness: number;
247
245
  currentItemOpacity: number;
248
246
  currentItemFontFamily: number;
249
247
  currentItemFontSize: number;
250
248
  currentItemTextAlign: string;
251
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
252
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
249
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
250
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
253
251
  currentHoveredFontFamily: number | null;
254
- currentItemRoundness: import("../element/types").StrokeRoundness;
252
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
255
253
  currentItemArrowType: "round" | "sharp" | "elbow";
256
254
  viewBackgroundColor: string;
257
255
  scrollX: number;
@@ -265,7 +263,7 @@ export declare const actionPaste: {
265
263
  value: import("../types").NormalizedZoomValue;
266
264
  }>;
267
265
  openMenu: "canvas" | "shape" | null;
268
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
266
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
269
267
  openSidebar: {
270
268
  name: string;
271
269
  tab?: string | undefined;
@@ -274,7 +272,7 @@ export declare const actionPaste: {
274
272
  name: "imageExport" | "help" | "jsonExport";
275
273
  } | {
276
274
  name: "ttd";
277
- tab: "text-to-diagram" | "mermaid";
275
+ tab: "mermaid" | "text-to-diagram";
278
276
  } | {
279
277
  name: "commandPalette";
280
278
  } | {
@@ -282,7 +280,7 @@ export declare const actionPaste: {
282
280
  sourceElementId: string;
283
281
  } | null;
284
282
  defaultSidebarDockedPreference: boolean;
285
- lastPointerDownWith: import("../element/types").PointerType;
283
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
286
284
  selectedElementIds: Readonly<{
287
285
  [id: string]: true;
288
286
  }>;
@@ -300,7 +298,7 @@ export declare const actionPaste: {
300
298
  duration?: number | undefined;
301
299
  } | null;
302
300
  zenModeEnabled: boolean;
303
- theme: import("../element/types").Theme;
301
+ theme: import("@excalidraw/element/types").Theme;
304
302
  gridSize: number;
305
303
  gridStep: number;
306
304
  gridModeEnabled: boolean;
@@ -321,7 +319,7 @@ export declare const actionPaste: {
321
319
  [id: string]: true;
322
320
  }> | undefined;
323
321
  username?: string | null | undefined;
324
- userState?: import("../constants").UserIdleState | undefined;
322
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
325
323
  color?: {
326
324
  background: string;
327
325
  stroke: string;
@@ -338,7 +336,7 @@ export declare const actionPaste: {
338
336
  open: boolean;
339
337
  panels: number;
340
338
  };
341
- currentChartType: import("../element/types").ChartType;
339
+ currentChartType: import("@excalidraw/element/types").ChartType;
342
340
  pasteDialog: {
343
341
  shown: false;
344
342
  data: null;
@@ -346,9 +344,8 @@ export declare const actionPaste: {
346
344
  shown: true;
347
345
  data: import("../charts").Spreadsheet;
348
346
  };
349
- pendingImageElementId: string | null;
350
- showHyperlinkPopup: false | "info" | "editor";
351
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
347
+ showHyperlinkPopup: false | "editor" | "info";
348
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
352
349
  snapLines: readonly import("../snapping").SnapLine[];
353
350
  originSnapOffset: {
354
351
  x: number;
@@ -359,16 +356,15 @@ export declare const actionPaste: {
359
356
  followedBy: Set<import("../types").SocketId>;
360
357
  isCropping: boolean;
361
358
  croppingElementId: string | null;
362
- searchMatches: readonly {
363
- id: string;
364
- focus: boolean;
365
- matchedLines: {
366
- offsetX: number;
367
- offsetY: number;
368
- width: number;
369
- height: number;
370
- }[];
371
- }[];
359
+ searchMatches: Readonly<{
360
+ focusedId: string | null;
361
+ matches: readonly import("../types").SearchMatch[];
362
+ }> | null;
363
+ activeLockedId: string | null;
364
+ lockedMultiSelections: {
365
+ [groupId: string]: true;
366
+ };
367
+ stylesPanelMode: "compact" | "full";
372
368
  };
373
369
  } | {
374
370
  captureUpdate: "EVENTUALLY";
@@ -385,10 +381,10 @@ export declare const actionCut: {
385
381
  trackEvent: {
386
382
  category: "element";
387
383
  };
388
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
389
- elements: import("../element/types").OrderedExcalidrawElement[];
384
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
385
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
390
386
  appState: {
391
- editingLinearElement: null;
387
+ selectedLinearElement: null;
392
388
  contextMenu: {
393
389
  items: import("../components/ContextMenu").ContextMenuItems;
394
390
  top: number;
@@ -398,17 +394,17 @@ export declare const actionCut: {
398
394
  isLoading: boolean;
399
395
  errorMessage: import("react").ReactNode;
400
396
  activeEmbeddable: {
401
- element: import("../element/types").NonDeletedExcalidrawElement;
402
- state: "hover" | "active";
397
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
398
+ state: "active" | "hover";
403
399
  } | null;
404
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
405
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
406
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
407
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
400
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
401
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
402
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
403
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
408
404
  isBindingEnabled: boolean;
409
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
410
- suggestedBindings: import("../element/binding").SuggestedBinding[];
411
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
405
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
406
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
407
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
412
408
  frameRendering: {
413
409
  enabled: boolean;
414
410
  name: boolean;
@@ -416,11 +412,12 @@ export declare const actionCut: {
416
412
  clip: boolean;
417
413
  };
418
414
  editingFrame: string | null;
419
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
420
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
415
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
416
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
421
417
  activeTool: {
422
418
  lastActiveTool: import("../types").ActiveTool | null;
423
419
  locked: boolean;
420
+ fromSelection: boolean;
424
421
  } & import("../types").ActiveTool;
425
422
  penMode: boolean;
426
423
  penDetected: boolean;
@@ -430,18 +427,18 @@ export declare const actionCut: {
430
427
  exportScale: number;
431
428
  currentItemStrokeColor: string;
432
429
  currentItemBackgroundColor: string;
433
- currentItemFillStyle: import("../element/types").FillStyle;
430
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
434
431
  currentItemStrokeWidth: number;
435
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
432
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
436
433
  currentItemRoughness: number;
437
434
  currentItemOpacity: number;
438
435
  currentItemFontFamily: number;
439
436
  currentItemFontSize: number;
440
437
  currentItemTextAlign: string;
441
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
442
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
438
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
439
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
443
440
  currentHoveredFontFamily: number | null;
444
- currentItemRoundness: import("../element/types").StrokeRoundness;
441
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
445
442
  currentItemArrowType: "round" | "sharp" | "elbow";
446
443
  viewBackgroundColor: string;
447
444
  scrollX: number;
@@ -455,7 +452,7 @@ export declare const actionCut: {
455
452
  value: import("../types").NormalizedZoomValue;
456
453
  }>;
457
454
  openMenu: "canvas" | "shape" | null;
458
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
455
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
459
456
  openSidebar: {
460
457
  name: string;
461
458
  tab?: string | undefined;
@@ -464,7 +461,7 @@ export declare const actionCut: {
464
461
  name: "imageExport" | "help" | "jsonExport";
465
462
  } | {
466
463
  name: "ttd";
467
- tab: "text-to-diagram" | "mermaid";
464
+ tab: "mermaid" | "text-to-diagram";
468
465
  } | {
469
466
  name: "commandPalette";
470
467
  } | {
@@ -472,7 +469,7 @@ export declare const actionCut: {
472
469
  sourceElementId: string;
473
470
  } | null;
474
471
  defaultSidebarDockedPreference: boolean;
475
- lastPointerDownWith: import("../element/types").PointerType;
472
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
476
473
  selectedElementIds: Readonly<{
477
474
  [id: string]: true;
478
475
  }>;
@@ -490,7 +487,7 @@ export declare const actionCut: {
490
487
  duration?: number | undefined;
491
488
  } | null;
492
489
  zenModeEnabled: boolean;
493
- theme: import("../element/types").Theme;
490
+ theme: import("@excalidraw/element/types").Theme;
494
491
  gridSize: number;
495
492
  gridStep: number;
496
493
  gridModeEnabled: boolean;
@@ -511,7 +508,7 @@ export declare const actionCut: {
511
508
  [id: string]: true;
512
509
  }> | undefined;
513
510
  username?: string | null | undefined;
514
- userState?: import("../constants").UserIdleState | undefined;
511
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
515
512
  color?: {
516
513
  background: string;
517
514
  stroke: string;
@@ -528,7 +525,7 @@ export declare const actionCut: {
528
525
  open: boolean;
529
526
  panels: number;
530
527
  };
531
- currentChartType: import("../element/types").ChartType;
528
+ currentChartType: import("@excalidraw/element/types").ChartType;
532
529
  pasteDialog: {
533
530
  shown: false;
534
531
  data: null;
@@ -536,9 +533,7 @@ export declare const actionCut: {
536
533
  shown: true;
537
534
  data: import("../charts").Spreadsheet;
538
535
  };
539
- pendingImageElementId: string | null;
540
- showHyperlinkPopup: false | "info" | "editor";
541
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
536
+ showHyperlinkPopup: false | "editor" | "info";
542
537
  snapLines: readonly import("../snapping").SnapLine[];
543
538
  originSnapOffset: {
544
539
  x: number;
@@ -549,25 +544,24 @@ export declare const actionCut: {
549
544
  followedBy: Set<import("../types").SocketId>;
550
545
  isCropping: boolean;
551
546
  croppingElementId: string | null;
552
- searchMatches: readonly {
553
- id: string;
554
- focus: boolean;
555
- matchedLines: {
556
- offsetX: number;
557
- offsetY: number;
558
- width: number;
559
- height: number;
560
- }[];
561
- }[];
547
+ searchMatches: Readonly<{
548
+ focusedId: string | null;
549
+ matches: readonly import("../types").SearchMatch[];
550
+ }> | null;
551
+ activeLockedId: string | null;
552
+ lockedMultiSelections: {
553
+ [groupId: string]: true;
554
+ };
555
+ stylesPanelMode: "compact" | "full";
562
556
  };
563
557
  captureUpdate: "IMMEDIATELY";
564
558
  } | {
565
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
559
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
566
560
  appState: {
567
- editingLinearElement: {
561
+ selectedLinearElement: {
568
562
  selectedPointsIndices: number[];
569
- startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
570
- endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
563
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
564
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
571
565
  elementId: string & {
572
566
  _brand: "excalidrawLinearElementId";
573
567
  };
@@ -594,6 +588,8 @@ export declare const actionCut: {
594
588
  hoverPointIndex: number;
595
589
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
596
590
  elbowed: boolean;
591
+ customLineAngle: number | null;
592
+ isEditing: boolean;
597
593
  };
598
594
  contextMenu: {
599
595
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -604,17 +600,17 @@ export declare const actionCut: {
604
600
  isLoading: boolean;
605
601
  errorMessage: import("react").ReactNode;
606
602
  activeEmbeddable: {
607
- element: import("../element/types").NonDeletedExcalidrawElement;
608
- state: "hover" | "active";
603
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
604
+ state: "active" | "hover";
609
605
  } | null;
610
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
611
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
612
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
613
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
606
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
607
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
608
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
609
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
614
610
  isBindingEnabled: boolean;
615
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
616
- suggestedBindings: import("../element/binding").SuggestedBinding[];
617
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
611
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
612
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
613
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
618
614
  frameRendering: {
619
615
  enabled: boolean;
620
616
  name: boolean;
@@ -622,11 +618,12 @@ export declare const actionCut: {
622
618
  clip: boolean;
623
619
  };
624
620
  editingFrame: string | null;
625
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
626
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
621
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
622
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
627
623
  activeTool: {
628
624
  lastActiveTool: import("../types").ActiveTool | null;
629
625
  locked: boolean;
626
+ fromSelection: boolean;
630
627
  } & import("../types").ActiveTool;
631
628
  penMode: boolean;
632
629
  penDetected: boolean;
@@ -636,18 +633,18 @@ export declare const actionCut: {
636
633
  exportScale: number;
637
634
  currentItemStrokeColor: string;
638
635
  currentItemBackgroundColor: string;
639
- currentItemFillStyle: import("../element/types").FillStyle;
636
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
640
637
  currentItemStrokeWidth: number;
641
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
638
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
642
639
  currentItemRoughness: number;
643
640
  currentItemOpacity: number;
644
641
  currentItemFontFamily: number;
645
642
  currentItemFontSize: number;
646
643
  currentItemTextAlign: string;
647
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
648
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
644
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
645
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
649
646
  currentHoveredFontFamily: number | null;
650
- currentItemRoundness: import("../element/types").StrokeRoundness;
647
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
651
648
  currentItemArrowType: "round" | "sharp" | "elbow";
652
649
  viewBackgroundColor: string;
653
650
  scrollX: number;
@@ -661,7 +658,7 @@ export declare const actionCut: {
661
658
  value: import("../types").NormalizedZoomValue;
662
659
  }>;
663
660
  openMenu: "canvas" | "shape" | null;
664
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
661
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
665
662
  openSidebar: {
666
663
  name: string;
667
664
  tab?: string | undefined;
@@ -670,7 +667,7 @@ export declare const actionCut: {
670
667
  name: "imageExport" | "help" | "jsonExport";
671
668
  } | {
672
669
  name: "ttd";
673
- tab: "text-to-diagram" | "mermaid";
670
+ tab: "mermaid" | "text-to-diagram";
674
671
  } | {
675
672
  name: "commandPalette";
676
673
  } | {
@@ -678,7 +675,7 @@ export declare const actionCut: {
678
675
  sourceElementId: string;
679
676
  } | null;
680
677
  defaultSidebarDockedPreference: boolean;
681
- lastPointerDownWith: import("../element/types").PointerType;
678
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
682
679
  selectedElementIds: Readonly<{
683
680
  [id: string]: true;
684
681
  }>;
@@ -696,7 +693,7 @@ export declare const actionCut: {
696
693
  duration?: number | undefined;
697
694
  } | null;
698
695
  zenModeEnabled: boolean;
699
- theme: import("../element/types").Theme;
696
+ theme: import("@excalidraw/element/types").Theme;
700
697
  gridSize: number;
701
698
  gridStep: number;
702
699
  gridModeEnabled: boolean;
@@ -717,7 +714,7 @@ export declare const actionCut: {
717
714
  [id: string]: true;
718
715
  }> | undefined;
719
716
  username?: string | null | undefined;
720
- userState?: import("../constants").UserIdleState | undefined;
717
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
721
718
  color?: {
722
719
  background: string;
723
720
  stroke: string;
@@ -734,7 +731,7 @@ export declare const actionCut: {
734
731
  open: boolean;
735
732
  panels: number;
736
733
  };
737
- currentChartType: import("../element/types").ChartType;
734
+ currentChartType: import("@excalidraw/element/types").ChartType;
738
735
  pasteDialog: {
739
736
  shown: false;
740
737
  data: null;
@@ -742,9 +739,7 @@ export declare const actionCut: {
742
739
  shown: true;
743
740
  data: import("../charts").Spreadsheet;
744
741
  };
745
- pendingImageElementId: string | null;
746
- showHyperlinkPopup: false | "info" | "editor";
747
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
742
+ showHyperlinkPopup: false | "editor" | "info";
748
743
  snapLines: readonly import("../snapping").SnapLine[];
749
744
  originSnapOffset: {
750
745
  x: number;
@@ -755,34 +750,35 @@ export declare const actionCut: {
755
750
  followedBy: Set<import("../types").SocketId>;
756
751
  isCropping: boolean;
757
752
  croppingElementId: string | null;
758
- searchMatches: readonly {
759
- id: string;
760
- focus: boolean;
761
- matchedLines: {
762
- offsetX: number;
763
- offsetY: number;
764
- width: number;
765
- height: number;
766
- }[];
767
- }[];
753
+ searchMatches: Readonly<{
754
+ focusedId: string | null;
755
+ matches: readonly import("../types").SearchMatch[];
756
+ }> | null;
757
+ activeLockedId: string | null;
758
+ lockedMultiSelections: {
759
+ [groupId: string]: true;
760
+ };
761
+ stylesPanelMode: "compact" | "full";
768
762
  };
769
763
  captureUpdate: "IMMEDIATELY";
770
764
  } | {
771
- elements: import("../element/types").ExcalidrawElement[];
765
+ elements: import("@excalidraw/element/types").ExcalidrawElement[];
772
766
  appState: {
773
767
  activeTool: {
774
768
  lastActiveTool: import("../types").ActiveTool | null;
775
769
  locked: boolean;
770
+ fromSelection: boolean;
776
771
  } & import("../types").ActiveTool;
777
772
  multiElement: null;
778
773
  activeEmbeddable: null;
774
+ selectedLinearElement: null;
775
+ editingGroupId: string | null;
779
776
  selectedElementIds: Readonly<{
780
777
  [id: string]: true;
781
778
  }>;
782
779
  selectedGroupIds: {
783
780
  [groupId: string]: boolean;
784
781
  };
785
- editingGroupId: string | null;
786
782
  contextMenu: {
787
783
  items: import("../components/ContextMenu").ContextMenuItems;
788
784
  top: number;
@@ -791,13 +787,13 @@ export declare const actionCut: {
791
787
  showWelcomeScreen: boolean;
792
788
  isLoading: boolean;
793
789
  errorMessage: import("react").ReactNode;
794
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
795
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
796
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
790
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
791
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
792
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
797
793
  isBindingEnabled: boolean;
798
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
799
- suggestedBindings: import("../element/binding").SuggestedBinding[];
800
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
794
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
795
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
796
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
801
797
  frameRendering: {
802
798
  enabled: boolean;
803
799
  name: boolean;
@@ -805,9 +801,8 @@ export declare const actionCut: {
805
801
  clip: boolean;
806
802
  };
807
803
  editingFrame: string | null;
808
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
809
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
810
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
804
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
805
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
811
806
  penMode: boolean;
812
807
  penDetected: boolean;
813
808
  exportBackground: boolean;
@@ -816,18 +811,18 @@ export declare const actionCut: {
816
811
  exportScale: number;
817
812
  currentItemStrokeColor: string;
818
813
  currentItemBackgroundColor: string;
819
- currentItemFillStyle: import("../element/types").FillStyle;
814
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
820
815
  currentItemStrokeWidth: number;
821
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
816
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
822
817
  currentItemRoughness: number;
823
818
  currentItemOpacity: number;
824
819
  currentItemFontFamily: number;
825
820
  currentItemFontSize: number;
826
821
  currentItemTextAlign: string;
827
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
828
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
822
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
823
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
829
824
  currentHoveredFontFamily: number | null;
830
- currentItemRoundness: import("../element/types").StrokeRoundness;
825
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
831
826
  currentItemArrowType: "round" | "sharp" | "elbow";
832
827
  viewBackgroundColor: string;
833
828
  scrollX: number;
@@ -841,7 +836,7 @@ export declare const actionCut: {
841
836
  value: import("../types").NormalizedZoomValue;
842
837
  }>;
843
838
  openMenu: "canvas" | "shape" | null;
844
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
839
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
845
840
  openSidebar: {
846
841
  name: string;
847
842
  tab?: string | undefined;
@@ -850,7 +845,7 @@ export declare const actionCut: {
850
845
  name: "imageExport" | "help" | "jsonExport";
851
846
  } | {
852
847
  name: "ttd";
853
- tab: "text-to-diagram" | "mermaid";
848
+ tab: "mermaid" | "text-to-diagram";
854
849
  } | {
855
850
  name: "commandPalette";
856
851
  } | {
@@ -858,7 +853,7 @@ export declare const actionCut: {
858
853
  sourceElementId: string;
859
854
  } | null;
860
855
  defaultSidebarDockedPreference: boolean;
861
- lastPointerDownWith: import("../element/types").PointerType;
856
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
862
857
  hoveredElementIds: Readonly<{
863
858
  [id: string]: true;
864
859
  }>;
@@ -873,7 +868,7 @@ export declare const actionCut: {
873
868
  duration?: number | undefined;
874
869
  } | null;
875
870
  zenModeEnabled: boolean;
876
- theme: import("../element/types").Theme;
871
+ theme: import("@excalidraw/element/types").Theme;
877
872
  gridSize: number;
878
873
  gridStep: number;
879
874
  gridModeEnabled: boolean;
@@ -890,7 +885,7 @@ export declare const actionCut: {
890
885
  [id: string]: true;
891
886
  }> | undefined;
892
887
  username?: string | null | undefined;
893
- userState?: import("../constants").UserIdleState | undefined;
888
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
894
889
  color?: {
895
890
  background: string;
896
891
  stroke: string;
@@ -907,7 +902,7 @@ export declare const actionCut: {
907
902
  open: boolean;
908
903
  panels: number;
909
904
  };
910
- currentChartType: import("../element/types").ChartType;
905
+ currentChartType: import("@excalidraw/element/types").ChartType;
911
906
  pasteDialog: {
912
907
  shown: false;
913
908
  data: null;
@@ -915,9 +910,7 @@ export declare const actionCut: {
915
910
  shown: true;
916
911
  data: import("../charts").Spreadsheet;
917
912
  };
918
- pendingImageElementId: string | null;
919
- showHyperlinkPopup: false | "info" | "editor";
920
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
913
+ showHyperlinkPopup: false | "editor" | "info";
921
914
  snapLines: readonly import("../snapping").SnapLine[];
922
915
  originSnapOffset: {
923
916
  x: number;
@@ -928,16 +921,15 @@ export declare const actionCut: {
928
921
  followedBy: Set<import("../types").SocketId>;
929
922
  isCropping: boolean;
930
923
  croppingElementId: string | null;
931
- searchMatches: readonly {
932
- id: string;
933
- focus: boolean;
934
- matchedLines: {
935
- offsetX: number;
936
- offsetY: number;
937
- width: number;
938
- height: number;
939
- }[];
940
- }[];
924
+ searchMatches: Readonly<{
925
+ focusedId: string | null;
926
+ matches: readonly import("../types").SearchMatch[];
927
+ }> | null;
928
+ activeLockedId: string | null;
929
+ lockedMultiSelections: {
930
+ [groupId: string]: true;
931
+ };
932
+ stylesPanelMode: "compact" | "full";
941
933
  };
942
934
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
943
935
  };
@@ -952,7 +944,7 @@ export declare const actionCopyAsSvg: {
952
944
  trackEvent: {
953
945
  category: "element";
954
946
  };
955
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
947
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
956
948
  captureUpdate: "EVENTUALLY";
957
949
  appState?: undefined;
958
950
  } | {
@@ -970,7 +962,7 @@ export declare const actionCopyAsSvg: {
970
962
  };
971
963
  captureUpdate: "EVENTUALLY";
972
964
  }>;
973
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
965
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
974
966
  keywords: string[];
975
967
  } & {
976
968
  keyTest?: undefined;
@@ -982,7 +974,7 @@ export declare const actionCopyAsPng: {
982
974
  trackEvent: {
983
975
  category: "element";
984
976
  };
985
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
977
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
986
978
  captureUpdate: "EVENTUALLY";
987
979
  appState?: undefined;
988
980
  } | {
@@ -996,17 +988,17 @@ export declare const actionCopyAsPng: {
996
988
  showWelcomeScreen: boolean;
997
989
  isLoading: boolean;
998
990
  activeEmbeddable: {
999
- element: import("../element/types").NonDeletedExcalidrawElement;
1000
- state: "hover" | "active";
991
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
992
+ state: "active" | "hover";
1001
993
  } | null;
1002
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1003
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1004
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1005
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
994
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
995
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
996
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
997
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1006
998
  isBindingEnabled: boolean;
1007
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1008
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1009
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
999
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1000
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1001
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1010
1002
  frameRendering: {
1011
1003
  enabled: boolean;
1012
1004
  name: boolean;
@@ -1014,12 +1006,12 @@ export declare const actionCopyAsPng: {
1014
1006
  clip: boolean;
1015
1007
  };
1016
1008
  editingFrame: string | null;
1017
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1018
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1019
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1009
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1010
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1020
1011
  activeTool: {
1021
1012
  lastActiveTool: import("../types").ActiveTool | null;
1022
1013
  locked: boolean;
1014
+ fromSelection: boolean;
1023
1015
  } & import("../types").ActiveTool;
1024
1016
  penMode: boolean;
1025
1017
  penDetected: boolean;
@@ -1029,18 +1021,18 @@ export declare const actionCopyAsPng: {
1029
1021
  exportScale: number;
1030
1022
  currentItemStrokeColor: string;
1031
1023
  currentItemBackgroundColor: string;
1032
- currentItemFillStyle: import("../element/types").FillStyle;
1024
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1033
1025
  currentItemStrokeWidth: number;
1034
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1026
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1035
1027
  currentItemRoughness: number;
1036
1028
  currentItemOpacity: number;
1037
1029
  currentItemFontFamily: number;
1038
1030
  currentItemFontSize: number;
1039
1031
  currentItemTextAlign: string;
1040
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1041
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1032
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1033
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1042
1034
  currentHoveredFontFamily: number | null;
1043
- currentItemRoundness: import("../element/types").StrokeRoundness;
1035
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1044
1036
  currentItemArrowType: "round" | "sharp" | "elbow";
1045
1037
  viewBackgroundColor: string;
1046
1038
  scrollX: number;
@@ -1054,7 +1046,7 @@ export declare const actionCopyAsPng: {
1054
1046
  value: import("../types").NormalizedZoomValue;
1055
1047
  }>;
1056
1048
  openMenu: "canvas" | "shape" | null;
1057
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1049
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1058
1050
  openSidebar: {
1059
1051
  name: string;
1060
1052
  tab?: string | undefined;
@@ -1063,7 +1055,7 @@ export declare const actionCopyAsPng: {
1063
1055
  name: "imageExport" | "help" | "jsonExport";
1064
1056
  } | {
1065
1057
  name: "ttd";
1066
- tab: "text-to-diagram" | "mermaid";
1058
+ tab: "mermaid" | "text-to-diagram";
1067
1059
  } | {
1068
1060
  name: "commandPalette";
1069
1061
  } | {
@@ -1071,7 +1063,7 @@ export declare const actionCopyAsPng: {
1071
1063
  sourceElementId: string;
1072
1064
  } | null;
1073
1065
  defaultSidebarDockedPreference: boolean;
1074
- lastPointerDownWith: import("../element/types").PointerType;
1066
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1075
1067
  selectedElementIds: Readonly<{
1076
1068
  [id: string]: true;
1077
1069
  }>;
@@ -1089,7 +1081,7 @@ export declare const actionCopyAsPng: {
1089
1081
  duration?: number | undefined;
1090
1082
  } | null;
1091
1083
  zenModeEnabled: boolean;
1092
- theme: import("../element/types").Theme;
1084
+ theme: import("@excalidraw/element/types").Theme;
1093
1085
  gridSize: number;
1094
1086
  gridStep: number;
1095
1087
  gridModeEnabled: boolean;
@@ -1110,7 +1102,7 @@ export declare const actionCopyAsPng: {
1110
1102
  [id: string]: true;
1111
1103
  }> | undefined;
1112
1104
  username?: string | null | undefined;
1113
- userState?: import("../constants").UserIdleState | undefined;
1105
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1114
1106
  color?: {
1115
1107
  background: string;
1116
1108
  stroke: string;
@@ -1127,7 +1119,7 @@ export declare const actionCopyAsPng: {
1127
1119
  open: boolean;
1128
1120
  panels: number;
1129
1121
  };
1130
- currentChartType: import("../element/types").ChartType;
1122
+ currentChartType: import("@excalidraw/element/types").ChartType;
1131
1123
  pasteDialog: {
1132
1124
  shown: false;
1133
1125
  data: null;
@@ -1135,9 +1127,8 @@ export declare const actionCopyAsPng: {
1135
1127
  shown: true;
1136
1128
  data: import("../charts").Spreadsheet;
1137
1129
  };
1138
- pendingImageElementId: string | null;
1139
- showHyperlinkPopup: false | "info" | "editor";
1140
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1130
+ showHyperlinkPopup: false | "editor" | "info";
1131
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1141
1132
  snapLines: readonly import("../snapping").SnapLine[];
1142
1133
  originSnapOffset: {
1143
1134
  x: number;
@@ -1148,20 +1139,19 @@ export declare const actionCopyAsPng: {
1148
1139
  followedBy: Set<import("../types").SocketId>;
1149
1140
  isCropping: boolean;
1150
1141
  croppingElementId: string | null;
1151
- searchMatches: readonly {
1152
- id: string;
1153
- focus: boolean;
1154
- matchedLines: {
1155
- offsetX: number;
1156
- offsetY: number;
1157
- width: number;
1158
- height: number;
1159
- }[];
1160
- }[];
1142
+ searchMatches: Readonly<{
1143
+ focusedId: string | null;
1144
+ matches: readonly import("../types").SearchMatch[];
1145
+ }> | null;
1146
+ activeLockedId: string | null;
1147
+ lockedMultiSelections: {
1148
+ [groupId: string]: true;
1149
+ };
1150
+ stylesPanelMode: "compact" | "full";
1161
1151
  };
1162
1152
  captureUpdate: "EVENTUALLY";
1163
1153
  }>;
1164
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1154
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1165
1155
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1166
1156
  keywords: string[];
1167
1157
  } & {
@@ -1173,10 +1163,10 @@ export declare const copyText: {
1173
1163
  trackEvent: {
1174
1164
  category: "element";
1175
1165
  };
1176
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1166
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1177
1167
  captureUpdate: "EVENTUALLY";
1178
1168
  };
1179
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1169
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1180
1170
  keywords: string[];
1181
1171
  } & {
1182
1172
  keyTest?: undefined;