@excalidraw/math 0.18.0-a9ca16e → 0.18.0-abeeaeb

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 (184) hide show
  1. package/dist/dev/index.js +297 -99
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/src/colors.d.ts +15 -1
  5. package/dist/types/common/src/constants.d.ts +12 -7
  6. package/dist/types/common/src/keys.d.ts +2 -0
  7. package/dist/types/common/src/points.d.ts +1 -1
  8. package/dist/types/common/src/utils.d.ts +1 -43
  9. package/dist/types/element/src/Scene.d.ts +6 -4
  10. package/dist/types/element/src/align.d.ts +2 -2
  11. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  12. package/dist/types/element/src/arrows/focus.d.ts +5 -2
  13. package/dist/types/element/src/binding.d.ts +17 -8
  14. package/dist/types/element/src/bounds.d.ts +22 -7
  15. package/dist/types/element/src/bucketFill.d.ts +110 -0
  16. package/dist/types/element/src/collision.d.ts +1 -1
  17. package/dist/types/element/src/comparisons.d.ts +5 -4
  18. package/dist/types/element/src/convertToShape.d.ts +23 -0
  19. package/dist/types/element/src/distribute.d.ts +2 -2
  20. package/dist/types/element/src/dragElements.d.ts +27 -0
  21. package/dist/types/element/src/duplicate.d.ts +4 -3
  22. package/dist/types/element/src/embeddable.d.ts +2 -2
  23. package/dist/types/element/src/flowchart.d.ts +7 -7
  24. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  25. package/dist/types/element/src/frame.d.ts +9 -8
  26. package/dist/types/element/src/groups.d.ts +9 -9
  27. package/dist/types/element/src/index.d.ts +4 -1
  28. package/dist/types/element/src/linearElementEditor.d.ts +17 -10
  29. package/dist/types/element/src/newElement.d.ts +14 -0
  30. package/dist/types/element/src/renderElement.d.ts +0 -3
  31. package/dist/types/element/src/resizeElements.d.ts +2 -2
  32. package/dist/types/element/src/selection.d.ts +6 -6
  33. package/dist/types/element/src/shape.d.ts +13 -1
  34. package/dist/types/element/src/sortElements.d.ts +10 -0
  35. package/dist/types/element/src/textElement.d.ts +12 -9
  36. package/dist/types/element/src/transform.d.ts +2 -2
  37. package/dist/types/element/src/typeChecks.d.ts +26 -25
  38. package/dist/types/element/src/types.d.ts +8 -1
  39. package/dist/types/element/src/utils.d.ts +1 -1
  40. package/dist/types/element/src/zindex.d.ts +2 -2
  41. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +45 -18
  42. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  43. package/dist/types/excalidraw/actions/actionBoundText.d.ts +30 -12
  44. package/dist/types/excalidraw/actions/actionCanvas.d.ts +167 -940
  45. package/dist/types/excalidraw/actions/actionClipboard.d.ts +30 -12
  46. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +15 -6
  47. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +47 -19
  48. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionDeselect.d.ts} +29 -35
  49. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  50. package/dist/types/excalidraw/actions/actionElementLink.d.ts +15 -6
  51. package/dist/types/excalidraw/actions/actionElementLock.d.ts +31 -13
  52. package/dist/types/excalidraw/actions/actionExport.d.ts +32 -14
  53. package/dist/types/excalidraw/actions/actionFrame.d.ts +57 -202
  54. package/dist/types/excalidraw/actions/actionGroup.d.ts +45 -27
  55. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +19 -8
  56. package/dist/types/excalidraw/actions/actionLink.d.ts +16 -7
  57. package/dist/types/excalidraw/actions/actionMenu.d.ts +15 -6
  58. package/dist/types/excalidraw/actions/actionProperties.d.ts +60 -30
  59. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +20 -11
  60. package/dist/types/excalidraw/actions/actionStyles.d.ts +15 -6
  61. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  62. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +16 -7
  63. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +19 -11
  64. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +16 -7
  65. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -7
  66. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +19 -11
  67. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  68. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -7
  69. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +17 -8
  70. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -7
  71. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  72. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  73. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  74. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  75. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  76. package/dist/types/excalidraw/appState.d.ts +12 -5
  77. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  78. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  79. package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
  80. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  81. package/dist/types/excalidraw/components/App.cursor.d.ts +30 -0
  82. package/dist/types/excalidraw/components/App.d.ts +363 -66
  83. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  84. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  85. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  86. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  87. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  88. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
  89. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  90. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  91. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  92. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  93. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  94. package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +31 -0
  95. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  96. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  97. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  98. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  99. package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
  100. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  101. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  102. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  103. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  104. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  105. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  106. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  107. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  108. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  109. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  110. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  111. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  112. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  113. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  116. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  117. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  118. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  119. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  120. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  121. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  122. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  123. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  124. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  125. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  126. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  127. package/dist/types/excalidraw/components/Tools.d.ts +146 -0
  128. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  129. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  130. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -1
  131. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
  132. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  133. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  134. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  135. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  136. package/dist/types/excalidraw/components/icons.d.ts +6 -1
  137. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +8 -4
  138. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  139. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  140. package/dist/types/excalidraw/data/blob.d.ts +34 -16
  141. package/dist/types/excalidraw/data/index.d.ts +4 -4
  142. package/dist/types/excalidraw/data/json.d.ts +23 -14
  143. package/dist/types/excalidraw/data/library.d.ts +1 -1
  144. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  145. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  146. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  147. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  148. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  149. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  150. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  151. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  152. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
  153. package/dist/types/excalidraw/scene/Renderer.d.ts +426 -19
  154. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  155. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  156. package/dist/types/excalidraw/scene/types.d.ts +4 -3
  157. package/dist/types/excalidraw/snapping.d.ts +7 -7
  158. package/dist/types/excalidraw/types.d.ts +415 -23
  159. package/dist/types/excalidraw/viewport.d.ts +275 -0
  160. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
  161. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  162. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  163. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  164. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  165. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  166. package/dist/types/math/src/constants.d.ts +0 -1
  167. package/dist/types/math/src/curve.d.ts +4 -1
  168. package/dist/types/math/src/index.d.ts +1 -0
  169. package/dist/types/math/src/pca.d.ts +79 -0
  170. package/dist/types/math/src/point.d.ts +1 -0
  171. package/dist/types/math/src/polygon.d.ts +25 -1
  172. package/dist/types/utils/src/export.d.ts +3 -3
  173. package/dist/types/utils/src/index.d.ts +1 -2
  174. package/package.json +2 -2
  175. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  176. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  177. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  178. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  179. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  180. package/dist/types/excalidraw/cursor.d.ts +0 -5
  181. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  182. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  183. package/dist/types/utils/src/bbox.d.ts +0 -9
  184. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,23 +1,35 @@
