@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
@@ -5,7 +5,7 @@ export declare const actionToggleCanvasMenu: {
5
5
  trackEvent: {
6
6
  category: "menu";
7
7
  };
8
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
8
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
9
9
  appState: {
10
10
  openMenu: "canvas" | null;
11
11
  contextMenu: {
@@ -20,17 +20,17 @@ export declare const actionToggleCanvasMenu: {
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 actionToggleCanvasMenu: {
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 actionToggleCanvasMenu: {
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 actionToggleCanvasMenu: {
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 actionToggleCanvasMenu: {
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 actionToggleCanvasMenu: {
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 actionToggleCanvasMenu: {
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 actionToggleCanvasMenu: {
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;
@@ -194,7 +195,7 @@ export declare const actionToggleEditMenu: {
194
195
  trackEvent: {
195
196
  category: "menu";
196
197
  };
197
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
198
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
198
199
  appState: {
199
200
  openMenu: "shape" | null;
200
201
  contextMenu: {
@@ -209,17 +210,17 @@ export declare const actionToggleEditMenu: {
209
210
  wheelZoomsOnDefault?: boolean | undefined;
210
211
  errorMessage: import("react").ReactNode;
211
212
  activeEmbeddable: {
212
- element: import("../element/types").NonDeletedExcalidrawElement;
213
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
213
214
  state: "hover" | "active";
214
215
  } | null;
215
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
216
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
217
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
218
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
216
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
217
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
218
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
219
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
219
220
  isBindingEnabled: boolean;
220
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
221
- suggestedBindings: import("../element/binding").SuggestedBinding[];
222
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
221
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
222
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
223
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
223
224
  frameRendering: {
224
225
  enabled: boolean;
225
226
  name: boolean;
@@ -227,12 +228,13 @@ export declare const actionToggleEditMenu: {
227
228
  clip: boolean;
228
229
  };
229
230
  editingFrame: string | null;
230
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
231
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
232
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
231
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
232
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
233
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
233
234
  activeTool: {
234
235
  lastActiveTool: import("../types").ActiveTool | null;
235
236
  locked: boolean;
237
+ fromSelection: boolean;
236
238
  } & import("../types").ActiveTool;
237
239
  penMode: boolean;
238
240
  penDetected: boolean;
@@ -242,18 +244,18 @@ export declare const actionToggleEditMenu: {
242
244
  exportScale: number;
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;
@@ -283,7 +285,7 @@ export declare const actionToggleEditMenu: {
283
285
  sourceElementId: string;
284
286
  } | null;
285
287
  defaultSidebarDockedPreference: boolean;
286
- lastPointerDownWith: import("../element/types").PointerType;
288
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
287
289
  selectedElementIds: Readonly<{
288
290
  [id: string]: true;
289
291
  }>;
@@ -301,7 +303,7 @@ export declare const actionToggleEditMenu: {
301
303
  duration?: number | undefined;
302
304
  } | null;
303
305
  zenModeEnabled: boolean;
304
- theme: import("../element/types").Theme;
306
+ theme: import("@excalidraw/element/types").Theme;
305
307
  gridSize: number;
306
308
  gridStep: number;
307
309
  gridModeEnabled: boolean;
@@ -322,7 +324,7 @@ export declare const actionToggleEditMenu: {
322
324
  [id: string]: true;
323
325
  }> | undefined;
324
326
  username?: string | null | undefined;
325
- userState?: import("..").UserIdleState | undefined;
327
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
326
328
  color?: {
327
329
  background: string;
328
330
  stroke: string;
@@ -339,7 +341,7 @@ export declare const actionToggleEditMenu: {
339
341
  open: boolean;
340
342
  panels: number;
341
343
  };
342
- currentChartType: import("../element/types").ChartType;
344
+ currentChartType: import("@excalidraw/element/types").ChartType;
343
345
  pasteDialog: {
344
346
  shown: false;
345
347
  data: null;
@@ -348,8 +350,8 @@ export declare const actionToggleEditMenu: {
348
350
  data: import("../charts").Spreadsheet;
349
351
  };
350
352
  pendingImageElementId: string | null;
351
- showHyperlinkPopup: false | "info" | "editor";
352
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
353
+ showHyperlinkPopup: false | "editor" | "info";
354
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
353
355
  snapLines: readonly import("../snapping").SnapLine[];
354
356
  originSnapOffset: {
355
357
  x: number;
@@ -386,7 +388,7 @@ export declare const actionShortcuts: {
386
388
  category: "menu";
387
389
  action: string;
388
390
  };
389
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
391
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
390
392
  appState: {
391
393
  openDialog: {
392
394
  name: "help";
@@ -403,17 +405,17 @@ export declare const actionShortcuts: {
403
405
  wheelZoomsOnDefault?: boolean | undefined;
404
406
  errorMessage: import("react").ReactNode;
405
407
  activeEmbeddable: {
406
- element: import("../element/types").NonDeletedExcalidrawElement;
408
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
407
409
  state: "hover" | "active";
408
410
  } | null;
409
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
410
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
411
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
412
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
411
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
412
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
413
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
414
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
413
415
  isBindingEnabled: boolean;
414
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
415
- suggestedBindings: import("../element/binding").SuggestedBinding[];
416
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
416
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
417
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
418
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
417
419
  frameRendering: {
418
420
  enabled: boolean;
419
421
  name: boolean;
@@ -421,12 +423,13 @@ export declare const actionShortcuts: {
421
423
  clip: boolean;
422
424
  };
423
425
  editingFrame: string | null;
424
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
425
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
426
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
426
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
427
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
428
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
427
429
  activeTool: {
428
430
  lastActiveTool: import("../types").ActiveTool | null;
429
431
  locked: boolean;
432
+ fromSelection: boolean;
430
433
  } & import("../types").ActiveTool;
431
434
  penMode: boolean;
432
435
  penDetected: boolean;
@@ -436,18 +439,18 @@ export declare const actionShortcuts: {
436
439
  exportScale: number;
437
440
  currentItemStrokeColor: string;
438
441
  currentItemBackgroundColor: string;
439
- currentItemFillStyle: import("../element/types").FillStyle;
442
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
440
443
  currentItemStrokeWidth: number;
441
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
444
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
442
445
  currentItemRoughness: number;
443
446
  currentItemOpacity: number;
444
447
  currentItemFontFamily: number;
445
448
  currentItemFontSize: number;
446
449
  currentItemTextAlign: string;
447
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
448
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
450
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
451
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
449
452
  currentHoveredFontFamily: number | null;
450
- currentItemRoundness: import("../element/types").StrokeRoundness;
453
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
451
454
  currentItemArrowType: "round" | "sharp" | "elbow";
452
455
  viewBackgroundColor: string;
453
456
  scrollX: number;
@@ -460,14 +463,14 @@ export declare const actionShortcuts: {
460
463
  zoom: Readonly<{
461
464
  value: import("../types").NormalizedZoomValue;
462
465
  }>;
463
- openMenu: "canvas" | "shape" | null;
466
+ openMenu: "shape" | "canvas" | null;
464
467
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
465
468
  openSidebar: {
466
469
  name: string;
467
470
  tab?: string | undefined;
468
471
  } | null;
469
472
  defaultSidebarDockedPreference: boolean;
470
- lastPointerDownWith: import("../element/types").PointerType;
473
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
471
474
  selectedElementIds: Readonly<{
472
475
  [id: string]: true;
473
476
  }>;
@@ -485,7 +488,7 @@ export declare const actionShortcuts: {
485
488
  duration?: number | undefined;
486
489
  } | null;
487
490
  zenModeEnabled: boolean;
488
- theme: import("../element/types").Theme;
491
+ theme: import("@excalidraw/element/types").Theme;
489
492
  gridSize: number;
490
493
  gridStep: number;
491
494
  gridModeEnabled: boolean;
@@ -506,7 +509,7 @@ export declare const actionShortcuts: {
506
509
  [id: string]: true;
507
510
  }> | undefined;
508
511
  username?: string | null | undefined;
509
- userState?: import("..").UserIdleState | undefined;
512
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
510
513
  color?: {
511
514
  background: string;
512
515
  stroke: string;
@@ -523,7 +526,7 @@ export declare const actionShortcuts: {
523
526
  open: boolean;
524
527
  panels: number;
525
528
  };
526
- currentChartType: import("../element/types").ChartType;
529
+ currentChartType: import("@excalidraw/element/types").ChartType;
527
530
  pasteDialog: {
528
531
  shown: false;
529
532
  data: null;
@@ -532,8 +535,8 @@ export declare const actionShortcuts: {
532
535
  data: import("../charts").Spreadsheet;
533
536
  };
534
537
  pendingImageElementId: string | null;
535
- showHyperlinkPopup: false | "info" | "editor";
536
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
538
+ showHyperlinkPopup: false | "editor" | "info";
539
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
537
540
  snapLines: readonly import("../snapping").SnapLine[];
538
541
  originSnapOffset: {
539
542
  x: number;
@@ -7,7 +7,7 @@ export declare const actionGoToCollaborator: {
7
7
  trackEvent: {
8
8
  category: "collab";
9
9
  };
10
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, collaborator: Collaborator) => {
10
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, collaborator: Collaborator) => {
11
11
  appState: {
12
12
  userToFollow: null;
13
13
  contextMenu: {
@@ -22,17 +22,17 @@ export declare const actionGoToCollaborator: {
22
22
  wheelZoomsOnDefault?: boolean | undefined;
23
23
  errorMessage: import("react").ReactNode;
24
24
  activeEmbeddable: {
25
- element: import("../element/types").NonDeletedExcalidrawElement;
25
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
26
26
  state: "hover" | "active";
27
27
  } | null;
28
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
29
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
30
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
31
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
29
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
32
  isBindingEnabled: boolean;
33
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
34
- suggestedBindings: import("../element/binding").SuggestedBinding[];
35
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
33
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
35
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
36
  frameRendering: {
37
37
  enabled: boolean;
38
38
  name: boolean;
@@ -40,12 +40,13 @@ export declare const actionGoToCollaborator: {
40
40
  clip: boolean;
41
41
  };
42
42
  editingFrame: string | null;
43
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
44
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
45
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
43
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
44
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
46
46
  activeTool: {
47
47
  lastActiveTool: import("../types").ActiveTool | null;
48
48
  locked: boolean;
49
+ fromSelection: boolean;
49
50
  } & import("../types").ActiveTool;
50
51
  penMode: boolean;
51
52
  penDetected: boolean;
@@ -55,18 +56,18 @@ export declare const actionGoToCollaborator: {
55
56
  exportScale: number;
56
57
  currentItemStrokeColor: string;
57
58
  currentItemBackgroundColor: string;
58
- currentItemFillStyle: import("../element/types").FillStyle;
59
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
59
60
  currentItemStrokeWidth: number;
60
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
61
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
61
62
  currentItemRoughness: number;
62
63
  currentItemOpacity: number;
63
64
  currentItemFontFamily: number;
64
65
  currentItemFontSize: number;
65
66
  currentItemTextAlign: string;
66
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
67
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
67
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
68
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
68
69
  currentHoveredFontFamily: number | null;
69
- currentItemRoundness: import("../element/types").StrokeRoundness;
70
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
70
71
  currentItemArrowType: "round" | "sharp" | "elbow";
71
72
  viewBackgroundColor: string;
72
73
  scrollX: number;
@@ -79,7 +80,7 @@ export declare const actionGoToCollaborator: {
79
80
  zoom: Readonly<{
80
81
  value: import("../types").NormalizedZoomValue;
81
82
  }>;
82
- openMenu: "canvas" | "shape" | null;
83
+ openMenu: "shape" | "canvas" | null;
83
84
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
85
  openSidebar: {
85
86
  name: string;
@@ -97,7 +98,7 @@ export declare const actionGoToCollaborator: {
97
98
  sourceElementId: string;
98
99
  } | null;
99
100
  defaultSidebarDockedPreference: boolean;
100
- lastPointerDownWith: import("../element/types").PointerType;
101
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
101
102
  selectedElementIds: Readonly<{
102
103
  [id: string]: true;
103
104
  }>;
@@ -115,7 +116,7 @@ export declare const actionGoToCollaborator: {
115
116
  duration?: number | undefined;
116
117
  } | null;
117
118
  zenModeEnabled: boolean;
118
- theme: import("../element/types").Theme;
119
+ theme: import("@excalidraw/element/types").Theme;
119
120
  gridSize: number;
120
121
  gridStep: number;
121
122
  gridModeEnabled: boolean;
@@ -136,7 +137,7 @@ export declare const actionGoToCollaborator: {
136
137
  [id: string]: true;
137
138
  }> | undefined;
138
139
  username?: string | null | undefined;
139
- userState?: import("..").UserIdleState | undefined;
140
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
140
141
  color?: {
141
142
  background: string;
142
143
  stroke: string;
@@ -153,7 +154,7 @@ export declare const actionGoToCollaborator: {
153
154
  open: boolean;
154
155
  panels: number;
155
156
  };
156
- currentChartType: import("../element/types").ChartType;
157
+ currentChartType: import("@excalidraw/element/types").ChartType;
157
158
  pasteDialog: {
158
159
  shown: false;
159
160
  data: null;
@@ -162,8 +163,8 @@ export declare const actionGoToCollaborator: {
162
163
  data: import("../charts").Spreadsheet;
163
164
  };
164
165
  pendingImageElementId: string | null;
165
- showHyperlinkPopup: false | "info" | "editor";
166
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
166
+ showHyperlinkPopup: false | "editor" | "info";
167
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
167
168
  snapLines: readonly import("../snapping").SnapLine[];
168
169
  originSnapOffset: {
169
170
  x: number;
@@ -204,17 +205,17 @@ export declare const actionGoToCollaborator: {
204
205
  wheelZoomsOnDefault?: boolean | undefined;
205
206
  errorMessage: import("react").ReactNode;
206
207
  activeEmbeddable: {
207
- element: import("../element/types").NonDeletedExcalidrawElement;
208
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
208
209
  state: "hover" | "active";
209
210
  } | null;
210
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
211
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
212
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
213
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
211
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
212
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
213
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
214
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
215
  isBindingEnabled: boolean;
215
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
216
- suggestedBindings: import("../element/binding").SuggestedBinding[];
217
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
216
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
217
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
218
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
218
219
  frameRendering: {
219
220
  enabled: boolean;
220
221
  name: boolean;
@@ -222,12 +223,13 @@ export declare const actionGoToCollaborator: {
222
223
  clip: boolean;
223
224
  };
224
225
  editingFrame: string | null;
225
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
226
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
227
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
226
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
227
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
228
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
228
229
  activeTool: {
229
230
  lastActiveTool: import("../types").ActiveTool | null;
230
231
  locked: boolean;
232
+ fromSelection: boolean;
231
233
  } & import("../types").ActiveTool;
232
234
  penMode: boolean;
233
235
  penDetected: boolean;
@@ -237,18 +239,18 @@ export declare const actionGoToCollaborator: {
237
239
  exportScale: number;
238
240
  currentItemStrokeColor: string;
239
241
  currentItemBackgroundColor: string;
240
- currentItemFillStyle: import("../element/types").FillStyle;
242
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
241
243
  currentItemStrokeWidth: number;
242
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
244
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
243
245
  currentItemRoughness: number;
244
246
  currentItemOpacity: number;
245
247
  currentItemFontFamily: number;
246
248
  currentItemFontSize: number;
247
249
  currentItemTextAlign: string;
248
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
249
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
250
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
251
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
250
252
  currentHoveredFontFamily: number | null;
251
- currentItemRoundness: import("../element/types").StrokeRoundness;
253
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
252
254
  currentItemArrowType: "round" | "sharp" | "elbow";
253
255
  viewBackgroundColor: string;
254
256
  scrollX: number;
@@ -278,7 +280,7 @@ export declare const actionGoToCollaborator: {
278
280
  sourceElementId: string;
279
281
  } | null;
280
282
  defaultSidebarDockedPreference: boolean;
281
- lastPointerDownWith: import("../element/types").PointerType;
283
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
282
284
  selectedElementIds: Readonly<{
283
285
  [id: string]: true;
284
286
  }>;
@@ -296,7 +298,7 @@ export declare const actionGoToCollaborator: {
296
298
  duration?: number | undefined;
297
299
  } | null;
298
300
  zenModeEnabled: boolean;
299
- theme: import("../element/types").Theme;
301
+ theme: import("@excalidraw/element/types").Theme;
300
302
  gridSize: number;
301
303
  gridStep: number;
302
304
  gridModeEnabled: boolean;
@@ -317,7 +319,7 @@ export declare const actionGoToCollaborator: {
317
319
  [id: string]: true;
318
320
  }> | undefined;
319
321
  username?: string | null | undefined;
320
- userState?: import("..").UserIdleState | undefined;
322
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
321
323
  color?: {
322
324
  background: string;
323
325
  stroke: string;
@@ -334,7 +336,7 @@ export declare const actionGoToCollaborator: {
334
336
  open: boolean;
335
337
  panels: number;
336
338
  };
337
- currentChartType: import("../element/types").ChartType;
339
+ currentChartType: import("@excalidraw/element/types").ChartType;
338
340
  pasteDialog: {
339
341
  shown: false;
340
342
  data: null;
@@ -343,8 +345,8 @@ export declare const actionGoToCollaborator: {
343
345
  data: import("../charts").Spreadsheet;
344
346
  };
345
347
  pendingImageElementId: string | null;
346
- showHyperlinkPopup: false | "info" | "editor";
347
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
348
+ showHyperlinkPopup: false | "editor" | "info";
349
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
348
350
  snapLines: readonly import("../snapping").SnapLine[];
349
351
  originSnapOffset: {
350
352
  x: number;