@excalidraw/math 0.18.0-5fffc47 → 0.18.0-60b2758

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