@excalidraw/math 0.18.0-2b1c2a9 → 0.18.0-2c3dcc0

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 (164) hide show
  1. package/dist/dev/index.js +8 -2
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/src/colors.d.ts +3 -0
  5. package/dist/types/common/src/constants.d.ts +56 -0
  6. package/dist/types/common/src/keys.d.ts +4 -0
  7. package/dist/types/common/src/random.d.ts +7 -0
  8. package/dist/types/common/src/utils.d.ts +12 -1
  9. package/dist/types/element/src/Scene.d.ts +1 -1
  10. package/dist/types/element/src/align.d.ts +4 -1
  11. package/dist/types/element/src/binding.d.ts +75 -7
  12. package/dist/types/element/src/bounds.d.ts +10 -2
  13. package/dist/types/element/src/collision.d.ts +21 -5
  14. package/dist/types/element/src/comparisons.d.ts +5 -3
  15. package/dist/types/element/src/cropElement.d.ts +36 -4
  16. package/dist/types/element/src/delta.d.ts +30 -2
  17. package/dist/types/element/src/distribute.d.ts +4 -1
  18. package/dist/types/element/src/dragElements.d.ts +8 -3
  19. package/dist/types/element/src/duplicate.d.ts +60 -0
  20. package/dist/types/element/src/elbowArrow.d.ts +5 -0
  21. package/dist/types/element/src/embeddable.d.ts +2 -1
  22. package/dist/types/element/src/flowchart.d.ts +6 -8
  23. package/dist/types/element/src/frame.d.ts +21 -3
  24. package/dist/types/element/src/groups.d.ts +1 -6
  25. package/dist/types/element/src/image.d.ts +5 -2
  26. package/dist/types/element/src/index.d.ts +3 -0
  27. package/dist/types/element/src/linearElementEditor.d.ts +4 -1
  28. package/dist/types/element/src/listMarker.d.ts +39 -0
  29. package/dist/types/element/src/mutateElement.d.ts +1 -1
  30. package/dist/types/element/src/newElement.d.ts +40 -3
  31. package/dist/types/element/src/renderElement.d.ts +31 -4
  32. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  33. package/dist/types/element/src/resizeElements.d.ts +15 -5
  34. package/dist/types/element/src/selection.d.ts +4 -10
  35. package/dist/types/element/src/shape.d.ts +17 -1
  36. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  37. package/dist/types/element/src/stickyNote.d.ts +191 -0
  38. package/dist/types/element/src/textElement.d.ts +10 -2
  39. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  40. package/dist/types/element/src/textWrapping.d.ts +3 -2
  41. package/dist/types/element/src/transform.d.ts +30 -7
  42. package/dist/types/element/src/typeChecks.d.ts +3 -2
  43. package/dist/types/element/src/types.d.ts +28 -6
  44. package/dist/types/element/src/utils.d.ts +8 -1
  45. package/dist/types/element/src/zindex.d.ts +1 -1
  46. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +48 -3
  47. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  48. package/dist/types/excalidraw/actions/actionBoundText.d.ts +62 -208
  49. package/dist/types/excalidraw/actions/actionCanvas.d.ts +121 -16
  50. package/dist/types/excalidraw/actions/actionClipboard.d.ts +32 -2
  51. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +16 -1
  52. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -546
  53. package/dist/types/excalidraw/actions/actionDeselect.d.ts +20 -2
  54. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  55. package/dist/types/excalidraw/actions/actionElementLink.d.ts +16 -1
  56. package/dist/types/excalidraw/actions/actionElementLock.d.ts +32 -2
  57. package/dist/types/excalidraw/actions/actionExport.d.ts +39 -9
  58. package/dist/types/excalidraw/actions/actionFrame.d.ts +92 -479
  59. package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -4
  60. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +66 -2
  61. package/dist/types/excalidraw/actions/actionLink.d.ts +16 -1
  62. package/dist/types/excalidraw/actions/actionMenu.d.ts +16 -1
  63. package/dist/types/excalidraw/actions/actionProperties.d.ts +42 -8
  64. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +17 -2
  65. package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -2
  66. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
  67. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +16 -1
  68. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -1
  69. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +16 -1
  70. package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
  71. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -1
  72. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -1
  73. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
  74. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -1
  75. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -1
  76. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  77. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -1
  78. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  79. package/dist/types/excalidraw/actions/index.d.ts +3 -0
  80. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  81. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  82. package/dist/types/excalidraw/appState.d.ts +26 -8
  83. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
  84. package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
  85. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
  86. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
  87. package/dist/types/excalidraw/charts/index.d.ts +2 -1
  88. package/dist/types/excalidraw/components/Actions.d.ts +10 -2
  89. package/dist/types/excalidraw/components/App.arrowText.d.ts +5 -39
  90. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  91. package/dist/types/excalidraw/components/App.d.ts +129 -218
  92. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  93. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  94. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  95. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  96. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  97. package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
  98. package/dist/types/excalidraw/components/App.text.d.ts +194 -0
  99. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  100. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  101. package/dist/types/excalidraw/components/App.viewport.d.ts +64 -4
  102. package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
  103. package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
  104. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  105. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  106. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -1
  107. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  108. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  109. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  110. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  111. package/dist/types/excalidraw/components/IconButton.d.ts +2 -0
  112. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  113. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  114. package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
  115. package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
  116. package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
  117. package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
  118. package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
  119. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  120. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  121. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  122. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  123. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  124. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  125. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  126. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  127. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
  128. package/dist/types/excalidraw/components/Tools.d.ts +7 -2
  129. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  130. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  131. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  132. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  133. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -1
  134. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
  135. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  136. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  137. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +13 -2
  138. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  139. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +3 -0
  140. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +2 -2
  141. package/dist/types/excalidraw/data/blob.d.ts +46 -16
  142. package/dist/types/excalidraw/data/index.d.ts +3 -3
  143. package/dist/types/excalidraw/data/json.d.ts +23 -8
  144. package/dist/types/excalidraw/fonts/Fonts.d.ts +9 -6
  145. package/dist/types/excalidraw/history.d.ts +10 -4
  146. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  147. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  148. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  149. package/dist/types/excalidraw/renderer/animation.d.ts +11 -4
  150. package/dist/types/excalidraw/renderer/helpers.d.ts +18 -0
  151. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  152. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  153. package/dist/types/excalidraw/scene/Renderer.d.ts +64 -3
  154. package/dist/types/excalidraw/scene/export.d.ts +343 -20
  155. package/dist/types/excalidraw/scene/index.d.ts +1 -1
  156. package/dist/types/excalidraw/scene/types.d.ts +26 -2
  157. package/dist/types/excalidraw/types.d.ts +191 -22
  158. package/dist/types/excalidraw/viewport.d.ts +29 -1
  159. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
  160. package/dist/types/utils/src/index.d.ts +3 -1
  161. package/dist/types/utils/src/shape.d.ts +2 -2
  162. package/package.json +2 -2
  163. package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +0 -31
  164. package/dist/types/utils/src/export.d.ts +0 -35