1
+ import { type StrokeWidthKey } from "@excalidraw/common";
1
2
  import { LinearElementEditor } from "@excalidraw/element";
2
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
3
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, NonDeleted, NonDeletedExcalidrawElement, TextAlign } from "@excalidraw/element/types";
3
4
  import type { AppClassProperties, AppState, Primitive } from "../types";
4
- export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
5
- export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
5
+ export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: NonDeletedExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
+ export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
7
+ /**
8
+ * input value (usually the element attribute value,
9
+ * but depends on what the action's PanelComponent input expects)
10
+ */
11
+ getValue: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
6
12
  export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
7
13
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
8
14
  };
9
15
  export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
10
16
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
11
17
  };
18
+ export declare const actionChangeBucketFillBackgroundColor: import("./types").Action<Pick<AppState, "currentItemBackgroundColor">> & {
19
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
20
+ };
12
21
  export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
13
22
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
14
23
  };
15
- export declare const actionChangeStrokeWidth: import("./types").Action<number> & {
24
+ export declare const actionChangeStrokeWidth: import("./types").Action<StrokeWidthKey> & {
16
25
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
17
26
  };
18
27
  export declare const actionChangeSloppiness: import("./types").Action<number> & {
19
28
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
20
29
  };
30
+ export declare const actionChangeFreedrawMode: import("./types").Action<StrokeVariability> & {
31
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
32
+ };
21
33
  export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
22
34
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
23
35
  };
