@excalidraw/common 0.18.0-7b8a5f54c → 0.18.0-7ea3229

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 (239) hide show
  1. package/dist/dev/index.js +1522 -239
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/bounds.d.ts +10 -0
  6. package/dist/types/common/src/colors.d.ts +59 -39
  7. package/dist/types/common/src/constants.d.ts +38 -27
  8. package/dist/types/common/src/editorInterface.d.ts +34 -0
  9. package/dist/types/common/src/font-metadata.d.ts +1 -3
  10. package/dist/types/common/src/index.d.ts +3 -0
  11. package/dist/types/common/src/keys.d.ts +1 -1
  12. package/dist/types/common/src/utility-types.d.ts +0 -1
  13. package/dist/types/common/src/utils.d.ts +53 -39
  14. package/dist/types/element/src/Scene.d.ts +4 -4
  15. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  16. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  17. package/dist/types/element/src/binding.d.ts +66 -46
  18. package/dist/types/element/src/bounds.d.ts +3 -11
  19. package/dist/types/element/src/collision.d.ts +7 -2
  20. package/dist/types/element/src/comparisons.d.ts +7 -7
  21. package/dist/types/element/src/delta.d.ts +4 -4
  22. package/dist/types/element/src/distribute.d.ts +2 -1
  23. package/dist/types/element/src/dragElements.d.ts +3 -3
  24. package/dist/types/element/src/duplicate.d.ts +3 -3
  25. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  26. package/dist/types/element/src/frame.d.ts +7 -3
  27. package/dist/types/element/src/heading.d.ts +2 -1
  28. package/dist/types/element/src/image.d.ts +1 -11
  29. package/dist/types/element/src/index.d.ts +4 -3
  30. package/dist/types/element/src/linearElementEditor.d.ts +18 -20
  31. package/dist/types/element/src/mutateElement.d.ts +3 -1
  32. package/dist/types/element/src/newElement.d.ts +6 -6
  33. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  34. package/dist/types/element/src/renderElement.d.ts +4 -7
  35. package/dist/types/element/src/resizeElements.d.ts +10 -10
  36. package/dist/types/element/src/resizeTest.d.ts +6 -5
  37. package/dist/types/element/src/selection.d.ts +3 -7
  38. package/dist/types/element/src/shape.d.ts +8 -7
  39. package/dist/types/element/src/store.d.ts +3 -2
  40. package/dist/types/element/src/textElement.d.ts +1 -1
  41. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  42. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  43. package/dist/types/element/src/transformHandles.d.ts +8 -27
  44. package/dist/types/element/src/typeChecks.d.ts +4 -7
  45. package/dist/types/element/src/types.d.ts +7 -11
  46. package/dist/types/element/src/utils.d.ts +8 -3
  47. package/dist/types/element/src/zindex.d.ts +7 -1
  48. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +147 -181
  49. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  50. package/dist/types/excalidraw/actions/actionBoundText.d.ts +73 -96
  51. package/dist/types/excalidraw/actions/actionCanvas.d.ts +438 -758
  52. package/dist/types/excalidraw/actions/actionClipboard.d.ts +109 -873
  53. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +35 -47
  54. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +121 -159
  55. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  56. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  57. package/dist/types/excalidraw/actions/actionElementLink.d.ts +50 -64
  58. package/dist/types/excalidraw/actions/actionElementLock.d.ts +72 -95
  59. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +52 -64
  60. package/dist/types/excalidraw/actions/actionExport.d.ts +161 -1109
  61. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
  62. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  63. package/dist/types/excalidraw/actions/actionFrame.d.ts +264 -347
  64. package/dist/types/excalidraw/actions/actionGroup.d.ts +76 -107
  65. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +170 -220
  66. package/dist/types/excalidraw/actions/actionLink.d.ts +52 -64
  67. package/dist/types/excalidraw/actions/actionMenu.d.ts +45 -425
  68. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
  69. package/dist/types/excalidraw/actions/actionProperties.d.ts +135 -2488
  70. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +38 -54
  71. package/dist/types/excalidraw/actions/actionStyles.d.ts +35 -47
  72. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  73. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +52 -64
  74. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +52 -64
  75. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +44 -58
  76. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  77. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +51 -63
  78. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +52 -64
  79. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +52 -64
  80. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  81. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  82. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  83. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  84. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  85. package/dist/types/excalidraw/appState.d.ts +25 -20
  86. package/dist/types/excalidraw/clipboard.d.ts +58 -17
  87. package/dist/types/excalidraw/components/Actions.d.ts +22 -5
  88. package/dist/types/excalidraw/components/App.d.ts +77 -68
  89. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  90. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  91. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  92. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  93. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  94. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  95. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  96. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  97. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  98. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  99. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  100. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  101. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  102. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  103. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  104. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  105. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
  106. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  107. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  108. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  109. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  110. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  111. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  112. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  113. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  114. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  115. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  116. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  117. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  118. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  119. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  120. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  121. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  122. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  123. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  124. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  125. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  126. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  127. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  128. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  129. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  130. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  131. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  132. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  133. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  134. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  135. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  136. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  137. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  138. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  139. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  140. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  141. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  142. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  143. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  144. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  145. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  146. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  147. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  148. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  149. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  150. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  151. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  152. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  153. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  154. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  155. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -3
  156. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  157. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  158. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  159. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  160. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  161. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  162. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  163. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  164. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  165. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  166. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  167. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  168. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  169. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  170. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  171. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  172. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  173. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  174. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  175. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  176. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  177. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  178. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  179. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  181. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  182. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  183. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  184. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  185. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  186. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  187. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  188. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  189. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  190. package/dist/types/excalidraw/components/icons.d.ts +32 -13
  191. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  192. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -2
  193. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  194. package/dist/types/excalidraw/components/shapes.d.ts +202 -1
  195. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  196. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  197. package/dist/types/excalidraw/data/blob.d.ts +330 -10
  198. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  199. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  200. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  201. package/dist/types/excalidraw/data/index.d.ts +3 -3
  202. package/dist/types/excalidraw/data/json.d.ts +162 -2
  203. package/dist/types/excalidraw/data/library.d.ts +24 -9
  204. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  205. package/dist/types/excalidraw/data/types.d.ts +4 -1
  206. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  207. package/dist/types/excalidraw/errors.d.ts +14 -0
  208. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  209. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  210. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  211. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  212. package/dist/types/excalidraw/i18n.d.ts +2 -2
  213. package/dist/types/excalidraw/index.d.ts +7 -7
  214. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  215. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  216. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  217. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  218. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  219. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  220. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  221. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  222. package/dist/types/excalidraw/snapping.d.ts +5 -5
  223. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  224. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  225. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  226. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  227. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  228. package/dist/types/excalidraw/types.d.ts +38 -21
  229. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  230. package/dist/types/math/src/point.d.ts +6 -1
  231. package/dist/types/math/src/polygon.d.ts +2 -2
  232. package/dist/types/math/src/range.d.ts +1 -3
  233. package/dist/types/math/src/segment.d.ts +4 -3
  234. package/dist/types/math/src/types.d.ts +25 -1
  235. package/dist/types/utils/src/bbox.d.ts +1 -1
  236. package/dist/types/utils/src/export.d.ts +5 -5
  237. package/dist/types/utils/src/shape.d.ts +6 -6
  238. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  239. package/package.json +7 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
