@excalidraw/common 0.18.0-d9e8a33 → 0.18.0-dabd83c

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 (253) hide show
  1. package/dist/dev/index.js +237 -104
  2. package/dist/dev/index.js.map +3 -3
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/colors.d.ts +23 -1
  5. package/dist/types/common/src/constants.d.ts +68 -7
  6. package/dist/types/common/src/keys.d.ts +6 -0
  7. package/dist/types/common/src/points.d.ts +1 -1
  8. package/dist/types/common/src/random.d.ts +7 -0
  9. package/dist/types/common/src/utils.d.ts +13 -44
  10. package/dist/types/element/src/Scene.d.ts +7 -5
  11. package/dist/types/element/src/align.d.ts +5 -2
  12. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  13. package/dist/types/element/src/arrows/focus.d.ts +5 -2
  14. package/dist/types/element/src/binding.d.ts +90 -13
  15. package/dist/types/element/src/bounds.d.ts +28 -7
  16. package/dist/types/element/src/bucketFill.d.ts +110 -0
  17. package/dist/types/element/src/collision.d.ts +21 -5
  18. package/dist/types/element/src/comparisons.d.ts +8 -5
  19. package/dist/types/element/src/convertToShape.d.ts +23 -0
  20. package/dist/types/element/src/cropElement.d.ts +36 -4
  21. package/dist/types/element/src/delta.d.ts +30 -2
  22. package/dist/types/element/src/distribute.d.ts +5 -2
  23. package/dist/types/element/src/dragElements.d.ts +34 -2
  24. package/dist/types/element/src/duplicate.d.ts +64 -3
  25. package/dist/types/element/src/elbowArrow.d.ts +5 -0
  26. package/dist/types/element/src/embeddable.d.ts +3 -2
  27. package/dist/types/element/src/flowchart.d.ts +9 -11
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +30 -11
  30. package/dist/types/element/src/groups.d.ts +10 -15
  31. package/dist/types/element/src/image.d.ts +5 -2
  32. package/dist/types/element/src/index.d.ts +7 -1
  33. package/dist/types/element/src/linearElementEditor.d.ts +31 -11
  34. package/dist/types/element/src/listMarker.d.ts +39 -0
  35. package/dist/types/element/src/mutateElement.d.ts +1 -1
  36. package/dist/types/element/src/newElement.d.ts +55 -3
  37. package/dist/types/element/src/renderElement.d.ts +31 -7
  38. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  39. package/dist/types/element/src/resizeElements.d.ts +14 -4
  40. package/dist/types/element/src/selection.d.ts +7 -13
  41. package/dist/types/element/src/shape.d.ts +29 -1
  42. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  43. package/dist/types/element/src/sortElements.d.ts +10 -0
  44. package/dist/types/element/src/stickyNote.d.ts +191 -0
  45. package/dist/types/element/src/textElement.d.ts +22 -10
  46. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  47. package/dist/types/element/src/textWrapping.d.ts +3 -2
  48. package/dist/types/element/src/transform.d.ts +31 -8
  49. package/dist/types/element/src/typeChecks.d.ts +29 -27
  50. package/dist/types/element/src/types.d.ts +43 -7
  51. package/dist/types/element/src/utils.d.ts +15 -4
  52. package/dist/types/element/src/zindex.d.ts +2 -2
  53. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +98 -18
  54. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  55. package/dist/types/excalidraw/actions/actionBoundText.d.ts +79 -204
  56. package/dist/types/excalidraw/actions/actionCanvas.d.ts +306 -951
  57. package/dist/types/excalidraw/actions/actionClipboard.d.ts +68 -12
  58. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -6
  59. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -521
  60. package/dist/types/excalidraw/actions/actionDeselect.d.ts +35 -7
  61. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  62. package/dist/types/excalidraw/actions/actionElementLink.d.ts +34 -6
  63. package/dist/types/excalidraw/actions/actionElementLock.d.ts +69 -13
  64. package/dist/types/excalidraw/actions/actionExport.d.ts +76 -20
  65. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +132 -652
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +83 -27
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +89 -9
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +35 -7
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +34 -6
  71. package/dist/types/excalidraw/actions/actionProperties.d.ts +106 -34
  72. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +39 -11
  73. package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -7
  74. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
  75. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +35 -7
  76. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +38 -11
  77. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +35 -7
  78. package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +206 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +35 -7
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +38 -11
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +50 -19
  83. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -7
  84. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +36 -8
  85. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  86. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +35 -7
  87. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  88. package/dist/types/excalidraw/actions/index.d.ts +4 -2
  89. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  90. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  91. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  92. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  93. package/dist/types/excalidraw/appState.d.ts +37 -12
  94. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
  95. package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
  96. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
  97. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
  98. package/dist/types/excalidraw/charts/index.d.ts +2 -1
  99. package/dist/types/excalidraw/components/Actions.d.ts +26 -13
  100. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  101. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  102. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  103. package/dist/types/excalidraw/components/App.clipboard.d.ts +59 -0
  104. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  105. package/dist/types/excalidraw/components/App.d.ts +335 -111
  106. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  107. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  108. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  109. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  110. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  111. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  112. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  113. package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
  114. package/dist/types/excalidraw/components/App.text.d.ts +194 -0
  115. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  116. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  117. package/dist/types/excalidraw/components/App.viewport.d.ts +133 -0
  118. package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
  119. package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
  120. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  121. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  122. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  123. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  124. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  125. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  126. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  128. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  129. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  130. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
  131. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  132. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  133. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  134. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  135. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  136. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  137. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  138. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  139. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  140. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  141. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  142. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  143. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  144. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  145. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  146. package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
  147. package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
  148. package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
  149. package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
  150. package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
  151. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  152. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  153. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  154. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  155. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  156. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  157. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  158. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  159. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  160. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  161. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  162. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  163. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  164. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  165. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  166. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  167. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  168. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  169. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  171. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  172. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  173. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  174. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  175. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  176. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  177. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
  178. package/dist/types/excalidraw/components/Toast.d.ts +12 -1
  179. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  180. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  181. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  182. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  183. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  184. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  185. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  186. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  187. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  188. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
  189. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  190. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  191. package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
  192. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  193. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
  194. package/dist/types/excalidraw/components/icons.d.ts +8 -1
  195. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +10 -4
  196. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  197. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  198. package/dist/types/excalidraw/data/blob.d.ts +84 -28
  199. package/dist/types/excalidraw/data/index.d.ts +7 -7
  200. package/dist/types/excalidraw/data/json.d.ts +48 -20
  201. package/dist/types/excalidraw/data/library.d.ts +1 -1
  202. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  203. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  204. package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
  205. package/dist/types/excalidraw/history.d.ts +10 -4
  206. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  207. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  208. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  209. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  210. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  211. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  212. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  213. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  214. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  215. package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
  216. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  217. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  218. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  219. package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
  220. package/dist/types/excalidraw/scene/export.d.ts +344 -21
  221. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  222. package/dist/types/excalidraw/scene/types.d.ts +30 -5
  223. package/dist/types/excalidraw/snapping.d.ts +7 -7
  224. package/dist/types/excalidraw/types.d.ts +617 -29
  225. package/dist/types/excalidraw/viewport.d.ts +308 -0
  226. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +13 -3
  227. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  228. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  229. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  230. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  231. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  232. package/dist/types/math/src/constants.d.ts +0 -1
  233. package/dist/types/math/src/curve.d.ts +19 -12
  234. package/dist/types/math/src/index.d.ts +1 -0
  235. package/dist/types/math/src/pca.d.ts +79 -0
  236. package/dist/types/math/src/point.d.ts +1 -0
  237. package/dist/types/math/src/polygon.d.ts +25 -1
  238. package/dist/types/math/src/segment.d.ts +6 -0
  239. package/dist/types/utils/src/index.d.ts +4 -3
  240. package/dist/types/utils/src/shape.d.ts +2 -2
  241. package/package.json +1 -1
  242. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  243. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  244. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  245. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  246. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  247. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  248. package/dist/types/excalidraw/cursor.d.ts +0 -5
  249. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  250. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  251. package/dist/types/utils/src/bbox.d.ts +0 -9
  252. package/dist/types/utils/src/export.d.ts +0 -35
  253. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,21 +1,21 @@
