@excalidraw/math 0.18.0-508de2f3a → 0.18.0-54a9826

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