@myoc/excalidraw 0.18.1 → 0.18.3

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 (231) hide show
  1. package/dist/dev/{chunk-IVKGBVG7.js → chunk-3K6YEH7O.js} +2 -2
  2. package/dist/dev/{chunk-IVKGBVG7.js.map → chunk-3K6YEH7O.js.map} +1 -1
  3. package/dist/dev/{chunk-DYSQNY2T.js → chunk-6MXLCRC3.js} +2 -1
  4. package/dist/dev/chunk-6MXLCRC3.js.map +7 -0
  5. package/dist/dev/{chunk-ND5KUA7P.js → chunk-S4MA4GYT.js} +16541 -21170
  6. package/dist/dev/chunk-S4MA4GYT.js.map +7 -0
  7. package/dist/dev/data/{image-ZD4HK457.js → image-I5I3FC2R.js} +3 -3
  8. package/dist/dev/index.css +44 -47
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +6642 -1356
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-IW3FTNXY.js → en-FBYNI7ML.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/{chunk-Y5S6JYT2.js → chunk-6NO4X5TH.js} +1 -1
  16. package/dist/prod/chunk-7TL427PR.js +31 -0
  17. package/dist/prod/{chunk-SIW4TYTH.js → chunk-ECENQK44.js} +1 -1
  18. package/dist/prod/data/image-TMH4UP47.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +17 -14
  21. package/dist/prod/locales/{en-3JJA6ONK.js → en-RF5UZHGV.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
  25. package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
  26. package/dist/types/{excalidraw → common/src}/constants.d.ts +7 -6
  27. package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
  28. package/dist/types/common/src/index.d.ts +11 -0
  29. package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
  30. package/dist/types/common/src/promise-pool.d.ts +6 -0
  31. package/dist/types/{excalidraw → common/src}/utils.d.ts +9 -12
  32. package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
  33. package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
  34. package/dist/types/{excalidraw → element/src}/align.d.ts +2 -2
  35. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +5 -4
  36. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +6 -1
  37. package/dist/types/{excalidraw/element → element/src}/collision.d.ts +2 -2
  38. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  39. package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
  40. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
  41. package/dist/types/element/src/duplicate.d.ts +66 -0
  42. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  43. package/dist/types/element/src/embeddable.d.ts +10 -0
  44. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
  45. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
  46. package/dist/types/{excalidraw → element/src}/frame.d.ts +6 -6
  47. package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -5
  48. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  49. package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  50. package/dist/types/{excalidraw/element → element/src}/index.d.ts +0 -10
  51. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +5 -5
  52. package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
  53. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
  54. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  55. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +2 -2
  56. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +1 -1
  57. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +2 -2
  58. package/dist/types/{excalidraw → element/src}/shapes.d.ts +6 -6
  59. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  60. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
  61. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +3 -4
  62. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +5 -5
  63. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
  64. package/dist/types/{excalidraw/element → element/src}/types.d.ts +2 -2
  65. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  66. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +73 -70
  67. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  68. package/dist/types/excalidraw/actions/actionBoundText.d.ts +54 -52
  69. package/dist/types/excalidraw/actions/actionCanvas.d.ts +456 -264
  70. package/dist/types/excalidraw/actions/actionClipboard.d.ts +155 -149
  71. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +26 -25
  72. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +73 -70
  73. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  74. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  75. package/dist/types/excalidraw/actions/actionElementLink.d.ts +30 -29
  76. package/dist/types/excalidraw/actions/actionElementLock.d.ts +53 -52
  77. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +26 -35
  78. package/dist/types/excalidraw/actions/actionExport.d.ts +306 -297
  79. package/dist/types/excalidraw/actions/actionFinalize.d.ts +41 -39
  80. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  81. package/dist/types/excalidraw/actions/actionFrame.d.ts +217 -213
  82. package/dist/types/excalidraw/actions/actionGroup.d.ts +51 -49
  83. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +27 -26
  84. package/dist/types/excalidraw/actions/actionLink.d.ts +26 -25
  85. package/dist/types/excalidraw/actions/actionMenu.d.ts +73 -70
  86. package/dist/types/excalidraw/actions/actionNavigate.d.ts +48 -46
  87. package/dist/types/excalidraw/actions/actionProperties.d.ts +317 -302
  88. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +26 -25
  89. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +1 -1
  90. package/dist/types/excalidraw/actions/actionStyles.d.ts +28 -27
  91. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  92. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +26 -25
  93. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +26 -25
  94. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +50 -48
  95. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +25 -25
  96. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +26 -26
  97. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -26
  98. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  99. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  100. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  101. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  102. package/dist/types/excalidraw/actions/types.d.ts +2 -2
  103. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  104. package/dist/types/excalidraw/appState.d.ts +35 -34
  105. package/dist/types/excalidraw/change.d.ts +3 -3
  106. package/dist/types/excalidraw/charts.d.ts +1 -1
  107. package/dist/types/excalidraw/clipboard.d.ts +2 -2
  108. package/dist/types/excalidraw/components/Actions.d.ts +2 -2
  109. package/dist/types/excalidraw/components/App.d.ts +14 -9
  110. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
  111. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  112. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  113. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  114. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  115. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
  116. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  117. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  118. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
  119. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  120. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  121. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  122. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  123. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
  124. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  125. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  126. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
  127. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  128. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
  129. package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
  130. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  131. package/dist/types/excalidraw/components/LibraryUnit.d.ts +1 -1
  132. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  133. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  134. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  135. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  136. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  137. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  138. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  139. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  140. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  141. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  142. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  143. package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
  144. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  145. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  146. package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
  147. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -1
  148. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
  149. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  150. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  151. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
  152. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  153. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  154. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  155. package/dist/types/excalidraw/components/icons.d.ts +2 -1
  156. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  157. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  158. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  159. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  160. package/dist/types/excalidraw/data/blob.d.ts +5 -5
  161. package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
  162. package/dist/types/excalidraw/data/index.d.ts +1 -1
  163. package/dist/types/excalidraw/data/json.d.ts +1 -1
  164. package/dist/types/excalidraw/data/library.d.ts +2 -2
  165. package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
  166. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  167. package/dist/types/excalidraw/data/restore.d.ts +1 -1
  168. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  169. package/dist/types/excalidraw/data/types.d.ts +2 -2
  170. package/dist/types/excalidraw/errors.d.ts +0 -3
  171. package/dist/types/excalidraw/fonts/Fonts.d.ts +2 -12
  172. package/dist/types/excalidraw/history.d.ts +1 -1
  173. package/dist/types/excalidraw/i18n.d.ts +1 -1
  174. package/dist/types/excalidraw/index.d.ts +11 -10
  175. package/dist/types/excalidraw/lasso/index.d.ts +15 -0
  176. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  177. package/dist/types/excalidraw/renderer/helpers.d.ts +1 -1
  178. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
  179. package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
  180. package/dist/types/excalidraw/scene/Scene.d.ts +5 -5
  181. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  182. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  183. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  184. package/dist/types/excalidraw/scene/scrollbars.d.ts +1 -1
  185. package/dist/types/excalidraw/scene/types.d.ts +3 -3
  186. package/dist/types/excalidraw/snapping.d.ts +4 -5
  187. package/dist/types/excalidraw/store.d.ts +2 -2
  188. package/dist/types/excalidraw/types.d.ts +10 -9
  189. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  190. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
  191. package/dist/types/math/{point.d.ts → src/point.d.ts} +2 -2
  192. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  193. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  194. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  195. package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +1 -2
  196. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  197. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  198. package/dist/types/utils/{geometry → src}/shape.d.ts +1 -14
  199. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  200. package/history.ts +2 -1
  201. package/package.json +14 -2
  202. package/dist/dev/chunk-DYSQNY2T.js.map +0 -7
  203. package/dist/dev/chunk-ND5KUA7P.js.map +0 -7
  204. package/dist/prod/chunk-45TA3AZW.js +0 -34
  205. package/dist/prod/data/image-YE6T6FOC.js +0 -1
  206. /package/dist/dev/data/{image-ZD4HK457.js.map → image-I5I3FC2R.js.map} +0 -0
  207. /package/dist/dev/locales/{en-IW3FTNXY.js.map → en-FBYNI7ML.js.map} +0 -0
  208. /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  209. /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  210. /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  211. /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  212. /package/dist/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
  213. /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  214. /package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  215. /package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  216. /package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +0 -0
  217. /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  218. /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  219. /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  220. /package/dist/types/{excalidraw/element → element/src}/utils.d.ts +0 -0
  221. /package/dist/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
  222. /package/dist/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
  223. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  224. /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
  225. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  226. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  227. /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  228. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  229. /package/dist/types/math/{types.d.ts → src/types.d.ts} +0 -0
  230. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
  231. /package/dist/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
@@ -1,14 +1,13 @@
1
1
  /// <reference types="react" />
2
- import type { SceneBounds } from "../element/bounds";
3
- import type { ExcalidrawElement } from "../element/types";
2
+ import { type SceneBounds } from "@excalidraw/element/bounds";
3
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
4
4
  import type { AppState, Offsets } from "../types";
5
5
  export declare const actionChangeViewBackgroundColor: {
6
6
  name: "changeViewBackgroundColor";
7
7
  label: string;
8
- paletteName: string;
9
8
  trackEvent: false;
10
9
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
10
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
12
11
  appState: any;
13
12
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
14
13
  };
@@ -24,7 +23,7 @@ export declare const actionZoomIn: {
24
23
  trackEvent: {
25
24
  category: "canvas";
26
25
  };
27
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
26
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
28
27
  appState: {
29
28
  userToFollow: null;
30
29
  scrollX: number;
@@ -44,17 +43,17 @@ export declare const actionZoomIn: {
44
43
  wheelZoomsOnDefault?: boolean | undefined;
45
44
  errorMessage: import("react").ReactNode;
46
45
  activeEmbeddable: {
47
- element: import("../element/types").NonDeletedExcalidrawElement;
46
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
48
47
  state: "hover" | "active";
49
48
  } | null;
50
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
51
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
52
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
53
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
49
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
50
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
51
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
52
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
54
53
  isBindingEnabled: boolean;
55
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
56
- suggestedBindings: import("../element/binding").SuggestedBinding[];
57
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
54
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
55
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
56
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
58
57
  frameRendering: {
59
58
  enabled: boolean;
60
59
  name: boolean;
@@ -62,12 +61,13 @@ export declare const actionZoomIn: {
62
61
  clip: boolean;
63
62
  };
64
63
  editingFrame: string | null;
65
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
66
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
67
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
64
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
65
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
66
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
68
67
  activeTool: {
69
68
  lastActiveTool: import("../types").ActiveTool | null;
70
69
  locked: boolean;
70
+ fromSelection: boolean;
71
71
  } & import("../types").ActiveTool;
72
72
  penMode: boolean;
73
73
  penDetected: boolean;
@@ -77,18 +77,18 @@ export declare const actionZoomIn: {
77
77
  exportScale: number;
78
78
  currentItemStrokeColor: string;
79
79
  currentItemBackgroundColor: string;
80
- currentItemFillStyle: import("../element/types").FillStyle;
80
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
81
81
  currentItemStrokeWidth: number;
82
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
82
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
83
83
  currentItemRoughness: number;
84
84
  currentItemOpacity: number;
85
85
  currentItemFontFamily: number;
86
86
  currentItemFontSize: number;
87
87
  currentItemTextAlign: string;
88
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
89
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
88
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
89
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
90
90
  currentHoveredFontFamily: number | null;
91
- currentItemRoundness: import("../element/types").StrokeRoundness;
91
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
92
92
  currentItemArrowType: "round" | "sharp" | "elbow";
93
93
  viewBackgroundColor: string;
94
94
  cursorButton: "up" | "down";
@@ -96,7 +96,7 @@ export declare const actionZoomIn: {
96
96
  name: string | null;
97
97
  isResizing: boolean;
98
98
  isRotating: boolean;
99
- openMenu: "canvas" | "shape" | null;
99
+ openMenu: "shape" | "canvas" | null;
100
100
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
101
101
  openSidebar: {
102
102
  name: string;
@@ -114,7 +114,7 @@ export declare const actionZoomIn: {
114
114
  sourceElementId: string;
115
115
  } | null;
116
116
  defaultSidebarDockedPreference: boolean;
117
- lastPointerDownWith: import("../element/types").PointerType;
117
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
118
118
  selectedElementIds: Readonly<{
119
119
  [id: string]: true;
120
120
  }>;
@@ -132,7 +132,7 @@ export declare const actionZoomIn: {
132
132
  duration?: number | undefined;
133
133
  } | null;
134
134
  zenModeEnabled: boolean;
135
- theme: import("../element/types").Theme;
135
+ theme: import("@excalidraw/element/types").Theme;
136
136
  gridSize: number;
137
137
  gridStep: number;
138
138
  gridModeEnabled: boolean;
@@ -153,7 +153,7 @@ export declare const actionZoomIn: {
153
153
  [id: string]: true;
154
154
  }> | undefined;
155
155
  username?: string | null | undefined;
156
- userState?: import("../constants").UserIdleState | undefined;
156
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
157
157
  color?: {
158
158
  background: string;
159
159
  stroke: string;
@@ -170,7 +170,7 @@ export declare const actionZoomIn: {
170
170
  open: boolean;
171
171
  panels: number;
172
172
  };
173
- currentChartType: import("../element/types").ChartType;
173
+ currentChartType: import("@excalidraw/element/types").ChartType;
174
174
  pasteDialog: {
175
175
  shown: false;
176
176
  data: null;
@@ -179,8 +179,8 @@ export declare const actionZoomIn: {
179
179
  data: import("../charts").Spreadsheet;
180
180
  };
181
181
  pendingImageElementId: string | null;
182
- showHyperlinkPopup: false | "info" | "editor";
183
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
182
+ showHyperlinkPopup: false | "editor" | "info";
183
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
184
184
  snapLines: readonly import("../snapping").SnapLine[];
185
185
  originSnapOffset: {
186
186
  x: number;
@@ -216,7 +216,7 @@ export declare const actionZoomOut: {
216
216
  trackEvent: {
217
217
  category: "canvas";
218
218
  };
219
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
219
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
220
220
  appState: {
221
221
  userToFollow: null;
222
222
  scrollX: number;
@@ -236,17 +236,17 @@ export declare const actionZoomOut: {
236
236
  wheelZoomsOnDefault?: boolean | undefined;
237
237
  errorMessage: import("react").ReactNode;
238
238
  activeEmbeddable: {
239
- element: import("../element/types").NonDeletedExcalidrawElement;
239
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
240
240
  state: "hover" | "active";
241
241
  } | null;
242
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
243
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
244
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
245
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
242
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
243
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
244
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
245
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
246
246
  isBindingEnabled: boolean;
247
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
248
- suggestedBindings: import("../element/binding").SuggestedBinding[];
249
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
247
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
248
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
249
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
250
250
  frameRendering: {
251
251
  enabled: boolean;
252
252
  name: boolean;
@@ -254,12 +254,13 @@ export declare const actionZoomOut: {
254
254
  clip: boolean;
255
255
  };
256
256
  editingFrame: string | null;
257
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
258
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
259
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
257
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
258
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
259
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
260
260
  activeTool: {
261
261
  lastActiveTool: import("../types").ActiveTool | null;
262
262
  locked: boolean;
263
+ fromSelection: boolean;
263
264
  } & import("../types").ActiveTool;
264
265
  penMode: boolean;
265
266
  penDetected: boolean;
@@ -269,18 +270,18 @@ export declare const actionZoomOut: {
269
270
  exportScale: number;
270
271
  currentItemStrokeColor: string;
271
272
  currentItemBackgroundColor: string;
272
- currentItemFillStyle: import("../element/types").FillStyle;
273
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
273
274
  currentItemStrokeWidth: number;
274
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
275
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
275
276
  currentItemRoughness: number;
276
277
  currentItemOpacity: number;
277
278
  currentItemFontFamily: number;
278
279
  currentItemFontSize: number;
279
280
  currentItemTextAlign: string;
280
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
281
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
281
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
282
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
282
283
  currentHoveredFontFamily: number | null;
283
- currentItemRoundness: import("../element/types").StrokeRoundness;
284
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
284
285
  currentItemArrowType: "round" | "sharp" | "elbow";
285
286
  viewBackgroundColor: string;
286
287
  cursorButton: "up" | "down";
@@ -288,7 +289,7 @@ export declare const actionZoomOut: {
288
289
  name: string | null;
289
290
  isResizing: boolean;
290
291
  isRotating: boolean;
291
- openMenu: "canvas" | "shape" | null;
292
+ openMenu: "shape" | "canvas" | null;
292
293
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
293
294
  openSidebar: {
294
295
  name: string;
@@ -306,7 +307,7 @@ export declare const actionZoomOut: {
306
307
  sourceElementId: string;
307
308
  } | null;
308
309
  defaultSidebarDockedPreference: boolean;
309
- lastPointerDownWith: import("../element/types").PointerType;
310
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
310
311
  selectedElementIds: Readonly<{
311
312
  [id: string]: true;
312
313
  }>;
@@ -324,7 +325,7 @@ export declare const actionZoomOut: {
324
325
  duration?: number | undefined;
325
326
  } | null;
326
327
  zenModeEnabled: boolean;
327
- theme: import("../element/types").Theme;
328
+ theme: import("@excalidraw/element/types").Theme;
328
329
  gridSize: number;
329
330
  gridStep: number;
330
331
  gridModeEnabled: boolean;
@@ -345,7 +346,7 @@ export declare const actionZoomOut: {
345
346
  [id: string]: true;
346
347
  }> | undefined;
347
348
  username?: string | null | undefined;
348
- userState?: import("../constants").UserIdleState | undefined;
349
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
349
350
  color?: {
350
351
  background: string;
351
352
  stroke: string;
@@ -362,7 +363,7 @@ export declare const actionZoomOut: {
362
363
  open: boolean;
363
364
  panels: number;
364
365
  };
365
- currentChartType: import("../element/types").ChartType;
366
+ currentChartType: import("@excalidraw/element/types").ChartType;
366
367
  pasteDialog: {
367
368
  shown: false;
368
369
  data: null;
@@ -371,8 +372,8 @@ export declare const actionZoomOut: {
371
372
  data: import("../charts").Spreadsheet;
372
373
  };
373
374
  pendingImageElementId: string | null;
374
- showHyperlinkPopup: false | "info" | "editor";
375
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
375
+ showHyperlinkPopup: false | "editor" | "info";
376
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
376
377
  snapLines: readonly import("../snapping").SnapLine[];
377
378
  originSnapOffset: {
378
379
  x: number;
@@ -408,7 +409,7 @@ export declare const actionResetZoom: {
408
409
  trackEvent: {
409
410
  category: "canvas";
410
411
  };
411
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
412
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
412
413
  appState: {
413
414
  userToFollow: null;
414
415
  scrollX: number;
@@ -428,17 +429,17 @@ export declare const actionResetZoom: {
428
429
  wheelZoomsOnDefault?: boolean | undefined;
429
430
  errorMessage: import("react").ReactNode;
430
431
  activeEmbeddable: {
431
- element: import("../element/types").NonDeletedExcalidrawElement;
432
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
432
433
  state: "hover" | "active";
433
434
  } | null;
434
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
435
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
436
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
437
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
435
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
436
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
437
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
438
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
438
439
  isBindingEnabled: boolean;
439
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
440
- suggestedBindings: import("../element/binding").SuggestedBinding[];
441
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
440
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
441
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
442
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
442
443
  frameRendering: {
443
444
  enabled: boolean;
444
445
  name: boolean;
@@ -446,12 +447,13 @@ export declare const actionResetZoom: {
446
447
  clip: boolean;
447
448
  };
448
449
  editingFrame: string | null;
449
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
450
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
451
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
450
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
451
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
452
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
452
453
  activeTool: {
453
454
  lastActiveTool: import("../types").ActiveTool | null;
454
455
  locked: boolean;
456
+ fromSelection: boolean;
455
457
  } & import("../types").ActiveTool;
456
458
  penMode: boolean;
457
459
  penDetected: boolean;
@@ -461,18 +463,18 @@ export declare const actionResetZoom: {
461
463
  exportScale: number;
462
464
  currentItemStrokeColor: string;
463
465
  currentItemBackgroundColor: string;
464
- currentItemFillStyle: import("../element/types").FillStyle;
466
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
465
467
  currentItemStrokeWidth: number;
466
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
468
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
467
469
  currentItemRoughness: number;
468
470
  currentItemOpacity: number;
469
471
  currentItemFontFamily: number;
470
472
  currentItemFontSize: number;
471
473
  currentItemTextAlign: string;
472
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
473
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
474
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
475
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
474
476
  currentHoveredFontFamily: number | null;
475
- currentItemRoundness: import("../element/types").StrokeRoundness;
477
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
476
478
  currentItemArrowType: "round" | "sharp" | "elbow";
477
479
  viewBackgroundColor: string;
478
480
  cursorButton: "up" | "down";
@@ -480,7 +482,7 @@ export declare const actionResetZoom: {
480
482
  name: string | null;
481
483
  isResizing: boolean;
482
484
  isRotating: boolean;
483
- openMenu: "canvas" | "shape" | null;
485
+ openMenu: "shape" | "canvas" | null;
484
486
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
485
487
  openSidebar: {
486
488
  name: string;
@@ -498,7 +500,7 @@ export declare const actionResetZoom: {
498
500
  sourceElementId: string;
499
501
  } | null;
500
502
  defaultSidebarDockedPreference: boolean;
501
- lastPointerDownWith: import("../element/types").PointerType;
503
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
502
504
  selectedElementIds: Readonly<{
503
505
  [id: string]: true;
504
506
  }>;
@@ -516,7 +518,7 @@ export declare const actionResetZoom: {
516
518
  duration?: number | undefined;
517
519
  } | null;
518
520
  zenModeEnabled: boolean;
519
- theme: import("../element/types").Theme;
521
+ theme: import("@excalidraw/element/types").Theme;
520
522
  gridSize: number;
521
523
  gridStep: number;
522
524
  gridModeEnabled: boolean;
@@ -537,7 +539,7 @@ export declare const actionResetZoom: {
537
539
  [id: string]: true;
538
540
  }> | undefined;
539
541
  username?: string | null | undefined;
540
- userState?: import("../constants").UserIdleState | undefined;
542
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
541
543
  color?: {
542
544
  background: string;
543
545
  stroke: string;
@@ -554,7 +556,7 @@ export declare const actionResetZoom: {
554
556
  open: boolean;
555
557
  panels: number;
556
558
  };
557
- currentChartType: import("../element/types").ChartType;
559
+ currentChartType: import("@excalidraw/element/types").ChartType;
558
560
  pasteDialog: {
559
561
  shown: false;
560
562
  data: null;
@@ -563,8 +565,8 @@ export declare const actionResetZoom: {
563
565
  data: import("../charts").Spreadsheet;
564
566
  };
565
567
  pendingImageElementId: string | null;
566
- showHyperlinkPopup: false | "info" | "editor";
567
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
568
+ showHyperlinkPopup: false | "editor" | "info";
569
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
568
570
  snapLines: readonly import("../snapping").SnapLine[];
569
571
  originSnapOffset: {
570
572
  x: number;
@@ -626,17 +628,17 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
626
628
  wheelZoomsOnDefault?: boolean | undefined;
627
629
  errorMessage: import("react").ReactNode;
628
630
  activeEmbeddable: {
629
- element: import("../element/types").NonDeletedExcalidrawElement;
631
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
630
632
  state: "hover" | "active";
631
633
  } | null;
632
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
633
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
634
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
635
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
634
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
635
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
636
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
637
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
636
638
  isBindingEnabled: boolean;
637
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
638
- suggestedBindings: import("../element/binding").SuggestedBinding[];
639
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
639
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
640
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
641
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
640
642
  frameRendering: {
641
643
  enabled: boolean;
642
644
  name: boolean;
@@ -644,12 +646,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
644
646
  clip: boolean;
645
647
  };
646
648
  editingFrame: string | null;
647
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
648
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
649
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
649
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
650
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
651
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
650
652
  activeTool: {
651
653
  lastActiveTool: import("../types").ActiveTool | null;
652
654
  locked: boolean;
655
+ fromSelection: boolean;
653
656
  } & import("../types").ActiveTool;
654
657
  penMode: boolean;
655
658
  penDetected: boolean;
@@ -659,18 +662,18 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
659
662
  exportScale: number;
660
663
  currentItemStrokeColor: string;
661
664
  currentItemBackgroundColor: string;
662
- currentItemFillStyle: import("../element/types").FillStyle;
665
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
663
666
  currentItemStrokeWidth: number;
664
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
667
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
665
668
  currentItemRoughness: number;
666
669
  currentItemOpacity: number;
667
670
  currentItemFontFamily: number;
668
671
  currentItemFontSize: number;
669
672
  currentItemTextAlign: string;
670
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
671
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
673
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
674
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
672
675
  currentHoveredFontFamily: number | null;
673
- currentItemRoundness: import("../element/types").StrokeRoundness;
676
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
674
677
  currentItemArrowType: "round" | "sharp" | "elbow";
675
678
  viewBackgroundColor: string;
676
679
  cursorButton: "up" | "down";
@@ -678,7 +681,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
678
681
  name: string | null;
679
682
  isResizing: boolean;
680
683
  isRotating: boolean;
681
- openMenu: "canvas" | "shape" | null;
684
+ openMenu: "shape" | "canvas" | null;
682
685
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
683
686
  openSidebar: {
684
687
  name: string;
@@ -696,7 +699,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
696
699
  sourceElementId: string;
697
700
  } | null;
698
701
  defaultSidebarDockedPreference: boolean;
699
- lastPointerDownWith: import("../element/types").PointerType;
702
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
700
703
  selectedElementIds: Readonly<{
701
704
  [id: string]: true;
702
705
  }>;
@@ -714,7 +717,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
714
717
  duration?: number | undefined;
715
718
  } | null;
716
719
  zenModeEnabled: boolean;
717
- theme: import("../element/types").Theme;
720
+ theme: import("@excalidraw/element/types").Theme;
718
721
  gridSize: number;
719
722
  gridStep: number;
720
723
  gridModeEnabled: boolean;
@@ -735,7 +738,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
735
738
  [id: string]: true;
736
739
  }> | undefined;
737
740
  username?: string | null | undefined;
738
- userState?: import("../constants").UserIdleState | undefined;
741
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
739
742
  color?: {
740
743
  background: string;
741
744
  stroke: string;
@@ -752,7 +755,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
752
755
  open: boolean;
753
756
  panels: number;
754
757
  };
755
- currentChartType: import("../element/types").ChartType;
758
+ currentChartType: import("@excalidraw/element/types").ChartType;
756
759
  pasteDialog: {
757
760
  shown: false;
758
761
  data: null;
@@ -761,8 +764,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
761
764
  data: import("../charts").Spreadsheet;
762
765
  };
763
766
  pendingImageElementId: string | null;
764
- showHyperlinkPopup: false | "info" | "editor";
765
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
767
+ showHyperlinkPopup: false | "editor" | "info";
768
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
766
769
  snapLines: readonly import("../snapping").SnapLine[];
767
770
  originSnapOffset: {
768
771
  x: number;
@@ -820,17 +823,17 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
820
823
  wheelZoomsOnDefault?: boolean | undefined;
821
824
  errorMessage: import("react").ReactNode;
822
825
  activeEmbeddable: {
823
- element: import("../element/types").NonDeletedExcalidrawElement;
826
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
824
827
  state: "hover" | "active";
825
828
  } | null;
826
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
827
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
828
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
829
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
829
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
830
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
831
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
832
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
830
833
  isBindingEnabled: boolean;
831
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
832
- suggestedBindings: import("../element/binding").SuggestedBinding[];
833
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
834
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
835
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
836
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
834
837
  frameRendering: {
835
838
  enabled: boolean;
836
839
  name: boolean;
@@ -838,12 +841,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
838
841
  clip: boolean;
839
842
  };
840
843
  editingFrame: string | null;
841
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
842
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
843
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
844
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
845
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
846
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
844
847
  activeTool: {
845
848
  lastActiveTool: import("../types").ActiveTool | null;
846
849
  locked: boolean;
850
+ fromSelection: boolean;
847
851
  } & import("../types").ActiveTool;
848
852
  penMode: boolean;
849
853
  penDetected: boolean;
@@ -853,18 +857,18 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
853
857
  exportScale: number;
854
858
  currentItemStrokeColor: string;
855
859
  currentItemBackgroundColor: string;
856
- currentItemFillStyle: import("../element/types").FillStyle;
860
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
857
861
  currentItemStrokeWidth: number;
858
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
862
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
859
863
  currentItemRoughness: number;
860
864
  currentItemOpacity: number;
861
865
  currentItemFontFamily: number;
862
866
  currentItemFontSize: number;
863
867
  currentItemTextAlign: string;
864
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
865
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
868
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
869
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
866
870
  currentHoveredFontFamily: number | null;
867
- currentItemRoundness: import("../element/types").StrokeRoundness;
871
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
868
872
  currentItemArrowType: "round" | "sharp" | "elbow";
869
873
  viewBackgroundColor: string;
870
874
  cursorButton: "up" | "down";
@@ -872,7 +876,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
872
876
  name: string | null;
873
877
  isResizing: boolean;
874
878
  isRotating: boolean;
875
- openMenu: "canvas" | "shape" | null;
879
+ openMenu: "shape" | "canvas" | null;
876
880
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
877
881
  openSidebar: {
878
882
  name: string;
@@ -890,7 +894,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
890
894
  sourceElementId: string;
891
895
  } | null;
892
896
  defaultSidebarDockedPreference: boolean;
893
- lastPointerDownWith: import("../element/types").PointerType;
897
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
894
898
  selectedElementIds: Readonly<{
895
899
  [id: string]: true;
896
900
  }>;
@@ -908,7 +912,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
908
912
  duration?: number | undefined;
909
913
  } | null;
910
914
  zenModeEnabled: boolean;
911
- theme: import("../element/types").Theme;
915
+ theme: import("@excalidraw/element/types").Theme;
912
916
  gridSize: number;
913
917
  gridStep: number;
914
918
  gridModeEnabled: boolean;
@@ -929,7 +933,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
929
933
  [id: string]: true;
930
934
  }> | undefined;
931
935
  username?: string | null | undefined;
932
- userState?: import("../constants").UserIdleState | undefined;
936
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
933
937
  color?: {
934
938
  background: string;
935
939
  stroke: string;
@@ -946,7 +950,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
946
950
  open: boolean;
947
951
  panels: number;
948
952
  };
949
- currentChartType: import("../element/types").ChartType;
953
+ currentChartType: import("@excalidraw/element/types").ChartType;
950
954
  pasteDialog: {
951
955
  shown: false;
952
956
  data: null;
@@ -955,8 +959,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
955
959
  data: import("../charts").Spreadsheet;
956
960
  };
957
961
  pendingImageElementId: string | null;
958
- showHyperlinkPopup: false | "info" | "editor";
959
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
962
+ showHyperlinkPopup: false | "editor" | "info";
963
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
960
964
  snapLines: readonly import("../snapping").SnapLine[];
961
965
  originSnapOffset: {
962
966
  x: number;
@@ -987,7 +991,7 @@ export declare const actionZoomToFitSelectionInViewport: {
987
991
  trackEvent: {
988
992
  category: "canvas";
989
993
  };
990
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
994
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
991
995
  appState: {
992
996
  scrollX: number;
993
997
  scrollY: number;
@@ -1006,17 +1010,17 @@ export declare const actionZoomToFitSelectionInViewport: {
1006
1010
  wheelZoomsOnDefault?: boolean | undefined;
1007
1011
  errorMessage: import("react").ReactNode;
1008
1012
  activeEmbeddable: {
1009
- element: import("../element/types").NonDeletedExcalidrawElement;
1013
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1010
1014
  state: "hover" | "active";
1011
1015
  } | null;
1012
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1013
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1014
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1015
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1016
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1017
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1018
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1019
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1016
1020
  isBindingEnabled: boolean;
1017
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1018
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1019
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1021
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1022
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1023
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1020
1024
  frameRendering: {
1021
1025
  enabled: boolean;
1022
1026
  name: boolean;
@@ -1024,12 +1028,13 @@ export declare const actionZoomToFitSelectionInViewport: {
1024
1028
  clip: boolean;
1025
1029
  };
1026
1030
  editingFrame: string | null;
1027
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1028
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1029
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1031
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1032
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1033
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1030
1034
  activeTool: {
1031
1035
  lastActiveTool: import("../types").ActiveTool | null;
1032
1036
  locked: boolean;
1037
+ fromSelection: boolean;
1033
1038
  } & import("../types").ActiveTool;
1034
1039
  penMode: boolean;
1035
1040
  penDetected: boolean;
@@ -1039,18 +1044,18 @@ export declare const actionZoomToFitSelectionInViewport: {
1039
1044
  exportScale: number;
1040
1045
  currentItemStrokeColor: string;
1041
1046
  currentItemBackgroundColor: string;
1042
- currentItemFillStyle: import("../element/types").FillStyle;
1047
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1043
1048
  currentItemStrokeWidth: number;
1044
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1049
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1045
1050
  currentItemRoughness: number;
1046
1051
  currentItemOpacity: number;
1047
1052
  currentItemFontFamily: number;
1048
1053
  currentItemFontSize: number;
1049
1054
  currentItemTextAlign: string;
1050
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1051
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1055
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1056
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1052
1057
  currentHoveredFontFamily: number | null;
1053
- currentItemRoundness: import("../element/types").StrokeRoundness;
1058
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1054
1059
  currentItemArrowType: "round" | "sharp" | "elbow";
1055
1060
  viewBackgroundColor: string;
1056
1061
  cursorButton: "up" | "down";
@@ -1058,7 +1063,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1058
1063
  name: string | null;
1059
1064
  isResizing: boolean;
1060
1065
  isRotating: boolean;
1061
- openMenu: "canvas" | "shape" | null;
1066
+ openMenu: "shape" | "canvas" | null;
1062
1067
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1063
1068
  openSidebar: {
1064
1069
  name: string;
@@ -1076,7 +1081,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1076
1081
  sourceElementId: string;
1077
1082
  } | null;
1078
1083
  defaultSidebarDockedPreference: boolean;
1079
- lastPointerDownWith: import("../element/types").PointerType;
1084
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1080
1085
  selectedElementIds: Readonly<{
1081
1086
  [id: string]: true;
1082
1087
  }>;
@@ -1094,7 +1099,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1094
1099
  duration?: number | undefined;
1095
1100
  } | null;
1096
1101
  zenModeEnabled: boolean;
1097
- theme: import("../element/types").Theme;
1102
+ theme: import("@excalidraw/element/types").Theme;
1098
1103
  gridSize: number;
1099
1104
  gridStep: number;
1100
1105
  gridModeEnabled: boolean;
@@ -1115,7 +1120,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1115
1120
  [id: string]: true;
1116
1121
  }> | undefined;
1117
1122
  username?: string | null | undefined;
1118
- userState?: import("../constants").UserIdleState | undefined;
1123
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1119
1124
  color?: {
1120
1125
  background: string;
1121
1126
  stroke: string;
@@ -1132,7 +1137,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1132
1137
  open: boolean;
1133
1138
  panels: number;
1134
1139
  };
1135
- currentChartType: import("../element/types").ChartType;
1140
+ currentChartType: import("@excalidraw/element/types").ChartType;
1136
1141
  pasteDialog: {
1137
1142
  shown: false;
1138
1143
  data: null;
@@ -1141,8 +1146,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1141
1146
  data: import("../charts").Spreadsheet;
1142
1147
  };
1143
1148
  pendingImageElementId: string | null;
1144
- showHyperlinkPopup: false | "info" | "editor";
1145
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1149
+ showHyperlinkPopup: false | "editor" | "info";
1150
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1146
1151
  snapLines: readonly import("../snapping").SnapLine[];
1147
1152
  originSnapOffset: {
1148
1153
  x: number;
@@ -1177,7 +1182,7 @@ export declare const actionZoomToFitSelection: {
1177
1182
  trackEvent: {
1178
1183
  category: "canvas";
1179
1184
  };
1180
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1185
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1181
1186
  appState: {
1182
1187
  scrollX: number;
1183
1188
  scrollY: number;
@@ -1196,17 +1201,17 @@ export declare const actionZoomToFitSelection: {
1196
1201
  wheelZoomsOnDefault?: boolean | undefined;
1197
1202
  errorMessage: import("react").ReactNode;
1198
1203
  activeEmbeddable: {
1199
- element: import("../element/types").NonDeletedExcalidrawElement;
1204
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1200
1205
  state: "hover" | "active";
1201
1206
  } | null;
1202
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1203
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1204
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1205
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1207
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1208
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1209
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1210
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1206
1211
  isBindingEnabled: boolean;
1207
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1208
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1209
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1212
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1213
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1214
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1210
1215
  frameRendering: {
1211
1216
  enabled: boolean;
1212
1217
  name: boolean;
@@ -1214,12 +1219,13 @@ export declare const actionZoomToFitSelection: {
1214
1219
  clip: boolean;
1215
1220
  };
1216
1221
  editingFrame: string | null;
1217
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1218
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1219
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1222
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1223
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1224
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1220
1225
  activeTool: {
1221
1226
  lastActiveTool: import("../types").ActiveTool | null;
1222
1227
  locked: boolean;
1228
+ fromSelection: boolean;
1223
1229
  } & import("../types").ActiveTool;
1224
1230
  penMode: boolean;
1225
1231
  penDetected: boolean;
@@ -1229,18 +1235,18 @@ export declare const actionZoomToFitSelection: {
1229
1235
  exportScale: number;
1230
1236
  currentItemStrokeColor: string;
1231
1237
  currentItemBackgroundColor: string;
1232
- currentItemFillStyle: import("../element/types").FillStyle;
1238
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1233
1239
  currentItemStrokeWidth: number;
1234
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1240
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1235
1241
  currentItemRoughness: number;
1236
1242
  currentItemOpacity: number;
1237
1243
  currentItemFontFamily: number;
1238
1244
  currentItemFontSize: number;
1239
1245
  currentItemTextAlign: string;
1240
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1241
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1246
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1247
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1242
1248
  currentHoveredFontFamily: number | null;
1243
- currentItemRoundness: import("../element/types").StrokeRoundness;
1249
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1244
1250
  currentItemArrowType: "round" | "sharp" | "elbow";
1245
1251
  viewBackgroundColor: string;
1246
1252
  cursorButton: "up" | "down";
@@ -1248,7 +1254,7 @@ export declare const actionZoomToFitSelection: {
1248
1254
  name: string | null;
1249
1255
  isResizing: boolean;
1250
1256
  isRotating: boolean;
1251
- openMenu: "canvas" | "shape" | null;
1257
+ openMenu: "shape" | "canvas" | null;
1252
1258
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1253
1259
  openSidebar: {
1254
1260
  name: string;
@@ -1266,7 +1272,7 @@ export declare const actionZoomToFitSelection: {
1266
1272
  sourceElementId: string;
1267
1273
  } | null;
1268
1274
  defaultSidebarDockedPreference: boolean;
1269
- lastPointerDownWith: import("../element/types").PointerType;
1275
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1270
1276
  selectedElementIds: Readonly<{
1271
1277
  [id: string]: true;
1272
1278
  }>;
@@ -1284,7 +1290,7 @@ export declare const actionZoomToFitSelection: {
1284
1290
  duration?: number | undefined;
1285
1291
  } | null;
1286
1292
  zenModeEnabled: boolean;
1287
- theme: import("../element/types").Theme;
1293
+ theme: import("@excalidraw/element/types").Theme;
1288
1294
  gridSize: number;
1289
1295
  gridStep: number;
1290
1296
  gridModeEnabled: boolean;
@@ -1305,7 +1311,7 @@ export declare const actionZoomToFitSelection: {
1305
1311
  [id: string]: true;
1306
1312
  }> | undefined;
1307
1313
  username?: string | null | undefined;
1308
- userState?: import("../constants").UserIdleState | undefined;
1314
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1309
1315
  color?: {
1310
1316
  background: string;
1311
1317
  stroke: string;
@@ -1322,7 +1328,7 @@ export declare const actionZoomToFitSelection: {
1322
1328
  open: boolean;
1323
1329
  panels: number;
1324
1330
  };
1325
- currentChartType: import("../element/types").ChartType;
1331
+ currentChartType: import("@excalidraw/element/types").ChartType;
1326
1332
  pasteDialog: {
1327
1333
  shown: false;
1328
1334
  data: null;
@@ -1331,8 +1337,8 @@ export declare const actionZoomToFitSelection: {
1331
1337
  data: import("../charts").Spreadsheet;
1332
1338
  };
1333
1339
  pendingImageElementId: string | null;
1334
- showHyperlinkPopup: false | "info" | "editor";
1335
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1340
+ showHyperlinkPopup: false | "editor" | "info";
1341
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1336
1342
  snapLines: readonly import("../snapping").SnapLine[];
1337
1343
  originSnapOffset: {
1338
1344
  x: number;
@@ -1368,7 +1374,7 @@ export declare const actionZoomToFit: {
1368
1374
  trackEvent: {
1369
1375
  category: "canvas";
1370
1376
  };
1371
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1377
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1372
1378
  appState: {
1373
1379
  scrollX: number;
1374
1380
  scrollY: number;
@@ -1387,17 +1393,17 @@ export declare const actionZoomToFit: {
1387
1393
  wheelZoomsOnDefault?: boolean | undefined;
1388
1394
  errorMessage: import("react").ReactNode;
1389
1395
  activeEmbeddable: {
1390
- element: import("../element/types").NonDeletedExcalidrawElement;
1396
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1391
1397
  state: "hover" | "active";
1392
1398
  } | null;
1393
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1394
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1395
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1396
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1399
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1400
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1401
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1402
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1397
1403
  isBindingEnabled: boolean;
1398
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1399
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1400
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1404
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1405
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1406
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1401
1407
  frameRendering: {
1402
1408
  enabled: boolean;
1403
1409
  name: boolean;
@@ -1405,12 +1411,13 @@ export declare const actionZoomToFit: {
1405
1411
  clip: boolean;
1406
1412
  };
1407
1413
  editingFrame: string | null;
1408
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1409
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1410
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1414
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1415
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1416
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1411
1417
  activeTool: {
1412
1418
  lastActiveTool: import("../types").ActiveTool | null;
1413
1419
  locked: boolean;
1420
+ fromSelection: boolean;
1414
1421
  } & import("../types").ActiveTool;
1415
1422
  penMode: boolean;
1416
1423
  penDetected: boolean;
@@ -1420,18 +1427,18 @@ export declare const actionZoomToFit: {
1420
1427
  exportScale: number;
1421
1428
  currentItemStrokeColor: string;
1422
1429
  currentItemBackgroundColor: string;
1423
- currentItemFillStyle: import("../element/types").FillStyle;
1430
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1424
1431
  currentItemStrokeWidth: number;
1425
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1432
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1426
1433
  currentItemRoughness: number;
1427
1434
  currentItemOpacity: number;
1428
1435
  currentItemFontFamily: number;
1429
1436
  currentItemFontSize: number;
1430
1437
  currentItemTextAlign: string;
1431
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1432
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1438
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1439
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1433
1440
  currentHoveredFontFamily: number | null;
1434
- currentItemRoundness: import("../element/types").StrokeRoundness;
1441
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1435
1442
  currentItemArrowType: "round" | "sharp" | "elbow";
1436
1443
  viewBackgroundColor: string;
1437
1444
  cursorButton: "up" | "down";
@@ -1439,7 +1446,7 @@ export declare const actionZoomToFit: {
1439
1446
  name: string | null;
1440
1447
  isResizing: boolean;
1441
1448
  isRotating: boolean;
1442
- openMenu: "canvas" | "shape" | null;
1449
+ openMenu: "shape" | "canvas" | null;
1443
1450
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1444
1451
  openSidebar: {
1445
1452
  name: string;
@@ -1457,7 +1464,7 @@ export declare const actionZoomToFit: {
1457
1464
  sourceElementId: string;
1458
1465
  } | null;
1459
1466
  defaultSidebarDockedPreference: boolean;
1460
- lastPointerDownWith: import("../element/types").PointerType;
1467
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1461
1468
  selectedElementIds: Readonly<{
1462
1469
  [id: string]: true;
1463
1470
  }>;
@@ -1475,7 +1482,7 @@ export declare const actionZoomToFit: {
1475
1482
  duration?: number | undefined;
1476
1483
  } | null;
1477
1484
  zenModeEnabled: boolean;
1478
- theme: import("../element/types").Theme;
1485
+ theme: import("@excalidraw/element/types").Theme;
1479
1486
  gridSize: number;
1480
1487
  gridStep: number;
1481
1488
  gridModeEnabled: boolean;
@@ -1496,7 +1503,7 @@ export declare const actionZoomToFit: {
1496
1503
  [id: string]: true;
1497
1504
  }> | undefined;
1498
1505
  username?: string | null | undefined;
1499
- userState?: import("../constants").UserIdleState | undefined;
1506
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1500
1507
  color?: {
1501
1508
  background: string;
1502
1509
  stroke: string;
@@ -1513,7 +1520,7 @@ export declare const actionZoomToFit: {
1513
1520
  open: boolean;
1514
1521
  panels: number;
1515
1522
  };
1516
- currentChartType: import("../element/types").ChartType;
1523
+ currentChartType: import("@excalidraw/element/types").ChartType;
1517
1524
  pasteDialog: {
1518
1525
  shown: false;
1519
1526
  data: null;
@@ -1522,8 +1529,8 @@ export declare const actionZoomToFit: {
1522
1529
  data: import("../charts").Spreadsheet;
1523
1530
  };
1524
1531
  pendingImageElementId: string | null;
1525
- showHyperlinkPopup: false | "info" | "editor";
1526
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1532
+ showHyperlinkPopup: false | "editor" | "info";
1533
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1527
1534
  snapLines: readonly import("../snapping").SnapLine[];
1528
1535
  originSnapOffset: {
1529
1536
  x: number;
@@ -1560,7 +1567,7 @@ export declare const actionToggleTheme: {
1560
1567
  trackEvent: {
1561
1568
  category: "canvas";
1562
1569
  };
1563
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1570
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1564
1571
  appState: {
1565
1572
  theme: any;
1566
1573
  contextMenu: {
@@ -1575,17 +1582,17 @@ export declare const actionToggleTheme: {
1575
1582
  wheelZoomsOnDefault?: boolean | undefined;
1576
1583
  errorMessage: import("react").ReactNode;
1577
1584
  activeEmbeddable: {
1578
- element: import("../element/types").NonDeletedExcalidrawElement;
1585
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1579
1586
  state: "hover" | "active";
1580
1587
  } | null;
1581
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1582
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1583
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1584
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1588
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1589
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1590
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1591
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1585
1592
  isBindingEnabled: boolean;
1586
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1587
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1588
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1593
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1594
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1595
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1589
1596
  frameRendering: {
1590
1597
  enabled: boolean;
1591
1598
  name: boolean;
@@ -1593,12 +1600,13 @@ export declare const actionToggleTheme: {
1593
1600
  clip: boolean;
1594
1601
  };
1595
1602
  editingFrame: string | null;
1596
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1597
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1598
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1603
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1604
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1605
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1599
1606
  activeTool: {
1600
1607
  lastActiveTool: import("../types").ActiveTool | null;
1601
1608
  locked: boolean;
1609
+ fromSelection: boolean;
1602
1610
  } & import("../types").ActiveTool;
1603
1611
  penMode: boolean;
1604
1612
  penDetected: boolean;
@@ -1608,18 +1616,18 @@ export declare const actionToggleTheme: {
1608
1616
  exportScale: number;
1609
1617
  currentItemStrokeColor: string;
1610
1618
  currentItemBackgroundColor: string;
1611
- currentItemFillStyle: import("../element/types").FillStyle;
1619
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1612
1620
  currentItemStrokeWidth: number;
1613
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1621
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1614
1622
  currentItemRoughness: number;
1615
1623
  currentItemOpacity: number;
1616
1624
  currentItemFontFamily: number;
1617
1625
  currentItemFontSize: number;
1618
1626
  currentItemTextAlign: string;
1619
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1620
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1627
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1628
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1621
1629
  currentHoveredFontFamily: number | null;
1622
- currentItemRoundness: import("../element/types").StrokeRoundness;
1630
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1623
1631
  currentItemArrowType: "round" | "sharp" | "elbow";
1624
1632
  viewBackgroundColor: string;
1625
1633
  scrollX: number;
@@ -1632,7 +1640,7 @@ export declare const actionToggleTheme: {
1632
1640
  zoom: Readonly<{
1633
1641
  value: import("../types").NormalizedZoomValue;
1634
1642
  }>;
1635
- openMenu: "canvas" | "shape" | null;
1643
+ openMenu: "shape" | "canvas" | null;
1636
1644
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1637
1645
  openSidebar: {
1638
1646
  name: string;
@@ -1650,7 +1658,7 @@ export declare const actionToggleTheme: {
1650
1658
  sourceElementId: string;
1651
1659
  } | null;
1652
1660
  defaultSidebarDockedPreference: boolean;
1653
- lastPointerDownWith: import("../element/types").PointerType;
1661
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1654
1662
  selectedElementIds: Readonly<{
1655
1663
  [id: string]: true;
1656
1664
  }>;
@@ -1688,7 +1696,7 @@ export declare const actionToggleTheme: {
1688
1696
  [id: string]: true;
1689
1697
  }> | undefined;
1690
1698
  username?: string | null | undefined;
1691
- userState?: import("../constants").UserIdleState | undefined;
1699
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1692
1700
  color?: {
1693
1701
  background: string;
1694
1702
  stroke: string;
@@ -1705,7 +1713,7 @@ export declare const actionToggleTheme: {
1705
1713
  open: boolean;
1706
1714
  panels: number;
1707
1715
  };
1708
- currentChartType: import("../element/types").ChartType;
1716
+ currentChartType: import("@excalidraw/element/types").ChartType;
1709
1717
  pasteDialog: {
1710
1718
  shown: false;
1711
1719
  data: null;
@@ -1714,8 +1722,8 @@ export declare const actionToggleTheme: {
1714
1722
  data: import("../charts").Spreadsheet;
1715
1723
  };
1716
1724
  pendingImageElementId: string | null;
1717
- showHyperlinkPopup: false | "info" | "editor";
1718
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1725
+ showHyperlinkPopup: false | "editor" | "info";
1726
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1719
1727
  snapLines: readonly import("../snapping").SnapLine[];
1720
1728
  originSnapOffset: {
1721
1729
  x: number;
@@ -1750,7 +1758,7 @@ export declare const actionToggleEraserTool: {
1750
1758
  trackEvent: {
1751
1759
  category: "toolbar";
1752
1760
  };
1753
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1761
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1754
1762
  appState: {
1755
1763
  selectedElementIds: {};
1756
1764
  selectedGroupIds: {};
@@ -1758,6 +1766,7 @@ export declare const actionToggleEraserTool: {
1758
1766
  activeTool: {
1759
1767
  lastActiveTool: import("../types").ActiveTool | null;
1760
1768
  locked: boolean;
1769
+ fromSelection: boolean;
1761
1770
  } & import("../types").ActiveTool;
1762
1771
  contextMenu: {
1763
1772
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1770,14 +1779,14 @@ export declare const actionToggleEraserTool: {
1770
1779
  hideMainMenus: boolean;
1771
1780
  wheelZoomsOnDefault?: boolean | undefined;
1772
1781
  errorMessage: import("react").ReactNode;
1773
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1774
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1775
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1776
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1782
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1783
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1784
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1785
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1777
1786
  isBindingEnabled: boolean;
1778
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1779
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1780
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1787
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1788
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1789
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1781
1790
  frameRendering: {
1782
1791
  enabled: boolean;
1783
1792
  name: boolean;
@@ -1785,9 +1794,9 @@ export declare const actionToggleEraserTool: {
1785
1794
  clip: boolean;
1786
1795
  };
1787
1796
  editingFrame: string | null;
1788
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1789
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1790
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1797
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1798
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1799
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1791
1800
  penMode: boolean;
1792
1801
  penDetected: boolean;
1793
1802
  exportBackground: boolean;
@@ -1796,18 +1805,18 @@ export declare const actionToggleEraserTool: {
1796
1805
  exportScale: number;
1797
1806
  currentItemStrokeColor: string;
1798
1807
  currentItemBackgroundColor: string;
1799
- currentItemFillStyle: import("../element/types").FillStyle;
1808
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1800
1809
  currentItemStrokeWidth: number;
1801
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1810
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1802
1811
  currentItemRoughness: number;
1803
1812
  currentItemOpacity: number;
1804
1813
  currentItemFontFamily: number;
1805
1814
  currentItemFontSize: number;
1806
1815
  currentItemTextAlign: string;
1807
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1808
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1816
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1817
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1809
1818
  currentHoveredFontFamily: number | null;
1810
- currentItemRoundness: import("../element/types").StrokeRoundness;
1819
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1811
1820
  currentItemArrowType: "round" | "sharp" | "elbow";
1812
1821
  viewBackgroundColor: string;
1813
1822
  scrollX: number;
@@ -1820,7 +1829,7 @@ export declare const actionToggleEraserTool: {
1820
1829
  zoom: Readonly<{
1821
1830
  value: import("../types").NormalizedZoomValue;
1822
1831
  }>;
1823
- openMenu: "canvas" | "shape" | null;
1832
+ openMenu: "shape" | "canvas" | null;
1824
1833
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1825
1834
  openSidebar: {
1826
1835
  name: string;
@@ -1838,7 +1847,7 @@ export declare const actionToggleEraserTool: {
1838
1847
  sourceElementId: string;
1839
1848
  } | null;
1840
1849
  defaultSidebarDockedPreference: boolean;
1841
- lastPointerDownWith: import("../element/types").PointerType;
1850
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1842
1851
  hoveredElementIds: Readonly<{
1843
1852
  [id: string]: true;
1844
1853
  }>;
@@ -1853,7 +1862,7 @@ export declare const actionToggleEraserTool: {
1853
1862
  duration?: number | undefined;
1854
1863
  } | null;
1855
1864
  zenModeEnabled: boolean;
1856
- theme: import("../element/types").Theme;
1865
+ theme: import("@excalidraw/element/types").Theme;
1857
1866
  gridSize: number;
1858
1867
  gridStep: number;
1859
1868
  gridModeEnabled: boolean;
@@ -1871,7 +1880,7 @@ export declare const actionToggleEraserTool: {
1871
1880
  [id: string]: true;
1872
1881
  }> | undefined;
1873
1882
  username?: string | null | undefined;
1874
- userState?: import("../constants").UserIdleState | undefined;
1883
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1875
1884
  color?: {
1876
1885
  background: string;
1877
1886
  stroke: string;
@@ -1888,7 +1897,7 @@ export declare const actionToggleEraserTool: {
1888
1897
  open: boolean;
1889
1898
  panels: number;
1890
1899
  };
1891
- currentChartType: import("../element/types").ChartType;
1900
+ currentChartType: import("@excalidraw/element/types").ChartType;
1892
1901
  pasteDialog: {
1893
1902
  shown: false;
1894
1903
  data: null;
@@ -1897,8 +1906,8 @@ export declare const actionToggleEraserTool: {
1897
1906
  data: import("../charts").Spreadsheet;
1898
1907
  };
1899
1908
  pendingImageElementId: string | null;
1900
- showHyperlinkPopup: false | "info" | "editor";
1901
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1909
+ showHyperlinkPopup: false | "editor" | "info";
1910
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1902
1911
  snapLines: readonly import("../snapping").SnapLine[];
1903
1912
  originSnapOffset: {
1904
1913
  x: number;
@@ -1926,16 +1935,198 @@ export declare const actionToggleEraserTool: {
1926
1935
  } & {
1927
1936
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1928
1937
  };
1938
+ export declare const actionToggleLassoTool: {
1939
+ name: "toggleLassoTool";
1940
+ label: string;
1941
+ icon: import("react/jsx-runtime").JSX.Element;
1942
+ trackEvent: {
1943
+ category: "toolbar";
1944
+ };
1945
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1946
+ appState: {
1947
+ selectedElementIds: {};
1948
+ selectedGroupIds: {};
1949
+ activeEmbeddable: null;
1950
+ activeTool: {
1951
+ lastActiveTool: import("../types").ActiveTool | null;
1952
+ locked: boolean;
1953
+ fromSelection: boolean;
1954
+ } & import("../types").ActiveTool;
1955
+ contextMenu: {
1956
+ items: import("../components/ContextMenu").ContextMenuItems;
1957
+ top: number;
1958
+ left: number;
1959
+ } | null;
1960
+ showWelcomeScreen: boolean;
1961
+ isLoading: boolean;
1962
+ myocSimplifiedMode: boolean;
1963
+ hideMainMenus: boolean;
1964
+ wheelZoomsOnDefault?: boolean | undefined;
1965
+ errorMessage: import("react").ReactNode;
1966
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1967
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1968
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1969
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1970
+ isBindingEnabled: boolean;
1971
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1972
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1973
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1974
+ frameRendering: {
1975
+ enabled: boolean;
1976
+ name: boolean;
1977
+ outline: boolean;
1978
+ clip: boolean;
1979
+ };
1980
+ editingFrame: string | null;
1981
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1982
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1983
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1984
+ penMode: boolean;
1985
+ penDetected: boolean;
1986
+ exportBackground: boolean;
1987
+ exportEmbedScene: boolean;
1988
+ exportWithDarkMode: boolean;
1989
+ exportScale: number;
1990
+ currentItemStrokeColor: string;
1991
+ currentItemBackgroundColor: string;
1992
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1993
+ currentItemStrokeWidth: number;
1994
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1995
+ currentItemRoughness: number;
1996
+ currentItemOpacity: number;
1997
+ currentItemFontFamily: number;
1998
+ currentItemFontSize: number;
1999
+ currentItemTextAlign: string;
2000
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2001
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2002
+ currentHoveredFontFamily: number | null;
2003
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2004
+ currentItemArrowType: "round" | "sharp" | "elbow";
2005
+ viewBackgroundColor: string;
2006
+ scrollX: number;
2007
+ scrollY: number;
2008
+ cursorButton: "up" | "down";
2009
+ scrolledOutside: boolean;
2010
+ name: string | null;
2011
+ isResizing: boolean;
2012
+ isRotating: boolean;
2013
+ zoom: Readonly<{
2014
+ value: import("../types").NormalizedZoomValue;
2015
+ }>;
2016
+ openMenu: "shape" | "canvas" | null;
2017
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2018
+ openSidebar: {
2019
+ name: string;
2020
+ tab?: string | undefined;
2021
+ } | null;
2022
+ openDialog: {
2023
+ name: "imageExport" | "help" | "jsonExport";
2024
+ } | {
2025
+ name: "ttd";
2026
+ tab: "text-to-diagram" | "mermaid";
2027
+ } | {
2028
+ name: "commandPalette";
2029
+ } | {
2030
+ name: "elementLinkSelector";
2031
+ sourceElementId: string;
2032
+ } | null;
2033
+ defaultSidebarDockedPreference: boolean;
2034
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2035
+ hoveredElementIds: Readonly<{
2036
+ [id: string]: true;
2037
+ }>;
2038
+ previousSelectedElementIds: {
2039
+ [id: string]: true;
2040
+ };
2041
+ selectedElementsAreBeingDragged: boolean;
2042
+ shouldCacheIgnoreZoom: boolean;
2043
+ toast: {
2044
+ message: string;
2045
+ closable?: boolean | undefined;
2046
+ duration?: number | undefined;
2047
+ } | null;
2048
+ zenModeEnabled: boolean;
2049
+ theme: import("@excalidraw/element/types").Theme;
2050
+ gridSize: number;
2051
+ gridStep: number;
2052
+ gridModeEnabled: boolean;
2053
+ viewModeEnabled: boolean;
2054
+ editingGroupId: string | null;
2055
+ width: number;
2056
+ height: number;
2057
+ offsetTop: number;
2058
+ offsetLeft: number;
2059
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
2060
+ collaborators: Map<import("../types").SocketId, Readonly<{
2061
+ pointer?: import("../types").CollaboratorPointer | undefined;
2062
+ button?: "up" | "down" | undefined;
2063
+ selectedElementIds?: Readonly<{
2064
+ [id: string]: true;
2065
+ }> | undefined;
2066
+ username?: string | null | undefined;
2067
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2068
+ color?: {
2069
+ background: string;
2070
+ stroke: string;
2071
+ } | undefined;
2072
+ avatarUrl?: string | undefined;
2073
+ id?: string | undefined;
2074
+ socketId?: import("../types").SocketId | undefined;
2075
+ isCurrentUser?: boolean | undefined;
2076
+ isInCall?: boolean | undefined;
2077
+ isSpeaking?: boolean | undefined;
2078
+ isMuted?: boolean | undefined;
2079
+ }>>;
2080
+ stats: {
2081
+ open: boolean;
2082
+ panels: number;
2083
+ };
2084
+ currentChartType: import("@excalidraw/element/types").ChartType;
2085
+ pasteDialog: {
2086
+ shown: false;
2087
+ data: null;
2088
+ } | {
2089
+ shown: true;
2090
+ data: import("../charts").Spreadsheet;
2091
+ };
2092
+ pendingImageElementId: string | null;
2093
+ showHyperlinkPopup: false | "editor" | "info";
2094
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2095
+ snapLines: readonly import("../snapping").SnapLine[];
2096
+ originSnapOffset: {
2097
+ x: number;
2098
+ y: number;
2099
+ } | null;
2100
+ objectsSnapModeEnabled: boolean;
2101
+ userToFollow: import("../types").UserToFollow | null;
2102
+ followedBy: Set<import("../types").SocketId>;
2103
+ isCropping: boolean;
2104
+ croppingElementId: string | null;
2105
+ searchMatches: readonly {
2106
+ id: string;
2107
+ focus: boolean;
2108
+ matchedLines: {
2109
+ offsetX: number;
2110
+ offsetY: number;
2111
+ width: number;
2112
+ height: number;
2113
+ }[];
2114
+ }[];
2115
+ };
2116
+ captureUpdate: "NEVER";
2117
+ };
2118
+ } & {
2119
+ keyTest?: undefined;
2120
+ };
1929
2121
  export declare const actionToggleHandTool: {
1930
2122
  name: "toggleHandTool";
1931
2123
  label: string;
1932
- paletteName: string;
1933
2124
  trackEvent: {
1934
2125
  category: "toolbar";
1935
2126
  };
1936
2127
  icon: import("react/jsx-runtime").JSX.Element;
1937
2128
  viewMode: false;
1938
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2129
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1939
2130
  appState: {
1940
2131
  selectedElementIds: {};
1941
2132
  selectedGroupIds: {};
@@ -1943,6 +2134,7 @@ export declare const actionToggleHandTool: {
1943
2134
  activeTool: {
1944
2135
  lastActiveTool: import("../types").ActiveTool | null;
1945
2136
  locked: boolean;
2137
+ fromSelection: boolean;
1946
2138
  } & import("../types").ActiveTool;
1947
2139
  contextMenu: {
1948
2140
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1955,14 +2147,14 @@ export declare const actionToggleHandTool: {
1955
2147
  hideMainMenus: boolean;
1956
2148
  wheelZoomsOnDefault?: boolean | undefined;
1957
2149
  errorMessage: import("react").ReactNode;
1958
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1959
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1960
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1961
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2150
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2151
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2152
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2153
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1962
2154
  isBindingEnabled: boolean;
1963
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1964
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1965
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2155
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2156
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2157
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1966
2158
  frameRendering: {
1967
2159
  enabled: boolean;
1968
2160
  name: boolean;
@@ -1970,9 +2162,9 @@ export declare const actionToggleHandTool: {
1970
2162
  clip: boolean;
1971
2163
  };
1972
2164
  editingFrame: string | null;
1973
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1974
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1975
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2165
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2166
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2167
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1976
2168
  penMode: boolean;
1977
2169
  penDetected: boolean;
1978
2170
  exportBackground: boolean;
@@ -1981,18 +2173,18 @@ export declare const actionToggleHandTool: {
1981
2173
  exportScale: number;
1982
2174
  currentItemStrokeColor: string;
1983
2175
  currentItemBackgroundColor: string;
1984
- currentItemFillStyle: import("../element/types").FillStyle;
2176
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1985
2177
  currentItemStrokeWidth: number;
1986
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2178
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1987
2179
  currentItemRoughness: number;
1988
2180
  currentItemOpacity: number;
1989
2181
  currentItemFontFamily: number;
1990
2182
  currentItemFontSize: number;
1991
2183
  currentItemTextAlign: string;
1992
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1993
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2184
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2185
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1994
2186
  currentHoveredFontFamily: number | null;
1995
- currentItemRoundness: import("../element/types").StrokeRoundness;
2187
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1996
2188
  currentItemArrowType: "round" | "sharp" | "elbow";
1997
2189
  viewBackgroundColor: string;
1998
2190
  scrollX: number;
@@ -2005,7 +2197,7 @@ export declare const actionToggleHandTool: {
2005
2197
  zoom: Readonly<{
2006
2198
  value: import("../types").NormalizedZoomValue;
2007
2199
  }>;
2008
- openMenu: "canvas" | "shape" | null;
2200
+ openMenu: "shape" | "canvas" | null;
2009
2201
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2010
2202
  openSidebar: {
2011
2203
  name: string;
@@ -2023,7 +2215,7 @@ export declare const actionToggleHandTool: {
2023
2215
  sourceElementId: string;
2024
2216
  } | null;
2025
2217
  defaultSidebarDockedPreference: boolean;
2026
- lastPointerDownWith: import("../element/types").PointerType;
2218
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2027
2219
  hoveredElementIds: Readonly<{
2028
2220
  [id: string]: true;
2029
2221
  }>;
@@ -2038,7 +2230,7 @@ export declare const actionToggleHandTool: {
2038
2230
  duration?: number | undefined;
2039
2231
  } | null;
2040
2232
  zenModeEnabled: boolean;
2041
- theme: import("../element/types").Theme;
2233
+ theme: import("@excalidraw/element/types").Theme;
2042
2234
  gridSize: number;
2043
2235
  gridStep: number;
2044
2236
  gridModeEnabled: boolean;
@@ -2056,7 +2248,7 @@ export declare const actionToggleHandTool: {
2056
2248
  [id: string]: true;
2057
2249
  }> | undefined;
2058
2250
  username?: string | null | undefined;
2059
- userState?: import("../constants").UserIdleState | undefined;
2251
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2060
2252
  color?: {
2061
2253
  background: string;
2062
2254
  stroke: string;
@@ -2073,7 +2265,7 @@ export declare const actionToggleHandTool: {
2073
2265
  open: boolean;
2074
2266
  panels: number;
2075
2267
  };
2076
- currentChartType: import("../element/types").ChartType;
2268
+ currentChartType: import("@excalidraw/element/types").ChartType;
2077
2269
  pasteDialog: {
2078
2270
  shown: false;
2079
2271
  data: null;
@@ -2082,8 +2274,8 @@ export declare const actionToggleHandTool: {
2082
2274
  data: import("../charts").Spreadsheet;
2083
2275
  };
2084
2276
  pendingImageElementId: string | null;
2085
- showHyperlinkPopup: false | "info" | "editor";
2086
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2277
+ showHyperlinkPopup: false | "editor" | "info";
2278
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2087
2279
  snapLines: readonly import("../snapping").SnapLine[];
2088
2280
  originSnapOffset: {
2089
2281
  x: number;