1
1
  import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
2
- import type { AppClassProperties, AppState } from "../types";
2
+ import type { AppClassProperties, UIAppState } from "../types";
3
3
  export declare const actionGroup: {
4
4
  name: "group";
5
5
  label: string;
6
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
6
+ icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
7
7
  trackEvent: {
8
8
  category: "element";
9
9
  };
10
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
11
- appState: Readonly<AppState>;
10
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => false | {
11
+ appState: Readonly<import("../types").AppState>;
12
12
  elements: readonly OrderedExcalidrawElement[];
13
13
  captureUpdate: "EVENTUALLY";
14
14
  } | {
15
15
  appState: {
16
- selectedElementIds: AppState["selectedElementIds"];
17
- selectedGroupIds: AppState["selectedGroupIds"];
18
- editingGroupId: AppState["editingGroupId"];
16
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
17
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
18
+ editingGroupId: import("../types").AppState["editingGroupId"];
19
19
  contextMenu: {
20
20
  items: import("../components/ContextMenu").ContextMenuItems;
21
21
  top: number;
@@ -36,11 +36,24 @@ export declare const actionGroup: {
36
36
  boxSelectionMode: import("../types").BoxSelectionMode;
37
37
  bindingPreference: "enabled" | "disabled";
38
38
  isMidpointSnappingEnabled: boolean;
39
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
39
+ showHints: boolean;
40
+ splitOnPaste: boolean;
41
+ inputDevice: import("../types").InputDevice;
40
42
  suggestedBinding: {
41
43
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
42
44
  midPoint?: import("@excalidraw/math").GlobalPoint;
43
45
  } | null;
46
+ textToolHover: {
47
+ type: "text";
48
+ elementId: ExcalidrawElement["id"];
49
+ } | {
50
+ type: "container";
51
+ elementId: ExcalidrawElement["id"];
52
+ } | {
53
+ type: "arrow";
54
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
55
+ anchor: "start" | "end" | "label";
56
+ } | null;
44
57
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
45
58
  frameRendering: {
46
59
  enabled: boolean;
@@ -48,8 +61,8 @@ export declare const actionGroup: {
48
61
  outline: boolean;
49
62
  clip: boolean;
50
63
  };
51
- editingFrame: string | null;
52
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
64
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
65
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
53
66
  editingTextElement: ExcalidrawTextElement | null;
54
67
  activeTool: {
55
68
  lastActiveTool: import("../types").ActiveTool | null;
@@ -67,11 +80,14 @@ export declare const actionGroup: {
67
80
  exportWithDarkMode: boolean;
68
81
  exportScale: number;
69
82
  currentItemStrokeColor: string;
83
+ currentItemStickynoteStrokeColor: string;
84
+ currentItemStickynoteBackgroundColor: string;
70
85
  currentItemBackgroundColor: string;
71
86
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
72
- currentItemStrokeWidth: number;
87
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
73
88
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
74
89
  currentItemRoughness: number;
90
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
75
91
  currentItemOpacity: number;
76
92
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
77
93
  currentItemFontSize: number;
@@ -84,6 +100,7 @@ export declare const actionGroup: {
84
100
  viewBackgroundColor: string;
85
101
  scrollX: number;
86
102
  scrollY: number;
103
+ scrollConstraints: import("../types").ScrollConstraints | null;
87
104
  cursorButton: "up" | "down";
88
105
  scrolledOutside: boolean;
89
106
  name: string | null;
@@ -127,8 +144,13 @@ export declare const actionGroup: {
127
144
  message: React.ReactNode;
128
145
  closable?: boolean;
129
146
  duration?: number;
147
+ action?: {
148
+ label: string;
149
+ onClick: () => void;
150
+ };
130
151
  } | null;
131
152
  zenModeEnabled: boolean;
153
+ minimapEnabled: boolean;
132
154
  theme: import("@excalidraw/element/types").Theme;
133
155
  gridSize: number;
134
156
  gridStep: number;
@@ -152,8 +174,6 @@ export declare const actionGroup: {
152
174
  y: number;
153
175
  } | null;
154
176
  objectsSnapModeEnabled: boolean;
155
- userToFollow: import("../types").UserToFollow | null;
156
- followedBy: Set<import("../types").SocketId>;
157
177
  isCropping: boolean;
158
178
  croppingElementId: ExcalidrawElement["id"] | null;
159
179
  searchMatches: Readonly<{
@@ -165,11 +185,19 @@ export declare const actionGroup: {
165
185
  [groupId: string]: true;
166
186
  };
167
187
  bindMode: import("@excalidraw/element/types").BindMode;
188
+ colorTopPicks: {
189
+ elementStroke: readonly string[] | null;
190
+ elementBackground: readonly string[] | null;
191
+ bucketFill: readonly string[] | null;
192
+ stickyNoteStroke: readonly string[] | null;
193
+ stickyNoteBackground: readonly string[] | null;
194
+ };
195
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
168
196
  };
169
197
  elements: OrderedExcalidrawElement[];
170
198
  captureUpdate: "IMMEDIATELY";
171
199
  };
172
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
200
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
173
201
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
174
202
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
175
203
  } & {
@@ -178,19 +206,19 @@ export declare const actionGroup: {
178
206
  export declare const actionUngroup: {
179
207
  name: "ungroup";
180
208
  label: string;
181
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
209
+ icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
182
210
  trackEvent: {
183
211
  category: "element";
184
212
  };
185
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
186
- appState: Readonly<AppState>;
213
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
214
+ appState: Readonly<import("../types").AppState>;
187
215
  elements: readonly OrderedExcalidrawElement[];
188
216
  captureUpdate: "EVENTUALLY";
189
217
  } | {
190
218
  appState: {
191
- selectedElementIds: AppState["selectedElementIds"];
192
- selectedGroupIds: AppState["selectedGroupIds"];
193
- editingGroupId: AppState["editingGroupId"];
219
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
220
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
221
+ editingGroupId: import("../types").AppState["editingGroupId"];
194
222
  contextMenu: {
195
223
  items: import("../components/ContextMenu").ContextMenuItems;
196
224
  top: number;
@@ -211,11 +239,24 @@ export declare const actionUngroup: {
211
239
  boxSelectionMode: import("../types").BoxSelectionMode;
212
240
  bindingPreference: "enabled" | "disabled";
213
241
  isMidpointSnappingEnabled: boolean;
214
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
242
+ showHints: boolean;
243
+ splitOnPaste: boolean;
244
+ inputDevice: import("../types").InputDevice;
215
245
  suggestedBinding: {
216
246
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
217
247
  midPoint?: import("@excalidraw/math").GlobalPoint;
218
248
  } | null;
249
+ textToolHover: {
250
+ type: "text";
251
+ elementId: ExcalidrawElement["id"];
252
+ } | {
253
+ type: "container";
254
+ elementId: ExcalidrawElement["id"];
255
+ } | {
256
+ type: "arrow";
257
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
258
+ anchor: "start" | "end" | "label";
259
+ } | null;
219
260
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
220
261
  frameRendering: {
221
262
  enabled: boolean;
@@ -223,8 +264,8 @@ export declare const actionUngroup: {
223
264
  outline: boolean;
224
265
  clip: boolean;
225
266
  };
226
- editingFrame: string | null;
227
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
267
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
268
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
228
269
  editingTextElement: ExcalidrawTextElement | null;
229
270
  activeTool: {
230
271
  lastActiveTool: import("../types").ActiveTool | null;
@@ -242,11 +283,14 @@ export declare const actionUngroup: {
242
283
  exportWithDarkMode: boolean;
243
284
  exportScale: number;
244
285
  currentItemStrokeColor: string;
286
+ currentItemStickynoteStrokeColor: string;
287
+ currentItemStickynoteBackgroundColor: string;
245
288
  currentItemBackgroundColor: string;
246
289
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
247
- currentItemStrokeWidth: number;
290
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
248
291
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
249
292
  currentItemRoughness: number;
293
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
250
294
  currentItemOpacity: number;
251
295
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
252
296
  currentItemFontSize: number;
@@ -259,6 +303,7 @@ export declare const actionUngroup: {
259
303
  viewBackgroundColor: string;
260
304
  scrollX: number;
261
305
  scrollY: number;
306
+ scrollConstraints: import("../types").ScrollConstraints | null;
262
307
  cursorButton: "up" | "down";
263
308
  scrolledOutside: boolean;
264
309
  name: string | null;
@@ -302,8 +347,13 @@ export declare const actionUngroup: {
302
347
  message: React.ReactNode;
303
348
  closable?: boolean;
304
349
  duration?: number;
350
+ action?: {
351
+ label: string;
352
+ onClick: () => void;
353
+ };
305
354
  } | null;
306
355
  zenModeEnabled: boolean;
356
+ minimapEnabled: boolean;
307
357
  theme: import("@excalidraw/element/types").Theme;
308
358
  gridSize: number;
309
359
  gridStep: number;
@@ -327,8 +377,6 @@ export declare const actionUngroup: {
327
377
  y: number;
328
378
  } | null;
329
379
  objectsSnapModeEnabled: boolean;
330
- userToFollow: import("../types").UserToFollow | null;
331
- followedBy: Set<import("../types").SocketId>;
332
380
  isCropping: boolean;
333
381
  croppingElementId: ExcalidrawElement["id"] | null;
334
382
  searchMatches: Readonly<{
@@ -340,12 +388,20 @@ export declare const actionUngroup: {
340
388
  [groupId: string]: true;
341
389
  };
342
390
  bindMode: import("@excalidraw/element/types").BindMode;
391
+ colorTopPicks: {
392
+ elementStroke: readonly string[] | null;
393
+ elementBackground: readonly string[] | null;
394
+ bucketFill: readonly string[] | null;
395
+ stickyNoteStroke: readonly string[] | null;
396
+ stickyNoteBackground: readonly string[] | null;
397
+ };
398
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
343
399
  };
344
400
  elements: OrderedExcalidrawElement[];
345
401
  captureUpdate: "IMMEDIATELY";
346
402
  };
347
403
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
348
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
404
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
349
405
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
350
406
  } & {
351
407
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -2,7 +2,7 @@ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
2
2
  export declare const actionToggleLinearEditor: {
3
3
  name: "toggleLinearEditor";
4
4
  category: string;
5
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
5
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
6
6
  keywords: string[];
7
7
  trackEvent: {
8
8
  category: "element";
@@ -27,6 +27,7 @@ export declare const actionToggleLinearEditor: {
27
27
  };
28
28
  arrowStartIsInside: boolean;
29
29
  altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
30
+ arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
30
31
  }>;
31
32
  isDragging: boolean;
32
33
  lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
@@ -63,11 +64,24 @@ export declare const actionToggleLinearEditor: {
63
64
  boxSelectionMode: import("../types").BoxSelectionMode;
64
65
  bindingPreference: "enabled" | "disabled";
65
66
  isMidpointSnappingEnabled: boolean;
66
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
67
+ showHints: boolean;
68
+ splitOnPaste: boolean;
69
+ inputDevice: import("../types").InputDevice;
67
70
  suggestedBinding: {
68
71
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
69
72
  midPoint?: import("@excalidraw/math").GlobalPoint;
70
73
  } | null;
74
+ textToolHover: {
75
+ type: "text";
76
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
77
+ } | {
78
+ type: "container";
79
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
80
+ } | {
81
+ type: "arrow";
82
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
83
+ anchor: "start" | "end" | "label";
84
+ } | null;
71
85
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
72
86
  frameRendering: {
73
87
  enabled: boolean;
@@ -75,8 +89,8 @@ export declare const actionToggleLinearEditor: {
75
89
  outline: boolean;
76
90
  clip: boolean;
77
91
  };
78
- editingFrame: string | null;
79
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
92
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
93
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
80
94
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
81
95
  activeTool: {
82
96
  lastActiveTool: import("../types").ActiveTool | null;
@@ -94,11 +108,14 @@ export declare const actionToggleLinearEditor: {
94
108
  exportWithDarkMode: boolean;
95
109
  exportScale: number;
96
110
  currentItemStrokeColor: string;
111
+ currentItemStickynoteStrokeColor: string;
112
+ currentItemStickynoteBackgroundColor: string;
97
113
  currentItemBackgroundColor: string;
98
114
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
99
- currentItemStrokeWidth: number;
115
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
100
116
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
101
117
  currentItemRoughness: number;
118
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
102
119
  currentItemOpacity: number;
103
120
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
104
121
  currentItemFontSize: number;
@@ -111,6 +128,7 @@ export declare const actionToggleLinearEditor: {
111
128
  viewBackgroundColor: string;
112
129
  scrollX: number;
113
130
  scrollY: number;
131
+ scrollConstraints: import("../types").ScrollConstraints | null;
114
132
  cursorButton: "up" | "down";
115
133
  scrolledOutside: boolean;
116
134
  name: string | null;
@@ -157,8 +175,13 @@ export declare const actionToggleLinearEditor: {
157
175
  message: React.ReactNode;
158
176
  closable?: boolean;
159
177
  duration?: number;
178
+ action?: {
179
+ label: string;
180
+ onClick: () => void;
181
+ };
160
182
  } | null;
161
183
  zenModeEnabled: boolean;
184
+ minimapEnabled: boolean;
162
185
  theme: import("@excalidraw/element/types").Theme;
163
186
  gridSize: number;
164
187
  gridStep: number;
@@ -185,8 +208,6 @@ export declare const actionToggleLinearEditor: {
185
208
  y: number;
186
209
  } | null;
187
210
  objectsSnapModeEnabled: boolean;
188
- userToFollow: import("../types").UserToFollow | null;
189
- followedBy: Set<import("../types").SocketId>;
190
211
  isCropping: boolean;
191
212
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
192
213
  searchMatches: Readonly<{
@@ -198,6 +219,14 @@ export declare const actionToggleLinearEditor: {
198
219
  [groupId: string]: true;
199
220
  };
200
221
  bindMode: import("@excalidraw/element/types").BindMode;
222
+ colorTopPicks: {
223
+ elementStroke: readonly string[] | null;
224
+ elementBackground: readonly string[] | null;
225
+ bucketFill: readonly string[] | null;
226
+ stickyNoteStroke: readonly string[] | null;
227
+ stickyNoteBackground: readonly string[] | null;
228
+ };
229
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
201
230
  };
202
231
  captureUpdate: "IMMEDIATELY";
203
232
  };
@@ -210,7 +239,7 @@ export declare const actionTogglePolygon: {
210
239
  category: string;
211
240
  icon: import("react/jsx-runtime").JSX.Element;
212
241
  keywords: string[];
213
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
242
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
214
243
  trackEvent: {
215
244
  category: "element";
216
245
  };
@@ -243,6 +272,7 @@ export declare const actionTogglePolygon: {
243
272
  frameId: string | null;
244
273
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
245
274
  updated: number;
275
+ created: number | null;
246
276
  link: string | null;
247
277
  locked: boolean;
248
278
  customData?: Record<string, any>;
@@ -282,6 +312,7 @@ export declare const actionTogglePolygon: {
282
312
  frameId: string | null;
283
313
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
284
314
  updated: number;
315
+ created: number | null;
285
316
  link: string | null;
286
317
  locked: boolean;
287
318
  customData?: Record<string, any>;
@@ -316,6 +347,7 @@ export declare const actionTogglePolygon: {
316
347
  frameId: string | null;
317
348
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
318
349
  updated: number;
350
+ created: number | null;
319
351
  link: string | null;
320
352
  locked: boolean;
321
353
  customData?: Record<string, any>;
@@ -350,6 +382,43 @@ export declare const actionTogglePolygon: {
350
382
  frameId: string | null;
351
383
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
352
384
  updated: number;
385
+ created: number | null;
386
+ link: string | null;
387
+ locked: boolean;
388
+ customData?: Record<string, any>;
389
+ }> & Readonly<{
390
+ type: "stickynote";
391
+ baseHeight: number;
392
+ }> & {
393
+ index: import("@excalidraw/element/types").FractionalIndex;
394
+ }) | (Readonly<{
395
+ id: string;
396
+ x: number;
397
+ y: number;
398
+ strokeColor: string;
399
+ backgroundColor: string;
400
+ fillStyle: import("@excalidraw/element/types").FillStyle;
401
+ strokeWidth: number;
402
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
403
+ roundness: null | {
404
+ type: import("@excalidraw/element/types").RoundnessType;
405
+ value?: number;
406
+ };
407
+ roughness: number;
408
+ opacity: number;
409
+ width: number;
410
+ height: number;
411
+ angle: import("@excalidraw/math").Radians;
412
+ seed: number;
413
+ version: number;
414
+ versionNonce: number;
415
+ index: import("@excalidraw/element/types").FractionalIndex | null;
416
+ isDeleted: boolean;
417
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
418
+ frameId: string | null;
419
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
420
+ updated: number;
421
+ created: number | null;
353
422
  link: string | null;
354
423
  locked: boolean;
355
424
  customData?: Record<string, any>;
@@ -384,6 +453,7 @@ export declare const actionTogglePolygon: {
384
453
  frameId: string | null;
385
454
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
386
455
  updated: number;
456
+ created: number | null;
387
457
  link: string | null;
388
458
  locked: boolean;
389
459
  customData?: Record<string, any>;
@@ -418,6 +488,7 @@ export declare const actionTogglePolygon: {
418
488
  frameId: string | null;
419
489
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
420
490
  updated: number;
491
+ created: number | null;
421
492
  link: string | null;
422
493
  locked: boolean;
423
494
  customData?: Record<string, any>;
@@ -452,6 +523,7 @@ export declare const actionTogglePolygon: {
452
523
  frameId: string | null;
453
524
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
454
525
  updated: number;
526
+ created: number | null;
455
527
  link: string | null;
456
528
  locked: boolean;
457
529
  customData?: Record<string, any>;
@@ -489,6 +561,7 @@ export declare const actionTogglePolygon: {
489
561
  frameId: string | null;
490
562
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
491
563
  updated: number;
564
+ created: number | null;
492
565
  link: string | null;
493
566
  locked: boolean;
494
567
  customData?: Record<string, any>;
@@ -527,6 +600,7 @@ export declare const actionTogglePolygon: {
527
600
  frameId: string | null;
528
601
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
529
602
  updated: number;
603
+ created: number | null;
530
604
  link: string | null;
531
605
  locked: boolean;
532
606
  customData?: Record<string, any>;
@@ -562,6 +636,7 @@ export declare const actionTogglePolygon: {
562
636
  frameId: string | null;
563
637
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
564
638
  updated: number;
639
+ created: number | null;
565
640
  link: string | null;
566
641
  locked: boolean;
567
642
  customData?: Record<string, any>;
@@ -597,6 +672,7 @@ export declare const actionTogglePolygon: {
597
672
  frameId: string | null;
598
673
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
599
674
  updated: number;
675
+ created: number | null;
600
676
  link: string | null;
601
677
  locked: boolean;
602
678
  customData?: Record<string, any>;
@@ -604,15 +680,17 @@ export declare const actionTogglePolygon: {
604
680
  type: "text";
605
681
  fontSize: number;
606
682
  fontFamily: import("@excalidraw/element/types").FontFamilyValues;
683
+ baseFontSize: number | null;
607
684
  text: string;
608
685
  textAlign: import("@excalidraw/element/types").TextAlign;
609
686
  verticalAlign: import("@excalidraw/element/types").VerticalAlign;
610
- containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
687
+ containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
611
688
  originalText: string;
612
689
  autoResize: boolean;
613
690
  lineHeight: number & {
614
691
  _brand: "unitlessLineHeight";
615
692
  };
693
+ labelPosition?: number | null;
616
694
  }> & {
617
695
  index: import("@excalidraw/element/types").FractionalIndex;
618
696
  }) | (Readonly<{
@@ -642,6 +720,7 @@ export declare const actionTogglePolygon: {
642
720
  frameId: string | null;
643
721
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
644
722
  updated: number;
723
+ created: number | null;
645
724
  link: string | null;
646
725
  locked: boolean;
647
726
  customData?: Record<string, any>;
@@ -650,6 +729,7 @@ export declare const actionTogglePolygon: {
650
729
  points: readonly import("@excalidraw/math").LocalPoint[];
651
730
  pressures: readonly number[];
652
731
  simulatePressure: boolean;
732
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
653
733
  }> & {
654
734
  index: import("@excalidraw/element/types").FractionalIndex;
655
735
  }))[];
@@ -1,6 +1,6 @@
1
1
  export declare const actionLink: {
2
2
  name: "hyperlink";
3
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
3
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
4
4
  icon: import("react/jsx-runtime").JSX.Element;
5
5
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
6
6
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
@@ -27,11 +27,24 @@ export declare const actionLink: {
27
27
  boxSelectionMode: import("../types").BoxSelectionMode;
28
28
  bindingPreference: "enabled" | "disabled";
29
29
  isMidpointSnappingEnabled: boolean;
30
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
+ showHints: boolean;
31
+ splitOnPaste: boolean;
32
+ inputDevice: import("../types").InputDevice;
31
33
  suggestedBinding: {
32
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
34
36
  } | null;
37
+ textToolHover: {
38
+ type: "text";
39
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
40
+ } | {
41
+ type: "container";
42
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
43
+ } | {
44
+ type: "arrow";
45
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
46
+ anchor: "start" | "end" | "label";
47
+ } | null;
35
48
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
49
  frameRendering: {
37
50
  enabled: boolean;
@@ -39,8 +52,8 @@ export declare const actionLink: {
39
52
  outline: boolean;
40
53
  clip: boolean;
41
54
  };
42
- editingFrame: string | null;
43
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
55
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
56
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
44
57
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
45
58
  activeTool: {
46
59
  lastActiveTool: import("../types").ActiveTool | null;
@@ -58,11 +71,14 @@ export declare const actionLink: {
58
71
  exportWithDarkMode: boolean;
59
72
  exportScale: number;
60
73
  currentItemStrokeColor: string;
74
+ currentItemStickynoteStrokeColor: string;
75
+ currentItemStickynoteBackgroundColor: string;
61
76
  currentItemBackgroundColor: string;
62
77
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
63
- currentItemStrokeWidth: number;
78
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
64
79
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
65
80
  currentItemRoughness: number;
81
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
66
82
  currentItemOpacity: number;
67
83
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
68
84
  currentItemFontSize: number;
@@ -75,6 +91,7 @@ export declare const actionLink: {
75
91
  viewBackgroundColor: string;
76
92
  scrollX: number;
77
93
  scrollY: number;
94
+ scrollConstraints: import("../types").ScrollConstraints | null;
78
95
  cursorButton: "up" | "down";
79
96
  scrolledOutside: boolean;
80
97
  name: string | null;
@@ -120,8 +137,13 @@ export declare const actionLink: {
120
137
  message: React.ReactNode;
121
138
  closable?: boolean;
122
139
  duration?: number;
140
+ action?: {
141
+ label: string;
142
+ onClick: () => void;
143
+ };
123
144
  } | null;
124
145
  zenModeEnabled: boolean;
146
+ minimapEnabled: boolean;
125
147
  theme: import("@excalidraw/element/types").Theme;
126
148
  gridSize: number;
127
149
  gridStep: number;
@@ -148,8 +170,6 @@ export declare const actionLink: {
148
170
  y: number;
149
171
  } | null;
150
172
  objectsSnapModeEnabled: boolean;
151
- userToFollow: import("../types").UserToFollow | null;
152
- followedBy: Set<import("../types").SocketId>;
153
173
  isCropping: boolean;
154
174
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
155
175
  searchMatches: Readonly<{
@@ -161,6 +181,14 @@ export declare const actionLink: {
161
181
  [groupId: string]: true;
162
182
  };
163
183
  bindMode: import("@excalidraw/element/types").BindMode;
184
+ colorTopPicks: {
185
+ elementStroke: readonly string[] | null;
186
+ elementBackground: readonly string[] | null;
187
+ bucketFill: readonly string[] | null;
188
+ stickyNoteStroke: readonly string[] | null;
189
+ stickyNoteBackground: readonly string[] | null;
190
+ };
191
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
164
192
  };
165
193
  captureUpdate: "IMMEDIATELY";
166
194
  };