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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/{chunk-LMHBUWQS.js → chunk-CARD3WJZ.js} +10 -4
  3. package/dist/dev/chunk-CARD3WJZ.js.map +7 -0
  4. package/dist/dev/{chunk-3SN6HYVK.js → chunk-ETWEPOFC.js} +15663 -22657
  5. package/dist/dev/chunk-ETWEPOFC.js.map +7 -0
  6. package/dist/dev/chunk-FB2NA5UG.js +4132 -0
  7. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  8. package/dist/dev/{chunk-53KHN5WM.js → chunk-RS23HYC4.js} +2 -2
  9. package/dist/dev/{chunk-53KHN5WM.js.map → chunk-RS23HYC4.js.map} +1 -1
  10. package/dist/dev/data/{image-V26YBSDB.js → image-AYLHSOBV.js} +3 -3
  11. package/dist/dev/index.css +3093 -3055
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +32056 -23232
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-E3O5XSXJ.js} +2 -2
  16. package/dist/dev/subset-shared.chunk.js +2 -2
  17. package/dist/dev/subset-worker.chunk.js +2 -2
  18. package/dist/prod/chunk-6BSJPDKJ.js +33 -0
  19. package/dist/prod/{chunk-6U3AYISY.js → chunk-FGHASORR.js} +4 -4
  20. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  21. package/dist/prod/{chunk-G5N3DNGT.js → chunk-SBKTMZM7.js} +1 -1
  22. package/dist/prod/data/image-VAYKYPXV.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +19 -15
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-44IKVKYT.js} +1 -1
  26. package/dist/prod/subset-shared.chunk.js +1 -1
  27. package/dist/prod/subset-worker.chunk.js +1 -1
  28. package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
  29. package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
  30. package/dist/types/{excalidraw → common/src}/constants.d.ts +11 -6
  31. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  32. package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +15 -5
  33. package/dist/types/common/src/index.d.ts +12 -0
  34. package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
  35. package/dist/types/common/src/promise-pool.d.ts +6 -0
  36. package/dist/types/{excalidraw → common/src}/utility-types.d.ts +5 -0
  37. package/dist/types/{excalidraw → common/src}/utils.d.ts +22 -12
  38. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +12 -15
  39. package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
  40. package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
  41. package/dist/types/element/src/align.d.ts +7 -0
  42. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +24 -16
  43. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +9 -4
  44. package/dist/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
  45. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  46. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +41 -36
  47. package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
  48. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +5 -4
  49. package/dist/types/element/src/duplicate.d.ts +63 -0
  50. package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +1 -1
  51. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  52. package/dist/types/element/src/embeddable.d.ts +10 -0
  53. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +4 -3
  54. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +5 -2
  55. package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
  56. package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -5
  57. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  58. package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  59. package/dist/types/element/src/index.d.ts +16 -0
  60. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +16 -20
  61. package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +11 -3
  62. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -44
  63. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  64. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +6 -6
  65. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  66. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -2
  67. package/dist/types/element/src/shapes.d.ts +23 -0
  68. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  69. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -2
  70. package/dist/types/element/src/store.d.ts +227 -0
  71. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
  72. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  73. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +5 -2
  74. package/dist/types/{excalidraw/element → element/src}/types.d.ts +9 -2
  75. package/dist/types/element/src/zindex.d.ts +7 -0
  76. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -103
  77. package/dist/types/excalidraw/actions/actionAlign.d.ts +15 -15
  78. package/dist/types/excalidraw/actions/actionBoundText.d.ts +64 -74
  79. package/dist/types/excalidraw/actions/actionCanvas.d.ts +608 -497
  80. package/dist/types/excalidraw/actions/actionClipboard.d.ts +188 -218
  81. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -36
  82. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +89 -104
  83. package/dist/types/excalidraw/actions/actionDistribute.d.ts +7 -7
  84. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +5 -9
  85. package/dist/types/excalidraw/actions/actionElementLink.d.ts +34 -39
  86. package/dist/types/excalidraw/actions/actionElementLock.d.ts +65 -76
  87. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +31 -46
  88. package/dist/types/excalidraw/actions/actionExport.d.ts +342 -387
  89. package/dist/types/excalidraw/actions/actionFinalize.d.ts +52 -62
  90. package/dist/types/excalidraw/actions/actionFlip.d.ts +7 -7
  91. package/dist/types/excalidraw/actions/actionFrame.d.ts +234 -254
  92. package/dist/types/excalidraw/actions/actionGroup.d.ts +65 -75
  93. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  94. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +32 -37
  95. package/dist/types/excalidraw/actions/actionLink.d.ts +34 -39
  96. package/dist/types/excalidraw/actions/actionMenu.d.ts +91 -106
  97. package/dist/types/excalidraw/actions/actionNavigate.d.ts +59 -69
  98. package/dist/types/excalidraw/actions/actionProperties.d.ts +396 -471
  99. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +33 -38
  100. package/dist/types/excalidraw/actions/actionStyles.d.ts +37 -42
  101. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  102. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -38
  103. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +33 -38
  104. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +32 -209
  105. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  106. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -38
  107. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -39
  108. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -39
  109. package/dist/types/excalidraw/actions/actionZindex.d.ts +16 -16
  110. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  111. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  112. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  113. package/dist/types/excalidraw/actions/types.d.ts +5 -5
  114. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  115. package/dist/types/excalidraw/appState.d.ts +34 -33
  116. package/dist/types/excalidraw/charts.d.ts +1 -1
  117. package/dist/types/excalidraw/clipboard.d.ts +7 -7
  118. package/dist/types/excalidraw/components/Actions.d.ts +3 -3
  119. package/dist/types/excalidraw/components/App.d.ts +38 -20
  120. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  121. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -1
  122. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
  123. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  124. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  125. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  126. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
  128. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  129. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  130. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  131. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  132. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +49 -0
  133. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  134. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  135. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  136. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  137. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  138. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  139. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  140. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  141. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  142. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  143. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  144. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  145. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  146. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  147. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  148. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  149. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  150. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  151. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  152. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  153. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  154. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  155. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  156. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  157. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  158. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  159. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  160. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  161. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  162. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  163. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  164. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  165. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  166. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  167. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  168. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  169. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  170. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +3 -3
  171. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  172. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  173. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  174. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  175. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  176. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  177. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  178. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  179. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  180. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  181. package/dist/types/excalidraw/components/TextField.d.ts +1 -1
  182. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  183. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  185. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  186. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  187. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  188. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  192. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  193. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  194. package/dist/types/excalidraw/components/icons.d.ts +2 -1
  195. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  196. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  197. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  198. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  199. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  200. package/dist/types/excalidraw/data/blob.d.ts +4 -4
  201. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  202. package/dist/types/excalidraw/data/index.d.ts +2 -2
  203. package/dist/types/excalidraw/data/json.d.ts +1 -1
  204. package/dist/types/excalidraw/data/library.d.ts +3 -3
  205. package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
  206. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  207. package/dist/types/excalidraw/data/restore.d.ts +1 -1
  208. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  209. package/dist/types/excalidraw/data/types.d.ts +3 -3
  210. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  211. package/dist/types/excalidraw/eraser/index.d.ts +14 -0
  212. package/dist/types/excalidraw/errors.d.ts +0 -3
  213. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  214. package/dist/types/excalidraw/history.d.ts +15 -23
  215. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  216. package/dist/types/excalidraw/i18n.d.ts +1 -1
  217. package/dist/types/excalidraw/index.d.ts +16 -15
  218. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  219. package/dist/types/excalidraw/lasso/index.d.ts +15 -0
  220. package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
  221. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  222. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  223. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -3
  224. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  225. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  226. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  227. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  228. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  229. package/dist/types/excalidraw/snapping.d.ts +5 -6
  230. package/dist/types/excalidraw/types.d.ts +31 -18
  231. package/dist/types/excalidraw/visualdebug.d.ts +2 -2
  232. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  233. package/dist/types/math/{curve.d.ts → src/curve.d.ts} +2 -0
  234. package/dist/types/math/{point.d.ts → src/point.d.ts} +2 -2
  235. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  236. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  237. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  238. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +4 -0
  239. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  240. package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
  241. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  242. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  243. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  244. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  245. package/history.ts +70 -94
  246. package/package.json +16 -4
  247. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  248. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  249. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  250. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  251. package/dist/prod/chunk-36CXSE6H.js +0 -34
  252. package/dist/prod/chunk-EIO257PC.js +0 -86
  253. package/dist/prod/data/image-N4WCURRR.js +0 -1
  254. package/dist/types/excalidraw/align.d.ts +0 -7
  255. package/dist/types/excalidraw/element/index.d.ts +0 -26
  256. package/dist/types/excalidraw/shapes.d.ts +0 -85
  257. package/dist/types/excalidraw/store.d.ts +0 -129
  258. package/dist/types/excalidraw/zindex.d.ts +0 -6
  259. package/dist/dev/data/{image-V26YBSDB.js.map → image-AYLHSOBV.js.map} +0 -0
  260. package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-E3O5XSXJ.js.map} +0 -0
  261. package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  262. package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  263. package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  264. package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  265. package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  266. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  267. package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  268. package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  269. package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  270. package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  271. package/dist/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
  272. /package/dist/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
  273. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  274. /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
  275. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  276. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  277. /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  278. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  279. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- import type { Theme } from "../element/types";