3
2
  export declare const actionToggleLinearEditor: {
4
3
  name: "toggleLinearEditor";
@@ -9,40 +8,40 @@ export declare const actionToggleLinearEditor: {
9
8
  category: "element";
10
9
  };
11
10
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
11
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
13
12
  appState: {
14
13
  selectedLinearElement: {
15
14
  isEditing: boolean;
16
- elementId: string & {
15
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"] & {
17
16
  _brand: "excalidrawLinearElementId";
18
17
  };
19
18
  selectedPointsIndices: readonly number[] | null;
20
- pointerDownState: Readonly<{
19
+ initialState: Readonly<{
21
20
  prevSelectedPointsIndices: readonly number[] | null;
22
21
  lastClickedPoint: number;
23
- lastClickedIsEndPoint: boolean;
24
- origin: Readonly<{
25
- x: number;
26
- y: number;
27
- }> | null;
22
+ origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
28
23
  segmentMidpoint: {
29
- value: import("../../math/src").GlobalPoint | null;
24
+ value: import("@excalidraw/math").GlobalPoint | null;
30
25
  index: number | null;
31
26
  added: boolean;
32
27
  };
28
+ arrowStartIsInside: boolean;
29
+ altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
33
30
  }>;
34
31
  isDragging: boolean;
35
- lastUncommittedPoint: import("../../math/src").LocalPoint | null;
32
+ lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
33
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
36
34
  pointerOffset: Readonly<{
37
35
  x: number;
38
36
  y: number;
39
37
  }>;
40
- startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
41
- endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
42
38
  hoverPointIndex: number;
43
- segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
39
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
40
+ hoveredFocusPointBinding: "start" | "end" | null;
41
+ draggedFocusPointBinding: "start" | "end" | null;
44
42
  elbowed: boolean;
45
43
  customLineAngle: number | null;
44
+ pointerDownState: never;
46
45
  };
47
46
  contextMenu: {
48
47
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -51,10 +50,10 @@ export declare const actionToggleLinearEditor: {
51
50
  } | null;
52
51
  showWelcomeScreen: boolean;
53
52
  isLoading: boolean;
54
- errorMessage: import("react").ReactNode;
53
+ errorMessage: React.ReactNode;
55
54
  activeEmbeddable: {
56
55
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
57
- state: "active" | "hover";
56
+ state: "hover" | "active";
58
57
  } | null;
59
58
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
60
59
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -62,7 +61,10 @@ export declare const actionToggleLinearEditor: {
62
61
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
63
62
  isBindingEnabled: boolean;
64
63
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
65
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
64
+ suggestedBinding: {
65
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
66
+ midPoint?: import("@excalidraw/math").GlobalPoint;
67
+ } | null;
66
68
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
67
69
  frameRendering: {
68
70
  enabled: boolean;
@@ -78,6 +80,10 @@ export declare const actionToggleLinearEditor: {
78
80
  locked: boolean;
79
81
  fromSelection: boolean;
80
82
  } & import("../types").ActiveTool;
83
+ preferredSelectionTool: {
84
+ type: "selection" | "lasso";
85
+ initialized: boolean;
86
+ };
81
87
  penMode: boolean;
82
88
  penDetected: boolean;
83
89
  exportBackground: boolean;
@@ -86,19 +92,19 @@ export declare const actionToggleLinearEditor: {
86
92
  exportScale: number;
87
93
  currentItemStrokeColor: string;
88
94
  currentItemBackgroundColor: string;
89
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
95
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
90
96
  currentItemStrokeWidth: number;
91
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
97
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
92
98
  currentItemRoughness: number;
93
99
  currentItemOpacity: number;
94
- currentItemFontFamily: number;
100
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
95
101
  currentItemFontSize: number;
96
- currentItemTextAlign: string;
102
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
97
103
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
98
104
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
99
- currentHoveredFontFamily: number | null;
105
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
100
106
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
101
- currentItemArrowType: "round" | "sharp" | "elbow";
107
+ currentItemArrowType: "sharp" | "round" | "elbow";
102
108
  viewBackgroundColor: string;
103
109
  scrollX: number;
104
110
  scrollY: number;
@@ -107,26 +113,26 @@ export declare const actionToggleLinearEditor: {
107
113
  name: string | null;
108
114
  isResizing: boolean;
109
115
  isRotating: boolean;
110
- zoom: Readonly<{
111
- value: import("../types").NormalizedZoomValue;
112
- }>;
113
- openMenu: "canvas" | "shape" | null;
114
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
116
+ zoom: import("../types").Zoom;
117
+ openMenu: "canvas" | null;
118
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
115
119
  openSidebar: {
116
- name: string;
117
- tab?: string | undefined;
120
+ name: import("../types").SidebarName;
121
+ tab?: import("../types").SidebarTabName;
118
122
  } | null;
119
- openDialog: {
123
+ openDialog: null | {
120
124
  name: "imageExport" | "help" | "jsonExport";
121
125
  } | {
122
126
  name: "ttd";
123
- tab: "mermaid" | "text-to-diagram";
127
+ tab: "text-to-diagram" | "mermaid";
124
128
  } | {
125
129
  name: "commandPalette";
130
+ } | {
131
+ name: "settings";
126
132
  } | {
127
133
  name: "elementLinkSelector";
128
- sourceElementId: string;
129
- } | null;
134
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
135
+ };
130
136
  defaultSidebarDockedPreference: boolean;
131
137
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
132
138
  selectedElementIds: Readonly<{
@@ -142,8 +148,8 @@ export declare const actionToggleLinearEditor: {
142
148
  shouldCacheIgnoreZoom: boolean;
143
149
  toast: {
144
150
  message: string;
145
- closable?: boolean | undefined;
146
- duration?: number | undefined;
151
+ closable?: boolean;
152
+ duration?: number;
147
153
  } | null;
148
154
  zenModeEnabled: boolean;
149
155
  theme: import("@excalidraw/element/types").Theme;
@@ -154,32 +160,13 @@ export declare const actionToggleLinearEditor: {
154
160
  selectedGroupIds: {
155
161
  [groupId: string]: boolean;
156
162
  };
157
- editingGroupId: string | null;
163
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
158
164
  width: number;
159
165
  height: number;
160
166
  offsetTop: number;
161
167
  offsetLeft: number;
162
168
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
163
- collaborators: Map<import("../types").SocketId, Readonly<{
164
- pointer?: import("../types").CollaboratorPointer | undefined;
165
- button?: "up" | "down" | undefined;
166
- selectedElementIds?: Readonly<{
167
- [id: string]: true;
168
- }> | undefined;
169
- username?: string | null | undefined;
170
- userState?: import("@excalidraw/common").UserIdleState | undefined;
171
- color?: {
172
- background: string;
173
- stroke: string;
174
- } | undefined;
175
- avatarUrl?: string | undefined;
176
- id?: string | undefined;
177
- socketId?: import("../types").SocketId | undefined;
178
- isCurrentUser?: boolean | undefined;
179
- isInCall?: boolean | undefined;
180
- isSpeaking?: boolean | undefined;
181
- isMuted?: boolean | undefined;
182
- }>>;
169
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
183
170
  stats: {
184
171
  open: boolean;
185
172
  panels: number;
@@ -192,7 +179,7 @@ export declare const actionToggleLinearEditor: {
192
179
  shown: true;
193
180
  data: import("../charts").Spreadsheet;
194
181
  };
195
- showHyperlinkPopup: false | "editor" | "info";
182
+ showHyperlinkPopup: false | "info" | "editor";
196
183
  snapLines: readonly import("../snapping").SnapLine[];
197
184
  originSnapOffset: {
198
185
  x: number;
@@ -202,19 +189,20 @@ export declare const actionToggleLinearEditor: {
202
189
  userToFollow: import("../types").UserToFollow | null;
203
190
  followedBy: Set<import("../types").SocketId>;
204
191
  isCropping: boolean;
205
- croppingElementId: string | null;
192
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
206
193
  searchMatches: Readonly<{
207
- focusedId: string | null;
194
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
208
195
  matches: readonly import("../types").SearchMatch[];
209
196
  }> | null;
210
197
  activeLockedId: string | null;
211
198
  lockedMultiSelections: {
212
199
  [groupId: string]: true;
213
200
  };
201
+ bindMode: import("@excalidraw/element/types").BindMode;
214
202
  };
215
203
  captureUpdate: "IMMEDIATELY";
216
204
  };
217
- PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
205
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
218
206
  } & {
219
207
  keyTest?: undefined;
220
208
  };
@@ -228,7 +216,7 @@ export declare const actionTogglePolygon: {
228
216
  category: "element";
229
217
  };
230
218
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
231
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): false | {
219
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
232
220
  elements: ((Readonly<{
233
221
  id: string;
234
222
  x: number;
@@ -238,43 +226,34 @@ export declare const actionTogglePolygon: {
238
226
  fillStyle: import("@excalidraw/element/types").FillStyle;
239
227
  strokeWidth: number;
240
228
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
241
- roundness: {
229
+ roundness: null | {
242
230
  type: import("@excalidraw/element/types").RoundnessType;
243
- value?: number | undefined;
244
- } | null;
231
+ value?: number;
232
+ };
245
233
  roughness: number;
246
234
  opacity: number;
247
235
  width: number;
248
236
  height: number;
249
- angle: import("../../math/src").Radians;
237
+ angle: import("@excalidraw/math").Radians;
250
238
  seed: number;
251
239
  version: number;
252
240
  versionNonce: number;
253
241
  index: import("@excalidraw/element/types").FractionalIndex | null;
254
242
  isDeleted: boolean;
255
- groupIds: readonly string[];
243
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
256
244
  frameId: string | null;
257
- boundElements: readonly Readonly<{
258
- id: string;
259
- type: "text" | "arrow";
260
- }>[] | null;
245
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
261
246
  updated: number;
262
247
  link: string | null;
263
248
  locked: boolean;
264
- customData?: Record<string, any> | undefined;
249
+ customData?: Record<string, any>;
265
250
  }> & Readonly<{
266
- type: "text";
267
- fontSize: number;
268
- fontFamily: number;
269
- text: string;
270
- textAlign: string;
271
- verticalAlign: string;
272
- containerId: string | null;
273
- originalText: string;
274
- autoResize: boolean;
275
- lineHeight: number & {
276
- _brand: "unitlessLineHeight";
277
- };
251
+ type: "line" | "arrow";
252
+ points: readonly import("@excalidraw/math").LocalPoint[];
253
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
254
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
255
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
256
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
278
257
  }> & {
279
258
  index: import("@excalidraw/element/types").FractionalIndex;
280
259
  }) | (Readonly<{
@@ -286,32 +265,29 @@ export declare const actionTogglePolygon: {
286
265
  fillStyle: import("@excalidraw/element/types").FillStyle;
287
266
  strokeWidth: number;
288
267
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
289
- roundness: {
268
+ roundness: null | {
290
269
  type: import("@excalidraw/element/types").RoundnessType;
291
- value?: number | undefined;
292
- } | null;
270
+ value?: number;
271
+ };
293
272
  roughness: number;
294
273
  opacity: number;
295
274
  width: number;
296
275
  height: number;
297
- angle: import("../../math/src").Radians;
276
+ angle: import("@excalidraw/math").Radians;
298
277
  seed: number;
299
278
  version: number;
300
279
  versionNonce: number;
301
280
  index: import("@excalidraw/element/types").FractionalIndex | null;
302
281
  isDeleted: boolean;
303
- groupIds: readonly string[];
282
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
304
283
  frameId: string | null;
305
- boundElements: readonly Readonly<{
306
- id: string;
307
- type: "text" | "arrow";
308
- }>[] | null;
284
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
309
285
  updated: number;
310
286
  link: string | null;
311
287
  locked: boolean;
312
- customData?: Record<string, any> | undefined;
288
+ customData?: Record<string, any>;
313
289
  }> & {
314
- type: "rectangle";
290
+ type: "selection";
315
291
  } & {
316
292
  index: import("@excalidraw/element/types").FractionalIndex;
317
293
  }) | (Readonly<{
@@ -323,32 +299,29 @@ export declare const actionTogglePolygon: {
323
299
  fillStyle: import("@excalidraw/element/types").FillStyle;
324
300
  strokeWidth: number;
325
301
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
326
- roundness: {
302
+ roundness: null | {
327
303
  type: import("@excalidraw/element/types").RoundnessType;
328
- value?: number | undefined;
329
- } | null;
304
+ value?: number;
305
+ };
330
306
  roughness: number;
331
307
  opacity: number;
332
308
  width: number;
333
309
  height: number;
334
- angle: import("../../math/src").Radians;
310
+ angle: import("@excalidraw/math").Radians;
335
311
  seed: number;
336
312
  version: number;
337
313
  versionNonce: number;
338
314
  index: import("@excalidraw/element/types").FractionalIndex | null;
339
315
  isDeleted: boolean;
340
- groupIds: readonly string[];
316
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
341
317
  frameId: string | null;
342
- boundElements: readonly Readonly<{
343
- id: string;
344
- type: "text" | "arrow";
345
- }>[] | null;
318
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
346
319
  updated: number;
347
320
  link: string | null;
348
321
  locked: boolean;
349
- customData?: Record<string, any> | undefined;
322
+ customData?: Record<string, any>;
350
323
  }> & {
351
- type: "diamond";
324
+ type: "rectangle";
352
325
  } & {
353
326
  index: import("@excalidraw/element/types").FractionalIndex;
354
327
  }) | (Readonly<{
@@ -360,33 +333,29 @@ export declare const actionTogglePolygon: {
360
333
  fillStyle: import("@excalidraw/element/types").FillStyle;
361
334
  strokeWidth: number;
362
335
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
363
- roundness: {
336
+ roundness: null | {
364
337
  type: import("@excalidraw/element/types").RoundnessType;
365
- value?: number | undefined;
366
- } | null;
338
+ value?: number;
339
+ };
367
340
  roughness: number;
368
341
  opacity: number;
369
342
  width: number;
370
343
  height: number;
371
- angle: import("../../math/src").Radians;
344
+ angle: import("@excalidraw/math").Radians;
372
345
  seed: number;
373
346
  version: number;
374
347
  versionNonce: number;
375
348
  index: import("@excalidraw/element/types").FractionalIndex | null;
376
349
  isDeleted: boolean;
377
- groupIds: readonly string[];
350
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
378
351
  frameId: string | null;
379
- boundElements: readonly Readonly<{
380
- id: string;
381
- type: "text" | "arrow";
382
- }>[] | null;
352
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
383
353
  updated: number;
384
354
  link: string | null;
385
355
  locked: boolean;
386
- customData?: Record<string, any> | undefined;
356
+ customData?: Record<string, any>;
387
357
  }> & {
388
- type: "frame";
389
- name: string | null;
358
+ type: "diamond";
390
359
  } & {
391
360
  index: import("@excalidraw/element/types").FractionalIndex;
392
361
  }) | (Readonly<{
@@ -398,33 +367,29 @@ export declare const actionTogglePolygon: {
398
367
  fillStyle: import("@excalidraw/element/types").FillStyle;
399
368
  strokeWidth: number;
400
369
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
401
- roundness: {
370
+ roundness: null | {
402
371
  type: import("@excalidraw/element/types").RoundnessType;
403
- value?: number | undefined;
404
- } | null;
372
+ value?: number;
373
+ };
405
374
  roughness: number;
406
375
  opacity: number;
407
376
  width: number;
408
377
  height: number;
409
- angle: import("../../math/src").Radians;
378
+ angle: import("@excalidraw/math").Radians;
410
379
  seed: number;
411
380
  version: number;
412
381
  versionNonce: number;
413
382
  index: import("@excalidraw/element/types").FractionalIndex | null;
414
383
  isDeleted: boolean;
415
- groupIds: readonly string[];
384
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
416
385
  frameId: string | null;
417
- boundElements: readonly Readonly<{
418
- id: string;
419
- type: "text" | "arrow";
420
- }>[] | null;
386
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
421
387
  updated: number;
422
388
  link: string | null;
423
389
  locked: boolean;
424
- customData?: Record<string, any> | undefined;
390
+ customData?: Record<string, any>;
425
391
  }> & {
426
- type: "magicframe";
427
- name: string | null;
392
+ type: "ellipse";
428
393
  } & {
429
394
  index: import("@excalidraw/element/types").FractionalIndex;
430
395
  }) | (Readonly<{
@@ -436,30 +401,27 @@ export declare const actionTogglePolygon: {
436
401
  fillStyle: import("@excalidraw/element/types").FillStyle;
437
402
  strokeWidth: number;
438
403
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
439
- roundness: {
404
+ roundness: null | {
440
405
  type: import("@excalidraw/element/types").RoundnessType;
441
- value?: number | undefined;
442
- } | null;
406
+ value?: number;
407
+ };
443
408
  roughness: number;
444
409
  opacity: number;
445
410
  width: number;
446
411
  height: number;
447
- angle: import("../../math/src").Radians;
412
+ angle: import("@excalidraw/math").Radians;
448
413
  seed: number;
449
414
  version: number;
450
415
  versionNonce: number;
451
416
  index: import("@excalidraw/element/types").FractionalIndex | null;
452
417
  isDeleted: boolean;
453
- groupIds: readonly string[];
418
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
454
419
  frameId: string | null;
455
- boundElements: readonly Readonly<{
456
- id: string;
457
- type: "text" | "arrow";
458
- }>[] | null;
420
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
459
421
  updated: number;
460
422
  link: string | null;
461
423
  locked: boolean;
462
- customData?: Record<string, any> | undefined;
424
+ customData?: Record<string, any>;
463
425
  }> & Readonly<{
464
426
  type: "embeddable";
465
427
  }> & {
@@ -473,36 +435,32 @@ export declare const actionTogglePolygon: {
473
435
  fillStyle: import("@excalidraw/element/types").FillStyle;
474
436
  strokeWidth: number;
475
437
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
476
- roundness: {
438
+ roundness: null | {
477
439
  type: import("@excalidraw/element/types").RoundnessType;
478
- value?: number | undefined;
479
- } | null;
440
+ value?: number;
441
+ };
480
442
  roughness: number;
481
443
  opacity: number;
482
444
  width: number;
483
445
  height: number;
484
- angle: import("../../math/src").Radians;
446
+ angle: import("@excalidraw/math").Radians;
485
447
  seed: number;
486
448
  version: number;
487
449
  versionNonce: number;
488
450
  index: import("@excalidraw/element/types").FractionalIndex | null;
489
451
  isDeleted: boolean;
490
- groupIds: readonly string[];
452
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
491
453
  frameId: string | null;
492
- boundElements: readonly Readonly<{
493
- id: string;
494
- type: "text" | "arrow";
495
- }>[] | null;
454
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
496
455
  updated: number;
497
456
  link: string | null;
498
457
  locked: boolean;
499
- customData?: Record<string, any> | undefined;
458
+ customData?: Record<string, any>;
500
459
  }> & Readonly<{
501
- type: "image";
502
- fileId: import("@excalidraw/element/types").FileId | null;
503
- status: "pending" | "saved" | "error";
504
- scale: [number, number];
505
- crop: import("@excalidraw/element/types").ImageCrop | null;
460
+ type: "iframe";
461
+ customData?: {
462
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
463
+ };
506
464
  }> & {
507
465
  index: import("@excalidraw/element/types").FractionalIndex;
508
466
  }) | (Readonly<{
@@ -514,35 +472,33 @@ export declare const actionTogglePolygon: {
514
472
  fillStyle: import("@excalidraw/element/types").FillStyle;
515
473
  strokeWidth: number;
516
474
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
517
- roundness: {
475
+ roundness: null | {
518
476
  type: import("@excalidraw/element/types").RoundnessType;
519
- value?: number | undefined;
520
- } | null;
477
+ value?: number;
478
+ };
521
479
  roughness: number;
522
480
  opacity: number;
523
481
  width: number;
524
482
  height: number;
525
- angle: import("../../math/src").Radians;
483
+ angle: import("@excalidraw/math").Radians;
526
484
  seed: number;
527
485
  version: number;
528
486
  versionNonce: number;
529
487
  index: import("@excalidraw/element/types").FractionalIndex | null;
530
488
  isDeleted: boolean;
531
- groupIds: readonly string[];
489
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
532
490
  frameId: string | null;
533
- boundElements: readonly Readonly<{
534
- id: string;
535
- type: "text" | "arrow";
536
- }>[] | null;
491
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
537
492
  updated: number;
538
493
  link: string | null;
539
494
  locked: boolean;
540
- customData?: Record<string, any> | undefined;
495
+ customData?: Record<string, any>;
541
496
  }> & Readonly<{
542
- type: "iframe";
543
- customData?: {
544
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
545
- } | undefined;
497
+ type: "image";
498
+ fileId: import("@excalidraw/element/types").FileId | null;
499
+ status: "pending" | "saved" | "error";
500
+ scale: [number, number];
501
+ crop: import("@excalidraw/element/types").ImageCrop | null;
546
502
  }> & {
547
503
  index: import("@excalidraw/element/types").FractionalIndex;
548
504
  }) | (Readonly<{
@@ -554,32 +510,30 @@ export declare const actionTogglePolygon: {
554
510
  fillStyle: import("@excalidraw/element/types").FillStyle;
555
511
  strokeWidth: number;
556
512
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
557
- roundness: {
513
+ roundness: null | {
558
514
  type: import("@excalidraw/element/types").RoundnessType;
559
- value?: number | undefined;
560
- } | null;
515
+ value?: number;
516
+ };
561
517
  roughness: number;
562
518
  opacity: number;
563
519
  width: number;
564
520
  height: number;
565
- angle: import("../../math/src").Radians;
521
+ angle: import("@excalidraw/math").Radians;
566
522
  seed: number;
567
523
  version: number;
568
524
  versionNonce: number;
569
525
  index: import("@excalidraw/element/types").FractionalIndex | null;
570
526
  isDeleted: boolean;
571
- groupIds: readonly string[];
527
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
572
528
  frameId: string | null;
573
- boundElements: readonly Readonly<{
574
- id: string;
575
- type: "text" | "arrow";
576
- }>[] | null;
529
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
577
530
  updated: number;
578
531
  link: string | null;
579
532
  locked: boolean;
580
- customData?: Record<string, any> | undefined;
533
+ customData?: Record<string, any>;
581
534
  }> & {
582
- type: "selection";
535
+ type: "frame";
536
+ name: string | null;
583
537
  } & {
584
538
  index: import("@excalidraw/element/types").FractionalIndex;
585
539
  }) | (Readonly<{
@@ -591,32 +545,30 @@ export declare const actionTogglePolygon: {
591
545
  fillStyle: import("@excalidraw/element/types").FillStyle;
592
546
  strokeWidth: number;
593
547
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
594
- roundness: {
548
+ roundness: null | {
595
549
  type: import("@excalidraw/element/types").RoundnessType;
596
- value?: number | undefined;
597
- } | null;
550
+ value?: number;
551
+ };
598
552
  roughness: number;
599
553
  opacity: number;
600
554
  width: number;
601
555
  height: number;
602
- angle: import("../../math/src").Radians;
556
+ angle: import("@excalidraw/math").Radians;
603
557
  seed: number;
604
558
  version: number;
605
559
  versionNonce: number;
606
560
  index: import("@excalidraw/element/types").FractionalIndex | null;
607
561
  isDeleted: boolean;
608
- groupIds: readonly string[];
562
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
609
563
  frameId: string | null;
610
- boundElements: readonly Readonly<{
611
- id: string;
612
- type: "text" | "arrow";
613
- }>[] | null;
564
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
614
565
  updated: number;
615
566
  link: string | null;
616
567
  locked: boolean;
617
- customData?: Record<string, any> | undefined;
568
+ customData?: Record<string, any>;
618
569
  }> & {
619
- type: "ellipse";
570
+ type: "magicframe";
571
+ name: string | null;
620
572
  } & {
621
573
  index: import("@excalidraw/element/types").FractionalIndex;
622
574
  }) | (Readonly<{
@@ -628,38 +580,40 @@ export declare const actionTogglePolygon: {
628
580
  fillStyle: import("@excalidraw/element/types").FillStyle;
629
581
  strokeWidth: number;
630
582
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
631
- roundness: {
583
+ roundness: null | {
632
584
  type: import("@excalidraw/element/types").RoundnessType;
633
- value?: number | undefined;
634
- } | null;
585
+ value?: number;
586
+ };
635
587
  roughness: number;
636
588
  opacity: number;
637
589
  width: number;
638
590
  height: number;
639
- angle: import("../../math/src").Radians;
591
+ angle: import("@excalidraw/math").Radians;
640
592
  seed: number;
641
593
  version: number;
642
594
  versionNonce: number;
643
595
  index: import("@excalidraw/element/types").FractionalIndex | null;
644
596
  isDeleted: boolean;
645
- groupIds: readonly string[];
597
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
646
598
  frameId: string | null;
647
- boundElements: readonly Readonly<{
648
- id: string;
649
- type: "text" | "arrow";
650
- }>[] | null;
599
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
651
600
  updated: number;
652
601
  link: string | null;
653
602
  locked: boolean;
654
- customData?: Record<string, any> | undefined;
603
+ customData?: Record<string, any>;
655
604
  }> & Readonly<{
656
- type: "line" | "arrow";
657
- points: readonly import("../../math/src").LocalPoint[];
658
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
659
- startBinding: import("@excalidraw/element/types").PointBinding | null;
660
- endBinding: import("@excalidraw/element/types").PointBinding | null;
661
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
662
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
605
+ type: "text";
606
+ fontSize: number;
607
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
608
+ text: string;
609
+ textAlign: import("@excalidraw/element/types").TextAlign;
610
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
611
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
612
+ originalText: string;
613
+ autoResize: boolean;
614
+ lineHeight: number & {
615
+ _brand: "unitlessLineHeight";
616
+ };
663
617
  }> & {
664
618
  index: import("@excalidraw/element/types").FractionalIndex;
665
619
  }) | (Readonly<{
@@ -671,36 +625,32 @@ export declare const actionTogglePolygon: {
671
625
  fillStyle: import("@excalidraw/element/types").FillStyle;
672
626
  strokeWidth: number;
673
627
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
674
- roundness: {
628
+ roundness: null | {
675
629
  type: import("@excalidraw/element/types").RoundnessType;
676
- value?: number | undefined;
677
- } | null;
630
+ value?: number;
631
+ };
678
632
  roughness: number;
679
633
  opacity: number;
680
634
  width: number;
681
635
  height: number;
682
- angle: import("../../math/src").Radians;
636
+ angle: import("@excalidraw/math").Radians;
683
637
  seed: number;
684
638
  version: number;
685
639
  versionNonce: number;
686
640
  index: import("@excalidraw/element/types").FractionalIndex | null;
687
641
  isDeleted: boolean;
688
- groupIds: readonly string[];
642
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
689
643
  frameId: string | null;
690
- boundElements: readonly Readonly<{
691
- id: string;
692
- type: "text" | "arrow";
693
- }>[] | null;
644
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
694
645
  updated: number;
695
646
  link: string | null;
696
647
  locked: boolean;
697
- customData?: Record<string, any> | undefined;
648
+ customData?: Record<string, any>;
698
649
  }> & Readonly<{
699
650
  type: "freedraw";
700
- points: readonly import("../../math/src").LocalPoint[];
651
+ points: readonly import("@excalidraw/math").LocalPoint[];
701
652
  pressures: readonly number[];
702
653
  simulatePressure: boolean;
703
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
704
654
  }> & {
705
655
  index: import("@excalidraw/element/types").FractionalIndex;
706
656
  }))[];