@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-864353b

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 (288) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/{chunk-LMHBUWQS.js → chunk-7YMZV3TY.js} +15 -4
  3. package/dist/dev/chunk-7YMZV3TY.js.map +7 -0
  4. package/dist/dev/chunk-BBNNHA7I.js +7 -0
  5. package/dist/dev/chunk-BBNNHA7I.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-3SN6HYVK.js → chunk-LL55DS44.js} +19504 -21522
  9. package/dist/dev/chunk-LL55DS44.js.map +7 -0
  10. package/dist/dev/data/{image-V26YBSDB.js → image-OFYK7EOY.js} +3 -3
  11. package/dist/dev/index.css +3098 -3023
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +27238 -22881
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-KIY5SGI3.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-F44EGBV2.js +33 -0
  19. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  20. package/dist/prod/{chunk-6U3AYISY.js → chunk-OUULIERA.js} +4 -4
  21. package/dist/prod/chunk-UH6Q3EIV.js +7 -0
  22. package/dist/prod/data/image-CUOH64HE.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +20 -16
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-GCLCIHXH.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 +18 -7
  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 +24 -11
  38. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +14 -17
  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 +59 -0
  60. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +22 -33
  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 -43
  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 -7
  67. package/dist/types/element/src/shapes.d.ts +27 -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 +3 -3
  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 +3 -3
  73. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +17 -3
  74. package/dist/types/{excalidraw/element → element/src}/types.d.ts +16 -3
  75. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  76. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +91 -94
  77. package/dist/types/excalidraw/actions/actionAlign.d.ts +15 -15
  78. package/dist/types/excalidraw/actions/actionBoundText.d.ts +66 -68
  79. package/dist/types/excalidraw/actions/actionCanvas.d.ts +576 -413
  80. package/dist/types/excalidraw/actions/actionClipboard.d.ts +195 -200
  81. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +32 -33
  82. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +93 -95
  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 +36 -37
  86. package/dist/types/excalidraw/actions/actionElementLock.d.ts +78 -82
  87. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +32 -43
  88. package/dist/types/excalidraw/actions/actionExport.d.ts +295 -304
  89. package/dist/types/excalidraw/actions/actionFinalize.d.ts +95 -57
  90. package/dist/types/excalidraw/actions/actionFlip.d.ts +7 -7
  91. package/dist/types/excalidraw/actions/actionFrame.d.ts +203 -207
  92. package/dist/types/excalidraw/actions/actionGroup.d.ts +65 -67
  93. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  94. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +526 -34
  95. package/dist/types/excalidraw/actions/actionLink.d.ts +36 -37
  96. package/dist/types/excalidraw/actions/actionMenu.d.ts +95 -98
  97. package/dist/types/excalidraw/actions/actionNavigate.d.ts +61 -63
  98. package/dist/types/excalidraw/actions/actionProperties.d.ts +428 -435
  99. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +33 -34
  100. package/dist/types/excalidraw/actions/actionStyles.d.ts +38 -39
  101. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  102. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +34 -35
  103. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -35
  104. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +34 -207
  105. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  106. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +33 -35
  107. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +34 -36
  108. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +34 -36
  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 +6 -5
  114. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  115. package/dist/types/excalidraw/appState.d.ts +33 -23
  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 +2 -1
  122. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  123. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -5
  124. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  125. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  126. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -5
  127. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -4
  128. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -3
  129. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  130. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +4 -4
  131. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  132. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  133. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  134. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  135. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  136. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  137. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  138. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  139. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  140. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  141. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  142. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  143. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  144. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  145. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  146. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  147. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  148. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  149. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  150. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  151. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  152. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  153. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  154. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  155. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  156. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  157. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  158. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  159. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  160. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  161. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  162. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  163. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  164. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  165. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  166. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  167. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  168. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  169. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  170. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  171. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  172. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  173. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  174. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  175. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +3 -3
  176. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  177. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  178. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  179. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  180. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  181. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  182. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  183. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  184. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  185. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  186. package/dist/types/excalidraw/components/TextField.d.ts +1 -1
  187. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  188. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  189. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  190. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  191. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  192. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  193. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  194. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  198. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  199. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
  200. package/dist/types/excalidraw/components/icons.d.ts +5 -1
  201. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  202. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  203. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  204. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  205. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  206. package/dist/types/excalidraw/data/blob.d.ts +3 -3
  207. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  208. package/dist/types/excalidraw/data/index.d.ts +2 -2
  209. package/dist/types/excalidraw/data/json.d.ts +1 -1
  210. package/dist/types/excalidraw/data/library.d.ts +3 -3
  211. package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
  212. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  213. package/dist/types/excalidraw/data/restore.d.ts +1 -1
  214. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  215. package/dist/types/excalidraw/data/types.d.ts +3 -3
  216. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  217. package/dist/types/excalidraw/eraser/index.d.ts +14 -0
  218. package/dist/types/excalidraw/errors.d.ts +0 -3
  219. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  220. package/dist/types/excalidraw/history.d.ts +15 -23
  221. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  222. package/dist/types/excalidraw/i18n.d.ts +1 -1
  223. package/dist/types/excalidraw/index.d.ts +16 -15
  224. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  225. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  226. package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
  227. package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
  228. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  229. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -3
  230. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  231. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  232. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  233. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  234. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  235. package/dist/types/excalidraw/snapping.d.ts +5 -6
  236. package/dist/types/excalidraw/types.d.ts +39 -18
  237. package/dist/types/excalidraw/visualdebug.d.ts +2 -2
  238. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  239. package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
  240. package/dist/types/math/{curve.d.ts → src/curve.d.ts} +2 -0
  241. package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
  242. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  243. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  244. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  245. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +4 -0
  246. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  247. package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
  248. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  249. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  250. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  251. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  252. package/history.ts +70 -94
  253. package/package.json +16 -4
  254. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  255. package/dist/dev/chunk-53KHN5WM.js +0 -7
  256. package/dist/dev/chunk-53KHN5WM.js.map +0 -7
  257. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  258. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  259. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  260. package/dist/prod/chunk-36CXSE6H.js +0 -34
  261. package/dist/prod/chunk-EIO257PC.js +0 -86
  262. package/dist/prod/chunk-G5N3DNGT.js +0 -7
  263. package/dist/prod/data/image-N4WCURRR.js +0 -1
  264. package/dist/types/excalidraw/align.d.ts +0 -7
  265. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  266. package/dist/types/excalidraw/element/index.d.ts +0 -26
  267. package/dist/types/excalidraw/shapes.d.ts +0 -85
  268. package/dist/types/excalidraw/store.d.ts +0 -129
  269. package/dist/dev/data/{image-V26YBSDB.js.map → image-OFYK7EOY.js.map} +0 -0
  270. package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-KIY5SGI3.js.map} +0 -0
  271. package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  272. package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  273. package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  274. package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  275. package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  276. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  277. package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  278. package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  279. package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  280. package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  281. package/dist/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
  282. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  283. /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
  284. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  285. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  286. /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  287. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  288. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -6,7 +6,7 @@ export declare const actionCopy: {
6
6
  trackEvent: {
7
7
  category: "element";
8
8
  };
9
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
10
10
  captureUpdate: "EVENTUALLY";
11
11
  appState: {
12
12
  errorMessage: any;
@@ -18,17 +18,17 @@ export declare const actionCopy: {
18
18
  showWelcomeScreen: boolean;
19
19
  isLoading: boolean;
20
20
  activeEmbeddable: {
21
- element: import("../element/types").NonDeletedExcalidrawElement;
21
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
22
  state: "hover" | "active";
23
23
  } | null;
24
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
25
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
27
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("../element/binding").SuggestedBinding[];
31
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
29
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
34
34
  name: boolean;
@@ -36,12 +36,13 @@ export declare const actionCopy: {
36
36
  clip: boolean;
37
37
  };
38
38
  editingFrame: string | null;
39
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
40
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
39
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
42
42
  activeTool: {
43
43
  lastActiveTool: import("../types").ActiveTool | null;
44
44
  locked: boolean;
45
+ fromSelection: boolean;
45
46
  } & import("../types").ActiveTool;
46
47
  penMode: boolean;
47
48
  penDetected: boolean;
@@ -51,18 +52,18 @@ export declare const actionCopy: {
51
52
  exportScale: number;
52
53
  currentItemStrokeColor: string;
53
54
  currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("../element/types").FillStyle;
55
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
56
  currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
57
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
58
  currentItemRoughness: number;
58
59
  currentItemOpacity: number;
59
60
  currentItemFontFamily: number;
60
61
  currentItemFontSize: number;
61
62
  currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
63
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
65
  currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("../element/types").StrokeRoundness;
66
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
67
  currentItemArrowType: "round" | "sharp" | "elbow";
67
68
  viewBackgroundColor: string;
68
69
  scrollX: number;
@@ -93,7 +94,7 @@ export declare const actionCopy: {
93
94
  sourceElementId: string;
94
95
  } | null;
95
96
  defaultSidebarDockedPreference: boolean;
96
- lastPointerDownWith: import("../element/types").PointerType;
97
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
97
98
  selectedElementIds: Readonly<{
98
99
  [id: string]: true;
99
100
  }>;
@@ -111,7 +112,7 @@ export declare const actionCopy: {
111
112
  duration?: number | undefined;
112
113
  } | null;
113
114
  zenModeEnabled: boolean;
114
- theme: import("../element/types").Theme;
115
+ theme: import("@excalidraw/element/types").Theme;
115
116
  gridSize: number;
116
117
  gridStep: number;
117
118
  gridModeEnabled: boolean;
@@ -132,7 +133,7 @@ export declare const actionCopy: {
132
133
  [id: string]: true;
133
134
  }> | undefined;
134
135
  username?: string | null | undefined;
135
- userState?: import("../constants").UserIdleState | undefined;
136
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
136
137
  color?: {
137
138
  background: string;
138
139
  stroke: string;
@@ -149,7 +150,7 @@ export declare const actionCopy: {
149
150
  open: boolean;
150
151
  panels: number;
151
152
  };
152
- currentChartType: import("../element/types").ChartType;
153
+ currentChartType: import("@excalidraw/element/types").ChartType;
153
154
  pasteDialog: {
154
155
  shown: false;
155
156
  data: null;
@@ -159,7 +160,7 @@ export declare const actionCopy: {
159
160
  };
160
161
  pendingImageElementId: string | null;
161
162
  showHyperlinkPopup: false | "info" | "editor";
162
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
163
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
164
  snapLines: readonly import("../snapping").SnapLine[];
164
165
  originSnapOffset: {
165
166
  x: number;
@@ -170,16 +171,14 @@ export declare const actionCopy: {
170
171
  followedBy: Set<import("../types").SocketId>;
171
172
  isCropping: boolean;
172
173
  croppingElementId: string | null;
173
- searchMatches: readonly {
174
- id: string;
175
- focus: boolean;
176
- matchedLines: {
177
- offsetX: number;
178
- offsetY: number;
179
- width: number;
180
- height: number;
181
- }[];
182
- }[];
174
+ searchMatches: Readonly<{
175
+ focusedId: string | null;
176
+ matches: readonly import("../types").SearchMatch[];
177
+ }> | null;
178
+ activeLockedId: string | null;
179
+ lockedMultiSelections: {
180
+ [groupId: string]: true;
181
+ };
183
182
  };
184
183
  } | {
185
184
  captureUpdate: "EVENTUALLY";
@@ -195,7 +194,7 @@ export declare const actionPaste: {
195
194
  trackEvent: {
196
195
  category: "element";
197
196
  };
198
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
197
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
199
198
  captureUpdate: "EVENTUALLY";
200
199
  appState: {
201
200
  errorMessage: string;
@@ -207,17 +206,17 @@ export declare const actionPaste: {
207
206
  showWelcomeScreen: boolean;
208
207
  isLoading: boolean;
209
208
  activeEmbeddable: {
210
- element: import("../element/types").NonDeletedExcalidrawElement;
209
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
211
210
  state: "hover" | "active";
212
211
  } | null;
213
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
214
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
215
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
216
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
212
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
213
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
215
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
217
216
  isBindingEnabled: boolean;
218
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
219
- suggestedBindings: import("../element/binding").SuggestedBinding[];
220
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
217
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
218
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
219
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
221
220
  frameRendering: {
222
221
  enabled: boolean;
223
222
  name: boolean;
@@ -225,12 +224,13 @@ export declare const actionPaste: {
225
224
  clip: boolean;
226
225
  };
227
226
  editingFrame: string | null;
228
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
229
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
230
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
227
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
228
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
231
230
  activeTool: {
232
231
  lastActiveTool: import("../types").ActiveTool | null;
233
232
  locked: boolean;
233
+ fromSelection: boolean;
234
234
  } & import("../types").ActiveTool;
235
235
  penMode: boolean;
236
236
  penDetected: boolean;
@@ -240,18 +240,18 @@ export declare const actionPaste: {
240
240
  exportScale: number;
241
241
  currentItemStrokeColor: string;
242
242
  currentItemBackgroundColor: string;
243
- currentItemFillStyle: import("../element/types").FillStyle;
243
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
244
244
  currentItemStrokeWidth: number;
245
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
245
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
246
246
  currentItemRoughness: number;
247
247
  currentItemOpacity: number;
248
248
  currentItemFontFamily: number;
249
249
  currentItemFontSize: number;
250
250
  currentItemTextAlign: string;
251
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
252
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
251
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
252
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
253
253
  currentHoveredFontFamily: number | null;
254
- currentItemRoundness: import("../element/types").StrokeRoundness;
254
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
255
255
  currentItemArrowType: "round" | "sharp" | "elbow";
256
256
  viewBackgroundColor: string;
257
257
  scrollX: number;
@@ -282,7 +282,7 @@ export declare const actionPaste: {
282
282
  sourceElementId: string;
283
283
  } | null;
284
284
  defaultSidebarDockedPreference: boolean;
285
- lastPointerDownWith: import("../element/types").PointerType;
285
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
286
286
  selectedElementIds: Readonly<{
287
287
  [id: string]: true;
288
288
  }>;
@@ -300,7 +300,7 @@ export declare const actionPaste: {
300
300
  duration?: number | undefined;
301
301
  } | null;
302
302
  zenModeEnabled: boolean;
303
- theme: import("../element/types").Theme;
303
+ theme: import("@excalidraw/element/types").Theme;
304
304
  gridSize: number;
305
305
  gridStep: number;
306
306
  gridModeEnabled: boolean;
@@ -321,7 +321,7 @@ export declare const actionPaste: {
321
321
  [id: string]: true;
322
322
  }> | undefined;
323
323
  username?: string | null | undefined;
324
- userState?: import("../constants").UserIdleState | undefined;
324
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
325
325
  color?: {
326
326
  background: string;
327
327
  stroke: string;
@@ -338,7 +338,7 @@ export declare const actionPaste: {
338
338
  open: boolean;
339
339
  panels: number;
340
340
  };
341
- currentChartType: import("../element/types").ChartType;
341
+ currentChartType: import("@excalidraw/element/types").ChartType;
342
342
  pasteDialog: {
343
343
  shown: false;
344
344
  data: null;
@@ -348,7 +348,7 @@ export declare const actionPaste: {
348
348
  };
349
349
  pendingImageElementId: string | null;
350
350
  showHyperlinkPopup: false | "info" | "editor";
351
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
351
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
352
352
  snapLines: readonly import("../snapping").SnapLine[];
353
353
  originSnapOffset: {
354
354
  x: number;
@@ -359,16 +359,14 @@ export declare const actionPaste: {
359
359
  followedBy: Set<import("../types").SocketId>;
360
360
  isCropping: boolean;
361
361
  croppingElementId: string | null;
362
- searchMatches: readonly {
363
- id: string;
364
- focus: boolean;
365
- matchedLines: {
366
- offsetX: number;
367
- offsetY: number;
368
- width: number;
369
- height: number;
370
- }[];
371
- }[];
362
+ searchMatches: Readonly<{
363
+ focusedId: string | null;
364
+ matches: readonly import("../types").SearchMatch[];
365
+ }> | null;
366
+ activeLockedId: string | null;
367
+ lockedMultiSelections: {
368
+ [groupId: string]: true;
369
+ };
372
370
  };
373
371
  } | {
374
372
  captureUpdate: "EVENTUALLY";
@@ -385,8 +383,8 @@ export declare const actionCut: {
385
383
  trackEvent: {
386
384
  category: "element";
387
385
  };
388
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
389
- elements: import("../element/types").OrderedExcalidrawElement[];
386
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
387
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
390
388
  appState: {
391
389
  editingLinearElement: null;
392
390
  contextMenu: {
@@ -398,17 +396,17 @@ export declare const actionCut: {
398
396
  isLoading: boolean;
399
397
  errorMessage: import("react").ReactNode;
400
398
  activeEmbeddable: {
401
- element: import("../element/types").NonDeletedExcalidrawElement;
399
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
402
400
  state: "hover" | "active";
403
401
  } | null;
404
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
405
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
406
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
407
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
402
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
403
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
404
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
405
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
408
406
  isBindingEnabled: boolean;
409
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
410
- suggestedBindings: import("../element/binding").SuggestedBinding[];
411
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
407
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
408
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
409
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
412
410
  frameRendering: {
413
411
  enabled: boolean;
414
412
  name: boolean;
@@ -416,11 +414,12 @@ export declare const actionCut: {
416
414
  clip: boolean;
417
415
  };
418
416
  editingFrame: string | null;
419
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
420
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
417
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
418
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
421
419
  activeTool: {
422
420
  lastActiveTool: import("../types").ActiveTool | null;
423
421
  locked: boolean;
422
+ fromSelection: boolean;
424
423
  } & import("../types").ActiveTool;
425
424
  penMode: boolean;
426
425
  penDetected: boolean;
@@ -430,18 +429,18 @@ export declare const actionCut: {
430
429
  exportScale: number;
431
430
  currentItemStrokeColor: string;
432
431
  currentItemBackgroundColor: string;
433
- currentItemFillStyle: import("../element/types").FillStyle;
432
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
434
433
  currentItemStrokeWidth: number;
435
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
434
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
436
435
  currentItemRoughness: number;
437
436
  currentItemOpacity: number;
438
437
  currentItemFontFamily: number;
439
438
  currentItemFontSize: number;
440
439
  currentItemTextAlign: string;
441
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
442
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
440
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
441
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
443
442
  currentHoveredFontFamily: number | null;
444
- currentItemRoundness: import("../element/types").StrokeRoundness;
443
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
445
444
  currentItemArrowType: "round" | "sharp" | "elbow";
446
445
  viewBackgroundColor: string;
447
446
  scrollX: number;
@@ -472,7 +471,7 @@ export declare const actionCut: {
472
471
  sourceElementId: string;
473
472
  } | null;
474
473
  defaultSidebarDockedPreference: boolean;
475
- lastPointerDownWith: import("../element/types").PointerType;
474
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
476
475
  selectedElementIds: Readonly<{
477
476
  [id: string]: true;
478
477
  }>;
@@ -490,7 +489,7 @@ export declare const actionCut: {
490
489
  duration?: number | undefined;
491
490
  } | null;
492
491
  zenModeEnabled: boolean;
493
- theme: import("../element/types").Theme;
492
+ theme: import("@excalidraw/element/types").Theme;
494
493
  gridSize: number;
495
494
  gridStep: number;
496
495
  gridModeEnabled: boolean;
@@ -511,7 +510,7 @@ export declare const actionCut: {
511
510
  [id: string]: true;
512
511
  }> | undefined;
513
512
  username?: string | null | undefined;
514
- userState?: import("../constants").UserIdleState | undefined;
513
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
515
514
  color?: {
516
515
  background: string;
517
516
  stroke: string;
@@ -528,7 +527,7 @@ export declare const actionCut: {
528
527
  open: boolean;
529
528
  panels: number;
530
529
  };
531
- currentChartType: import("../element/types").ChartType;
530
+ currentChartType: import("@excalidraw/element/types").ChartType;
532
531
  pasteDialog: {
533
532
  shown: false;
534
533
  data: null;
@@ -538,7 +537,7 @@ export declare const actionCut: {
538
537
  };
539
538
  pendingImageElementId: string | null;
540
539
  showHyperlinkPopup: false | "info" | "editor";
541
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
540
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
542
541
  snapLines: readonly import("../snapping").SnapLine[];
543
542
  originSnapOffset: {
544
543
  x: number;
@@ -549,25 +548,23 @@ export declare const actionCut: {
549
548
  followedBy: Set<import("../types").SocketId>;
550
549
  isCropping: boolean;
551
550
  croppingElementId: string | null;
552
- searchMatches: readonly {
553
- id: string;
554
- focus: boolean;
555
- matchedLines: {
556
- offsetX: number;
557
- offsetY: number;
558
- width: number;
559
- height: number;
560
- }[];
561
- }[];
551
+ searchMatches: Readonly<{
552
+ focusedId: string | null;
553
+ matches: readonly import("../types").SearchMatch[];
554
+ }> | null;
555
+ activeLockedId: string | null;
556
+ lockedMultiSelections: {
557
+ [groupId: string]: true;
558
+ };
562
559
  };
563
560
  captureUpdate: "IMMEDIATELY";
564
561
  } | {
565
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
562
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
566
563
  appState: {
567
564
  editingLinearElement: {
568
565
  selectedPointsIndices: number[];
569
- startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
570
- endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
566
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
567
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
571
568
  elementId: string & {
572
569
  _brand: "excalidrawLinearElementId";
573
570
  };
@@ -594,6 +591,7 @@ export declare const actionCut: {
594
591
  hoverPointIndex: number;
595
592
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
596
593
  elbowed: boolean;
594
+ customLineAngle: number | null;
597
595
  };
598
596
  contextMenu: {
599
597
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -604,17 +602,17 @@ export declare const actionCut: {
604
602
  isLoading: boolean;
605
603
  errorMessage: import("react").ReactNode;
606
604
  activeEmbeddable: {
607
- element: import("../element/types").NonDeletedExcalidrawElement;
605
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
608
606
  state: "hover" | "active";
609
607
  } | null;
610
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
611
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
612
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
613
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
608
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
609
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
610
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
611
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
614
612
  isBindingEnabled: boolean;
615
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
616
- suggestedBindings: import("../element/binding").SuggestedBinding[];
617
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
613
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
614
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
615
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
618
616
  frameRendering: {
619
617
  enabled: boolean;
620
618
  name: boolean;
@@ -622,11 +620,12 @@ export declare const actionCut: {
622
620
  clip: boolean;
623
621
  };
624
622
  editingFrame: string | null;
625
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
626
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
623
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
624
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
627
625
  activeTool: {
628
626
  lastActiveTool: import("../types").ActiveTool | null;
629
627
  locked: boolean;
628
+ fromSelection: boolean;
630
629
  } & import("../types").ActiveTool;
631
630
  penMode: boolean;
632
631
  penDetected: boolean;
@@ -636,18 +635,18 @@ export declare const actionCut: {
636
635
  exportScale: number;
637
636
  currentItemStrokeColor: string;
638
637
  currentItemBackgroundColor: string;
639
- currentItemFillStyle: import("../element/types").FillStyle;
638
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
640
639
  currentItemStrokeWidth: number;
641
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
640
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
642
641
  currentItemRoughness: number;
643
642
  currentItemOpacity: number;
644
643
  currentItemFontFamily: number;
645
644
  currentItemFontSize: number;
646
645
  currentItemTextAlign: string;
647
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
648
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
646
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
647
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
649
648
  currentHoveredFontFamily: number | null;
650
- currentItemRoundness: import("../element/types").StrokeRoundness;
649
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
651
650
  currentItemArrowType: "round" | "sharp" | "elbow";
652
651
  viewBackgroundColor: string;
653
652
  scrollX: number;
@@ -678,7 +677,7 @@ export declare const actionCut: {
678
677
  sourceElementId: string;
679
678
  } | null;
680
679
  defaultSidebarDockedPreference: boolean;
681
- lastPointerDownWith: import("../element/types").PointerType;
680
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
682
681
  selectedElementIds: Readonly<{
683
682
  [id: string]: true;
684
683
  }>;
@@ -696,7 +695,7 @@ export declare const actionCut: {
696
695
  duration?: number | undefined;
697
696
  } | null;
698
697
  zenModeEnabled: boolean;
699
- theme: import("../element/types").Theme;
698
+ theme: import("@excalidraw/element/types").Theme;
700
699
  gridSize: number;
701
700
  gridStep: number;
702
701
  gridModeEnabled: boolean;
@@ -717,7 +716,7 @@ export declare const actionCut: {
717
716
  [id: string]: true;
718
717
  }> | undefined;
719
718
  username?: string | null | undefined;
720
- userState?: import("../constants").UserIdleState | undefined;
719
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
721
720
  color?: {
722
721
  background: string;
723
722
  stroke: string;
@@ -734,7 +733,7 @@ export declare const actionCut: {
734
733
  open: boolean;
735
734
  panels: number;
736
735
  };
737
- currentChartType: import("../element/types").ChartType;
736
+ currentChartType: import("@excalidraw/element/types").ChartType;
738
737
  pasteDialog: {
739
738
  shown: false;
740
739
  data: null;
@@ -744,7 +743,7 @@ export declare const actionCut: {
744
743
  };
745
744
  pendingImageElementId: string | null;
746
745
  showHyperlinkPopup: false | "info" | "editor";
747
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
746
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
748
747
  snapLines: readonly import("../snapping").SnapLine[];
749
748
  originSnapOffset: {
750
749
  x: number;
@@ -755,27 +754,27 @@ export declare const actionCut: {
755
754
  followedBy: Set<import("../types").SocketId>;
756
755
  isCropping: boolean;
757
756
  croppingElementId: string | null;
758
- searchMatches: readonly {
759
- id: string;
760
- focus: boolean;
761
- matchedLines: {
762
- offsetX: number;
763
- offsetY: number;
764
- width: number;
765
- height: number;
766
- }[];
767
- }[];
757
+ searchMatches: Readonly<{
758
+ focusedId: string | null;
759
+ matches: readonly import("../types").SearchMatch[];
760
+ }> | null;
761
+ activeLockedId: string | null;
762
+ lockedMultiSelections: {
763
+ [groupId: string]: true;
764
+ };
768
765
  };
769
766
  captureUpdate: "IMMEDIATELY";
770
767
  } | {
771
- elements: import("../element/types").ExcalidrawElement[];
768
+ elements: import("@excalidraw/element/types").ExcalidrawElement[];
772
769
  appState: {
773
770
  activeTool: {
774
771
  lastActiveTool: import("../types").ActiveTool | null;
775
772
  locked: boolean;
773
+ fromSelection: boolean;
776
774
  } & import("../types").ActiveTool;
777
775
  multiElement: null;
778
776
  activeEmbeddable: null;
777
+ selectedLinearElement: null;
779
778
  selectedElementIds: Readonly<{
780
779
  [id: string]: true;
781
780
  }>;
@@ -791,13 +790,13 @@ export declare const actionCut: {
791
790
  showWelcomeScreen: boolean;
792
791
  isLoading: boolean;
793
792
  errorMessage: import("react").ReactNode;
794
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
795
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
796
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
793
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
794
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
795
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
797
796
  isBindingEnabled: boolean;
798
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
799
- suggestedBindings: import("../element/binding").SuggestedBinding[];
800
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
797
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
798
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
799
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
801
800
  frameRendering: {
802
801
  enabled: boolean;
803
802
  name: boolean;
@@ -805,9 +804,9 @@ export declare const actionCut: {
805
804
  clip: boolean;
806
805
  };
807
806
  editingFrame: string | null;
808
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
809
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
810
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
807
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
808
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
809
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
811
810
  penMode: boolean;
812
811
  penDetected: boolean;
813
812
  exportBackground: boolean;
@@ -816,18 +815,18 @@ export declare const actionCut: {
816
815
  exportScale: number;
817
816
  currentItemStrokeColor: string;
818
817
  currentItemBackgroundColor: string;
819
- currentItemFillStyle: import("../element/types").FillStyle;
818
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
820
819
  currentItemStrokeWidth: number;
821
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
820
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
822
821
  currentItemRoughness: number;
823
822
  currentItemOpacity: number;
824
823
  currentItemFontFamily: number;
825
824
  currentItemFontSize: number;
826
825
  currentItemTextAlign: string;
827
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
828
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
826
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
827
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
829
828
  currentHoveredFontFamily: number | null;
830
- currentItemRoundness: import("../element/types").StrokeRoundness;
829
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
831
830
  currentItemArrowType: "round" | "sharp" | "elbow";
832
831
  viewBackgroundColor: string;
833
832
  scrollX: number;
@@ -858,7 +857,7 @@ export declare const actionCut: {
858
857
  sourceElementId: string;
859
858
  } | null;
860
859
  defaultSidebarDockedPreference: boolean;
861
- lastPointerDownWith: import("../element/types").PointerType;
860
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
862
861
  hoveredElementIds: Readonly<{
863
862
  [id: string]: true;
864
863
  }>;
@@ -873,7 +872,7 @@ export declare const actionCut: {
873
872
  duration?: number | undefined;
874
873
  } | null;
875
874
  zenModeEnabled: boolean;
876
- theme: import("../element/types").Theme;
875
+ theme: import("@excalidraw/element/types").Theme;
877
876
  gridSize: number;
878
877
  gridStep: number;
879
878
  gridModeEnabled: boolean;
@@ -890,7 +889,7 @@ export declare const actionCut: {
890
889
  [id: string]: true;
891
890
  }> | undefined;
892
891
  username?: string | null | undefined;
893
- userState?: import("../constants").UserIdleState | undefined;
892
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
894
893
  color?: {
895
894
  background: string;
896
895
  stroke: string;
@@ -907,7 +906,7 @@ export declare const actionCut: {
907
906
  open: boolean;
908
907
  panels: number;
909
908
  };
910
- currentChartType: import("../element/types").ChartType;
909
+ currentChartType: import("@excalidraw/element/types").ChartType;
911
910
  pasteDialog: {
912
911
  shown: false;
913
912
  data: null;
@@ -917,7 +916,6 @@ export declare const actionCut: {
917
916
  };
918
917
  pendingImageElementId: string | null;
919
918
  showHyperlinkPopup: false | "info" | "editor";
920
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
921
919
  snapLines: readonly import("../snapping").SnapLine[];
922
920
  originSnapOffset: {
923
921
  x: number;
@@ -928,22 +926,20 @@ export declare const actionCut: {
928
926
  followedBy: Set<import("../types").SocketId>;
929
927
  isCropping: boolean;
930
928
  croppingElementId: string | null;
931
- searchMatches: readonly {
932
- id: string;
933
- focus: boolean;
934
- matchedLines: {
935
- offsetX: number;
936
- offsetY: number;
937
- width: number;
938
- height: number;
939
- }[];
940
- }[];
929
+ searchMatches: Readonly<{
930
+ focusedId: string | null;
931
+ matches: readonly import("../types").SearchMatch[];
932
+ }> | null;
933
+ activeLockedId: string | null;
934
+ lockedMultiSelections: {
935
+ [groupId: string]: true;
936
+ };
941
937
  };
942
938
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
943
939
  };
944
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
940
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
945
941
  } & {
946
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
942
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
947
943
  };
948
944
  export declare const actionCopyAsSvg: {
949
945
  name: "copyAsSvg";
@@ -952,7 +948,7 @@ export declare const actionCopyAsSvg: {
952
948
  trackEvent: {
953
949
  category: "element";
954
950
  };
955
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
951
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
956
952
  captureUpdate: "EVENTUALLY";
957
953
  appState?: undefined;
958
954
  } | {
@@ -970,7 +966,7 @@ export declare const actionCopyAsSvg: {
970
966
  };
971
967
  captureUpdate: "EVENTUALLY";
972
968
  }>;
973
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
969
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
974
970
  keywords: string[];
975
971
  } & {
976
972
  keyTest?: undefined;
@@ -982,7 +978,7 @@ export declare const actionCopyAsPng: {
982
978
  trackEvent: {
983
979
  category: "element";
984
980
  };
985
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
981
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
986
982
  captureUpdate: "EVENTUALLY";
987
983
  appState?: undefined;
988
984
  } | {
@@ -996,17 +992,17 @@ export declare const actionCopyAsPng: {
996
992
  showWelcomeScreen: boolean;
997
993
  isLoading: boolean;
998
994
  activeEmbeddable: {
999
- element: import("../element/types").NonDeletedExcalidrawElement;
995
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1000
996
  state: "hover" | "active";
1001
997
  } | null;
1002
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1003
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1004
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1005
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
998
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
999
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1000
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1001
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1006
1002
  isBindingEnabled: boolean;
1007
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1008
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1009
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1003
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1004
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1005
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1010
1006
  frameRendering: {
1011
1007
  enabled: boolean;
1012
1008
  name: boolean;
@@ -1014,12 +1010,13 @@ export declare const actionCopyAsPng: {
1014
1010
  clip: boolean;
1015
1011
  };
1016
1012
  editingFrame: string | null;
1017
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1018
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1019
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1013
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1014
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1015
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1020
1016
  activeTool: {
1021
1017
  lastActiveTool: import("../types").ActiveTool | null;
1022
1018
  locked: boolean;
1019
+ fromSelection: boolean;
1023
1020
  } & import("../types").ActiveTool;
1024
1021
  penMode: boolean;
1025
1022
  penDetected: boolean;
@@ -1029,18 +1026,18 @@ export declare const actionCopyAsPng: {
1029
1026
  exportScale: number;
1030
1027
  currentItemStrokeColor: string;
1031
1028
  currentItemBackgroundColor: string;
1032
- currentItemFillStyle: import("../element/types").FillStyle;
1029
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1033
1030
  currentItemStrokeWidth: number;
1034
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1031
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1035
1032
  currentItemRoughness: number;
1036
1033
  currentItemOpacity: number;
1037
1034
  currentItemFontFamily: number;
1038
1035
  currentItemFontSize: number;
1039
1036
  currentItemTextAlign: string;
1040
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1041
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1037
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1038
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1042
1039
  currentHoveredFontFamily: number | null;
1043
- currentItemRoundness: import("../element/types").StrokeRoundness;
1040
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1044
1041
  currentItemArrowType: "round" | "sharp" | "elbow";
1045
1042
  viewBackgroundColor: string;
1046
1043
  scrollX: number;
@@ -1071,7 +1068,7 @@ export declare const actionCopyAsPng: {
1071
1068
  sourceElementId: string;
1072
1069
  } | null;
1073
1070
  defaultSidebarDockedPreference: boolean;
1074
- lastPointerDownWith: import("../element/types").PointerType;
1071
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1075
1072
  selectedElementIds: Readonly<{
1076
1073
  [id: string]: true;
1077
1074
  }>;
@@ -1089,7 +1086,7 @@ export declare const actionCopyAsPng: {
1089
1086
  duration?: number | undefined;
1090
1087
  } | null;
1091
1088
  zenModeEnabled: boolean;
1092
- theme: import("../element/types").Theme;
1089
+ theme: import("@excalidraw/element/types").Theme;
1093
1090
  gridSize: number;
1094
1091
  gridStep: number;
1095
1092
  gridModeEnabled: boolean;
@@ -1110,7 +1107,7 @@ export declare const actionCopyAsPng: {
1110
1107
  [id: string]: true;
1111
1108
  }> | undefined;
1112
1109
  username?: string | null | undefined;
1113
- userState?: import("../constants").UserIdleState | undefined;
1110
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1114
1111
  color?: {
1115
1112
  background: string;
1116
1113
  stroke: string;
@@ -1127,7 +1124,7 @@ export declare const actionCopyAsPng: {
1127
1124
  open: boolean;
1128
1125
  panels: number;
1129
1126
  };
1130
- currentChartType: import("../element/types").ChartType;
1127
+ currentChartType: import("@excalidraw/element/types").ChartType;
1131
1128
  pasteDialog: {
1132
1129
  shown: false;
1133
1130
  data: null;
@@ -1137,7 +1134,7 @@ export declare const actionCopyAsPng: {
1137
1134
  };
1138
1135
  pendingImageElementId: string | null;
1139
1136
  showHyperlinkPopup: false | "info" | "editor";
1140
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1137
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1141
1138
  snapLines: readonly import("../snapping").SnapLine[];
1142
1139
  originSnapOffset: {
1143
1140
  x: number;
@@ -1148,24 +1145,22 @@ export declare const actionCopyAsPng: {
1148
1145
  followedBy: Set<import("../types").SocketId>;
1149
1146
  isCropping: boolean;
1150
1147
  croppingElementId: string | null;
1151
- searchMatches: readonly {
1152
- id: string;
1153
- focus: boolean;
1154
- matchedLines: {
1155
- offsetX: number;
1156
- offsetY: number;
1157
- width: number;
1158
- height: number;
1159
- }[];
1160
- }[];
1148
+ searchMatches: Readonly<{
1149
+ focusedId: string | null;
1150
+ matches: readonly import("../types").SearchMatch[];
1151
+ }> | null;
1152
+ activeLockedId: string | null;
1153
+ lockedMultiSelections: {
1154
+ [groupId: string]: true;
1155
+ };
1161
1156
  };
1162
1157
  captureUpdate: "EVENTUALLY";
1163
1158
  }>;
1164
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1165
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1159
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1160
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1166
1161
  keywords: string[];
1167
1162
  } & {
1168
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1163
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1169
1164
  };
1170
1165
  export declare const copyText: {
1171
1166
  name: "copyText";
@@ -1173,10 +1168,10 @@ export declare const copyText: {
1173
1168
  trackEvent: {
1174
1169
  category: "element";
1175
1170
  };
1176
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1171
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1177
1172
  captureUpdate: "EVENTUALLY";
1178
1173
  };
1179
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1174
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1180
1175
  keywords: string[];
1181
1176
  } & {
1182
1177
  keyTest?: undefined;