2
+ import type { Theme } from "@excalidraw/element/types";
3
3
  import "../components/ToolIcon.scss";
4
4
  export declare const actionChangeProjectName: {
5
5
  name: "changeProjectName";
6
6
  label: string;
7
7
  trackEvent: false;
8
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
8
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
9
9
  appState: {
10
10
  name: any;
11
11
  contextMenu: {
@@ -17,17 +17,17 @@ export declare const actionChangeProjectName: {
17
17
  isLoading: boolean;
18
18
  errorMessage: import("react").ReactNode;
19
19
  activeEmbeddable: {
20
- element: import("../element/types").NonDeletedExcalidrawElement;
21
- state: "hover" | "active";
20
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
+ state: "active" | "hover";
22
22
  } | null;
23
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
23
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
27
  isBindingEnabled: boolean;
28
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("../element/binding").SuggestedBinding[];
30
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
28
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
30
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
31
  frameRendering: {
32
32
  enabled: boolean;
33
33
  name: boolean;
@@ -35,12 +35,13 @@ export declare const actionChangeProjectName: {
35
35
  clip: boolean;
36
36
  };
37
37
  editingFrame: string | null;
38
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
38
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
41
41
  activeTool: {
42
42
  lastActiveTool: import("../types").ActiveTool | null;
43
43
  locked: boolean;
44
+ fromSelection: boolean;
44
45
  } & import("../types").ActiveTool;
45
46
  penMode: boolean;
46
47
  penDetected: boolean;
@@ -50,18 +51,18 @@ export declare const actionChangeProjectName: {
50
51
  exportScale: number;
51
52
  currentItemStrokeColor: string;
52
53
  currentItemBackgroundColor: string;
53
- currentItemFillStyle: import("../element/types").FillStyle;
54
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
54
55
  currentItemStrokeWidth: number;
55
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
56
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
56
57
  currentItemRoughness: number;
57
58
  currentItemOpacity: number;
58
59
  currentItemFontFamily: number;
59
60
  currentItemFontSize: number;
60
61
  currentItemTextAlign: string;
61
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
62
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
62
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
64
  currentHoveredFontFamily: number | null;
64
- currentItemRoundness: import("../element/types").StrokeRoundness;
65
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
65
66
  currentItemArrowType: "round" | "sharp" | "elbow";
66
67
  viewBackgroundColor: string;
67
68
  scrollX: number;
@@ -83,7 +84,7 @@ export declare const actionChangeProjectName: {
83
84
  name: "imageExport" | "help" | "jsonExport";
84
85
  } | {
85
86
  name: "ttd";
86
- tab: "text-to-diagram" | "mermaid";
87
+ tab: "mermaid" | "text-to-diagram";
87
88
  } | {
88
89
  name: "commandPalette";
89
90
  } | {
@@ -91,7 +92,7 @@ export declare const actionChangeProjectName: {
91
92
  sourceElementId: string;
92
93
  } | null;
93
94
  defaultSidebarDockedPreference: boolean;
94
- lastPointerDownWith: import("../element/types").PointerType;
95
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
95
96
  selectedElementIds: Readonly<{
96
97
  [id: string]: true;
97
98
  }>;
@@ -130,7 +131,7 @@ export declare const actionChangeProjectName: {
130
131
  [id: string]: true;
131
132
  }> | undefined;
132
133
  username?: string | null | undefined;
133
- userState?: import("../constants").UserIdleState | undefined;
134
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
134
135
  color?: {
135
136
  background: string;
136
137
  stroke: string;
@@ -147,7 +148,7 @@ export declare const actionChangeProjectName: {
147
148
  open: boolean;
148
149
  panels: number;
149
150
  };
150
- currentChartType: import("../element/types").ChartType;
151
+ currentChartType: import("@excalidraw/element/types").ChartType;
151
152
  pasteDialog: {
152
153
  shown: false;
153
154
  data: null;
@@ -156,8 +157,8 @@ export declare const actionChangeProjectName: {
156
157
  data: import("../charts").Spreadsheet;
157
158
  };
158
159
  pendingImageElementId: string | null;
159
- showHyperlinkPopup: false | "info" | "editor";
160
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
160
+ showHyperlinkPopup: false | "editor" | "info";
161
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
161
162
  snapLines: readonly import("../snapping").SnapLine[];
162
163
  originSnapOffset: {
163
164
  x: number;
@@ -168,16 +169,10 @@ export declare const actionChangeProjectName: {
168
169
  followedBy: Set<import("../types").SocketId>;
169
170
  isCropping: boolean;
170
171
  croppingElementId: string | null;
171
- searchMatches: readonly {
172
- id: string;
173
- focus: boolean;
174
- matchedLines: {
175
- offsetX: number;
176
- offsetY: number;
177
- width: number;
178
- height: number;
179
- }[];
180
- }[];
172
+ searchMatches: Readonly<{
173
+ focusedId: string | null;
174
+ matches: readonly import("../types").SearchMatch[];
175
+ }> | null;
181
176
  };
182
177
  captureUpdate: "EVENTUALLY";
183
178
  };
@@ -192,7 +187,7 @@ export declare const actionChangeExportScale: {
192
187
  category: "export";
193
188
  action: string;
194
189
  };
195
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
190
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
196
191
  appState: {
197
192
  exportScale: any;
198
193
  contextMenu: {
@@ -204,17 +199,17 @@ export declare const actionChangeExportScale: {
204
199
  isLoading: boolean;
205
200
  errorMessage: import("react").ReactNode;
206
201
  activeEmbeddable: {
207
- element: import("../element/types").NonDeletedExcalidrawElement;
208
- state: "hover" | "active";
202
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
203
+ state: "active" | "hover";
209
204
  } | null;
210
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
211
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
212
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
213
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
205
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
206
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
207
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
208
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
209
  isBindingEnabled: boolean;
215
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
216
- suggestedBindings: import("../element/binding").SuggestedBinding[];
217
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
210
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
211
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
212
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
218
213
  frameRendering: {
219
214
  enabled: boolean;
220
215
  name: boolean;
@@ -222,12 +217,13 @@ export declare const actionChangeExportScale: {
222
217
  clip: boolean;
223
218
  };
224
219
  editingFrame: string | null;
225
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
226
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
227
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
220
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
221
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
228
223
  activeTool: {
229
224
  lastActiveTool: import("../types").ActiveTool | null;
230
225
  locked: boolean;
226
+ fromSelection: boolean;
231
227
  } & import("../types").ActiveTool;
232
228
  penMode: boolean;
233
229
  penDetected: boolean;
@@ -236,18 +232,18 @@ export declare const actionChangeExportScale: {
236
232
  exportWithDarkMode: boolean;
237
233
  currentItemStrokeColor: string;
238
234
  currentItemBackgroundColor: string;
239
- currentItemFillStyle: import("../element/types").FillStyle;
235
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
240
236
  currentItemStrokeWidth: number;
241
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
237
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
242
238
  currentItemRoughness: number;
243
239
  currentItemOpacity: number;
244
240
  currentItemFontFamily: number;
245
241
  currentItemFontSize: number;
246
242
  currentItemTextAlign: string;
247
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
248
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
243
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
244
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
249
245
  currentHoveredFontFamily: number | null;
250
- currentItemRoundness: import("../element/types").StrokeRoundness;
246
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
251
247
  currentItemArrowType: "round" | "sharp" | "elbow";
252
248
  viewBackgroundColor: string;
253
249
  scrollX: number;
@@ -270,7 +266,7 @@ export declare const actionChangeExportScale: {
270
266
  name: "imageExport" | "help" | "jsonExport";
271
267
  } | {
272
268
  name: "ttd";
273
- tab: "text-to-diagram" | "mermaid";
269
+ tab: "mermaid" | "text-to-diagram";
274
270
  } | {
275
271
  name: "commandPalette";
276
272
  } | {
@@ -278,7 +274,7 @@ export declare const actionChangeExportScale: {
278
274
  sourceElementId: string;
279
275
  } | null;
280
276
  defaultSidebarDockedPreference: boolean;
281
- lastPointerDownWith: import("../element/types").PointerType;
277
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
282
278
  selectedElementIds: Readonly<{
283
279
  [id: string]: true;
284
280
  }>;
@@ -317,7 +313,7 @@ export declare const actionChangeExportScale: {
317
313
  [id: string]: true;
318
314
  }> | undefined;
319
315
  username?: string | null | undefined;
320
- userState?: import("../constants").UserIdleState | undefined;
316
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
321
317
  color?: {
322
318
  background: string;
323
319
  stroke: string;
@@ -334,7 +330,7 @@ export declare const actionChangeExportScale: {
334
330
  open: boolean;
335
331
  panels: number;
336
332
  };
337
- currentChartType: import("../element/types").ChartType;
333
+ currentChartType: import("@excalidraw/element/types").ChartType;
338
334
  pasteDialog: {
339
335
  shown: false;
340
336
  data: null;
@@ -343,8 +339,8 @@ export declare const actionChangeExportScale: {
343
339
  data: import("../charts").Spreadsheet;
344
340
  };
345
341
  pendingImageElementId: string | null;
346
- showHyperlinkPopup: false | "info" | "editor";
347
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
342
+ showHyperlinkPopup: false | "editor" | "info";
343
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
348
344
  snapLines: readonly import("../snapping").SnapLine[];
349
345
  originSnapOffset: {
350
346
  x: number;
@@ -355,16 +351,10 @@ export declare const actionChangeExportScale: {
355
351
  followedBy: Set<import("../types").SocketId>;
356
352
  isCropping: boolean;
357
353
  croppingElementId: string | null;
358
- searchMatches: readonly {
359
- id: string;
360
- focus: boolean;
361
- matchedLines: {
362
- offsetX: number;
363
- offsetY: number;
364
- width: number;
365
- height: number;
366
- }[];
367
- }[];
354
+ searchMatches: Readonly<{
355
+ focusedId: string | null;
356
+ matches: readonly import("../types").SearchMatch[];
357
+ }> | null;
368
358
  };
369
359
  captureUpdate: "EVENTUALLY";
370
360
  };
@@ -379,7 +369,7 @@ export declare const actionChangeExportBackground: {
379
369
  category: "export";
380
370
  action: string;
381
371
  };
382
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
372
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
383
373
  appState: {
384
374
  exportBackground: any;
385
375
  contextMenu: {
@@ -391,17 +381,17 @@ export declare const actionChangeExportBackground: {
391
381
  isLoading: boolean;
392
382
  errorMessage: import("react").ReactNode;
393
383
  activeEmbeddable: {
394
- element: import("../element/types").NonDeletedExcalidrawElement;
395
- state: "hover" | "active";
384
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
385
+ state: "active" | "hover";
396
386
  } | null;
397
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
398
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
399
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
400
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
387
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
388
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
389
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
390
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
401
391
  isBindingEnabled: boolean;
402
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
403
- suggestedBindings: import("../element/binding").SuggestedBinding[];
404
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
392
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
393
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
394
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
405
395
  frameRendering: {
406
396
  enabled: boolean;
407
397
  name: boolean;
@@ -409,12 +399,13 @@ export declare const actionChangeExportBackground: {
409
399
  clip: boolean;
410
400
  };
411
401
  editingFrame: string | null;
412
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
413
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
414
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
402
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
403
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
404
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
415
405
  activeTool: {
416
406
  lastActiveTool: import("../types").ActiveTool | null;
417
407
  locked: boolean;
408
+ fromSelection: boolean;
418
409
  } & import("../types").ActiveTool;
419
410
  penMode: boolean;
420
411
  penDetected: boolean;
@@ -423,18 +414,18 @@ export declare const actionChangeExportBackground: {
423
414
  exportScale: number;
424
415
  currentItemStrokeColor: string;
425
416
  currentItemBackgroundColor: string;
426
- currentItemFillStyle: import("../element/types").FillStyle;
417
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
427
418
  currentItemStrokeWidth: number;
428
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
419
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
429
420
  currentItemRoughness: number;
430
421
  currentItemOpacity: number;
431
422
  currentItemFontFamily: number;
432
423
  currentItemFontSize: number;
433
424
  currentItemTextAlign: string;
434
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
435
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
425
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
426
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
436
427
  currentHoveredFontFamily: number | null;
437
- currentItemRoundness: import("../element/types").StrokeRoundness;
428
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
438
429
  currentItemArrowType: "round" | "sharp" | "elbow";
439
430
  viewBackgroundColor: string;
440
431
  scrollX: number;
@@ -457,7 +448,7 @@ export declare const actionChangeExportBackground: {
457
448
  name: "imageExport" | "help" | "jsonExport";
458
449
  } | {
459
450
  name: "ttd";
460
- tab: "text-to-diagram" | "mermaid";
451
+ tab: "mermaid" | "text-to-diagram";
461
452
  } | {
462
453
  name: "commandPalette";
463
454
  } | {
@@ -465,7 +456,7 @@ export declare const actionChangeExportBackground: {
465
456
  sourceElementId: string;
466
457
  } | null;
467
458
  defaultSidebarDockedPreference: boolean;
468
- lastPointerDownWith: import("../element/types").PointerType;
459
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
469
460
  selectedElementIds: Readonly<{
470
461
  [id: string]: true;
471
462
  }>;
@@ -504,7 +495,7 @@ export declare const actionChangeExportBackground: {
504
495
  [id: string]: true;
505
496
  }> | undefined;
506
497
  username?: string | null | undefined;
507
- userState?: import("../constants").UserIdleState | undefined;
498
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
508
499
  color?: {
509
500
  background: string;
510
501
  stroke: string;
@@ -521,7 +512,7 @@ export declare const actionChangeExportBackground: {
521
512
  open: boolean;
522
513
  panels: number;
523
514
  };
524
- currentChartType: import("../element/types").ChartType;
515
+ currentChartType: import("@excalidraw/element/types").ChartType;
525
516
  pasteDialog: {
526
517
  shown: false;
527
518
  data: null;
@@ -530,8 +521,8 @@ export declare const actionChangeExportBackground: {
530
521
  data: import("../charts").Spreadsheet;
531
522
  };
532
523
  pendingImageElementId: string | null;
533
- showHyperlinkPopup: false | "info" | "editor";
534
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
524
+ showHyperlinkPopup: false | "editor" | "info";
525
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
535
526
  snapLines: readonly import("../snapping").SnapLine[];
536
527
  originSnapOffset: {
537
528
  x: number;
@@ -542,16 +533,10 @@ export declare const actionChangeExportBackground: {
542
533
  followedBy: Set<import("../types").SocketId>;
543
534
  isCropping: boolean;
544
535
  croppingElementId: string | null;
545
- searchMatches: readonly {
546
- id: string;
547
- focus: boolean;
548
- matchedLines: {
549
- offsetX: number;
550
- offsetY: number;
551
- width: number;
552
- height: number;
553
- }[];
554
- }[];
536
+ searchMatches: Readonly<{
537
+ focusedId: string | null;
538
+ matches: readonly import("../types").SearchMatch[];
539
+ }> | null;
555
540
  };
556
541
  captureUpdate: "EVENTUALLY";
557
542
  };
@@ -566,7 +551,7 @@ export declare const actionChangeExportEmbedScene: {
566
551
  category: "export";
567
552
  action: string;
568
553
  };
569
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
554
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
570
555
  appState: {
571
556
  exportEmbedScene: any;
572
557
  contextMenu: {
@@ -578,17 +563,17 @@ export declare const actionChangeExportEmbedScene: {
578
563
  isLoading: boolean;
579
564
  errorMessage: import("react").ReactNode;
580
565
  activeEmbeddable: {
581
- element: import("../element/types").NonDeletedExcalidrawElement;
582
- state: "hover" | "active";
566
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
567
+ state: "active" | "hover";
583
568
  } | null;
584
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
585
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
586
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
587
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
569
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
570
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
571
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
572
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
588
573
  isBindingEnabled: boolean;
589
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
590
- suggestedBindings: import("../element/binding").SuggestedBinding[];
591
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
574
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
575
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
576
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
592
577
  frameRendering: {
593
578
  enabled: boolean;
594
579
  name: boolean;
@@ -596,12 +581,13 @@ export declare const actionChangeExportEmbedScene: {
596
581
  clip: boolean;
597
582
  };
598
583
  editingFrame: string | null;
599
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
600
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
601
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
584
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
585
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
586
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
602
587
  activeTool: {
603
588
  lastActiveTool: import("../types").ActiveTool | null;
604
589
  locked: boolean;
590
+ fromSelection: boolean;
605
591
  } & import("../types").ActiveTool;
606
592
  penMode: boolean;
607
593
  penDetected: boolean;
@@ -610,18 +596,18 @@ export declare const actionChangeExportEmbedScene: {
610
596
  exportScale: number;
611
597
  currentItemStrokeColor: string;
612
598
  currentItemBackgroundColor: string;
613
- currentItemFillStyle: import("../element/types").FillStyle;
599
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
614
600
  currentItemStrokeWidth: number;
615
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
601
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
616
602
  currentItemRoughness: number;
617
603
  currentItemOpacity: number;
618
604
  currentItemFontFamily: number;
619
605
  currentItemFontSize: number;
620
606
  currentItemTextAlign: string;
621
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
622
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
607
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
608
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
623
609
  currentHoveredFontFamily: number | null;
624
- currentItemRoundness: import("../element/types").StrokeRoundness;
610
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
625
611
  currentItemArrowType: "round" | "sharp" | "elbow";
626
612
  viewBackgroundColor: string;
627
613
  scrollX: number;
@@ -644,7 +630,7 @@ export declare const actionChangeExportEmbedScene: {
644
630
  name: "imageExport" | "help" | "jsonExport";
645
631
  } | {
646
632
  name: "ttd";
647
- tab: "text-to-diagram" | "mermaid";
633
+ tab: "mermaid" | "text-to-diagram";
648
634
  } | {
649
635
  name: "commandPalette";
650
636
  } | {
@@ -652,7 +638,7 @@ export declare const actionChangeExportEmbedScene: {
652
638
  sourceElementId: string;
653
639
  } | null;
654
640
  defaultSidebarDockedPreference: boolean;
655
- lastPointerDownWith: import("../element/types").PointerType;
641
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
656
642
  selectedElementIds: Readonly<{
657
643
  [id: string]: true;
658
644
  }>;
@@ -691,7 +677,7 @@ export declare const actionChangeExportEmbedScene: {
691
677
  [id: string]: true;
692
678
  }> | undefined;
693
679
  username?: string | null | undefined;
694
- userState?: import("../constants").UserIdleState | undefined;
680
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
695
681
  color?: {
696
682
  background: string;
697
683
  stroke: string;
@@ -708,7 +694,7 @@ export declare const actionChangeExportEmbedScene: {
708
694
  open: boolean;
709
695
  panels: number;
710
696
  };
711
- currentChartType: import("../element/types").ChartType;
697
+ currentChartType: import("@excalidraw/element/types").ChartType;
712
698
  pasteDialog: {
713
699
  shown: false;
714
700
  data: null;
@@ -717,8 +703,8 @@ export declare const actionChangeExportEmbedScene: {
717
703
  data: import("../charts").Spreadsheet;
718
704
  };
719
705
  pendingImageElementId: string | null;
720
- showHyperlinkPopup: false | "info" | "editor";
721
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
706
+ showHyperlinkPopup: false | "editor" | "info";
707
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
722
708
  snapLines: readonly import("../snapping").SnapLine[];
723
709
  originSnapOffset: {
724
710
  x: number;
@@ -729,16 +715,10 @@ export declare const actionChangeExportEmbedScene: {
729
715
  followedBy: Set<import("../types").SocketId>;
730
716
  isCropping: boolean;
731
717
  croppingElementId: string | null;
732
- searchMatches: readonly {
733
- id: string;
734
- focus: boolean;
735
- matchedLines: {
736
- offsetX: number;
737
- offsetY: number;
738
- width: number;
739
- height: number;
740
- }[];
741
- }[];
718
+ searchMatches: Readonly<{
719
+ focusedId: string | null;
720
+ matches: readonly import("../types").SearchMatch[];
721
+ }> | null;
742
722
  };
743
723
  captureUpdate: "EVENTUALLY";
744
724
  };
@@ -753,8 +733,8 @@ export declare const actionSaveToActiveFile: {
753
733
  trackEvent: {
754
734
  category: "export";
755
735
  };
756
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
757
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
736
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
737
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
758
738
  captureUpdate: "EVENTUALLY";
759
739
  appState: {
760
740
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
@@ -770,17 +750,17 @@ export declare const actionSaveToActiveFile: {
770
750
  isLoading: boolean;
771
751
  errorMessage: import("react").ReactNode;
772
752
  activeEmbeddable: {
773
- element: import("../element/types").NonDeletedExcalidrawElement;
774
- state: "hover" | "active";
753
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
754
+ state: "active" | "hover";
775
755
  } | null;
776
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
777
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
778
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
779
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
756
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
757
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
758
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
759
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
780
760
  isBindingEnabled: boolean;
781
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
782
- suggestedBindings: import("../element/binding").SuggestedBinding[];
783
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
761
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
762
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
763
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
784
764
  frameRendering: {
785
765
  enabled: boolean;
786
766
  name: boolean;
@@ -788,12 +768,13 @@ export declare const actionSaveToActiveFile: {
788
768
  clip: boolean;
789
769
  };
790
770
  editingFrame: string | null;
791
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
792
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
793
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
771
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
772
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
773
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
794
774
  activeTool: {
795
775
  lastActiveTool: import("../types").ActiveTool | null;
796
776
  locked: boolean;
777
+ fromSelection: boolean;
797
778
  } & import("../types").ActiveTool;
798
779
  penMode: boolean;
799
780
  penDetected: boolean;
@@ -803,18 +784,18 @@ export declare const actionSaveToActiveFile: {
803
784
  exportScale: number;
804
785
  currentItemStrokeColor: string;
805
786
  currentItemBackgroundColor: string;
806
- currentItemFillStyle: import("../element/types").FillStyle;
787
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
807
788
  currentItemStrokeWidth: number;
808
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
789
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
809
790
  currentItemRoughness: number;
810
791
  currentItemOpacity: number;
811
792
  currentItemFontFamily: number;
812
793
  currentItemFontSize: number;
813
794
  currentItemTextAlign: string;
814
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
815
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
795
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
796
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
816
797
  currentHoveredFontFamily: number | null;
817
- currentItemRoundness: import("../element/types").StrokeRoundness;
798
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
818
799
  currentItemArrowType: "round" | "sharp" | "elbow";
819
800
  viewBackgroundColor: string;
820
801
  scrollX: number;
@@ -837,7 +818,7 @@ export declare const actionSaveToActiveFile: {
837
818
  name: "imageExport" | "help" | "jsonExport";
838
819
  } | {
839
820
  name: "ttd";
840
- tab: "text-to-diagram" | "mermaid";
821
+ tab: "mermaid" | "text-to-diagram";
841
822
  } | {
842
823
  name: "commandPalette";
843
824
  } | {
@@ -845,7 +826,7 @@ export declare const actionSaveToActiveFile: {
845
826
  sourceElementId: string;
846
827
  } | null;
847
828
  defaultSidebarDockedPreference: boolean;
848
- lastPointerDownWith: import("../element/types").PointerType;
829
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
849
830
  selectedElementIds: Readonly<{
850
831
  [id: string]: true;
851
832
  }>;
@@ -878,7 +859,7 @@ export declare const actionSaveToActiveFile: {
878
859
  [id: string]: true;
879
860
  }> | undefined;
880
861
  username?: string | null | undefined;
881
- userState?: import("../constants").UserIdleState | undefined;
862
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
882
863
  color?: {
883
864
  background: string;
884
865
  stroke: string;
@@ -895,7 +876,7 @@ export declare const actionSaveToActiveFile: {
895
876
  open: boolean;
896
877
  panels: number;
897
878
  };
898
- currentChartType: import("../element/types").ChartType;
879
+ currentChartType: import("@excalidraw/element/types").ChartType;
899
880
  pasteDialog: {
900
881
  shown: false;
901
882
  data: null;
@@ -904,8 +885,8 @@ export declare const actionSaveToActiveFile: {
904
885
  data: import("../charts").Spreadsheet;
905
886
  };
906
887
  pendingImageElementId: string | null;
907
- showHyperlinkPopup: false | "info" | "editor";
908
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
888
+ showHyperlinkPopup: false | "editor" | "info";
889
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
909
890
  snapLines: readonly import("../snapping").SnapLine[];
910
891
  originSnapOffset: {
911
892
  x: number;
@@ -916,24 +897,18 @@ export declare const actionSaveToActiveFile: {
916
897
  followedBy: Set<import("../types").SocketId>;
917
898
  isCropping: boolean;
918
899
  croppingElementId: string | null;
919
- searchMatches: readonly {
920
- id: string;
921
- focus: boolean;
922
- matchedLines: {
923
- offsetX: number;
924
- offsetY: number;
925
- width: number;
926
- height: number;
927
- }[];
928
- }[];
900
+ searchMatches: Readonly<{
901
+ focusedId: string | null;
902
+ matches: readonly import("../types").SearchMatch[];
903
+ }> | null;
929
904
  };
930
905
  } | {
931
906
  captureUpdate: "EVENTUALLY";
932
907
  appState?: undefined;
933
908
  }>;
934
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
909
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
935
910
  } & {
936
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
911
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
937
912
  };
938
913
  export declare const actionSaveFileToDisk: {
939
914
  name: "saveFileToDisk";
@@ -943,7 +918,7 @@ export declare const actionSaveFileToDisk: {
943
918
  trackEvent: {
944
919
  category: "export";
945
920
  };
946
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
921
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
947
922
  captureUpdate: "EVENTUALLY";
948
923
  appState: {
949
924
  openDialog: null;
@@ -960,17 +935,17 @@ export declare const actionSaveFileToDisk: {
960
935
  isLoading: boolean;
961
936
  errorMessage: import("react").ReactNode;
962
937
  activeEmbeddable: {
963
- element: import("../element/types").NonDeletedExcalidrawElement;
964
- state: "hover" | "active";
938
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
939
+ state: "active" | "hover";
965
940
  } | null;
966
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
967
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
968
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
969
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
941
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
942
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
943
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
944
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
970
945
  isBindingEnabled: boolean;
971
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
972
- suggestedBindings: import("../element/binding").SuggestedBinding[];
973
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
946
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
947
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
948
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
974
949
  frameRendering: {
975
950
  enabled: boolean;
976
951
  name: boolean;
@@ -978,12 +953,13 @@ export declare const actionSaveFileToDisk: {
978
953
  clip: boolean;
979
954
  };
980
955
  editingFrame: string | null;
981
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
982
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
983
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
956
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
957
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
958
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
984
959
  activeTool: {
985
960
  lastActiveTool: import("../types").ActiveTool | null;
986
961
  locked: boolean;
962
+ fromSelection: boolean;
987
963
  } & import("../types").ActiveTool;
988
964
  penMode: boolean;
989
965
  penDetected: boolean;
@@ -993,18 +969,18 @@ export declare const actionSaveFileToDisk: {
993
969
  exportScale: number;
994
970
  currentItemStrokeColor: string;
995
971
  currentItemBackgroundColor: string;
996
- currentItemFillStyle: import("../element/types").FillStyle;
972
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
997
973
  currentItemStrokeWidth: number;
998
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
974
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
999
975
  currentItemRoughness: number;
1000
976
  currentItemOpacity: number;
1001
977
  currentItemFontFamily: number;
1002
978
  currentItemFontSize: number;
1003
979
  currentItemTextAlign: string;
1004
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1005
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
980
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
981
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1006
982
  currentHoveredFontFamily: number | null;
1007
- currentItemRoundness: import("../element/types").StrokeRoundness;
983
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1008
984
  currentItemArrowType: "round" | "sharp" | "elbow";
1009
985
  viewBackgroundColor: string;
1010
986
  scrollX: number;
@@ -1024,7 +1000,7 @@ export declare const actionSaveFileToDisk: {
1024
1000
  tab?: string | undefined;
1025
1001
  } | null;
1026
1002
  defaultSidebarDockedPreference: boolean;
1027
- lastPointerDownWith: import("../element/types").PointerType;
1003
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1028
1004
  selectedElementIds: Readonly<{
1029
1005
  [id: string]: true;
1030
1006
  }>;
@@ -1057,7 +1033,7 @@ export declare const actionSaveFileToDisk: {
1057
1033
  [id: string]: true;
1058
1034
  }> | undefined;
1059
1035
  username?: string | null | undefined;
1060
- userState?: import("../constants").UserIdleState | undefined;
1036
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1061
1037
  color?: {
1062
1038
  background: string;
1063
1039
  stroke: string;
@@ -1074,7 +1050,7 @@ export declare const actionSaveFileToDisk: {
1074
1050
  open: boolean;
1075
1051
  panels: number;
1076
1052
  };
1077
- currentChartType: import("../element/types").ChartType;
1053
+ currentChartType: import("@excalidraw/element/types").ChartType;
1078
1054
  pasteDialog: {
1079
1055
  shown: false;
1080
1056
  data: null;
@@ -1083,8 +1059,8 @@ export declare const actionSaveFileToDisk: {
1083
1059
  data: import("../charts").Spreadsheet;
1084
1060
  };
1085
1061
  pendingImageElementId: string | null;
1086
- showHyperlinkPopup: false | "info" | "editor";
1087
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1062
+ showHyperlinkPopup: false | "editor" | "info";
1063
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1088
1064
  snapLines: readonly import("../snapping").SnapLine[];
1089
1065
  originSnapOffset: {
1090
1066
  x: number;
@@ -1095,25 +1071,19 @@ export declare const actionSaveFileToDisk: {
1095
1071
  followedBy: Set<import("../types").SocketId>;
1096
1072
  isCropping: boolean;
1097
1073
  croppingElementId: string | null;
1098
- searchMatches: readonly {
1099
- id: string;
1100
- focus: boolean;
1101
- matchedLines: {
1102
- offsetX: number;
1103
- offsetY: number;
1104
- width: number;
1105
- height: number;
1106
- }[];
1107
- }[];
1074
+ searchMatches: Readonly<{
1075
+ focusedId: string | null;
1076
+ matches: readonly import("../types").SearchMatch[];
1077
+ }> | null;
1108
1078
  };
1109
1079
  } | {
1110
1080
  captureUpdate: "EVENTUALLY";
1111
1081
  appState?: undefined;
1112
1082
  }>;
1113
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1083
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1114
1084
  PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1115
1085
  } & {
1116
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1086
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1117
1087
  };
1118
1088
  export declare const actionLoadScene: {
1119
1089
  name: "loadScene";
@@ -1121,123 +1091,57 @@ export declare const actionLoadScene: {
1121
1091
  trackEvent: {
1122
1092
  category: "export";
1123
1093
  };
1124
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1125
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1126
- elements: import("../element/types").OrderedExcalidrawElement[];
1094
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1095
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1096
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1127
1097
  appState: {
1128
- viewModeEnabled: boolean;
1129
- zenModeEnabled: boolean;
1130
- gridModeEnabled: boolean;
1131
- objectsSnapModeEnabled: boolean;
1132
- theme: Theme;
1133
- name: string | null;
1134
- currentItemArrowType: "round" | "sharp" | "elbow";
1135
- contextMenu: {
1136
- items: import("../components/ContextMenu").ContextMenuItems;
1137
- top: number;
1138
- left: number;
1139
- } | null;
1140
- showWelcomeScreen: boolean;
1141
- isLoading: boolean;
1142
- errorMessage: import("react").ReactNode;
1143
- activeEmbeddable: {
1144
- element: import("../element/types").NonDeletedExcalidrawElement;
1145
- state: "hover" | "active";
1146
- } | null;
1147
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1148
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1149
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1150
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1151
- isBindingEnabled: boolean;
1152
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1153
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1154
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1098
+ viewBackgroundColor: string;
1155
1099
  frameRendering: {
1156
1100
  enabled: boolean;
1157
1101
  name: boolean;
1158
1102
  outline: boolean;
1159
1103
  clip: boolean;
1160
1104
  };
1161
- editingFrame: string | null;
1162
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1163
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1164
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1165
- activeTool: {
1166
- lastActiveTool: import("../types").ActiveTool | null;
1167
- locked: boolean;
1168
- } & import("../types").ActiveTool;
1169
- penMode: boolean;
1170
- penDetected: boolean;
1171
- exportBackground: boolean;
1172
- exportEmbedScene: boolean;
1173
- exportWithDarkMode: boolean;
1174
- exportScale: number;
1175
- currentItemStrokeColor: string;
1176
- currentItemBackgroundColor: string;
1177
- currentItemFillStyle: import("../element/types").FillStyle;
1178
- currentItemStrokeWidth: number;
1179
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1180
- currentItemRoughness: number;
1181
- currentItemOpacity: number;
1182
- currentItemFontFamily: number;
1183
- currentItemFontSize: number;
1184
- currentItemTextAlign: string;
1185
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1186
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1187
- currentHoveredFontFamily: number | null;
1188
- currentItemRoundness: import("../element/types").StrokeRoundness;
1189
- viewBackgroundColor: string;
1190
- scrollX: number;
1191
- scrollY: number;
1192
- cursorButton: "up" | "down";
1193
- scrolledOutside: boolean;
1194
- isResizing: boolean;
1195
- isRotating: boolean;
1105
+ name: string | null;
1196
1106
  zoom: Readonly<{
1197
1107
  value: import("../types").NormalizedZoomValue;
1198
1108
  }>;
1199
- openMenu: "canvas" | "shape" | null;
1200
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1201
- openSidebar: {
1202
- name: string;
1203
- tab?: string | undefined;
1204
- } | null;
1109
+ scrollX: number;
1110
+ scrollY: number;
1111
+ viewModeEnabled: boolean;
1205
1112
  openDialog: {
1206
1113
  name: "imageExport" | "help" | "jsonExport";
1207
1114
  } | {
1208
1115
  name: "ttd";
1209
- tab: "text-to-diagram" | "mermaid";
1116
+ tab: "mermaid" | "text-to-diagram";
1210
1117
  } | {
1211
1118
  name: "commandPalette";
1212
1119
  } | {
1213
1120
  name: "elementLinkSelector";
1214
1121
  sourceElementId: string;
1215
1122
  } | null;
1216
- defaultSidebarDockedPreference: boolean;
1217
- lastPointerDownWith: import("../element/types").PointerType;
1123
+ editingGroupId: string | null;
1218
1124
  selectedElementIds: Readonly<{
1219
1125
  [id: string]: true;
1220
1126
  }>;
1221
- hoveredElementIds: Readonly<{
1222
- [id: string]: true;
1223
- }>;
1224
- previousSelectedElementIds: {
1225
- [id: string]: true;
1226
- };
1227
- selectedElementsAreBeingDragged: boolean;
1228
- shouldCacheIgnoreZoom: boolean;
1229
- toast: {
1230
- message: string;
1231
- closable?: boolean | undefined;
1232
- duration?: number | undefined;
1127
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1128
+ theme: Theme;
1129
+ pendingImageElementId: string | null;
1130
+ activeEmbeddable: {
1131
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1132
+ state: "active" | "hover";
1233
1133
  } | null;
1234
- gridSize: number;
1235
- gridStep: number;
1134
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1135
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1236
1136
  selectedGroupIds: {
1237
1137
  [groupId: string]: boolean;
1238
1138
  };
1239
- editingGroupId: string | null;
1240
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1139
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1140
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1141
+ isBindingEnabled: boolean;
1142
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1143
+ isRotating: boolean;
1144
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1241
1145
  collaborators: Map<import("../types").SocketId, Readonly<{
1242
1146
  pointer?: import("../types").CollaboratorPointer | undefined;
1243
1147
  button?: "up" | "down" | undefined;
@@ -1245,7 +1149,7 @@ export declare const actionLoadScene: {
1245
1149
  [id: string]: true;
1246
1150
  }> | undefined;
1247
1151
  username?: string | null | undefined;
1248
- userState?: import("../constants").UserIdleState | undefined;
1152
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1249
1153
  color?: {
1250
1154
  background: string;
1251
1155
  stroke: string;
@@ -1258,11 +1162,87 @@ export declare const actionLoadScene: {
1258
1162
  isSpeaking?: boolean | undefined;
1259
1163
  isMuted?: boolean | undefined;
1260
1164
  }>>;
1165
+ snapLines: readonly import("../snapping").SnapLine[];
1166
+ zenModeEnabled: boolean;
1167
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1168
+ isCropping: boolean;
1169
+ croppingElementId: string | null;
1170
+ searchMatches: Readonly<{
1171
+ focusedId: string | null;
1172
+ matches: readonly import("../types").SearchMatch[];
1173
+ }> | null;
1174
+ activeTool: {
1175
+ lastActiveTool: import("../types").ActiveTool | null;
1176
+ locked: boolean;
1177
+ fromSelection: boolean;
1178
+ } & import("../types").ActiveTool;
1179
+ gridModeEnabled: boolean;
1180
+ objectsSnapModeEnabled: boolean;
1181
+ shouldCacheIgnoreZoom: boolean;
1182
+ exportScale: number;
1183
+ selectedElementsAreBeingDragged: boolean;
1184
+ gridSize: number;
1185
+ gridStep: number;
1186
+ currentHoveredFontFamily: number | null;
1187
+ hoveredElementIds: Readonly<{
1188
+ [id: string]: true;
1189
+ }>;
1190
+ contextMenu: {
1191
+ items: import("../components/ContextMenu").ContextMenuItems;
1192
+ top: number;
1193
+ left: number;
1194
+ } | null;
1195
+ showWelcomeScreen: boolean;
1196
+ isLoading: boolean;
1197
+ errorMessage: import("react").ReactNode;
1198
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1199
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1200
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1201
+ editingFrame: string | null;
1202
+ penMode: boolean;
1203
+ penDetected: boolean;
1204
+ exportBackground: boolean;
1205
+ exportEmbedScene: boolean;
1206
+ exportWithDarkMode: boolean;
1207
+ currentItemStrokeColor: string;
1208
+ currentItemBackgroundColor: string;
1209
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1210
+ currentItemStrokeWidth: number;
1211
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1212
+ currentItemRoughness: number;
1213
+ currentItemOpacity: number;
1214
+ currentItemFontFamily: number;
1215
+ currentItemFontSize: number;
1216
+ currentItemTextAlign: string;
1217
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1218
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1219
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1220
+ currentItemArrowType: "round" | "sharp" | "elbow";
1221
+ cursorButton: "up" | "down";
1222
+ scrolledOutside: boolean;
1223
+ isResizing: boolean;
1224
+ openMenu: "canvas" | "shape" | null;
1225
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1226
+ openSidebar: {
1227
+ name: string;
1228
+ tab?: string | undefined;
1229
+ } | null;
1230
+ defaultSidebarDockedPreference: boolean;
1231
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1232
+ previousSelectedElementIds: {
1233
+ [id: string]: true;
1234
+ };
1235
+ toast: {
1236
+ message: string;
1237
+ closable?: boolean | undefined;
1238
+ duration?: number | undefined;
1239
+ } | null;
1240
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1261
1241
  stats: {
1262
1242
  open: boolean;
1263
1243
  panels: number;
1264
1244
  };
1265
- currentChartType: import("../element/types").ChartType;
1245
+ currentChartType: import("@excalidraw/element/types").ChartType;
1266
1246
  pasteDialog: {
1267
1247
  shown: false;
1268
1248
  data: null;
@@ -1270,33 +1250,18 @@ export declare const actionLoadScene: {
1270
1250
  shown: true;
1271
1251
  data: import("../charts").Spreadsheet;
1272
1252
  };
1273
- pendingImageElementId: string | null;
1274
- showHyperlinkPopup: false | "info" | "editor";
1275
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1276
- snapLines: readonly import("../snapping").SnapLine[];
1253
+ showHyperlinkPopup: false | "editor" | "info";
1277
1254
  originSnapOffset: {
1278
1255
  x: number;
1279
1256
  y: number;
1280
1257
  } | null;
1281
1258
  userToFollow: import("../types").UserToFollow | null;
1282
1259
  followedBy: Set<import("../types").SocketId>;
1283
- isCropping: boolean;
1284
- croppingElementId: string | null;
1285
- searchMatches: readonly {
1286
- id: string;
1287
- focus: boolean;
1288
- matchedLines: {
1289
- offsetX: number;
1290
- offsetY: number;
1291
- width: number;
1292
- height: number;
1293
- }[];
1294
- }[];
1295
1260
  };
1296
1261
  files: import("../types").BinaryFiles;
1297
1262
  captureUpdate: "IMMEDIATELY";
1298
1263
  } | {
1299
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
1264
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
1300
1265
  appState: {
1301
1266
  errorMessage: any;
1302
1267
  contextMenu: {
@@ -1307,17 +1272,17 @@ export declare const actionLoadScene: {
1307
1272
  showWelcomeScreen: boolean;
1308
1273
  isLoading: boolean;
1309
1274
  activeEmbeddable: {
1310
- element: import("../element/types").NonDeletedExcalidrawElement;
1311
- state: "hover" | "active";
1275
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1276
+ state: "active" | "hover";
1312
1277
  } | null;
1313
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1314
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1315
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1316
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1278
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1279
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1280
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1281
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1317
1282
  isBindingEnabled: boolean;
1318
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1319
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1320
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1283
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1284
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1285
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1321
1286
  frameRendering: {
1322
1287
  enabled: boolean;
1323
1288
  name: boolean;
@@ -1325,12 +1290,13 @@ export declare const actionLoadScene: {
1325
1290
  clip: boolean;
1326
1291
  };
1327
1292
  editingFrame: string | null;
1328
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1329
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1330
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1293
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1294
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1295
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1331
1296
  activeTool: {
1332
1297
  lastActiveTool: import("../types").ActiveTool | null;
1333
1298
  locked: boolean;
1299
+ fromSelection: boolean;
1334
1300
  } & import("../types").ActiveTool;
1335
1301
  penMode: boolean;
1336
1302
  penDetected: boolean;
@@ -1340,18 +1306,18 @@ export declare const actionLoadScene: {
1340
1306
  exportScale: number;
1341
1307
  currentItemStrokeColor: string;
1342
1308
  currentItemBackgroundColor: string;
1343
- currentItemFillStyle: import("../element/types").FillStyle;
1309
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1344
1310
  currentItemStrokeWidth: number;
1345
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1311
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1346
1312
  currentItemRoughness: number;
1347
1313
  currentItemOpacity: number;
1348
1314
  currentItemFontFamily: number;
1349
1315
  currentItemFontSize: number;
1350
1316
  currentItemTextAlign: string;
1351
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1352
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1317
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1318
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1353
1319
  currentHoveredFontFamily: number | null;
1354
- currentItemRoundness: import("../element/types").StrokeRoundness;
1320
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1355
1321
  currentItemArrowType: "round" | "sharp" | "elbow";
1356
1322
  viewBackgroundColor: string;
1357
1323
  scrollX: number;
@@ -1374,7 +1340,7 @@ export declare const actionLoadScene: {
1374
1340
  name: "imageExport" | "help" | "jsonExport";
1375
1341
  } | {
1376
1342
  name: "ttd";
1377
- tab: "text-to-diagram" | "mermaid";
1343
+ tab: "mermaid" | "text-to-diagram";
1378
1344
  } | {
1379
1345
  name: "commandPalette";
1380
1346
  } | {
@@ -1382,7 +1348,7 @@ export declare const actionLoadScene: {
1382
1348
  sourceElementId: string;
1383
1349
  } | null;
1384
1350
  defaultSidebarDockedPreference: boolean;
1385
- lastPointerDownWith: import("../element/types").PointerType;
1351
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1386
1352
  selectedElementIds: Readonly<{
1387
1353
  [id: string]: true;
1388
1354
  }>;
@@ -1421,7 +1387,7 @@ export declare const actionLoadScene: {
1421
1387
  [id: string]: true;
1422
1388
  }> | undefined;
1423
1389
  username?: string | null | undefined;
1424
- userState?: import("../constants").UserIdleState | undefined;
1390
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1425
1391
  color?: {
1426
1392
  background: string;
1427
1393
  stroke: string;
@@ -1438,7 +1404,7 @@ export declare const actionLoadScene: {
1438
1404
  open: boolean;
1439
1405
  panels: number;
1440
1406
  };
1441
- currentChartType: import("../element/types").ChartType;
1407
+ currentChartType: import("@excalidraw/element/types").ChartType;
1442
1408
  pasteDialog: {
1443
1409
  shown: false;
1444
1410
  data: null;
@@ -1447,8 +1413,8 @@ export declare const actionLoadScene: {
1447
1413
  data: import("../charts").Spreadsheet;
1448
1414
  };
1449
1415
  pendingImageElementId: string | null;
1450
- showHyperlinkPopup: false | "info" | "editor";
1451
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1416
+ showHyperlinkPopup: false | "editor" | "info";
1417
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1452
1418
  snapLines: readonly import("../snapping").SnapLine[];
1453
1419
  originSnapOffset: {
1454
1420
  x: number;
@@ -1459,23 +1425,17 @@ export declare const actionLoadScene: {
1459
1425
  followedBy: Set<import("../types").SocketId>;
1460
1426
  isCropping: boolean;
1461
1427
  croppingElementId: string | null;
1462
- searchMatches: readonly {
1463
- id: string;
1464
- focus: boolean;
1465
- matchedLines: {
1466
- offsetX: number;
1467
- offsetY: number;
1468
- width: number;
1469
- height: number;
1470
- }[];
1471
- }[];
1428
+ searchMatches: Readonly<{
1429
+ focusedId: string | null;
1430
+ matches: readonly import("../types").SearchMatch[];
1431
+ }> | null;
1472
1432
  };
1473
1433
  files: import("../types").BinaryFiles;
1474
1434
  captureUpdate: "EVENTUALLY";
1475
1435
  }>;
1476
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1436
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1477
1437
  } & {
1478
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1438
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1479
1439
  };
1480
1440
  export declare const actionExportWithDarkMode: {
1481
1441
  name: "exportWithDarkMode";
@@ -1484,7 +1444,7 @@ export declare const actionExportWithDarkMode: {
1484
1444
  category: "export";
1485
1445
  action: string;
1486
1446
  };
1487
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1447
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1488
1448
  appState: {
1489
1449
  exportWithDarkMode: any;
1490
1450
  contextMenu: {
@@ -1496,17 +1456,17 @@ export declare const actionExportWithDarkMode: {
1496
1456
  isLoading: boolean;
1497
1457
  errorMessage: import("react").ReactNode;
1498
1458
  activeEmbeddable: {
1499
- element: import("../element/types").NonDeletedExcalidrawElement;
1500
- state: "hover" | "active";
1459
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1460
+ state: "active" | "hover";
1501
1461
  } | null;
1502
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1503
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1504
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1505
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1462
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1463
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1464
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1465
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1506
1466
  isBindingEnabled: boolean;
1507
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1508
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1509
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1467
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1468
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1469
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1510
1470
  frameRendering: {
1511
1471
  enabled: boolean;
1512
1472
  name: boolean;
@@ -1514,12 +1474,13 @@ export declare const actionExportWithDarkMode: {
1514
1474
  clip: boolean;
1515
1475
  };
1516
1476
  editingFrame: string | null;
1517
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1518
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1519
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1477
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1478
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1479
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1520
1480
  activeTool: {
1521
1481
  lastActiveTool: import("../types").ActiveTool | null;
1522
1482
  locked: boolean;
1483
+ fromSelection: boolean;
1523
1484
  } & import("../types").ActiveTool;
1524
1485
  penMode: boolean;
1525
1486
  penDetected: boolean;
@@ -1528,18 +1489,18 @@ export declare const actionExportWithDarkMode: {
1528
1489
  exportScale: number;
1529
1490
  currentItemStrokeColor: string;
1530
1491
  currentItemBackgroundColor: string;
1531
- currentItemFillStyle: import("../element/types").FillStyle;
1492
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1532
1493
  currentItemStrokeWidth: number;
1533
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1494
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1534
1495
  currentItemRoughness: number;
1535
1496
  currentItemOpacity: number;
1536
1497
  currentItemFontFamily: number;
1537
1498
  currentItemFontSize: number;
1538
1499
  currentItemTextAlign: string;
1539
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1540
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1500
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1501
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1541
1502
  currentHoveredFontFamily: number | null;
1542
- currentItemRoundness: import("../element/types").StrokeRoundness;
1503
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1543
1504
  currentItemArrowType: "round" | "sharp" | "elbow";
1544
1505
  viewBackgroundColor: string;
1545
1506
  scrollX: number;
@@ -1562,7 +1523,7 @@ export declare const actionExportWithDarkMode: {
1562
1523
  name: "imageExport" | "help" | "jsonExport";
1563
1524
  } | {
1564
1525
  name: "ttd";
1565
- tab: "text-to-diagram" | "mermaid";
1526
+ tab: "mermaid" | "text-to-diagram";
1566
1527
  } | {
1567
1528
  name: "commandPalette";
1568
1529
  } | {
@@ -1570,7 +1531,7 @@ export declare const actionExportWithDarkMode: {
1570
1531
  sourceElementId: string;
1571
1532
  } | null;
1572
1533
  defaultSidebarDockedPreference: boolean;
1573
- lastPointerDownWith: import("../element/types").PointerType;
1534
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1574
1535
  selectedElementIds: Readonly<{
1575
1536
  [id: string]: true;
1576
1537
  }>;
@@ -1609,7 +1570,7 @@ export declare const actionExportWithDarkMode: {
1609
1570
  [id: string]: true;
1610
1571
  }> | undefined;
1611
1572
  username?: string | null | undefined;
1612
- userState?: import("../constants").UserIdleState | undefined;
1573
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1613
1574
  color?: {
1614
1575
  background: string;
1615
1576
  stroke: string;
@@ -1626,7 +1587,7 @@ export declare const actionExportWithDarkMode: {
1626
1587
  open: boolean;
1627
1588
  panels: number;
1628
1589
  };
1629
- currentChartType: import("../element/types").ChartType;
1590
+ currentChartType: import("@excalidraw/element/types").ChartType;
1630
1591
  pasteDialog: {
1631
1592
  shown: false;
1632
1593
  data: null;
@@ -1635,8 +1596,8 @@ export declare const actionExportWithDarkMode: {
1635
1596
  data: import("../charts").Spreadsheet;
1636
1597
  };
1637
1598
  pendingImageElementId: string | null;
1638
- showHyperlinkPopup: false | "info" | "editor";
1639
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1599
+ showHyperlinkPopup: false | "editor" | "info";
1600
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1640
1601
  snapLines: readonly import("../snapping").SnapLine[];
1641
1602
  originSnapOffset: {
1642
1603
  x: number;
@@ -1647,16 +1608,10 @@ export declare const actionExportWithDarkMode: {
1647
1608
  followedBy: Set<import("../types").SocketId>;
1648
1609
  isCropping: boolean;
1649
1610
  croppingElementId: string | null;
1650
- searchMatches: readonly {
1651
- id: string;
1652
- focus: boolean;
1653
- matchedLines: {
1654
- offsetX: number;
1655
- offsetY: number;
1656
- width: number;
1657
- height: number;
1658
- }[];
1659
- }[];
1611
+ searchMatches: Readonly<{
1612
+ focusedId: string | null;
1613
+ matches: readonly import("../types").SearchMatch[];
1614
+ }> | null;
1660
1615
  };
1661
1616
  captureUpdate: "EVENTUALLY";
1662
1617
  };