@@ -32,11 +32,20 @@ export declare const actionCopyStyles: {
32
32
  boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
36
+ inputDevice: import("../types").InputDevice;
35
37
  suggestedBinding: {
36
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
38
40
  } | null;
39
- hoveredArrowTextAnchor: {
41
+ textToolHover: {
42
+ type: "text";
43
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
47
+ } | {
48
+ type: "arrow";
40
49
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
41
50
  anchor: "start" | "end" | "label";
42
51
  } | null;
@@ -66,6 +75,8 @@ export declare const actionCopyStyles: {
66
75
  exportWithDarkMode: boolean;
67
76
  exportScale: number;
68
77
  currentItemStrokeColor: string;
78
+ currentItemStickynoteStrokeColor: string;
79
+ currentItemStickynoteBackgroundColor: string;
69
80
  currentItemBackgroundColor: string;
70
81
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
71
82
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -128,6 +139,7 @@ export declare const actionCopyStyles: {
128
139
  selectedElementsAreBeingDragged: boolean;
129
140
  shouldCacheIgnoreZoom: boolean;
130
141
  zenModeEnabled: boolean;
142
+ minimapEnabled: boolean;
131
143
  theme: import("@excalidraw/element/types").Theme;
132
144
  gridSize: number;
133
145
  gridStep: number;
@@ -170,7 +182,10 @@ export declare const actionCopyStyles: {
170
182
  elementStroke: readonly string[] | null;
171
183
  elementBackground: readonly string[] | null;
172
184
  bucketFill: readonly string[] | null;
185
+ stickyNoteStroke: readonly string[] | null;
186
+ stickyNoteBackground: readonly string[] | null;
173
187
  };
188
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
174
189
  };
175
190
  captureUpdate: "EVENTUALLY";
176
191
  };
@@ -189,7 +204,7 @@ export declare const actionPasteStyles: {
189
204
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
190
205
  captureUpdate: "EVENTUALLY";
191
206
  } | {
192
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
207
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
193
208
  captureUpdate: "IMMEDIATELY";
194
209
  };
195
210
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -1,4 +1,6 @@
1
- import type { ExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement, ExcalidrawTextElement } from "@excalidraw/element/types";
2
+ import type { AppClassProperties, AppState } from "../types";
3
+ export declare const isTextAutoResizeShortcut: (event: KeyboardEvent | React.KeyboardEvent<Element>) => boolean;
2
4
  export declare const actionTextAutoResize: {
3
5
  name: "autoResize";
4
6
  label: string;
@@ -6,12 +8,456 @@ export declare const actionTextAutoResize: {
6
8
  trackEvent: {
7
9
  category: "element";
8
10
  };
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, app: import("../types").AppClassProperties) => false | {
11
- appState: Readonly<import("../types").AppState>;
12
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: unknown) => boolean;
12
+ /**
13
+ * Toggles auto-resizing of the given text (e.g. the one being edited), or
14
+ * else of the selected free texts: on if any of them wraps, else off.
15
+ */
16
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, targetElement: unknown, app: AppClassProperties) => false | {
17
+ appState: Readonly<AppState>;
18
+ elements: (ExcalidrawTextElement | (Readonly<{
19
+ id: string;
20
+ x: number;
21
+ y: number;
22
+ strokeColor: string;
23
+ backgroundColor: string;
24
+ fillStyle: import("@excalidraw/element/types").FillStyle;
25
+ strokeWidth: number;
26
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
27
+ roundness: null | {
28
+ type: import("@excalidraw/element/types").RoundnessType;
29
+ value?: number;
30
+ };
31
+ roughness: number;
32
+ opacity: number;
33
+ width: number;
34
+ height: number;
35
+ angle: import("@excalidraw/math").Radians;
36
+ seed: number;
37
+ version: number;
38
+ versionNonce: number;
39
+ index: import("@excalidraw/element/types").FractionalIndex | null;
40
+ isDeleted: boolean;
41
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
42
+ frameId: string | null;
43
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
44
+ updated: number;
45
+ created: number | null;
46
+ link: string | null;
47
+ locked: boolean;
48
+ customData?: Record<string, any>;
49
+ }> & Readonly<{
50
+ type: "line" | "arrow";
51
+ points: readonly import("@excalidraw/math").LocalPoint[];
52
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
53
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
54
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
55
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
56
+ }> & {
57
+ index: import("@excalidraw/element/types").FractionalIndex;
58
+ }) | (Readonly<{
59
+ id: string;
60
+ x: number;
61
+ y: number;
62
+ strokeColor: string;
63
+ backgroundColor: string;
64
+ fillStyle: import("@excalidraw/element/types").FillStyle;
65
+ strokeWidth: number;
66
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
67
+ roundness: null | {
68
+ type: import("@excalidraw/element/types").RoundnessType;
69
+ value?: number;
70
+ };
71
+ roughness: number;
72
+ opacity: number;
73
+ width: number;
74
+ height: number;
75
+ angle: import("@excalidraw/math").Radians;
76
+ seed: number;
77
+ version: number;
78
+ versionNonce: number;
79
+ index: import("@excalidraw/element/types").FractionalIndex | null;
80
+ isDeleted: boolean;
81
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
82
+ frameId: string | null;
83
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
84
+ updated: number;
85
+ created: number | null;
86
+ link: string | null;
87
+ locked: boolean;
88
+ customData?: Record<string, any>;
89
+ }> & {
90
+ type: "selection";
91
+ } & {
92
+ index: import("@excalidraw/element/types").FractionalIndex;
93
+ }) | (Readonly<{
94
+ id: string;
95
+ x: number;
96
+ y: number;
97
+ strokeColor: string;
98
+ backgroundColor: string;
99
+ fillStyle: import("@excalidraw/element/types").FillStyle;
100
+ strokeWidth: number;
101
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
102
+ roundness: null | {
103
+ type: import("@excalidraw/element/types").RoundnessType;
104
+ value?: number;
105
+ };
106
+ roughness: number;
107
+ opacity: number;
108
+ width: number;
109
+ height: number;
110
+ angle: import("@excalidraw/math").Radians;
111
+ seed: number;
112
+ version: number;
113
+ versionNonce: number;
114
+ index: import("@excalidraw/element/types").FractionalIndex | null;
115
+ isDeleted: boolean;
116
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
117
+ frameId: string | null;
118
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
119
+ updated: number;
120
+ created: number | null;
121
+ link: string | null;
122
+ locked: boolean;
123
+ customData?: Record<string, any>;
124
+ }> & {
125
+ type: "rectangle";
126
+ } & {
127
+ index: import("@excalidraw/element/types").FractionalIndex;
128
+ }) | (Readonly<{
129
+ id: string;
130
+ x: number;
131
+ y: number;
132
+ strokeColor: string;
133
+ backgroundColor: string;
134
+ fillStyle: import("@excalidraw/element/types").FillStyle;
135
+ strokeWidth: number;
136
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
137
+ roundness: null | {
138
+ type: import("@excalidraw/element/types").RoundnessType;
139
+ value?: number;
140
+ };
141
+ roughness: number;
142
+ opacity: number;
143
+ width: number;
144
+ height: number;
145
+ angle: import("@excalidraw/math").Radians;
146
+ seed: number;
147
+ version: number;
148
+ versionNonce: number;
149
+ index: import("@excalidraw/element/types").FractionalIndex | null;
150
+ isDeleted: boolean;
151
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
152
+ frameId: string | null;
153
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
154
+ updated: number;
155
+ created: number | null;
156
+ link: string | null;
157
+ locked: boolean;
158
+ customData?: Record<string, any>;
159
+ }> & Readonly<{
160
+ type: "stickynote";
161
+ baseHeight: number;
162
+ }> & {
163
+ index: import("@excalidraw/element/types").FractionalIndex;
164
+ }) | (Readonly<{
165
+ id: string;
166
+ x: number;
167
+ y: number;
168
+ strokeColor: string;
169
+ backgroundColor: string;
170
+ fillStyle: import("@excalidraw/element/types").FillStyle;
171
+ strokeWidth: number;
172
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
173
+ roundness: null | {
174
+ type: import("@excalidraw/element/types").RoundnessType;
175
+ value?: number;
176
+ };
177
+ roughness: number;
178
+ opacity: number;
179
+ width: number;
180
+ height: number;
181
+ angle: import("@excalidraw/math").Radians;
182
+ seed: number;
183
+ version: number;
184
+ versionNonce: number;
185
+ index: import("@excalidraw/element/types").FractionalIndex | null;
186
+ isDeleted: boolean;
187
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
188
+ frameId: string | null;
189
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
190
+ updated: number;
191
+ created: number | null;
192
+ link: string | null;
193
+ locked: boolean;
194
+ customData?: Record<string, any>;
195
+ }> & {
196
+ type: "diamond";
197
+ } & {
198
+ index: import("@excalidraw/element/types").FractionalIndex;
199
+ }) | (Readonly<{
200
+ id: string;
201
+ x: number;
202
+ y: number;
203
+ strokeColor: string;
204
+ backgroundColor: string;
205
+ fillStyle: import("@excalidraw/element/types").FillStyle;
206
+ strokeWidth: number;
207
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
208
+ roundness: null | {
209
+ type: import("@excalidraw/element/types").RoundnessType;
210
+ value?: number;
211
+ };
212
+ roughness: number;
213
+ opacity: number;
214
+ width: number;
215
+ height: number;
216
+ angle: import("@excalidraw/math").Radians;
217
+ seed: number;
218
+ version: number;
219
+ versionNonce: number;
220
+ index: import("@excalidraw/element/types").FractionalIndex | null;
221
+ isDeleted: boolean;
222
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
223
+ frameId: string | null;
224
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
225
+ updated: number;
226
+ created: number | null;
227
+ link: string | null;
228
+ locked: boolean;
229
+ customData?: Record<string, any>;
230
+ }> & {
231
+ type: "ellipse";
232
+ } & {
233
+ index: import("@excalidraw/element/types").FractionalIndex;
234
+ }) | (Readonly<{
235
+ id: string;
236
+ x: number;
237
+ y: number;
238
+ strokeColor: string;
239
+ backgroundColor: string;
240
+ fillStyle: import("@excalidraw/element/types").FillStyle;
241
+ strokeWidth: number;
242
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
243
+ roundness: null | {
244
+ type: import("@excalidraw/element/types").RoundnessType;
245
+ value?: number;
246
+ };
247
+ roughness: number;
248
+ opacity: number;
249
+ width: number;
250
+ height: number;
251
+ angle: import("@excalidraw/math").Radians;
252
+ seed: number;
253
+ version: number;
254
+ versionNonce: number;
255
+ index: import("@excalidraw/element/types").FractionalIndex | null;
256
+ isDeleted: boolean;
257
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
258
+ frameId: string | null;
259
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
260
+ updated: number;
261
+ created: number | null;
262
+ link: string | null;
263
+ locked: boolean;
264
+ customData?: Record<string, any>;
265
+ }> & Readonly<{
266
+ type: "embeddable";
267
+ }> & {
268
+ index: import("@excalidraw/element/types").FractionalIndex;
269
+ }) | (Readonly<{
270
+ id: string;
271
+ x: number;
272
+ y: number;
273
+ strokeColor: string;
274
+ backgroundColor: string;
275
+ fillStyle: import("@excalidraw/element/types").FillStyle;
276
+ strokeWidth: number;
277
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
278
+ roundness: null | {
279
+ type: import("@excalidraw/element/types").RoundnessType;
280
+ value?: number;
281
+ };
282
+ roughness: number;
283
+ opacity: number;
284
+ width: number;
285
+ height: number;
286
+ angle: import("@excalidraw/math").Radians;
287
+ seed: number;
288
+ version: number;
289
+ versionNonce: number;
290
+ index: import("@excalidraw/element/types").FractionalIndex | null;
291
+ isDeleted: boolean;
292
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
293
+ frameId: string | null;
294
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
295
+ updated: number;
296
+ created: number | null;
297
+ link: string | null;
298
+ locked: boolean;
299
+ customData?: Record<string, any>;
300
+ }> & Readonly<{
301
+ type: "iframe";
302
+ customData?: {
303
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
304
+ };
305
+ }> & {
306
+ index: import("@excalidraw/element/types").FractionalIndex;
307
+ }) | (Readonly<{
308
+ id: string;
309
+ x: number;
310
+ y: number;
311
+ strokeColor: string;
312
+ backgroundColor: string;
313
+ fillStyle: import("@excalidraw/element/types").FillStyle;
314
+ strokeWidth: number;
315
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
316
+ roundness: null | {
317
+ type: import("@excalidraw/element/types").RoundnessType;
318
+ value?: number;
319
+ };
320
+ roughness: number;
321
+ opacity: number;
322
+ width: number;
323
+ height: number;
324
+ angle: import("@excalidraw/math").Radians;
325
+ seed: number;
326
+ version: number;
327
+ versionNonce: number;
328
+ index: import("@excalidraw/element/types").FractionalIndex | null;
329
+ isDeleted: boolean;
330
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
331
+ frameId: string | null;
332
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
333
+ updated: number;
334
+ created: number | null;
335
+ link: string | null;
336
+ locked: boolean;
337
+ customData?: Record<string, any>;
338
+ }> & Readonly<{
339
+ type: "image";
340
+ fileId: import("@excalidraw/element/types").FileId | null;
341
+ status: "pending" | "saved" | "error";
342
+ scale: [number, number];
343
+ crop: import("@excalidraw/element/types").ImageCrop | null;
344
+ }> & {
345
+ index: import("@excalidraw/element/types").FractionalIndex;
346
+ }) | (Readonly<{
347
+ id: string;
348
+ x: number;
349
+ y: number;
350
+ strokeColor: string;
351
+ backgroundColor: string;
352
+ fillStyle: import("@excalidraw/element/types").FillStyle;
353
+ strokeWidth: number;
354
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
355
+ roundness: null | {
356
+ type: import("@excalidraw/element/types").RoundnessType;
357
+ value?: number;
358
+ };
359
+ roughness: number;
360
+ opacity: number;
361
+ width: number;
362
+ height: number;
363
+ angle: import("@excalidraw/math").Radians;
364
+ seed: number;
365
+ version: number;
366
+ versionNonce: number;
367
+ index: import("@excalidraw/element/types").FractionalIndex | null;
368
+ isDeleted: boolean;
369
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
370
+ frameId: string | null;
371
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
372
+ updated: number;
373
+ created: number | null;
374
+ link: string | null;
375
+ locked: boolean;
376
+ customData?: Record<string, any>;
377
+ }> & {
378
+ type: "frame";
379
+ name: string | null;
380
+ } & {
381
+ index: import("@excalidraw/element/types").FractionalIndex;
382
+ }) | (Readonly<{
383
+ id: string;
384
+ x: number;
385
+ y: number;
386
+ strokeColor: string;
387
+ backgroundColor: string;
388
+ fillStyle: import("@excalidraw/element/types").FillStyle;
389
+ strokeWidth: number;
390
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
391
+ roundness: null | {
392
+ type: import("@excalidraw/element/types").RoundnessType;
393
+ value?: number;
394
+ };
395
+ roughness: number;
396
+ opacity: number;
397
+ width: number;
398
+ height: number;
399
+ angle: import("@excalidraw/math").Radians;
400
+ seed: number;
401
+ version: number;
402
+ versionNonce: number;
403
+ index: import("@excalidraw/element/types").FractionalIndex | null;
404
+ isDeleted: boolean;
405
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
406
+ frameId: string | null;
407
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
408
+ updated: number;
409
+ created: number | null;
410
+ link: string | null;
411
+ locked: boolean;
412
+ customData?: Record<string, any>;
413
+ }> & {
414
+ type: "magicframe";
415
+ name: string | null;
416
+ } & {
417
+ index: import("@excalidraw/element/types").FractionalIndex;
418
+ }) | (Readonly<{
419
+ id: string;
420
+ x: number;
421
+ y: number;
422
+ strokeColor: string;
423
+ backgroundColor: string;
424
+ fillStyle: import("@excalidraw/element/types").FillStyle;
425
+ strokeWidth: number;
426
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
427
+ roundness: null | {
428
+ type: import("@excalidraw/element/types").RoundnessType;
429
+ value?: number;
430
+ };
431
+ roughness: number;
432
+ opacity: number;
433
+ width: number;
434
+ height: number;
435
+ angle: import("@excalidraw/math").Radians;
436
+ seed: number;
437
+ version: number;
438
+ versionNonce: number;
439
+ index: import("@excalidraw/element/types").FractionalIndex | null;
440
+ isDeleted: boolean;
441
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
442
+ frameId: string | null;
443
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
444
+ updated: number;
445
+ created: number | null;
446
+ link: string | null;
447
+ locked: boolean;
448
+ customData?: Record<string, any>;
449
+ }> & Readonly<{
450
+ type: "freedraw";
451
+ points: readonly import("@excalidraw/math").LocalPoint[];
452
+ pressures: readonly number[];
453
+ simulatePressure: boolean;
454
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
455
+ }> & {
456
+ index: import("@excalidraw/element/types").FractionalIndex;
457
+ }))[];
13
458
  captureUpdate: "IMMEDIATELY";
14
459
  };
460
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
15
461
  } & {
16
- keyTest?: undefined;
462
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
17
463
  };
@@ -28,11 +28,20 @@ export declare const actionToggleArrowBinding: {
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  boxSelectionMode: import("../types").BoxSelectionMode;
30
30
  isMidpointSnappingEnabled: boolean;
31
+ showHints: 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;
35
- hoveredArrowTextAnchor: {
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";
36
45
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
37
46
  anchor: "start" | "end" | "label";
38
47
  } | null;
@@ -62,6 +71,8 @@ export declare const actionToggleArrowBinding: {
62
71
  exportWithDarkMode: boolean;
63
72
  exportScale: number;
64
73
  currentItemStrokeColor: string;
74
+ currentItemStickynoteStrokeColor: string;
75
+ currentItemStickynoteBackgroundColor: string;
65
76
  currentItemBackgroundColor: string;
66
77
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
67
78
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -129,6 +140,7 @@ export declare const actionToggleArrowBinding: {
129
140
  duration?: number;
130
141
  } | null;
131
142
  zenModeEnabled: boolean;
143
+ minimapEnabled: boolean;
132
144
  theme: import("@excalidraw/element/types").Theme;
133
145
  gridSize: number;
134
146
  gridStep: number;
@@ -171,7 +183,10 @@ export declare const actionToggleArrowBinding: {
171
183
  elementStroke: readonly string[] | null;
172
184
  elementBackground: readonly string[] | null;
173
185
  bucketFill: readonly string[] | null;
186
+ stickyNoteStroke: readonly string[] | null;
187
+ stickyNoteBackground: readonly string[] | null;
174
188
  };
189
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
175
190
  };
176
191
  captureUpdate: "NEVER";
177
192
  };
@@ -32,11 +32,20 @@ export declare const actionToggleGridMode: {
32
32
  boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
36
+ inputDevice: import("../types").InputDevice;
35
37
  suggestedBinding: {
36
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
38
40
  } | null;
39
- hoveredArrowTextAnchor: {
41
+ textToolHover: {
42
+ type: "text";
43
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
47
+ } | {
48
+ type: "arrow";
40
49
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
41
50
  anchor: "start" | "end" | "label";
42
51
  } | null;
@@ -66,6 +75,8 @@ export declare const actionToggleGridMode: {
66
75
  exportWithDarkMode: boolean;
67
76
  exportScale: number;
68
77
  currentItemStrokeColor: string;
78
+ currentItemStickynoteStrokeColor: string;
79
+ currentItemStickynoteBackgroundColor: string;
69
80
  currentItemBackgroundColor: string;
70
81
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
71
82
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -133,6 +144,7 @@ export declare const actionToggleGridMode: {
133
144
  duration?: number;
134
145
  } | null;
135
146
  zenModeEnabled: boolean;
147
+ minimapEnabled: boolean;
136
148
  theme: import("@excalidraw/element/types").Theme;
137
149
  gridSize: number;
138
150
  gridStep: number;
@@ -173,7 +185,10 @@ export declare const actionToggleGridMode: {
173
185
  elementStroke: readonly string[] | null;
174
186
  elementBackground: readonly string[] | null;
175
187
  bucketFill: readonly string[] | null;
188
+ stickyNoteStroke: readonly string[] | null;
189
+ stickyNoteBackground: readonly string[] | null;
176
190
  };
191
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
177
192
  };
178
193
  captureUpdate: "EVENTUALLY";
179
194
  };
@@ -28,11 +28,20 @@ export declare const actionToggleMidpointSnapping: {
28
28
  isBindingEnabled: boolean;
29
29
  boxSelectionMode: import("../types").BoxSelectionMode;
30
30
  bindingPreference: "enabled" | "disabled";
31
+ showHints: 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;
35
- hoveredArrowTextAnchor: {
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";
36
45
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
37
46
  anchor: "start" | "end" | "label";
38
47
  } | null;
@@ -62,6 +71,8 @@ export declare const actionToggleMidpointSnapping: {
62
71
  exportWithDarkMode: boolean;
63
72
  exportScale: number;
64
73
  currentItemStrokeColor: string;
74
+ currentItemStickynoteStrokeColor: string;
75
+ currentItemStickynoteBackgroundColor: string;
65
76
  currentItemBackgroundColor: string;
66
77
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
67
78
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -129,6 +140,7 @@ export declare const actionToggleMidpointSnapping: {
129
140
  duration?: number;
130
141
  } | null;
131
142
  zenModeEnabled: boolean;
143
+ minimapEnabled: boolean;
132
144
  theme: import("@excalidraw/element/types").Theme;
133
145
  gridSize: number;
134
146
  gridStep: number;
@@ -171,7 +183,10 @@ export declare const actionToggleMidpointSnapping: {
171
183
  elementStroke: readonly string[] | null;
172
184
  elementBackground: readonly string[] | null;
173
185
  bucketFill: readonly string[] | null;
186
+ stickyNoteStroke: readonly string[] | null;
187
+ stickyNoteBackground: readonly string[] | null;
174
188
  };
189
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
175
190
  };
176
191
  captureUpdate: "NEVER";
177
192
  };