@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
@@ -11,7 +11,7 @@ export declare const actionToggleSearchMenu: {
11
11
  action: string;
12
12
  predicate: (appState: Readonly<AppState>) => boolean;
13
13
  };
14
- perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties): false | {
14
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties): false | {
15
15
  appState: {
16
16
  openSidebar: null;
17
17
  contextMenu: {
@@ -26,17 +26,17 @@ export declare const actionToggleSearchMenu: {
26
26
  wheelZoomsOnDefault?: boolean | undefined;
27
27
  errorMessage: import("react").ReactNode;
28
28
  activeEmbeddable: {
29
- element: import("../element/types").NonDeletedExcalidrawElement;
29
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
30
30
  state: "hover" | "active";
31
31
  } | null;
32
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
33
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
34
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
35
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
32
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
33
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
34
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
35
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
36
36
  isBindingEnabled: boolean;
37
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
38
- suggestedBindings: import("../element/binding").SuggestedBinding[];
39
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
37
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
38
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
39
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
40
40
  frameRendering: {
41
41
  enabled: boolean;
42
42
  name: boolean;
@@ -44,12 +44,13 @@ export declare const actionToggleSearchMenu: {
44
44
  clip: boolean;
45
45
  };
46
46
  editingFrame: string | null;
47
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
48
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
49
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
47
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
48
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
50
50
  activeTool: {
51
51
  lastActiveTool: import("../types").ActiveTool | null;
52
52
  locked: boolean;
53
+ fromSelection: boolean;
53
54
  } & import("../types").ActiveTool;
54
55
  penMode: boolean;
55
56
  penDetected: boolean;
@@ -59,18 +60,18 @@ export declare const actionToggleSearchMenu: {
59
60
  exportScale: number;
60
61
  currentItemStrokeColor: string;
61
62
  currentItemBackgroundColor: string;
62
- currentItemFillStyle: import("../element/types").FillStyle;
63
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
63
64
  currentItemStrokeWidth: number;
64
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
65
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
65
66
  currentItemRoughness: number;
66
67
  currentItemOpacity: number;
67
68
  currentItemFontFamily: number;
68
69
  currentItemFontSize: number;
69
70
  currentItemTextAlign: string;
70
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
71
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
71
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
73
  currentHoveredFontFamily: number | null;
73
- currentItemRoundness: import("../element/types").StrokeRoundness;
74
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
74
75
  currentItemArrowType: "round" | "sharp" | "elbow";
75
76
  viewBackgroundColor: string;
76
77
  scrollX: number;
@@ -83,7 +84,7 @@ export declare const actionToggleSearchMenu: {
83
84
  zoom: Readonly<{
84
85
  value: import("../types").NormalizedZoomValue;
85
86
  }>;
86
- openMenu: "canvas" | "shape" | null;
87
+ openMenu: "shape" | "canvas" | null;
87
88
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
88
89
  openDialog: {
89
90
  name: "imageExport" | "help" | "jsonExport";
@@ -97,7 +98,7 @@ export declare const actionToggleSearchMenu: {
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 actionToggleSearchMenu: {
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 actionToggleSearchMenu: {
136
137
  [id: string]: true;
137
138
  }> | undefined;
138
139
  username?: string | null | undefined;
139
- userState?: import("../constants").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 actionToggleSearchMenu: {
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 actionToggleSearchMenu: {
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;
@@ -205,17 +206,17 @@ export declare const actionToggleSearchMenu: {
205
206
  wheelZoomsOnDefault?: boolean | undefined;
206
207
  errorMessage: import("react").ReactNode;
207
208
  activeEmbeddable: {
208
- element: import("../element/types").NonDeletedExcalidrawElement;
209
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
209
210
  state: "hover" | "active";
210
211
  } | null;
211
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
212
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
213
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
214
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
212
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
213
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
215
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
215
216
  isBindingEnabled: boolean;
216
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
217
- suggestedBindings: import("../element/binding").SuggestedBinding[];
218
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
217
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
218
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
219
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
219
220
  frameRendering: {
220
221
  enabled: boolean;
221
222
  name: boolean;
@@ -223,12 +224,13 @@ export declare const actionToggleSearchMenu: {
223
224
  clip: boolean;
224
225
  };
225
226
  editingFrame: string | null;
226
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
227
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
228
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
227
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
228
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
229
230
  activeTool: {
230
231
  lastActiveTool: import("../types").ActiveTool | null;
231
232
  locked: boolean;
233
+ fromSelection: boolean;
232
234
  } & import("../types").ActiveTool;
233
235
  penMode: boolean;
234
236
  penDetected: boolean;
@@ -238,18 +240,18 @@ export declare const actionToggleSearchMenu: {
238
240
  exportScale: number;
239
241
  currentItemStrokeColor: string;
240
242
  currentItemBackgroundColor: string;
241
- currentItemFillStyle: import("../element/types").FillStyle;
243
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
242
244
  currentItemStrokeWidth: number;
243
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
245
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
244
246
  currentItemRoughness: number;
245
247
  currentItemOpacity: number;
246
248
  currentItemFontFamily: number;
247
249
  currentItemFontSize: number;
248
250
  currentItemTextAlign: string;
249
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
250
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
251
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
252
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
251
253
  currentHoveredFontFamily: number | null;
252
- currentItemRoundness: import("../element/types").StrokeRoundness;
254
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
253
255
  currentItemArrowType: "round" | "sharp" | "elbow";
254
256
  viewBackgroundColor: string;
255
257
  scrollX: number;
@@ -262,10 +264,10 @@ export declare const actionToggleSearchMenu: {
262
264
  zoom: Readonly<{
263
265
  value: import("../types").NormalizedZoomValue;
264
266
  }>;
265
- openMenu: "canvas" | "shape" | null;
267
+ openMenu: "shape" | "canvas" | null;
266
268
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
267
269
  defaultSidebarDockedPreference: boolean;
268
- lastPointerDownWith: import("../element/types").PointerType;
270
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
269
271
  selectedElementIds: Readonly<{
270
272
  [id: string]: true;
271
273
  }>;
@@ -283,7 +285,7 @@ export declare const actionToggleSearchMenu: {
283
285
  duration?: number | undefined;
284
286
  } | null;
285
287
  zenModeEnabled: boolean;
286
- theme: import("../element/types").Theme;
288
+ theme: import("@excalidraw/element/types").Theme;
287
289
  gridSize: number;
288
290
  gridStep: number;
289
291
  gridModeEnabled: boolean;
@@ -304,7 +306,7 @@ export declare const actionToggleSearchMenu: {
304
306
  [id: string]: true;
305
307
  }> | undefined;
306
308
  username?: string | null | undefined;
307
- userState?: import("../constants").UserIdleState | undefined;
309
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
308
310
  color?: {
309
311
  background: string;
310
312
  stroke: string;
@@ -321,7 +323,7 @@ export declare const actionToggleSearchMenu: {
321
323
  open: boolean;
322
324
  panels: number;
323
325
  };
324
- currentChartType: import("../element/types").ChartType;
326
+ currentChartType: import("@excalidraw/element/types").ChartType;
325
327
  pasteDialog: {
326
328
  shown: false;
327
329
  data: null;
@@ -330,8 +332,8 @@ export declare const actionToggleSearchMenu: {
330
332
  data: import("../charts").Spreadsheet;
331
333
  };
332
334
  pendingImageElementId: string | null;
333
- showHyperlinkPopup: false | "info" | "editor";
334
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
335
+ showHyperlinkPopup: false | "editor" | "info";
336
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
335
337
  snapLines: readonly import("../snapping").SnapLine[];
336
338
  originSnapOffset: {
337
339
  x: number;
@@ -356,7 +358,7 @@ export declare const actionToggleSearchMenu: {
356
358
  captureUpdate: "EVENTUALLY";
357
359
  };
358
360
  checked: (appState: AppState) => boolean;
359
- predicate: (element: readonly import("../element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
361
+ predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
360
362
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
361
363
  } & {
362
364
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -3,13 +3,12 @@ export declare const actionToggleStats: {
3
3
  name: "stats";
4
4
  label: string;
5
5
  icon: import("react/jsx-runtime").JSX.Element;
6
- paletteName: string;
7
6
  viewMode: true;
8
7
  trackEvent: {
9
8
  category: "menu";
10
9
  };
11
10
  keywords: string[];
12
- perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
11
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
13
12
  appState: {
14
13
  stats: {
15
14
  open: boolean;
@@ -27,17 +26,17 @@ export declare const actionToggleStats: {
27
26
  wheelZoomsOnDefault?: boolean | undefined;
28
27
  errorMessage: import("react").ReactNode;
29
28
  activeEmbeddable: {
30
- element: import("../element/types").NonDeletedExcalidrawElement;
29
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
31
30
  state: "hover" | "active";
32
31
  } | null;
33
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
34
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
35
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
36
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
32
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
33
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
34
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
35
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
37
36
  isBindingEnabled: boolean;
38
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
39
- suggestedBindings: import("../element/binding").SuggestedBinding[];
40
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
37
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
38
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
39
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
40
  frameRendering: {
42
41
  enabled: boolean;
43
42
  name: boolean;
@@ -45,12 +44,13 @@ export declare const actionToggleStats: {
45
44
  clip: boolean;
46
45
  };
47
46
  editingFrame: string | null;
48
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
49
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
50
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
47
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
48
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
51
50
  activeTool: {
52
51
  lastActiveTool: import("../types").ActiveTool | null;
53
52
  locked: boolean;
53
+ fromSelection: boolean;
54
54
  } & import("../types").ActiveTool;
55
55
  penMode: boolean;
56
56
  penDetected: boolean;
@@ -60,18 +60,18 @@ export declare const actionToggleStats: {
60
60
  exportScale: number;
61
61
  currentItemStrokeColor: string;
62
62
  currentItemBackgroundColor: string;
63
- currentItemFillStyle: import("../element/types").FillStyle;
63
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
64
64
  currentItemStrokeWidth: number;
65
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
65
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
66
66
  currentItemRoughness: number;
67
67
  currentItemOpacity: number;
68
68
  currentItemFontFamily: number;
69
69
  currentItemFontSize: number;
70
70
  currentItemTextAlign: string;
71
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
72
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
71
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
73
  currentHoveredFontFamily: number | null;
74
- currentItemRoundness: import("../element/types").StrokeRoundness;
74
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
75
  currentItemArrowType: "round" | "sharp" | "elbow";
76
76
  viewBackgroundColor: string;
77
77
  scrollX: number;
@@ -84,7 +84,7 @@ export declare const actionToggleStats: {
84
84
  zoom: Readonly<{
85
85
  value: import("../types").NormalizedZoomValue;
86
86
  }>;
87
- openMenu: "canvas" | "shape" | null;
87
+ openMenu: "shape" | "canvas" | null;
88
88
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
89
89
  openSidebar: {
90
90
  name: string;
@@ -102,7 +102,7 @@ export declare const actionToggleStats: {
102
102
  sourceElementId: string;
103
103
  } | null;
104
104
  defaultSidebarDockedPreference: boolean;
105
- lastPointerDownWith: import("../element/types").PointerType;
105
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
106
106
  selectedElementIds: Readonly<{
107
107
  [id: string]: true;
108
108
  }>;
@@ -120,7 +120,7 @@ export declare const actionToggleStats: {
120
120
  duration?: number | undefined;
121
121
  } | null;
122
122
  zenModeEnabled: boolean;
123
- theme: import("../element/types").Theme;
123
+ theme: import("@excalidraw/element/types").Theme;
124
124
  gridSize: number;
125
125
  gridStep: number;
126
126
  gridModeEnabled: boolean;
@@ -141,7 +141,7 @@ export declare const actionToggleStats: {
141
141
  [id: string]: true;
142
142
  }> | undefined;
143
143
  username?: string | null | undefined;
144
- userState?: import("..").UserIdleState | undefined;
144
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
145
145
  color?: {
146
146
  background: string;
147
147
  stroke: string;
@@ -154,7 +154,7 @@ export declare const actionToggleStats: {
154
154
  isSpeaking?: boolean | undefined;
155
155
  isMuted?: boolean | undefined;
156
156
  }>>;
157
- currentChartType: import("../element/types").ChartType;
157
+ currentChartType: import("@excalidraw/element/types").ChartType;
158
158
  pasteDialog: {
159
159
  shown: false;
160
160
  data: null;
@@ -163,8 +163,8 @@ export declare const actionToggleStats: {
163
163
  data: import("../charts").Spreadsheet;
164
164
  };
165
165
  pendingImageElementId: string | null;
166
- showHyperlinkPopup: false | "info" | "editor";
167
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
166
+ showHyperlinkPopup: false | "editor" | "info";
167
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
168
168
  snapLines: readonly import("../snapping").SnapLine[];
169
169
  originSnapOffset: {
170
170
  x: number;
@@ -2,14 +2,13 @@
2
2
  export declare const actionToggleViewMode: {
3
3
  name: "viewMode";
4
4
  label: string;
5
- paletteName: string;
6
5
  icon: import("react/jsx-runtime").JSX.Element;
7
6
  viewMode: true;
8
7
  trackEvent: {
9
8
  category: "canvas";
10
9
  predicate: (appState: Readonly<import("../types").AppState>) => boolean;
11
10
  };
12
- perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
11
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
13
12
  appState: {
14
13
  viewModeEnabled: boolean;
15
14
  contextMenu: {
@@ -24,17 +23,17 @@ export declare const actionToggleViewMode: {
24
23
  wheelZoomsOnDefault?: boolean | undefined;
25
24
  errorMessage: import("react").ReactNode;
26
25
  activeEmbeddable: {
27
- element: import("../element/types").NonDeletedExcalidrawElement;
26
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
28
27
  state: "hover" | "active";
29
28
  } | null;
30
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
31
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
32
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
33
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
29
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
30
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
32
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
34
33
  isBindingEnabled: boolean;
35
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
36
- suggestedBindings: import("../element/binding").SuggestedBinding[];
37
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
34
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
36
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
38
37
  frameRendering: {
39
38
  enabled: boolean;
40
39
  name: boolean;
@@ -42,12 +41,13 @@ export declare const actionToggleViewMode: {
42
41
  clip: boolean;
43
42
  };
44
43
  editingFrame: string | null;
45
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
46
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
47
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
44
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
45
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
46
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
48
47
  activeTool: {
49
48
  lastActiveTool: import("../types").ActiveTool | null;
50
49
  locked: boolean;
50
+ fromSelection: boolean;
51
51
  } & import("../types").ActiveTool;
52
52
  penMode: boolean;
53
53
  penDetected: boolean;
@@ -57,18 +57,18 @@ export declare const actionToggleViewMode: {
57
57
  exportScale: number;
58
58
  currentItemStrokeColor: string;
59
59
  currentItemBackgroundColor: string;
60
- currentItemFillStyle: import("../element/types").FillStyle;
60
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
61
61
  currentItemStrokeWidth: number;
62
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
62
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
63
63
  currentItemRoughness: number;
64
64
  currentItemOpacity: number;
65
65
  currentItemFontFamily: number;
66
66
  currentItemFontSize: number;
67
67
  currentItemTextAlign: string;
68
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
69
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
68
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
69
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
70
  currentHoveredFontFamily: number | null;
71
- currentItemRoundness: import("../element/types").StrokeRoundness;
71
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
72
72
  currentItemArrowType: "round" | "sharp" | "elbow";
73
73
  viewBackgroundColor: string;
74
74
  scrollX: number;
@@ -81,7 +81,7 @@ export declare const actionToggleViewMode: {
81
81
  zoom: Readonly<{
82
82
  value: import("../types").NormalizedZoomValue;
83
83
  }>;
84
- openMenu: "canvas" | "shape" | null;
84
+ openMenu: "shape" | "canvas" | null;
85
85
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
86
86
  openSidebar: {
87
87
  name: string;
@@ -99,7 +99,7 @@ export declare const actionToggleViewMode: {
99
99
  sourceElementId: string;
100
100
  } | null;
101
101
  defaultSidebarDockedPreference: boolean;
102
- lastPointerDownWith: import("../element/types").PointerType;
102
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
103
103
  selectedElementIds: Readonly<{
104
104
  [id: string]: true;
105
105
  }>;
@@ -117,7 +117,7 @@ export declare const actionToggleViewMode: {
117
117
  duration?: number | undefined;
118
118
  } | null;
119
119
  zenModeEnabled: boolean;
120
- theme: import("../element/types").Theme;
120
+ theme: import("@excalidraw/element/types").Theme;
121
121
  gridSize: number;
122
122
  gridStep: number;
123
123
  gridModeEnabled: boolean;
@@ -137,7 +137,7 @@ export declare const actionToggleViewMode: {
137
137
  [id: string]: true;
138
138
  }> | undefined;
139
139
  username?: string | null | undefined;
140
- userState?: import("..").UserIdleState | undefined;
140
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
141
141
  color?: {
142
142
  background: string;
143
143
  stroke: string;
@@ -154,7 +154,7 @@ export declare const actionToggleViewMode: {
154
154
  open: boolean;
155
155
  panels: number;
156
156
  };
157
- currentChartType: import("../element/types").ChartType;
157
+ currentChartType: import("@excalidraw/element/types").ChartType;
158
158
  pasteDialog: {
159
159
  shown: false;
160
160
  data: null;
@@ -163,8 +163,8 @@ export declare const actionToggleViewMode: {
163
163
  data: import("../charts").Spreadsheet;
164
164
  };
165
165
  pendingImageElementId: string | null;
166
- showHyperlinkPopup: false | "info" | "editor";
167
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
166
+ showHyperlinkPopup: false | "editor" | "info";
167
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
168
168
  snapLines: readonly import("../snapping").SnapLine[];
169
169
  originSnapOffset: {
170
170
  x: number;
@@ -189,7 +189,7 @@ export declare const actionToggleViewMode: {
189
189
  captureUpdate: "EVENTUALLY";
190
190
  };
191
191
  checked: (appState: Readonly<import("../types").AppState>) => boolean;
192
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
192
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
193
193
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
194
194
  } & {
195
195
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;