@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,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { ExcalidrawElement, OrderedExcalidrawElement } from "../element/types";
2
+ import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
3
3
  import type { AppClassProperties, AppState } from "../types";
4
4
  export declare const actionGroup: {
5
5
  name: "group";
@@ -14,13 +14,13 @@ export declare const actionGroup: {
14
14
  captureUpdate: "EVENTUALLY";
15
15
  } | {
16
16
  appState: {
17
+ editingGroupId: string | null;
17
18
  selectedElementIds: Readonly<{
18
19
  [id: string]: true;
19
20
  }>;
20
21
  selectedGroupIds: {
21
22
  [groupId: string]: boolean;
22
23
  };
23
- editingGroupId: string | null;
24
24
  contextMenu: {
25
25
  items: import("../components/ContextMenu").ContextMenuItems;
26
26
  top: number;
@@ -33,17 +33,17 @@ export declare const actionGroup: {
33
33
  wheelZoomsOnDefault?: boolean | undefined;
34
34
  errorMessage: import("react").ReactNode;
35
35
  activeEmbeddable: {
36
- element: import("../element/types").NonDeletedExcalidrawElement;
36
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
37
37
  state: "hover" | "active";
38
38
  } | null;
39
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
40
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
41
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
42
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
40
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
42
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
43
  isBindingEnabled: boolean;
44
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
45
- suggestedBindings: import("../element/binding").SuggestedBinding[];
46
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
44
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
45
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
46
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
47
47
  frameRendering: {
48
48
  enabled: boolean;
49
49
  name: boolean;
@@ -51,12 +51,13 @@ export declare const actionGroup: {
51
51
  clip: boolean;
52
52
  };
53
53
  editingFrame: string | null;
54
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
55
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
56
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
54
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
55
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
56
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
57
57
  activeTool: {
58
58
  lastActiveTool: import("../types").ActiveTool | null;
59
59
  locked: boolean;
60
+ fromSelection: boolean;
60
61
  } & import("../types").ActiveTool;
61
62
  penMode: boolean;
62
63
  penDetected: boolean;
@@ -66,18 +67,18 @@ export declare const actionGroup: {
66
67
  exportScale: number;
67
68
  currentItemStrokeColor: string;
68
69
  currentItemBackgroundColor: string;
69
- currentItemFillStyle: import("../element/types").FillStyle;
70
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
70
71
  currentItemStrokeWidth: number;
71
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
72
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
72
73
  currentItemRoughness: number;
73
74
  currentItemOpacity: number;
74
75
  currentItemFontFamily: number;
75
76
  currentItemFontSize: number;
76
77
  currentItemTextAlign: string;
77
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
78
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
78
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
79
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
79
80
  currentHoveredFontFamily: number | null;
80
- currentItemRoundness: import("../element/types").StrokeRoundness;
81
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
81
82
  currentItemArrowType: "round" | "sharp" | "elbow";
82
83
  viewBackgroundColor: string;
83
84
  scrollX: number;
@@ -90,7 +91,7 @@ export declare const actionGroup: {
90
91
  zoom: Readonly<{
91
92
  value: import("../types").NormalizedZoomValue;
92
93
  }>;
93
- openMenu: "canvas" | "shape" | null;
94
+ openMenu: "shape" | "canvas" | null;
94
95
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
95
96
  openSidebar: {
96
97
  name: string;
@@ -108,7 +109,7 @@ export declare const actionGroup: {
108
109
  sourceElementId: string;
109
110
  } | null;
110
111
  defaultSidebarDockedPreference: boolean;
111
- lastPointerDownWith: import("../element/types").PointerType;
112
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
112
113
  hoveredElementIds: Readonly<{
113
114
  [id: string]: true;
114
115
  }>;
@@ -123,7 +124,7 @@ export declare const actionGroup: {
123
124
  duration?: number | undefined;
124
125
  } | null;
125
126
  zenModeEnabled: boolean;
126
- theme: import("../element/types").Theme;
127
+ theme: import("@excalidraw/element/types").Theme;
127
128
  gridSize: number;
128
129
  gridStep: number;
129
130
  gridModeEnabled: boolean;
@@ -140,7 +141,7 @@ export declare const actionGroup: {
140
141
  [id: string]: true;
141
142
  }> | undefined;
142
143
  username?: string | null | undefined;
143
- userState?: import("..").UserIdleState | undefined;
144
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
144
145
  color?: {
145
146
  background: string;
146
147
  stroke: string;
@@ -157,7 +158,7 @@ export declare const actionGroup: {
157
158
  open: boolean;
158
159
  panels: number;
159
160
  };
160
- currentChartType: import("../element/types").ChartType;
161
+ currentChartType: import("@excalidraw/element/types").ChartType;
161
162
  pasteDialog: {
162
163
  shown: false;
163
164
  data: null;
@@ -166,8 +167,8 @@ export declare const actionGroup: {
166
167
  data: import("../charts").Spreadsheet;
167
168
  };
168
169
  pendingImageElementId: string | null;
169
- showHyperlinkPopup: false | "info" | "editor";
170
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
170
+ showHyperlinkPopup: false | "editor" | "info";
171
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
171
172
  snapLines: readonly import("../snapping").SnapLine[];
172
173
  originSnapOffset: {
173
174
  x: number;
@@ -211,13 +212,13 @@ export declare const actionUngroup: {
211
212
  captureUpdate: "EVENTUALLY";
212
213
  } | {
213
214
  appState: {
215
+ editingGroupId: string | null;
214
216
  selectedElementIds: Readonly<{
215
217
  [id: string]: true;
216
218
  }>;
217
219
  selectedGroupIds: {
218
220
  [groupId: string]: boolean;
219
221
  };
220
- editingGroupId: string | null;
221
222
  contextMenu: {
222
223
  items: import("../components/ContextMenu").ContextMenuItems;
223
224
  top: number;
@@ -230,17 +231,17 @@ export declare const actionUngroup: {
230
231
  wheelZoomsOnDefault?: boolean | undefined;
231
232
  errorMessage: import("react").ReactNode;
232
233
  activeEmbeddable: {
233
- element: import("../element/types").NonDeletedExcalidrawElement;
234
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
234
235
  state: "hover" | "active";
235
236
  } | null;
236
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
237
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
238
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
239
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
237
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
238
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
239
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
240
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
240
241
  isBindingEnabled: boolean;
241
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
242
- suggestedBindings: import("../element/binding").SuggestedBinding[];
243
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
242
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
243
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
244
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
244
245
  frameRendering: {
245
246
  enabled: boolean;
246
247
  name: boolean;
@@ -248,12 +249,13 @@ export declare const actionUngroup: {
248
249
  clip: boolean;
249
250
  };
250
251
  editingFrame: string | null;
251
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
252
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
253
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
252
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
253
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
254
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
254
255
  activeTool: {
255
256
  lastActiveTool: import("../types").ActiveTool | null;
256
257
  locked: boolean;
258
+ fromSelection: boolean;
257
259
  } & import("../types").ActiveTool;
258
260
  penMode: boolean;
259
261
  penDetected: boolean;
@@ -263,18 +265,18 @@ export declare const actionUngroup: {
263
265
  exportScale: number;
264
266
  currentItemStrokeColor: string;
265
267
  currentItemBackgroundColor: string;
266
- currentItemFillStyle: import("../element/types").FillStyle;
268
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
267
269
  currentItemStrokeWidth: number;
268
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
270
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
269
271
  currentItemRoughness: number;
270
272
  currentItemOpacity: number;
271
273
  currentItemFontFamily: number;
272
274
  currentItemFontSize: number;
273
275
  currentItemTextAlign: string;
274
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
275
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
276
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
277
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
276
278
  currentHoveredFontFamily: number | null;
277
- currentItemRoundness: import("../element/types").StrokeRoundness;
279
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
278
280
  currentItemArrowType: "round" | "sharp" | "elbow";
279
281
  viewBackgroundColor: string;
280
282
  scrollX: number;
@@ -287,7 +289,7 @@ export declare const actionUngroup: {
287
289
  zoom: Readonly<{
288
290
  value: import("../types").NormalizedZoomValue;
289
291
  }>;
290
- openMenu: "canvas" | "shape" | null;
292
+ openMenu: "shape" | "canvas" | null;
291
293
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
292
294
  openSidebar: {
293
295
  name: string;
@@ -305,7 +307,7 @@ export declare const actionUngroup: {
305
307
  sourceElementId: string;
306
308
  } | null;
307
309
  defaultSidebarDockedPreference: boolean;
308
- lastPointerDownWith: import("../element/types").PointerType;
310
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
309
311
  hoveredElementIds: Readonly<{
310
312
  [id: string]: true;
311
313
  }>;
@@ -320,7 +322,7 @@ export declare const actionUngroup: {
320
322
  duration?: number | undefined;
321
323
  } | null;
322
324
  zenModeEnabled: boolean;
323
- theme: import("../element/types").Theme;
325
+ theme: import("@excalidraw/element/types").Theme;
324
326
  gridSize: number;
325
327
  gridStep: number;
326
328
  gridModeEnabled: boolean;
@@ -337,7 +339,7 @@ export declare const actionUngroup: {
337
339
  [id: string]: true;
338
340
  }> | undefined;
339
341
  username?: string | null | undefined;
340
- userState?: import("..").UserIdleState | undefined;
342
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
341
343
  color?: {
342
344
  background: string;
343
345
  stroke: string;
@@ -354,7 +356,7 @@ export declare const actionUngroup: {
354
356
  open: boolean;
355
357
  panels: number;
356
358
  };
357
- currentChartType: import("../element/types").ChartType;
359
+ currentChartType: import("@excalidraw/element/types").ChartType;
358
360
  pasteDialog: {
359
361
  shown: false;
360
362
  data: null;
@@ -363,8 +365,8 @@ export declare const actionUngroup: {
363
365
  data: import("../charts").Spreadsheet;
364
366
  };
365
367
  pendingImageElementId: string | null;
366
- showHyperlinkPopup: false | "info" | "editor";
367
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
368
+ showHyperlinkPopup: false | "editor" | "info";
369
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
368
370
  snapLines: readonly import("../snapping").SnapLine[];
369
371
  originSnapOffset: {
370
372
  x: number;
@@ -1,16 +1,16 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "../element/linearElementEditor";
3
- import type { ExcalidrawLinearElement } from "../element/types";
2
+ import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
3
+ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
4
4
  export declare const actionToggleLinearEditor: {
5
5
  name: "toggleLinearEditor";
6
6
  category: string;
7
- label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
7
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
8
8
  keywords: string[];
9
9
  trackEvent: {
10
10
  category: "element";
11
11
  };
12
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
13
- perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
12
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
13
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
14
14
  appState: {
15
15
  editingLinearElement: LinearElementEditor | null;
16
16
  contextMenu: {
@@ -25,17 +25,17 @@ export declare const actionToggleLinearEditor: {
25
25
  wheelZoomsOnDefault?: boolean | undefined;
26
26
  errorMessage: import("react").ReactNode;
27
27
  activeEmbeddable: {
28
- element: import("../element/types").NonDeletedExcalidrawElement;
28
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
29
29
  state: "hover" | "active";
30
30
  } | null;
31
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
32
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
33
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
34
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
31
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
32
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
34
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
35
35
  isBindingEnabled: boolean;
36
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
37
- suggestedBindings: import("../element/binding").SuggestedBinding[];
38
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
36
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
38
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
39
39
  frameRendering: {
40
40
  enabled: boolean;
41
41
  name: boolean;
@@ -43,11 +43,12 @@ export declare const actionToggleLinearEditor: {
43
43
  clip: boolean;
44
44
  };
45
45
  editingFrame: string | null;
46
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
47
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
46
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
47
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
48
  activeTool: {
49
49
  lastActiveTool: import("../types").ActiveTool | null;
50
50
  locked: boolean;
51
+ fromSelection: boolean;
51
52
  } & import("../types").ActiveTool;
52
53
  penMode: boolean;
53
54
  penDetected: boolean;
@@ -57,18 +58,18 @@ export declare const actionToggleLinearEditor: {
57
58
  exportScale: number;
58
59
  currentItemStrokeColor: string;
59
60
  currentItemBackgroundColor: string;
60
- currentItemFillStyle: import("../element/types").FillStyle;
61
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
61
62
  currentItemStrokeWidth: number;
62
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
63
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
63
64
  currentItemRoughness: number;
64
65
  currentItemOpacity: number;
65
66
  currentItemFontFamily: number;
66
67
  currentItemFontSize: number;
67
68
  currentItemTextAlign: string;
68
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
69
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
69
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
71
  currentHoveredFontFamily: number | null;
71
- currentItemRoundness: import("../element/types").StrokeRoundness;
72
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
72
73
  currentItemArrowType: "round" | "sharp" | "elbow";
73
74
  viewBackgroundColor: string;
74
75
  scrollX: number;
@@ -81,7 +82,7 @@ export declare const actionToggleLinearEditor: {
81
82
  zoom: Readonly<{
82
83
  value: import("../types").NormalizedZoomValue;
83
84
  }>;
84
- openMenu: "canvas" | "shape" | null;
85
+ openMenu: "shape" | "canvas" | null;
85
86
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
86
87
  openSidebar: {
87
88
  name: string;
@@ -99,7 +100,7 @@ export declare const actionToggleLinearEditor: {
99
100
  sourceElementId: string;
100
101
  } | null;
101
102
  defaultSidebarDockedPreference: boolean;
102
- lastPointerDownWith: import("../element/types").PointerType;
103
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
103
104
  selectedElementIds: Readonly<{
104
105
  [id: string]: true;
105
106
  }>;
@@ -117,7 +118,7 @@ export declare const actionToggleLinearEditor: {
117
118
  duration?: number | undefined;
118
119
  } | null;
119
120
  zenModeEnabled: boolean;
120
- theme: import("../element/types").Theme;
121
+ theme: import("@excalidraw/element/types").Theme;
121
122
  gridSize: number;
122
123
  gridStep: number;
123
124
  gridModeEnabled: boolean;
@@ -138,7 +139,7 @@ export declare const actionToggleLinearEditor: {
138
139
  [id: string]: true;
139
140
  }> | undefined;
140
141
  username?: string | null | undefined;
141
- userState?: import("..").UserIdleState | undefined;
142
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
142
143
  color?: {
143
144
  background: string;
144
145
  stroke: string;
@@ -155,7 +156,7 @@ export declare const actionToggleLinearEditor: {
155
156
  open: boolean;
156
157
  panels: number;
157
158
  };
158
- currentChartType: import("../element/types").ChartType;
159
+ currentChartType: import("@excalidraw/element/types").ChartType;
159
160
  pasteDialog: {
160
161
  shown: false;
161
162
  data: null;
@@ -164,7 +165,7 @@ export declare const actionToggleLinearEditor: {
164
165
  data: import("../charts").Spreadsheet;
165
166
  };
166
167
  pendingImageElementId: string | null;
167
- showHyperlinkPopup: false | "info" | "editor";
168
+ showHyperlinkPopup: false | "editor" | "info";
168
169
  selectedLinearElement: LinearElementEditor | null;
169
170
  snapLines: readonly import("../snapping").SnapLine[];
170
171
  originSnapOffset: {
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export declare const actionLink: {
3
3
  name: "hyperlink";
4
- label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
4
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
5
5
  icon: import("react/jsx-runtime").JSX.Element;
6
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
7
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
6
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
7
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
8
8
  appState: {
9
9
  showHyperlinkPopup: "editor";
10
10
  openMenu: null;
@@ -20,17 +20,17 @@ export declare const actionLink: {
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 actionLink: {
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 actionLink: {
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;
@@ -94,7 +95,7 @@ export declare const actionLink: {
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
  }>;
@@ -112,7 +113,7 @@ export declare const actionLink: {
112
113
  duration?: number | undefined;
113
114
  } | null;
114
115
  zenModeEnabled: boolean;
115
- theme: import("../element/types").Theme;
116
+ theme: import("@excalidraw/element/types").Theme;
116
117
  gridSize: number;
117
118
  gridStep: number;
118
119
  gridModeEnabled: boolean;
@@ -133,7 +134,7 @@ export declare const actionLink: {
133
134
  [id: string]: true;
134
135
  }> | undefined;
135
136
  username?: string | null | undefined;
136
- userState?: import("..").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 actionLink: {
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,7 +160,7 @@ export declare const actionLink: {
159
160
  data: import("../charts").Spreadsheet;
160
161
  };
161
162
  pendingImageElementId: string | null;
162
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
163
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
163
164
  snapLines: readonly import("../snapping").SnapLine[];
164
165
  originSnapOffset: {
165
166
  x: number;
@@ -188,7 +189,7 @@ export declare const actionLink: {
188
189
  action: string;
189
190
  };
190
191
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
191
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
192
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
192
193
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
193
194
  } & {
194
195
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;