@myoc/excalidraw 0.18.1 → 0.18.2

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 (227) hide show
  1. package/dist/dev/{chunk-DYSQNY2T.js → chunk-6MXLCRC3.js} +2 -1
  2. package/dist/dev/chunk-6MXLCRC3.js.map +7 -0
  3. package/dist/dev/{chunk-IVKGBVG7.js → chunk-WBHLRU4Z.js} +2 -2
  4. package/dist/dev/{chunk-IVKGBVG7.js.map → chunk-WBHLRU4Z.js.map} +1 -1
  5. package/dist/dev/{chunk-ND5KUA7P.js → chunk-WT7JKXOQ.js} +16541 -21170
  6. package/dist/dev/chunk-WT7JKXOQ.js.map +7 -0
  7. package/dist/dev/data/{image-ZD4HK457.js → image-N5NBMO74.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 +6637 -1355
  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-GALOWMDI.js +31 -0
  17. package/dist/prod/data/{image-YE6T6FOC.js → image-NMU2LHCK.js} +1 -1
  18. package/dist/prod/index.css +1 -1
  19. package/dist/prod/index.js +17 -14
  20. package/dist/prod/locales/{en-3JJA6ONK.js → en-RF5UZHGV.js} +1 -1
  21. package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
  22. package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
  23. package/dist/types/{excalidraw → common/src}/constants.d.ts +7 -6
  24. package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
  25. package/dist/types/common/src/index.d.ts +11 -0
  26. package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
  27. package/dist/types/common/src/promise-pool.d.ts +6 -0
  28. package/dist/types/{excalidraw → common/src}/utils.d.ts +9 -12
  29. package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
  30. package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
  31. package/dist/types/{excalidraw → element/src}/align.d.ts +2 -2
  32. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +5 -4
  33. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +6 -1
  34. package/dist/types/{excalidraw/element → element/src}/collision.d.ts +2 -2
  35. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  36. package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
  37. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
  38. package/dist/types/element/src/duplicate.d.ts +66 -0
  39. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  40. package/dist/types/element/src/embeddable.d.ts +10 -0
  41. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
  42. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
  43. package/dist/types/{excalidraw → element/src}/frame.d.ts +6 -6
  44. package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -5
  45. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  46. package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  47. package/dist/types/{excalidraw/element → element/src}/index.d.ts +0 -10
  48. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +5 -5
  49. package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
  50. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
  51. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  52. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +2 -2
  53. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +1 -1
  54. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +2 -2
  55. package/dist/types/{excalidraw → element/src}/shapes.d.ts +6 -6
  56. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  57. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
  58. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +3 -4
  59. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +5 -5
  60. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
  61. package/dist/types/{excalidraw/element → element/src}/types.d.ts +2 -2
  62. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  63. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +73 -70
  64. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  65. package/dist/types/excalidraw/actions/actionBoundText.d.ts +54 -52
  66. package/dist/types/excalidraw/actions/actionCanvas.d.ts +456 -264
  67. package/dist/types/excalidraw/actions/actionClipboard.d.ts +155 -149
  68. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +26 -25
  69. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +73 -70
  70. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  71. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  72. package/dist/types/excalidraw/actions/actionElementLink.d.ts +30 -29
  73. package/dist/types/excalidraw/actions/actionElementLock.d.ts +53 -52
  74. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +26 -35
  75. package/dist/types/excalidraw/actions/actionExport.d.ts +306 -297
  76. package/dist/types/excalidraw/actions/actionFinalize.d.ts +41 -39
  77. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  78. package/dist/types/excalidraw/actions/actionFrame.d.ts +217 -213
  79. package/dist/types/excalidraw/actions/actionGroup.d.ts +51 -49
  80. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +27 -26
  81. package/dist/types/excalidraw/actions/actionLink.d.ts +26 -25
  82. package/dist/types/excalidraw/actions/actionMenu.d.ts +73 -70
  83. package/dist/types/excalidraw/actions/actionNavigate.d.ts +48 -46
  84. package/dist/types/excalidraw/actions/actionProperties.d.ts +317 -302
  85. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +26 -25
  86. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +1 -1
  87. package/dist/types/excalidraw/actions/actionStyles.d.ts +28 -27
  88. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  89. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +26 -25
  90. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +26 -25
  91. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +50 -48
  92. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +25 -25
  93. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +26 -26
  94. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -26
  95. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  96. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  97. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  98. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  99. package/dist/types/excalidraw/actions/types.d.ts +2 -2
  100. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  101. package/dist/types/excalidraw/appState.d.ts +35 -34
  102. package/dist/types/excalidraw/change.d.ts +3 -3
  103. package/dist/types/excalidraw/charts.d.ts +1 -1
  104. package/dist/types/excalidraw/clipboard.d.ts +2 -2
  105. package/dist/types/excalidraw/components/Actions.d.ts +2 -2
  106. package/dist/types/excalidraw/components/App.d.ts +14 -9
  107. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
  108. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  109. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  110. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  111. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  112. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
  113. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  114. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  115. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
  116. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  117. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  118. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  119. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  120. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
  121. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  122. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  123. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
  124. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  125. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
  126. package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
  127. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  128. package/dist/types/excalidraw/components/LibraryUnit.d.ts +1 -1
  129. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  130. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  131. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  132. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  133. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  134. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  135. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  136. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  137. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  138. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  139. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  140. package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
  141. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  142. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  143. package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
  144. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -1
  145. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
  146. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  147. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  148. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
  149. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  150. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  151. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  152. package/dist/types/excalidraw/components/icons.d.ts +2 -1
  153. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  154. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  155. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  156. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  157. package/dist/types/excalidraw/data/blob.d.ts +5 -5
  158. package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
  159. package/dist/types/excalidraw/data/index.d.ts +1 -1
  160. package/dist/types/excalidraw/data/json.d.ts +1 -1
  161. package/dist/types/excalidraw/data/library.d.ts +2 -2
  162. package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
  163. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  164. package/dist/types/excalidraw/data/restore.d.ts +1 -1
  165. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  166. package/dist/types/excalidraw/data/types.d.ts +2 -2
  167. package/dist/types/excalidraw/errors.d.ts +0 -3
  168. package/dist/types/excalidraw/fonts/Fonts.d.ts +2 -12
  169. package/dist/types/excalidraw/history.d.ts +1 -1
  170. package/dist/types/excalidraw/i18n.d.ts +1 -1
  171. package/dist/types/excalidraw/index.d.ts +11 -10
  172. package/dist/types/excalidraw/lasso/index.d.ts +15 -0
  173. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  174. package/dist/types/excalidraw/renderer/helpers.d.ts +1 -1
  175. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
  176. package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
  177. package/dist/types/excalidraw/scene/Scene.d.ts +5 -5
  178. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  179. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  180. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  181. package/dist/types/excalidraw/scene/scrollbars.d.ts +1 -1
  182. package/dist/types/excalidraw/scene/types.d.ts +3 -3
  183. package/dist/types/excalidraw/snapping.d.ts +4 -5
  184. package/dist/types/excalidraw/store.d.ts +2 -2
  185. package/dist/types/excalidraw/types.d.ts +10 -9
  186. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  187. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
  188. package/dist/types/math/{point.d.ts → src/point.d.ts} +2 -2
  189. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  190. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  191. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  192. package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +1 -2
  193. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  194. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  195. package/dist/types/utils/{geometry → src}/shape.d.ts +1 -14
  196. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  197. package/history.ts +2 -1
  198. package/package.json +14 -2
  199. package/dist/dev/chunk-DYSQNY2T.js.map +0 -7
  200. package/dist/dev/chunk-ND5KUA7P.js.map +0 -7
  201. package/dist/prod/chunk-45TA3AZW.js +0 -34
  202. /package/dist/dev/data/{image-ZD4HK457.js.map → image-N5NBMO74.js.map} +0 -0
  203. /package/dist/dev/locales/{en-IW3FTNXY.js.map → en-FBYNI7ML.js.map} +0 -0
  204. /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  205. /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  206. /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  207. /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  208. /package/dist/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
  209. /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  210. /package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  211. /package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  212. /package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +0 -0
  213. /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  214. /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  215. /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  216. /package/dist/types/{excalidraw/element → element/src}/utils.d.ts +0 -0
  217. /package/dist/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
  218. /package/dist/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
  219. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  220. /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
  221. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  222. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  223. /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  224. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  225. /package/dist/types/math/{types.d.ts → src/types.d.ts} +0 -0
  226. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
  227. /package/dist/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
+ import type { Theme } from "@excalidraw/element/types";
2
3
  import "../components/ToolIcon.scss";
3
- import type { Theme } from "../element/types";
4
4
  export declare const actionChangeProjectName: {
5
5
  name: "changeProjectName";
6
6
  label: string;
7
7
  trackEvent: false;
8
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
8
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
9
9
  appState: {
10
10
  name: any;
11
11
  contextMenu: {
@@ -20,17 +20,17 @@ export declare const actionChangeProjectName: {
20
20
  wheelZoomsOnDefault?: boolean | undefined;
21
21
  errorMessage: import("react").ReactNode;
22
22
  activeEmbeddable: {
23
- element: import("../element/types").NonDeletedExcalidrawElement;
23
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
24
  state: "hover" | "active";
25
25
  } | null;
26
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
27
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
29
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("../element/binding").SuggestedBinding[];
33
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
31
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
33
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
34
  frameRendering: {
35
35
  enabled: boolean;
36
36
  name: boolean;
@@ -38,12 +38,13 @@ export declare const actionChangeProjectName: {
38
38
  clip: boolean;
39
39
  };
40
40
  editingFrame: string | null;
41
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
42
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
41
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
42
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
44
44
  activeTool: {
45
45
  lastActiveTool: import("../types").ActiveTool | null;
46
46
  locked: boolean;
47
+ fromSelection: boolean;
47
48
  } & import("../types").ActiveTool;
48
49
  penMode: boolean;
49
50
  penDetected: boolean;
@@ -53,18 +54,18 @@ export declare const actionChangeProjectName: {
53
54
  exportScale: number;
54
55
  currentItemStrokeColor: string;
55
56
  currentItemBackgroundColor: string;
56
- currentItemFillStyle: import("../element/types").FillStyle;
57
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
57
58
  currentItemStrokeWidth: number;
58
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
59
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
59
60
  currentItemRoughness: number;
60
61
  currentItemOpacity: number;
61
62
  currentItemFontFamily: number;
62
63
  currentItemFontSize: number;
63
64
  currentItemTextAlign: string;
64
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
65
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
67
  currentHoveredFontFamily: number | null;
67
- currentItemRoundness: import("../element/types").StrokeRoundness;
68
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
68
69
  currentItemArrowType: "round" | "sharp" | "elbow";
69
70
  viewBackgroundColor: string;
70
71
  scrollX: number;
@@ -76,7 +77,7 @@ export declare const actionChangeProjectName: {
76
77
  zoom: Readonly<{
77
78
  value: import("../types").NormalizedZoomValue;
78
79
  }>;
79
- openMenu: "canvas" | "shape" | null;
80
+ openMenu: "shape" | "canvas" | null;
80
81
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
82
  openSidebar: {
82
83
  name: string;
@@ -94,7 +95,7 @@ export declare const actionChangeProjectName: {
94
95
  sourceElementId: string;
95
96
  } | null;
96
97
  defaultSidebarDockedPreference: boolean;
97
- lastPointerDownWith: import("../element/types").PointerType;
98
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
99
  selectedElementIds: Readonly<{
99
100
  [id: string]: true;
100
101
  }>;
@@ -133,7 +134,7 @@ export declare const actionChangeProjectName: {
133
134
  [id: string]: true;
134
135
  }> | undefined;
135
136
  username?: string | null | undefined;
136
- userState?: import("../constants").UserIdleState | undefined;
137
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
137
138
  color?: {
138
139
  background: string;
139
140
  stroke: string;
@@ -150,7 +151,7 @@ export declare const actionChangeProjectName: {
150
151
  open: boolean;
151
152
  panels: number;
152
153
  };
153
- currentChartType: import("../element/types").ChartType;
154
+ currentChartType: import("@excalidraw/element/types").ChartType;
154
155
  pasteDialog: {
155
156
  shown: false;
156
157
  data: null;
@@ -159,8 +160,8 @@ export declare const actionChangeProjectName: {
159
160
  data: import("../charts").Spreadsheet;
160
161
  };
161
162
  pendingImageElementId: string | null;
162
- showHyperlinkPopup: false | "info" | "editor";
163
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
163
+ showHyperlinkPopup: false | "editor" | "info";
164
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
164
165
  snapLines: readonly import("../snapping").SnapLine[];
165
166
  originSnapOffset: {
166
167
  x: number;
@@ -195,7 +196,7 @@ export declare const actionChangeExportScale: {
195
196
  category: "export";
196
197
  action: string;
197
198
  };
198
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
199
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
199
200
  appState: {
200
201
  exportScale: any;
201
202
  contextMenu: {
@@ -210,17 +211,17 @@ export declare const actionChangeExportScale: {
210
211
  wheelZoomsOnDefault?: boolean | undefined;
211
212
  errorMessage: import("react").ReactNode;
212
213
  activeEmbeddable: {
213
- element: import("../element/types").NonDeletedExcalidrawElement;
214
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
214
215
  state: "hover" | "active";
215
216
  } | null;
216
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
217
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
218
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
219
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
217
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
218
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
219
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
220
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
220
221
  isBindingEnabled: boolean;
221
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
222
- suggestedBindings: import("../element/binding").SuggestedBinding[];
223
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
222
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
223
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
224
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
224
225
  frameRendering: {
225
226
  enabled: boolean;
226
227
  name: boolean;
@@ -228,12 +229,13 @@ export declare const actionChangeExportScale: {
228
229
  clip: boolean;
229
230
  };
230
231
  editingFrame: string | null;
231
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
232
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
233
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
232
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
233
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
234
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
234
235
  activeTool: {
235
236
  lastActiveTool: import("../types").ActiveTool | null;
236
237
  locked: boolean;
238
+ fromSelection: boolean;
237
239
  } & import("../types").ActiveTool;
238
240
  penMode: boolean;
239
241
  penDetected: boolean;
@@ -242,18 +244,18 @@ export declare const actionChangeExportScale: {
242
244
  exportWithDarkMode: boolean;
243
245
  currentItemStrokeColor: string;
244
246
  currentItemBackgroundColor: string;
245
- currentItemFillStyle: import("../element/types").FillStyle;
247
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
246
248
  currentItemStrokeWidth: number;
247
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
249
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
248
250
  currentItemRoughness: number;
249
251
  currentItemOpacity: number;
250
252
  currentItemFontFamily: number;
251
253
  currentItemFontSize: number;
252
254
  currentItemTextAlign: string;
253
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
254
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
255
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
256
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
255
257
  currentHoveredFontFamily: number | null;
256
- currentItemRoundness: import("../element/types").StrokeRoundness;
258
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
257
259
  currentItemArrowType: "round" | "sharp" | "elbow";
258
260
  viewBackgroundColor: string;
259
261
  scrollX: number;
@@ -266,7 +268,7 @@ export declare const actionChangeExportScale: {
266
268
  zoom: Readonly<{
267
269
  value: import("../types").NormalizedZoomValue;
268
270
  }>;
269
- openMenu: "canvas" | "shape" | null;
271
+ openMenu: "shape" | "canvas" | null;
270
272
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
271
273
  openSidebar: {
272
274
  name: string;
@@ -284,7 +286,7 @@ export declare const actionChangeExportScale: {
284
286
  sourceElementId: string;
285
287
  } | null;
286
288
  defaultSidebarDockedPreference: boolean;
287
- lastPointerDownWith: import("../element/types").PointerType;
289
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
288
290
  selectedElementIds: Readonly<{
289
291
  [id: string]: true;
290
292
  }>;
@@ -323,7 +325,7 @@ export declare const actionChangeExportScale: {
323
325
  [id: string]: true;
324
326
  }> | undefined;
325
327
  username?: string | null | undefined;
326
- userState?: import("../constants").UserIdleState | undefined;
328
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
327
329
  color?: {
328
330
  background: string;
329
331
  stroke: string;
@@ -340,7 +342,7 @@ export declare const actionChangeExportScale: {
340
342
  open: boolean;
341
343
  panels: number;
342
344
  };
343
- currentChartType: import("../element/types").ChartType;
345
+ currentChartType: import("@excalidraw/element/types").ChartType;
344
346
  pasteDialog: {
345
347
  shown: false;
346
348
  data: null;
@@ -349,8 +351,8 @@ export declare const actionChangeExportScale: {
349
351
  data: import("../charts").Spreadsheet;
350
352
  };
351
353
  pendingImageElementId: string | null;
352
- showHyperlinkPopup: false | "info" | "editor";
353
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
354
+ showHyperlinkPopup: false | "editor" | "info";
355
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
354
356
  snapLines: readonly import("../snapping").SnapLine[];
355
357
  originSnapOffset: {
356
358
  x: number;
@@ -385,7 +387,7 @@ export declare const actionChangeExportBackground: {
385
387
  category: "export";
386
388
  action: string;
387
389
  };
388
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
390
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
389
391
  appState: {
390
392
  exportBackground: any;
391
393
  contextMenu: {
@@ -400,17 +402,17 @@ export declare const actionChangeExportBackground: {
400
402
  wheelZoomsOnDefault?: boolean | undefined;
401
403
  errorMessage: import("react").ReactNode;
402
404
  activeEmbeddable: {
403
- element: import("../element/types").NonDeletedExcalidrawElement;
405
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
404
406
  state: "hover" | "active";
405
407
  } | null;
406
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
407
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
408
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
409
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
408
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
409
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
411
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
412
  isBindingEnabled: boolean;
411
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
412
- suggestedBindings: import("../element/binding").SuggestedBinding[];
413
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
413
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
414
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
415
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
414
416
  frameRendering: {
415
417
  enabled: boolean;
416
418
  name: boolean;
@@ -418,12 +420,13 @@ export declare const actionChangeExportBackground: {
418
420
  clip: boolean;
419
421
  };
420
422
  editingFrame: string | null;
421
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
422
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
423
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
423
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
424
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
425
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
424
426
  activeTool: {
425
427
  lastActiveTool: import("../types").ActiveTool | null;
426
428
  locked: boolean;
429
+ fromSelection: boolean;
427
430
  } & import("../types").ActiveTool;
428
431
  penMode: boolean;
429
432
  penDetected: boolean;
@@ -432,18 +435,18 @@ export declare const actionChangeExportBackground: {
432
435
  exportScale: number;
433
436
  currentItemStrokeColor: string;
434
437
  currentItemBackgroundColor: string;
435
- currentItemFillStyle: import("../element/types").FillStyle;
438
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
436
439
  currentItemStrokeWidth: number;
437
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
440
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
438
441
  currentItemRoughness: number;
439
442
  currentItemOpacity: number;
440
443
  currentItemFontFamily: number;
441
444
  currentItemFontSize: number;
442
445
  currentItemTextAlign: string;
443
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
444
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
446
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
447
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
445
448
  currentHoveredFontFamily: number | null;
446
- currentItemRoundness: import("../element/types").StrokeRoundness;
449
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
447
450
  currentItemArrowType: "round" | "sharp" | "elbow";
448
451
  viewBackgroundColor: string;
449
452
  scrollX: number;
@@ -456,7 +459,7 @@ export declare const actionChangeExportBackground: {
456
459
  zoom: Readonly<{
457
460
  value: import("../types").NormalizedZoomValue;
458
461
  }>;
459
- openMenu: "canvas" | "shape" | null;
462
+ openMenu: "shape" | "canvas" | null;
460
463
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
461
464
  openSidebar: {
462
465
  name: string;
@@ -474,7 +477,7 @@ export declare const actionChangeExportBackground: {
474
477
  sourceElementId: string;
475
478
  } | null;
476
479
  defaultSidebarDockedPreference: boolean;
477
- lastPointerDownWith: import("../element/types").PointerType;
480
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
478
481
  selectedElementIds: Readonly<{
479
482
  [id: string]: true;
480
483
  }>;
@@ -513,7 +516,7 @@ export declare const actionChangeExportBackground: {
513
516
  [id: string]: true;
514
517
  }> | undefined;
515
518
  username?: string | null | undefined;
516
- userState?: import("../constants").UserIdleState | undefined;
519
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
517
520
  color?: {
518
521
  background: string;
519
522
  stroke: string;
@@ -530,7 +533,7 @@ export declare const actionChangeExportBackground: {
530
533
  open: boolean;
531
534
  panels: number;
532
535
  };
533
- currentChartType: import("../element/types").ChartType;
536
+ currentChartType: import("@excalidraw/element/types").ChartType;
534
537
  pasteDialog: {
535
538
  shown: false;
536
539
  data: null;
@@ -539,8 +542,8 @@ export declare const actionChangeExportBackground: {
539
542
  data: import("../charts").Spreadsheet;
540
543
  };
541
544
  pendingImageElementId: string | null;
542
- showHyperlinkPopup: false | "info" | "editor";
543
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
545
+ showHyperlinkPopup: false | "editor" | "info";
546
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
544
547
  snapLines: readonly import("../snapping").SnapLine[];
545
548
  originSnapOffset: {
546
549
  x: number;
@@ -575,7 +578,7 @@ export declare const actionChangeExportEmbedScene: {
575
578
  category: "export";
576
579
  action: string;
577
580
  };
578
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
581
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
579
582
  appState: {
580
583
  exportEmbedScene: any;
581
584
  contextMenu: {
@@ -590,17 +593,17 @@ export declare const actionChangeExportEmbedScene: {
590
593
  wheelZoomsOnDefault?: boolean | undefined;
591
594
  errorMessage: import("react").ReactNode;
592
595
  activeEmbeddable: {
593
- element: import("../element/types").NonDeletedExcalidrawElement;
596
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
594
597
  state: "hover" | "active";
595
598
  } | null;
596
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
597
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
598
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
599
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
599
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
600
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
601
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
602
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
600
603
  isBindingEnabled: boolean;
601
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
602
- suggestedBindings: import("../element/binding").SuggestedBinding[];
603
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
604
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
605
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
606
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
604
607
  frameRendering: {
605
608
  enabled: boolean;
606
609
  name: boolean;
@@ -608,12 +611,13 @@ export declare const actionChangeExportEmbedScene: {
608
611
  clip: boolean;
609
612
  };
610
613
  editingFrame: string | null;
611
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
612
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
613
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
614
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
615
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
616
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
614
617
  activeTool: {
615
618
  lastActiveTool: import("../types").ActiveTool | null;
616
619
  locked: boolean;
620
+ fromSelection: boolean;
617
621
  } & import("../types").ActiveTool;
618
622
  penMode: boolean;
619
623
  penDetected: boolean;
@@ -622,18 +626,18 @@ export declare const actionChangeExportEmbedScene: {
622
626
  exportScale: number;
623
627
  currentItemStrokeColor: string;
624
628
  currentItemBackgroundColor: string;
625
- currentItemFillStyle: import("../element/types").FillStyle;
629
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
626
630
  currentItemStrokeWidth: number;
627
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
631
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
628
632
  currentItemRoughness: number;
629
633
  currentItemOpacity: number;
630
634
  currentItemFontFamily: number;
631
635
  currentItemFontSize: number;
632
636
  currentItemTextAlign: string;
633
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
634
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
637
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
638
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
635
639
  currentHoveredFontFamily: number | null;
636
- currentItemRoundness: import("../element/types").StrokeRoundness;
640
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
637
641
  currentItemArrowType: "round" | "sharp" | "elbow";
638
642
  viewBackgroundColor: string;
639
643
  scrollX: number;
@@ -646,7 +650,7 @@ export declare const actionChangeExportEmbedScene: {
646
650
  zoom: Readonly<{
647
651
  value: import("../types").NormalizedZoomValue;
648
652
  }>;
649
- openMenu: "canvas" | "shape" | null;
653
+ openMenu: "shape" | "canvas" | null;
650
654
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
651
655
  openSidebar: {
652
656
  name: string;
@@ -664,7 +668,7 @@ export declare const actionChangeExportEmbedScene: {
664
668
  sourceElementId: string;
665
669
  } | null;
666
670
  defaultSidebarDockedPreference: boolean;
667
- lastPointerDownWith: import("../element/types").PointerType;
671
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
668
672
  selectedElementIds: Readonly<{
669
673
  [id: string]: true;
670
674
  }>;
@@ -703,7 +707,7 @@ export declare const actionChangeExportEmbedScene: {
703
707
  [id: string]: true;
704
708
  }> | undefined;
705
709
  username?: string | null | undefined;
706
- userState?: import("../constants").UserIdleState | undefined;
710
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
707
711
  color?: {
708
712
  background: string;
709
713
  stroke: string;
@@ -720,7 +724,7 @@ export declare const actionChangeExportEmbedScene: {
720
724
  open: boolean;
721
725
  panels: number;
722
726
  };
723
- currentChartType: import("../element/types").ChartType;
727
+ currentChartType: import("@excalidraw/element/types").ChartType;
724
728
  pasteDialog: {
725
729
  shown: false;
726
730
  data: null;
@@ -729,8 +733,8 @@ export declare const actionChangeExportEmbedScene: {
729
733
  data: import("../charts").Spreadsheet;
730
734
  };
731
735
  pendingImageElementId: string | null;
732
- showHyperlinkPopup: false | "info" | "editor";
733
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
736
+ showHyperlinkPopup: false | "editor" | "info";
737
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
734
738
  snapLines: readonly import("../snapping").SnapLine[];
735
739
  originSnapOffset: {
736
740
  x: number;
@@ -765,8 +769,8 @@ export declare const actionSaveToActiveFile: {
765
769
  trackEvent: {
766
770
  category: "export";
767
771
  };
768
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
769
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
772
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
773
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
770
774
  captureUpdate: "EVENTUALLY";
771
775
  appState: {
772
776
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
@@ -785,17 +789,17 @@ export declare const actionSaveToActiveFile: {
785
789
  wheelZoomsOnDefault?: boolean | undefined;
786
790
  errorMessage: import("react").ReactNode;
787
791
  activeEmbeddable: {
788
- element: import("../element/types").NonDeletedExcalidrawElement;
792
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
789
793
  state: "hover" | "active";
790
794
  } | null;
791
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
792
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
793
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
794
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
795
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
796
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
797
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
798
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
795
799
  isBindingEnabled: boolean;
796
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
797
- suggestedBindings: import("../element/binding").SuggestedBinding[];
798
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
800
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
801
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
802
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
799
803
  frameRendering: {
800
804
  enabled: boolean;
801
805
  name: boolean;
@@ -803,12 +807,13 @@ export declare const actionSaveToActiveFile: {
803
807
  clip: boolean;
804
808
  };
805
809
  editingFrame: string | null;
806
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
807
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
808
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
810
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
811
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
812
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
809
813
  activeTool: {
810
814
  lastActiveTool: import("../types").ActiveTool | null;
811
815
  locked: boolean;
816
+ fromSelection: boolean;
812
817
  } & import("../types").ActiveTool;
813
818
  penMode: boolean;
814
819
  penDetected: boolean;
@@ -818,18 +823,18 @@ export declare const actionSaveToActiveFile: {
818
823
  exportScale: number;
819
824
  currentItemStrokeColor: string;
820
825
  currentItemBackgroundColor: string;
821
- currentItemFillStyle: import("../element/types").FillStyle;
826
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
822
827
  currentItemStrokeWidth: number;
823
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
828
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
824
829
  currentItemRoughness: number;
825
830
  currentItemOpacity: number;
826
831
  currentItemFontFamily: number;
827
832
  currentItemFontSize: number;
828
833
  currentItemTextAlign: string;
829
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
830
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
834
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
835
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
831
836
  currentHoveredFontFamily: number | null;
832
- currentItemRoundness: import("../element/types").StrokeRoundness;
837
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
833
838
  currentItemArrowType: "round" | "sharp" | "elbow";
834
839
  viewBackgroundColor: string;
835
840
  scrollX: number;
@@ -842,7 +847,7 @@ export declare const actionSaveToActiveFile: {
842
847
  zoom: Readonly<{
843
848
  value: import("../types").NormalizedZoomValue;
844
849
  }>;
845
- openMenu: "canvas" | "shape" | null;
850
+ openMenu: "shape" | "canvas" | null;
846
851
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
847
852
  openSidebar: {
848
853
  name: string;
@@ -860,7 +865,7 @@ export declare const actionSaveToActiveFile: {
860
865
  sourceElementId: string;
861
866
  } | null;
862
867
  defaultSidebarDockedPreference: boolean;
863
- lastPointerDownWith: import("../element/types").PointerType;
868
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
864
869
  selectedElementIds: Readonly<{
865
870
  [id: string]: true;
866
871
  }>;
@@ -893,7 +898,7 @@ export declare const actionSaveToActiveFile: {
893
898
  [id: string]: true;
894
899
  }> | undefined;
895
900
  username?: string | null | undefined;
896
- userState?: import("../constants").UserIdleState | undefined;
901
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
897
902
  color?: {
898
903
  background: string;
899
904
  stroke: string;
@@ -910,7 +915,7 @@ export declare const actionSaveToActiveFile: {
910
915
  open: boolean;
911
916
  panels: number;
912
917
  };
913
- currentChartType: import("../element/types").ChartType;
918
+ currentChartType: import("@excalidraw/element/types").ChartType;
914
919
  pasteDialog: {
915
920
  shown: false;
916
921
  data: null;
@@ -919,8 +924,8 @@ export declare const actionSaveToActiveFile: {
919
924
  data: import("../charts").Spreadsheet;
920
925
  };
921
926
  pendingImageElementId: string | null;
922
- showHyperlinkPopup: false | "info" | "editor";
923
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
927
+ showHyperlinkPopup: false | "editor" | "info";
928
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
924
929
  snapLines: readonly import("../snapping").SnapLine[];
925
930
  originSnapOffset: {
926
931
  x: number;
@@ -946,9 +951,9 @@ export declare const actionSaveToActiveFile: {
946
951
  captureUpdate: "EVENTUALLY";
947
952
  appState?: undefined;
948
953
  }>;
949
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
954
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false;
950
955
  } & {
951
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
956
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false) | undefined;
952
957
  };
953
958
  export declare const actionSaveFileToDisk: {
954
959
  name: "saveFileToDisk";
@@ -958,7 +963,7 @@ export declare const actionSaveFileToDisk: {
958
963
  trackEvent: {
959
964
  category: "export";
960
965
  };
961
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
966
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
962
967
  captureUpdate: "EVENTUALLY";
963
968
  appState: {
964
969
  openDialog: null;
@@ -978,17 +983,17 @@ export declare const actionSaveFileToDisk: {
978
983
  wheelZoomsOnDefault?: boolean | undefined;
979
984
  errorMessage: import("react").ReactNode;
980
985
  activeEmbeddable: {
981
- element: import("../element/types").NonDeletedExcalidrawElement;
986
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
982
987
  state: "hover" | "active";
983
988
  } | null;
984
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
985
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
986
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
987
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
989
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
990
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
991
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
992
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
988
993
  isBindingEnabled: boolean;
989
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
990
- suggestedBindings: import("../element/binding").SuggestedBinding[];
991
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
994
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
995
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
996
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
992
997
  frameRendering: {
993
998
  enabled: boolean;
994
999
  name: boolean;
@@ -996,12 +1001,13 @@ export declare const actionSaveFileToDisk: {
996
1001
  clip: boolean;
997
1002
  };
998
1003
  editingFrame: string | null;
999
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1000
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1001
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1004
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1005
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1006
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1002
1007
  activeTool: {
1003
1008
  lastActiveTool: import("../types").ActiveTool | null;
1004
1009
  locked: boolean;
1010
+ fromSelection: boolean;
1005
1011
  } & import("../types").ActiveTool;
1006
1012
  penMode: boolean;
1007
1013
  penDetected: boolean;
@@ -1011,18 +1017,18 @@ export declare const actionSaveFileToDisk: {
1011
1017
  exportScale: number;
1012
1018
  currentItemStrokeColor: string;
1013
1019
  currentItemBackgroundColor: string;
1014
- currentItemFillStyle: import("../element/types").FillStyle;
1020
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1015
1021
  currentItemStrokeWidth: number;
1016
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1022
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1017
1023
  currentItemRoughness: number;
1018
1024
  currentItemOpacity: number;
1019
1025
  currentItemFontFamily: number;
1020
1026
  currentItemFontSize: number;
1021
1027
  currentItemTextAlign: string;
1022
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1023
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1028
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1029
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1024
1030
  currentHoveredFontFamily: number | null;
1025
- currentItemRoundness: import("../element/types").StrokeRoundness;
1031
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1026
1032
  currentItemArrowType: "round" | "sharp" | "elbow";
1027
1033
  viewBackgroundColor: string;
1028
1034
  scrollX: number;
@@ -1035,14 +1041,14 @@ export declare const actionSaveFileToDisk: {
1035
1041
  zoom: Readonly<{
1036
1042
  value: import("../types").NormalizedZoomValue;
1037
1043
  }>;
1038
- openMenu: "canvas" | "shape" | null;
1044
+ openMenu: "shape" | "canvas" | null;
1039
1045
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1040
1046
  openSidebar: {
1041
1047
  name: string;
1042
1048
  tab?: string | undefined;
1043
1049
  } | null;
1044
1050
  defaultSidebarDockedPreference: boolean;
1045
- lastPointerDownWith: import("../element/types").PointerType;
1051
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1046
1052
  selectedElementIds: Readonly<{
1047
1053
  [id: string]: true;
1048
1054
  }>;
@@ -1075,7 +1081,7 @@ export declare const actionSaveFileToDisk: {
1075
1081
  [id: string]: true;
1076
1082
  }> | undefined;
1077
1083
  username?: string | null | undefined;
1078
- userState?: import("../constants").UserIdleState | undefined;
1084
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1079
1085
  color?: {
1080
1086
  background: string;
1081
1087
  stroke: string;
@@ -1092,7 +1098,7 @@ export declare const actionSaveFileToDisk: {
1092
1098
  open: boolean;
1093
1099
  panels: number;
1094
1100
  };
1095
- currentChartType: import("../element/types").ChartType;
1101
+ currentChartType: import("@excalidraw/element/types").ChartType;
1096
1102
  pasteDialog: {
1097
1103
  shown: false;
1098
1104
  data: null;
@@ -1101,8 +1107,8 @@ export declare const actionSaveFileToDisk: {
1101
1107
  data: import("../charts").Spreadsheet;
1102
1108
  };
1103
1109
  pendingImageElementId: string | null;
1104
- showHyperlinkPopup: false | "info" | "editor";
1105
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1110
+ showHyperlinkPopup: false | "editor" | "info";
1111
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1106
1112
  snapLines: readonly import("../snapping").SnapLine[];
1107
1113
  originSnapOffset: {
1108
1114
  x: number;
@@ -1139,85 +1145,25 @@ export declare const actionLoadScene: {
1139
1145
  trackEvent: {
1140
1146
  category: "export";
1141
1147
  };
1142
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1143
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1144
- elements: import("../element/types").OrderedExcalidrawElement[];
1148
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1149
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1150
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1145
1151
  appState: {
1146
- contextMenu: {
1147
- items: import("../components/ContextMenu").ContextMenuItems;
1148
- top: number;
1149
- left: number;
1150
- } | null;
1151
- showWelcomeScreen: boolean;
1152
- isLoading: boolean;
1153
- myocSimplifiedMode: boolean;
1154
- hideMainMenus: boolean;
1155
- wheelZoomsOnDefault?: boolean | undefined;
1156
- errorMessage: import("react").ReactNode;
1157
- activeEmbeddable: {
1158
- element: import("../element/types").NonDeletedExcalidrawElement;
1159
- state: "hover" | "active";
1160
- } | null;
1161
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1162
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1163
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1164
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1165
- isBindingEnabled: boolean;
1166
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1167
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1168
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1152
+ viewBackgroundColor: string;
1169
1153
  frameRendering: {
1170
1154
  enabled: boolean;
1171
1155
  name: boolean;
1172
1156
  outline: boolean;
1173
1157
  clip: boolean;
1174
1158
  };
1175
- editingFrame: string | null;
1176
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1177
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1178
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1179
- activeTool: {
1180
- lastActiveTool: import("../types").ActiveTool | null;
1181
- locked: boolean;
1182
- } & import("../types").ActiveTool;
1183
- penMode: boolean;
1184
- penDetected: boolean;
1185
- exportBackground: boolean;
1186
- exportEmbedScene: boolean;
1187
- exportWithDarkMode: boolean;
1188
- exportScale: number;
1189
- currentItemStrokeColor: string;
1190
- currentItemBackgroundColor: string;
1191
- currentItemFillStyle: import("../element/types").FillStyle;
1192
- currentItemStrokeWidth: number;
1193
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1194
- currentItemRoughness: number;
1195
- currentItemOpacity: number;
1196
- currentItemFontFamily: number;
1197
- currentItemFontSize: number;
1198
- currentItemTextAlign: string;
1199
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1200
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1201
- currentHoveredFontFamily: number | null;
1202
- currentItemRoundness: import("../element/types").StrokeRoundness;
1203
- currentItemArrowType: "round" | "sharp" | "elbow";
1204
- viewBackgroundColor: string;
1205
- scrollX: number;
1206
- scrollY: number;
1207
- cursorButton: "up" | "down";
1208
- scrolledOutside: boolean;
1209
1159
  name: string | null;
1210
- isResizing: boolean;
1211
- isRotating: boolean;
1160
+ theme: Theme;
1212
1161
  zoom: Readonly<{
1213
1162
  value: import("../types").NormalizedZoomValue;
1214
1163
  }>;
1215
- openMenu: "canvas" | "shape" | null;
1216
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1217
- openSidebar: {
1218
- name: string;
1219
- tab?: string | undefined;
1220
- } | null;
1164
+ scrollX: number;
1165
+ scrollY: number;
1166
+ viewModeEnabled: boolean;
1221
1167
  openDialog: {
1222
1168
  name: "imageExport" | "help" | "jsonExport";
1223
1169
  } | {
@@ -1229,35 +1175,27 @@ export declare const actionLoadScene: {
1229
1175
  name: "elementLinkSelector";
1230
1176
  sourceElementId: string;
1231
1177
  } | null;
1232
- defaultSidebarDockedPreference: boolean;
1233
- lastPointerDownWith: import("../element/types").PointerType;
1178
+ editingGroupId: string | null;
1234
1179
  selectedElementIds: Readonly<{
1235
1180
  [id: string]: true;
1236
1181
  }>;
1237
- hoveredElementIds: Readonly<{
1238
- [id: string]: true;
1239
- }>;
1240
- previousSelectedElementIds: {
1241
- [id: string]: true;
1242
- };
1243
- selectedElementsAreBeingDragged: boolean;
1244
- shouldCacheIgnoreZoom: boolean;
1245
- toast: {
1246
- message: string;
1247
- closable?: boolean | undefined;
1248
- duration?: number | undefined;
1182
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1183
+ pendingImageElementId: string | null;
1184
+ activeEmbeddable: {
1185
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1186
+ state: "hover" | "active";
1249
1187
  } | null;
1250
- zenModeEnabled: boolean;
1251
- theme: Theme;
1252
- gridSize: number;
1253
- gridStep: number;
1254
- gridModeEnabled: boolean;
1255
- viewModeEnabled: boolean;
1188
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1189
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1256
1190
  selectedGroupIds: {
1257
1191
  [groupId: string]: boolean;
1258
1192
  };
1259
- editingGroupId: string | null;
1260
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1193
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1194
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1195
+ isBindingEnabled: boolean;
1196
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1197
+ isRotating: boolean;
1198
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1261
1199
  collaborators: Map<import("../types").SocketId, Readonly<{
1262
1200
  pointer?: import("../types").CollaboratorPointer | undefined;
1263
1201
  button?: "up" | "down" | undefined;
@@ -1265,7 +1203,7 @@ export declare const actionLoadScene: {
1265
1203
  [id: string]: true;
1266
1204
  }> | undefined;
1267
1205
  username?: string | null | undefined;
1268
- userState?: import("../constants").UserIdleState | undefined;
1206
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1269
1207
  color?: {
1270
1208
  background: string;
1271
1209
  stroke: string;
@@ -1278,11 +1216,96 @@ export declare const actionLoadScene: {
1278
1216
  isSpeaking?: boolean | undefined;
1279
1217
  isMuted?: boolean | undefined;
1280
1218
  }>>;
1219
+ snapLines: readonly import("../snapping").SnapLine[];
1220
+ zenModeEnabled: boolean;
1221
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1222
+ isCropping: boolean;
1223
+ croppingElementId: string | null;
1224
+ searchMatches: readonly {
1225
+ id: string;
1226
+ focus: boolean;
1227
+ matchedLines: {
1228
+ offsetX: number;
1229
+ offsetY: number;
1230
+ width: number;
1231
+ height: number;
1232
+ }[];
1233
+ }[];
1234
+ gridModeEnabled: boolean;
1235
+ objectsSnapModeEnabled: boolean;
1236
+ wheelZoomsOnDefault?: boolean | undefined;
1237
+ shouldCacheIgnoreZoom: boolean;
1238
+ exportScale: number;
1239
+ selectedElementsAreBeingDragged: boolean;
1240
+ gridSize: number;
1241
+ gridStep: number;
1242
+ currentHoveredFontFamily: number | null;
1243
+ hoveredElementIds: Readonly<{
1244
+ [id: string]: true;
1245
+ }>;
1246
+ contextMenu: {
1247
+ items: import("../components/ContextMenu").ContextMenuItems;
1248
+ top: number;
1249
+ left: number;
1250
+ } | null;
1251
+ showWelcomeScreen: boolean;
1252
+ isLoading: boolean;
1253
+ myocSimplifiedMode: boolean;
1254
+ hideMainMenus: boolean;
1255
+ errorMessage: import("react").ReactNode;
1256
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1257
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1258
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1259
+ editingFrame: string | null;
1260
+ activeTool: {
1261
+ lastActiveTool: import("../types").ActiveTool | null;
1262
+ locked: boolean;
1263
+ fromSelection: boolean;
1264
+ } & import("../types").ActiveTool;
1265
+ penMode: boolean;
1266
+ penDetected: boolean;
1267
+ exportBackground: boolean;
1268
+ exportEmbedScene: boolean;
1269
+ exportWithDarkMode: boolean;
1270
+ currentItemStrokeColor: string;
1271
+ currentItemBackgroundColor: string;
1272
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1273
+ currentItemStrokeWidth: number;
1274
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1275
+ currentItemRoughness: number;
1276
+ currentItemOpacity: number;
1277
+ currentItemFontFamily: number;
1278
+ currentItemFontSize: number;
1279
+ currentItemTextAlign: string;
1280
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1281
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1282
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1283
+ currentItemArrowType: "round" | "sharp" | "elbow";
1284
+ cursorButton: "up" | "down";
1285
+ scrolledOutside: boolean;
1286
+ isResizing: boolean;
1287
+ openMenu: "shape" | "canvas" | null;
1288
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1289
+ openSidebar: {
1290
+ name: string;
1291
+ tab?: string | undefined;
1292
+ } | null;
1293
+ defaultSidebarDockedPreference: boolean;
1294
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1295
+ previousSelectedElementIds: {
1296
+ [id: string]: true;
1297
+ };
1298
+ toast: {
1299
+ message: string;
1300
+ closable?: boolean | undefined;
1301
+ duration?: number | undefined;
1302
+ } | null;
1303
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1281
1304
  stats: {
1282
1305
  open: boolean;
1283
1306
  panels: number;
1284
1307
  };
1285
- currentChartType: import("../element/types").ChartType;
1308
+ currentChartType: import("@excalidraw/element/types").ChartType;
1286
1309
  pasteDialog: {
1287
1310
  shown: false;
1288
1311
  data: null;
@@ -1290,34 +1313,18 @@ export declare const actionLoadScene: {
1290
1313
  shown: true;
1291
1314
  data: import("../charts").Spreadsheet;
1292
1315
  };
1293
- pendingImageElementId: string | null;
1294
- showHyperlinkPopup: false | "info" | "editor";
1295
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1296
- snapLines: readonly import("../snapping").SnapLine[];
1316
+ showHyperlinkPopup: false | "editor" | "info";
1297
1317
  originSnapOffset: {
1298
1318
  x: number;
1299
1319
  y: number;
1300
1320
  } | null;
1301
- objectsSnapModeEnabled: boolean;
1302
1321
  userToFollow: import("../types").UserToFollow | null;
1303
1322
  followedBy: Set<import("../types").SocketId>;
1304
- isCropping: boolean;
1305
- croppingElementId: string | null;
1306
- searchMatches: readonly {
1307
- id: string;
1308
- focus: boolean;
1309
- matchedLines: {
1310
- offsetX: number;
1311
- offsetY: number;
1312
- width: number;
1313
- height: number;
1314
- }[];
1315
- }[];
1316
1323
  };
1317
1324
  files: import("../types").BinaryFiles;
1318
1325
  captureUpdate: "IMMEDIATELY";
1319
1326
  } | {
1320
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
1327
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
1321
1328
  appState: {
1322
1329
  errorMessage: any;
1323
1330
  contextMenu: {
@@ -1331,17 +1338,17 @@ export declare const actionLoadScene: {
1331
1338
  hideMainMenus: boolean;
1332
1339
  wheelZoomsOnDefault?: boolean | undefined;
1333
1340
  activeEmbeddable: {
1334
- element: import("../element/types").NonDeletedExcalidrawElement;
1341
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1335
1342
  state: "hover" | "active";
1336
1343
  } | null;
1337
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1338
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1339
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1340
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1344
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1345
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1346
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1347
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1341
1348
  isBindingEnabled: boolean;
1342
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1343
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1344
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1349
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1350
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1351
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1345
1352
  frameRendering: {
1346
1353
  enabled: boolean;
1347
1354
  name: boolean;
@@ -1349,12 +1356,13 @@ export declare const actionLoadScene: {
1349
1356
  clip: boolean;
1350
1357
  };
1351
1358
  editingFrame: string | null;
1352
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1353
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1354
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1359
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1360
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1361
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1355
1362
  activeTool: {
1356
1363
  lastActiveTool: import("../types").ActiveTool | null;
1357
1364
  locked: boolean;
1365
+ fromSelection: boolean;
1358
1366
  } & import("../types").ActiveTool;
1359
1367
  penMode: boolean;
1360
1368
  penDetected: boolean;
@@ -1364,18 +1372,18 @@ export declare const actionLoadScene: {
1364
1372
  exportScale: number;
1365
1373
  currentItemStrokeColor: string;
1366
1374
  currentItemBackgroundColor: string;
1367
- currentItemFillStyle: import("../element/types").FillStyle;
1375
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1368
1376
  currentItemStrokeWidth: number;
1369
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1377
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1370
1378
  currentItemRoughness: number;
1371
1379
  currentItemOpacity: number;
1372
1380
  currentItemFontFamily: number;
1373
1381
  currentItemFontSize: number;
1374
1382
  currentItemTextAlign: string;
1375
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1376
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1383
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1384
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1377
1385
  currentHoveredFontFamily: number | null;
1378
- currentItemRoundness: import("../element/types").StrokeRoundness;
1386
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1379
1387
  currentItemArrowType: "round" | "sharp" | "elbow";
1380
1388
  viewBackgroundColor: string;
1381
1389
  scrollX: number;
@@ -1388,7 +1396,7 @@ export declare const actionLoadScene: {
1388
1396
  zoom: Readonly<{
1389
1397
  value: import("../types").NormalizedZoomValue;
1390
1398
  }>;
1391
- openMenu: "canvas" | "shape" | null;
1399
+ openMenu: "shape" | "canvas" | null;
1392
1400
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1393
1401
  openSidebar: {
1394
1402
  name: string;
@@ -1406,7 +1414,7 @@ export declare const actionLoadScene: {
1406
1414
  sourceElementId: string;
1407
1415
  } | null;
1408
1416
  defaultSidebarDockedPreference: boolean;
1409
- lastPointerDownWith: import("../element/types").PointerType;
1417
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1410
1418
  selectedElementIds: Readonly<{
1411
1419
  [id: string]: true;
1412
1420
  }>;
@@ -1445,7 +1453,7 @@ export declare const actionLoadScene: {
1445
1453
  [id: string]: true;
1446
1454
  }> | undefined;
1447
1455
  username?: string | null | undefined;
1448
- userState?: import("../constants").UserIdleState | undefined;
1456
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1449
1457
  color?: {
1450
1458
  background: string;
1451
1459
  stroke: string;
@@ -1462,7 +1470,7 @@ export declare const actionLoadScene: {
1462
1470
  open: boolean;
1463
1471
  panels: number;
1464
1472
  };
1465
- currentChartType: import("../element/types").ChartType;
1473
+ currentChartType: import("@excalidraw/element/types").ChartType;
1466
1474
  pasteDialog: {
1467
1475
  shown: false;
1468
1476
  data: null;
@@ -1471,8 +1479,8 @@ export declare const actionLoadScene: {
1471
1479
  data: import("../charts").Spreadsheet;
1472
1480
  };
1473
1481
  pendingImageElementId: string | null;
1474
- showHyperlinkPopup: false | "info" | "editor";
1475
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1482
+ showHyperlinkPopup: false | "editor" | "info";
1483
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1476
1484
  snapLines: readonly import("../snapping").SnapLine[];
1477
1485
  originSnapOffset: {
1478
1486
  x: number;
@@ -1508,7 +1516,7 @@ export declare const actionExportWithDarkMode: {
1508
1516
  category: "export";
1509
1517
  action: string;
1510
1518
  };
1511
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1519
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1512
1520
  appState: {
1513
1521
  exportWithDarkMode: any;
1514
1522
  contextMenu: {
@@ -1523,17 +1531,17 @@ export declare const actionExportWithDarkMode: {
1523
1531
  wheelZoomsOnDefault?: boolean | undefined;
1524
1532
  errorMessage: import("react").ReactNode;
1525
1533
  activeEmbeddable: {
1526
- element: import("../element/types").NonDeletedExcalidrawElement;
1534
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1527
1535
  state: "hover" | "active";
1528
1536
  } | null;
1529
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1530
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1531
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1532
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1537
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1538
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1539
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1540
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1533
1541
  isBindingEnabled: boolean;
1534
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1535
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1536
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1542
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1543
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1544
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1537
1545
  frameRendering: {
1538
1546
  enabled: boolean;
1539
1547
  name: boolean;
@@ -1541,12 +1549,13 @@ export declare const actionExportWithDarkMode: {
1541
1549
  clip: boolean;
1542
1550
  };
1543
1551
  editingFrame: string | null;
1544
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1545
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1546
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1552
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1553
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1554
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1547
1555
  activeTool: {
1548
1556
  lastActiveTool: import("../types").ActiveTool | null;
1549
1557
  locked: boolean;
1558
+ fromSelection: boolean;
1550
1559
  } & import("../types").ActiveTool;
1551
1560
  penMode: boolean;
1552
1561
  penDetected: boolean;
@@ -1555,18 +1564,18 @@ export declare const actionExportWithDarkMode: {
1555
1564
  exportScale: number;
1556
1565
  currentItemStrokeColor: string;
1557
1566
  currentItemBackgroundColor: string;
1558
- currentItemFillStyle: import("../element/types").FillStyle;
1567
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1559
1568
  currentItemStrokeWidth: number;
1560
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1569
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1561
1570
  currentItemRoughness: number;
1562
1571
  currentItemOpacity: number;
1563
1572
  currentItemFontFamily: number;
1564
1573
  currentItemFontSize: number;
1565
1574
  currentItemTextAlign: string;
1566
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1567
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1575
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1576
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1568
1577
  currentHoveredFontFamily: number | null;
1569
- currentItemRoundness: import("../element/types").StrokeRoundness;
1578
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1570
1579
  currentItemArrowType: "round" | "sharp" | "elbow";
1571
1580
  viewBackgroundColor: string;
1572
1581
  scrollX: number;
@@ -1579,7 +1588,7 @@ export declare const actionExportWithDarkMode: {
1579
1588
  zoom: Readonly<{
1580
1589
  value: import("../types").NormalizedZoomValue;
1581
1590
  }>;
1582
- openMenu: "canvas" | "shape" | null;
1591
+ openMenu: "shape" | "canvas" | null;
1583
1592
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1584
1593
  openSidebar: {
1585
1594
  name: string;
@@ -1597,7 +1606,7 @@ export declare const actionExportWithDarkMode: {
1597
1606
  sourceElementId: string;
1598
1607
  } | null;
1599
1608
  defaultSidebarDockedPreference: boolean;
1600
- lastPointerDownWith: import("../element/types").PointerType;
1609
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1601
1610
  selectedElementIds: Readonly<{
1602
1611
  [id: string]: true;
1603
1612
  }>;
@@ -1636,7 +1645,7 @@ export declare const actionExportWithDarkMode: {
1636
1645
  [id: string]: true;
1637
1646
  }> | undefined;
1638
1647
  username?: string | null | undefined;
1639
- userState?: import("../constants").UserIdleState | undefined;
1648
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1640
1649
  color?: {
1641
1650
  background: string;
1642
1651
  stroke: string;
@@ -1653,7 +1662,7 @@ export declare const actionExportWithDarkMode: {
1653
1662
  open: boolean;
1654
1663
  panels: number;
1655
1664
  };
1656
- currentChartType: import("../element/types").ChartType;
1665
+ currentChartType: import("@excalidraw/element/types").ChartType;
1657
1666
  pasteDialog: {
1658
1667
  shown: false;
1659
1668
  data: null;
@@ -1662,8 +1671,8 @@ export declare const actionExportWithDarkMode: {
1662
1671
  data: import("../charts").Spreadsheet;
1663
1672
  };
1664
1673
  pendingImageElementId: string | null;
1665
- showHyperlinkPopup: false | "info" | "editor";
1666
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1674
+ showHyperlinkPopup: false | "editor" | "info";
1675
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1667
1676
  snapLines: readonly import("../snapping").SnapLine[];
1668
1677
  originSnapOffset: {
1669
1678
  x: number;