@@ -45,30 +57,34 @@ export declare const actionDecreaseFontSize: {
45
57
  isLoading: boolean;
46
58
  errorMessage: React.ReactNode;
47
59
  activeEmbeddable: {
48
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
60
+ element: NonDeletedExcalidrawElement;
49
61
  state: "hover" | "active";
50
62
  } | null;
51
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
52
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
53
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
54
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
63
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
64
+ resizingElement: NonDeletedExcalidrawElement | null;
65
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
66
+ selectionElement: NonDeletedExcalidrawElement | null;
55
67
  isBindingEnabled: boolean;
68
+ boxSelectionMode: import("../types").BoxSelectionMode;
56
69
  bindingPreference: "enabled" | "disabled";
57
70
  isMidpointSnappingEnabled: boolean;
58
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
59
71
  suggestedBinding: {
60
- element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
72
+ element: NonDeleted<ExcalidrawBindableElement>;
61
73
  midPoint?: import("@excalidraw/math").GlobalPoint;
62
74
  } | null;
63
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
75
+ hoveredArrowTextAnchor: {
76
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
77
+ anchor: "start" | "end" | "label";
78
+ } | null;
79
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
64
80
  frameRendering: {
65
81
  enabled: boolean;
66
82
  name: boolean;
67
83
  outline: boolean;
68
84
  clip: boolean;
69
85
  };
70
- editingFrame: string | null;
71
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
86
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
87
+ elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
72
88
  editingTextElement: ExcalidrawTextElement | null;
73
89
  activeTool: {
74
90
  lastActiveTool: import("../types").ActiveTool | null;
@@ -88,9 +104,10 @@ export declare const actionDecreaseFontSize: {
88
104
  currentItemStrokeColor: string;
89
105
  currentItemBackgroundColor: string;
90
106
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
91
- currentItemStrokeWidth: number;
107
+ currentItemStrokeWidthKey: StrokeWidthKey;
92
108
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
93
109
  currentItemRoughness: number;
110
+ currentItemStrokeVariability: StrokeVariability;
94
111
  currentItemOpacity: number;
95
112
  currentItemFontFamily: FontFamilyValues;
96
113
  currentItemTextAlign: TextAlign;
@@ -102,6 +119,7 @@ export declare const actionDecreaseFontSize: {
102
119
  viewBackgroundColor: string;
103
120
  scrollX: number;
104
121
  scrollY: number;
122
+ scrollConstraints: import("../types").ScrollConstraints | null;
105
123
  cursorButton: "up" | "down";
106
124
  scrolledOutside: boolean;
107
125
  name: string | null;
@@ -177,8 +195,6 @@ export declare const actionDecreaseFontSize: {
177
195
  y: number;
178
196
  } | null;
179
197
  objectsSnapModeEnabled: boolean;
180
- userToFollow: import("../types").UserToFollow | null;
181
- followedBy: Set<import("../types").SocketId>;
182
198
  isCropping: boolean;
183
199
  croppingElementId: ExcalidrawElement["id"] | null;
184
200
  searchMatches: Readonly<{
@@ -190,6 +206,11 @@ export declare const actionDecreaseFontSize: {
190
206
  [groupId: string]: true;
191
207
  };
192
208
  bindMode: import("@excalidraw/element/types").BindMode;
209
+ colorTopPicks: {
210
+ elementStroke: readonly string[] | null;
211
+ elementBackground: readonly string[] | null;
212
+ bucketFill: readonly string[] | null;
213
+ };
193
214
  };
194
215
  captureUpdate: "IMMEDIATELY";
195
216
  };
@@ -215,30 +236,34 @@ export declare const actionIncreaseFontSize: {
215
236
  isLoading: boolean;
216
237
  errorMessage: React.ReactNode;
217
238
  activeEmbeddable: {
218
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
239
+ element: NonDeletedExcalidrawElement;
219
240
  state: "hover" | "active";
220
241
  } | null;
221
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
222
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
223
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
224
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
242
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
243
+ resizingElement: NonDeletedExcalidrawElement | null;
244
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
245
+ selectionElement: NonDeletedExcalidrawElement | null;
225
246
  isBindingEnabled: boolean;
247
+ boxSelectionMode: import("../types").BoxSelectionMode;
226
248
  bindingPreference: "enabled" | "disabled";
227
249
  isMidpointSnappingEnabled: boolean;
228
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
229
250
  suggestedBinding: {
230
- element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
251
+ element: NonDeleted<ExcalidrawBindableElement>;
231
252
  midPoint?: import("@excalidraw/math").GlobalPoint;
232
253
  } | null;
233
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
254
+ hoveredArrowTextAnchor: {
255
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
256
+ anchor: "start" | "end" | "label";
257
+ } | null;
258
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
234
259
  frameRendering: {
235
260
  enabled: boolean;
236
261
  name: boolean;
237
262
  outline: boolean;
238
263
  clip: boolean;
239
264
  };
240
- editingFrame: string | null;
241
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
265
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
266
+ elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
242
267
  editingTextElement: ExcalidrawTextElement | null;
243
268
  activeTool: {
244
269
  lastActiveTool: import("../types").ActiveTool | null;
@@ -258,9 +283,10 @@ export declare const actionIncreaseFontSize: {
258
283
  currentItemStrokeColor: string;
259
284
  currentItemBackgroundColor: string;
260
285
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
261
- currentItemStrokeWidth: number;
286
+ currentItemStrokeWidthKey: StrokeWidthKey;
262
287
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
263
288
  currentItemRoughness: number;
289
+ currentItemStrokeVariability: StrokeVariability;
264
290
  currentItemOpacity: number;
265
291
  currentItemFontFamily: FontFamilyValues;
266
292
  currentItemTextAlign: TextAlign;
@@ -272,6 +298,7 @@ export declare const actionIncreaseFontSize: {
272
298
  viewBackgroundColor: string;
273
299
  scrollX: number;
274
300
  scrollY: number;
301
+ scrollConstraints: import("../types").ScrollConstraints | null;
275
302
  cursorButton: "up" | "down";
276
303
  scrolledOutside: boolean;
277
304
  name: string | null;
@@ -347,8 +374,6 @@ export declare const actionIncreaseFontSize: {
347
374
  y: number;
348
375
  } | null;
349
376
  objectsSnapModeEnabled: boolean;
350
- userToFollow: import("../types").UserToFollow | null;
351
- followedBy: Set<import("../types").SocketId>;
352
377
  isCropping: boolean;
353
378
  croppingElementId: ExcalidrawElement["id"] | null;
354
379
  searchMatches: Readonly<{
@@ -360,6 +385,11 @@ export declare const actionIncreaseFontSize: {
360
385
  [groupId: string]: true;
361
386
  };
362
387
  bindMode: import("@excalidraw/element/types").BindMode;
388
+ colorTopPicks: {
389
+ elementStroke: readonly string[] | null;
390
+ elementBackground: readonly string[] | null;
391
+ bucketFill: readonly string[] | null;
392
+ };
363
393
  };
364
394
  captureUpdate: "IMMEDIATELY";
365
395
  };
@@ -1,5 +1,5 @@
1
1
  import { LinearElementEditor } from "@excalidraw/element";
2
- import type { ExcalidrawElement } from "@excalidraw/element/types";
2
+ import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
3
3
  export declare const actionSelectAll: {
4
4
  name: "selectAll";
5
5
  label: string;
@@ -26,27 +26,31 @@ export declare const actionSelectAll: {
26
26
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
27
27
  state: "hover" | "active";
28
28
  } | null;
29
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
29
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
30
30
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
32
32
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
33
  isBindingEnabled: boolean;
34
+ boxSelectionMode: import("../types").BoxSelectionMode;
34
35
  bindingPreference: "enabled" | "disabled";
35
36
  isMidpointSnappingEnabled: boolean;
36
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
37
  suggestedBinding: {
38
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
+ element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
40
40
  } | null;
41
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
+ hoveredArrowTextAnchor: {
42
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
43
+ anchor: "start" | "end" | "label";
44
+ } | null;
45
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
42
46
  frameRendering: {
43
47
  enabled: boolean;
44
48
  name: boolean;
45
49
  outline: boolean;
46
50
  clip: boolean;
47
51
  };
48
- editingFrame: string | null;
49
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
52
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
53
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
50
54
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
51
55
  activeTool: {
52
56
  lastActiveTool: import("../types").ActiveTool | null;
@@ -66,9 +70,10 @@ export declare const actionSelectAll: {
66
70
  currentItemStrokeColor: string;
67
71
  currentItemBackgroundColor: string;
68
72
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
69
- currentItemStrokeWidth: number;
73
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
70
74
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
71
75
  currentItemRoughness: number;
76
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
72
77
  currentItemOpacity: number;
73
78
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
74
79
  currentItemFontSize: number;
@@ -81,6 +86,7 @@ export declare const actionSelectAll: {
81
86
  viewBackgroundColor: string;
82
87
  scrollX: number;
83
88
  scrollY: number;
89
+ scrollConstraints: import("../types").ScrollConstraints | null;
84
90
  cursorButton: "up" | "down";
85
91
  scrolledOutside: boolean;
86
92
  name: string | null;
@@ -148,8 +154,6 @@ export declare const actionSelectAll: {
148
154
  y: number;
149
155
  } | null;
150
156
  objectsSnapModeEnabled: boolean;
151
- userToFollow: import("../types").UserToFollow | null;
152
- followedBy: Set<import("../types").SocketId>;
153
157
  isCropping: boolean;
154
158
  croppingElementId: ExcalidrawElement["id"] | null;
155
159
  searchMatches: Readonly<{
@@ -161,6 +165,11 @@ export declare const actionSelectAll: {
161
165
  [groupId: string]: true;
162
166
  };
163
167
  bindMode: import("@excalidraw/element/types").BindMode;
168
+ colorTopPicks: {
169
+ elementStroke: readonly string[] | null;
170
+ elementBackground: readonly string[] | null;
171
+ bucketFill: readonly string[] | null;
172
+ };
164
173
  };
165
174
  captureUpdate: "IMMEDIATELY";
166
175
  };
@@ -29,13 +29,17 @@ export declare const actionCopyStyles: {
29
29
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
30
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
31
  isBindingEnabled: boolean;
32
+ boxSelectionMode: import("../types").BoxSelectionMode;
32
33
  bindingPreference: "enabled" | "disabled";
33
34
  isMidpointSnappingEnabled: boolean;
34
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
35
  suggestedBinding: {
36
36
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
37
  midPoint?: import("@excalidraw/math").GlobalPoint;
38
38
  } | null;
39
+ hoveredArrowTextAnchor: {
40
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
41
+ anchor: "start" | "end" | "label";
42
+ } | null;
39
43
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
40
44
  frameRendering: {
41
45
  enabled: boolean;
@@ -43,8 +47,8 @@ export declare const actionCopyStyles: {
43
47
  outline: boolean;
44
48
  clip: boolean;
45
49
  };
46
- editingFrame: string | null;
47
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
50
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
51
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
48
52
  editingTextElement: ExcalidrawTextElement | null;
49
53
  activeTool: {
50
54
  lastActiveTool: import("../types").ActiveTool | null;
@@ -64,9 +68,10 @@ export declare const actionCopyStyles: {
64
68
  currentItemStrokeColor: string;
65
69
  currentItemBackgroundColor: string;
66
70
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
67
- currentItemStrokeWidth: number;
71
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
68
72
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
69
73
  currentItemRoughness: number;
74
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
70
75
  currentItemOpacity: number;
71
76
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
72
77
  currentItemFontSize: number;
@@ -79,6 +84,7 @@ export declare const actionCopyStyles: {
79
84
  viewBackgroundColor: string;
80
85
  scrollX: number;
81
86
  scrollY: number;
87
+ scrollConstraints: import("../types").ScrollConstraints | null;
82
88
  cursorButton: "up" | "down";
83
89
  scrolledOutside: boolean;
84
90
  name: string | null;
@@ -149,8 +155,6 @@ export declare const actionCopyStyles: {
149
155
  y: number;
150
156
  } | null;
151
157
  objectsSnapModeEnabled: boolean;
152
- userToFollow: import("../types").UserToFollow | null;
153
- followedBy: Set<import("../types").SocketId>;
154
158
  isCropping: boolean;
155
159
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
156
160
  searchMatches: Readonly<{
@@ -162,6 +166,11 @@ export declare const actionCopyStyles: {
162
166
  [groupId: string]: true;
163
167
  };
164
168
  bindMode: import("@excalidraw/element/types").BindMode;
169
+ colorTopPicks: {
170
+ elementStroke: readonly string[] | null;
171
+ elementBackground: readonly string[] | null;
172
+ bucketFill: readonly string[] | null;
173
+ };
165
174
  };
166
175
  captureUpdate: "EVENTUALLY";
167
176
  };
@@ -7,7 +7,7 @@ export declare const actionTextAutoResize: {
7
7
  category: "element";
8
8
  };
9
9
  predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: unknown) => boolean;
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, targetElement: unknown) => {
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, targetElement: unknown, app: import("../types").AppClassProperties) => false | {
11
11
  appState: Readonly<import("../types").AppState>;
12
12
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
13
  captureUpdate: "IMMEDIATELY";
@@ -26,12 +26,16 @@ export declare const actionToggleArrowBinding: {
26
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
+ boxSelectionMode: import("../types").BoxSelectionMode;
29
30
  isMidpointSnappingEnabled: boolean;
30
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
31
  suggestedBinding: {
32
32
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
33
  midPoint?: import("@excalidraw/math").GlobalPoint;
34
34
  } | null;
35
+ hoveredArrowTextAnchor: {
36
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
37
+ anchor: "start" | "end" | "label";
38
+ } | null;
35
39
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
40
  frameRendering: {
37
41
  enabled: boolean;
@@ -39,8 +43,8 @@ export declare const actionToggleArrowBinding: {
39
43
  outline: boolean;
40
44
  clip: boolean;
41
45
  };
42
- editingFrame: string | null;
43
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
46
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
47
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
44
48
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
45
49
  activeTool: {
46
50
  lastActiveTool: import("../types").ActiveTool | null;
@@ -60,9 +64,10 @@ export declare const actionToggleArrowBinding: {
60
64
  currentItemStrokeColor: string;
61
65
  currentItemBackgroundColor: string;
62
66
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
63
- currentItemStrokeWidth: number;
67
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
64
68
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
65
69
  currentItemRoughness: number;
70
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
66
71
  currentItemOpacity: number;
67
72
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
68
73
  currentItemFontSize: number;
@@ -75,6 +80,7 @@ export declare const actionToggleArrowBinding: {
75
80
  viewBackgroundColor: string;
76
81
  scrollX: number;
77
82
  scrollY: number;
83
+ scrollConstraints: import("../types").ScrollConstraints | null;
78
84
  cursorButton: "up" | "down";
79
85
  scrolledOutside: boolean;
80
86
  name: string | null;
@@ -150,8 +156,6 @@ export declare const actionToggleArrowBinding: {
150
156
  y: number;
151
157
  } | null;
152
158
  objectsSnapModeEnabled: boolean;
153
- userToFollow: import("../types").UserToFollow | null;
154
- followedBy: Set<import("../types").SocketId>;
155
159
  isCropping: boolean;
156
160
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
157
161
  searchMatches: Readonly<{
@@ -163,10 +167,15 @@ export declare const actionToggleArrowBinding: {
163
167
  [groupId: string]: true;
164
168
  };
165
169
  bindMode: import("@excalidraw/element/types").BindMode;
170
+ colorTopPicks: {
171
+ elementStroke: readonly string[] | null;
172
+ elementBackground: readonly string[] | null;
173
+ bucketFill: readonly string[] | null;
174
+ };
166
175
  };
167
176
  captureUpdate: "NEVER";
168
177
  };
169
- checked: (appState: Readonly<import("../types").AppState>) => boolean;
178
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
170
179
  } & {
171
180
  keyTest?: undefined;
172
181
  };
@@ -1,4 +1,3 @@
1
- import type { AppState } from "../types";
2
1
  export declare const actionToggleGridMode: {
3
2
  name: "gridMode";
4
3
  icon: import("react/jsx-runtime").JSX.Element;
@@ -7,9 +6,9 @@ export declare const actionToggleGridMode: {
7
6
  viewMode: true;
8
7
  trackEvent: {
9
8
  category: "canvas";
10
- predicate: (appState: Readonly<AppState>) => boolean;
9
+ predicate: (appState: Readonly<import("../types").AppState>) => boolean;
11
10
  };
12
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>): {
11
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
13
12
  appState: {
14
13
  gridModeEnabled: boolean;
15
14
  objectsSnapModeEnabled: false;
@@ -30,13 +29,17 @@ export declare const actionToggleGridMode: {
30
29
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
31
  isBindingEnabled: boolean;
32
+ boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
36
35
  suggestedBinding: {
37
36
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
37
  midPoint?: import("@excalidraw/math").GlobalPoint;
39
38
  } | null;
39
+ hoveredArrowTextAnchor: {
40
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
41
+ anchor: "start" | "end" | "label";
42
+ } | null;
40
43
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
44
  frameRendering: {
42
45
  enabled: boolean;
@@ -44,8 +47,8 @@ export declare const actionToggleGridMode: {
44
47
  outline: boolean;
45
48
  clip: boolean;
46
49
  };
47
- editingFrame: string | null;
48
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
50
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
51
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
49
52
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
50
53
  activeTool: {
51
54
  lastActiveTool: import("../types").ActiveTool | null;
@@ -65,9 +68,10 @@ export declare const actionToggleGridMode: {
65
68
  currentItemStrokeColor: string;
66
69
  currentItemBackgroundColor: string;
67
70
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
68
- currentItemStrokeWidth: number;
71
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
69
72
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
70
73
  currentItemRoughness: number;
74
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
71
75
  currentItemOpacity: number;
72
76
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
73
77
  currentItemFontSize: number;
@@ -80,6 +84,7 @@ export declare const actionToggleGridMode: {
80
84
  viewBackgroundColor: string;
81
85
  scrollX: number;
82
86
  scrollY: number;
87
+ scrollConstraints: import("../types").ScrollConstraints | null;
83
88
  cursorButton: "up" | "down";
84
89
  scrolledOutside: boolean;
85
90
  name: string | null;
@@ -153,8 +158,6 @@ export declare const actionToggleGridMode: {
153
158
  x: number;
154
159
  y: number;
155
160
  } | null;
156
- userToFollow: import("../types").UserToFollow | null;
157
- followedBy: Set<import("../types").SocketId>;
158
161
  isCropping: boolean;
159
162
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
160
163
  searchMatches: Readonly<{
@@ -166,11 +169,16 @@ export declare const actionToggleGridMode: {
166
169
  [groupId: string]: true;
167
170
  };
168
171
  bindMode: import("@excalidraw/element/types").BindMode;
172
+ colorTopPicks: {
173
+ elementStroke: readonly string[] | null;
174
+ elementBackground: readonly string[] | null;
175
+ bucketFill: readonly string[] | null;
176
+ };
169
177
  };
170
178
  captureUpdate: "EVENTUALLY";
171
179
  };
172
- checked: (appState: AppState) => boolean;
173
- predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
180
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
181
+ predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
174
182
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
175
183
  } & {
176
184
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -26,12 +26,16 @@ export declare const actionToggleMidpointSnapping: {
26
26
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
+ boxSelectionMode: import("../types").BoxSelectionMode;
29
30
  bindingPreference: "enabled" | "disabled";
30
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
31
  suggestedBinding: {
32
32
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
33
  midPoint?: import("@excalidraw/math").GlobalPoint;
34
34
  } | null;
35
+ hoveredArrowTextAnchor: {
36
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
37
+ anchor: "start" | "end" | "label";
38
+ } | null;
35
39
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
40
  frameRendering: {
37
41
  enabled: boolean;
@@ -39,8 +43,8 @@ export declare const actionToggleMidpointSnapping: {
39
43
  outline: boolean;
40
44
  clip: boolean;
41
45
  };
42
- editingFrame: string | null;
43
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
46
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
47
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
44
48
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
45
49
  activeTool: {
46
50
  lastActiveTool: import("../types").ActiveTool | null;
@@ -60,9 +64,10 @@ export declare const actionToggleMidpointSnapping: {
60
64
  currentItemStrokeColor: string;
61
65
  currentItemBackgroundColor: string;
62
66
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
63
- currentItemStrokeWidth: number;
67
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
64
68
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
65
69
  currentItemRoughness: number;
70
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
66
71
  currentItemOpacity: number;
67
72
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
68
73
  currentItemFontSize: number;
@@ -75,6 +80,7 @@ export declare const actionToggleMidpointSnapping: {
75
80
  viewBackgroundColor: string;
76
81
  scrollX: number;
77
82
  scrollY: number;
83
+ scrollConstraints: import("../types").ScrollConstraints | null;
78
84
  cursorButton: "up" | "down";
79
85
  scrolledOutside: boolean;
80
86
  name: string | null;
@@ -150,8 +156,6 @@ export declare const actionToggleMidpointSnapping: {
150
156
  y: number;
151
157
  } | null;
152
158
  objectsSnapModeEnabled: boolean;
153
- userToFollow: import("../types").UserToFollow | null;
154
- followedBy: Set<import("../types").SocketId>;
155
159
  isCropping: boolean;
156
160
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
157
161
  searchMatches: Readonly<{
@@ -163,10 +167,15 @@ export declare const actionToggleMidpointSnapping: {
163
167
  [groupId: string]: true;
164
168
  };
165
169
  bindMode: import("@excalidraw/element/types").BindMode;
170
+ colorTopPicks: {
171
+ elementStroke: readonly string[] | null;
172
+ elementBackground: readonly string[] | null;
173
+ bucketFill: readonly string[] | null;
174
+ };
166
175
  };
167
176
  captureUpdate: "NEVER";
168
177
  };
169
- checked: (appState: Readonly<import("../types").AppState>) => boolean;
178
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
170
179
  } & {
171
180
  keyTest?: undefined;
172
181
  };