@excalidraw/math 0.18.0-1118751 → 0.18.0-1440f2d

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 (127) hide show
  1. package/dist/types/common/src/constants.d.ts +4 -0
  2. package/dist/types/common/src/utils.d.ts +12 -1
  3. package/dist/types/element/src/align.d.ts +4 -1
  4. package/dist/types/element/src/binding.d.ts +70 -0
  5. package/dist/types/element/src/bounds.d.ts +10 -2
  6. package/dist/types/element/src/collision.d.ts +13 -0
  7. package/dist/types/element/src/cropElement.d.ts +36 -4
  8. package/dist/types/element/src/delta.d.ts +7 -1
  9. package/dist/types/element/src/distribute.d.ts +4 -1
  10. package/dist/types/element/src/dragElements.d.ts +8 -3
  11. package/dist/types/element/src/elbowArrow.d.ts +5 -0
  12. package/dist/types/element/src/embeddable.d.ts +2 -1
  13. package/dist/types/element/src/flowchart.d.ts +1 -7
  14. package/dist/types/element/src/frame.d.ts +19 -1
  15. package/dist/types/element/src/groups.d.ts +1 -6
  16. package/dist/types/element/src/image.d.ts +5 -2
  17. package/dist/types/element/src/index.d.ts +2 -0
  18. package/dist/types/element/src/linearElementEditor.d.ts +4 -1
  19. package/dist/types/element/src/listMarker.d.ts +39 -0
  20. package/dist/types/element/src/newElement.d.ts +17 -1
  21. package/dist/types/element/src/renderElement.d.ts +10 -0
  22. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  23. package/dist/types/element/src/resizeElements.d.ts +15 -5
  24. package/dist/types/element/src/selection.d.ts +1 -7
  25. package/dist/types/element/src/shape.d.ts +2 -0
  26. package/dist/types/element/src/stickyNote.d.ts +8 -0
  27. package/dist/types/element/src/textElement.d.ts +10 -2
  28. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  29. package/dist/types/element/src/textWrapping.d.ts +3 -2
  30. package/dist/types/element/src/transform.d.ts +5 -1
  31. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -3
  32. package/dist/types/excalidraw/actions/actionBoundText.d.ts +56 -214
  33. package/dist/types/excalidraw/actions/actionCanvas.d.ts +76 -16
  34. package/dist/types/excalidraw/actions/actionClipboard.d.ts +20 -2
  35. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -1
  36. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -564
  37. package/dist/types/excalidraw/actions/actionDeselect.d.ts +14 -2
  38. package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -1
  39. package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -2
  40. package/dist/types/excalidraw/actions/actionExport.d.ts +27 -9
  41. package/dist/types/excalidraw/actions/actionFrame.d.ts +71 -528
  42. package/dist/types/excalidraw/actions/actionGroup.d.ts +22 -4
  43. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +10 -1
  44. package/dist/types/excalidraw/actions/actionLink.d.ts +10 -1
  45. package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -1
  46. package/dist/types/excalidraw/actions/actionProperties.d.ts +20 -2
  47. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +11 -2
  48. package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -1
  49. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +10 -1
  50. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -1
  51. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +10 -1
  52. package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
  53. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -1
  54. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -1
  55. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
  56. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -1
  57. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -1
  58. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  59. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -1
  60. package/dist/types/excalidraw/actions/index.d.ts +3 -0
  61. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  62. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  63. package/dist/types/excalidraw/appState.d.ts +9 -7
  64. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
  65. package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
  66. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
  67. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
  68. package/dist/types/excalidraw/charts/index.d.ts +2 -1
  69. package/dist/types/excalidraw/components/Actions.d.ts +9 -2
  70. package/dist/types/excalidraw/components/App.arrowText.d.ts +5 -39
  71. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  72. package/dist/types/excalidraw/components/App.d.ts +79 -264
  73. package/dist/types/excalidraw/components/App.duplicate.d.ts +52 -2
  74. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  75. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  76. package/dist/types/excalidraw/components/App.pan.d.ts +8 -0
  77. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  78. package/dist/types/excalidraw/components/App.selectionTool.d.ts +93 -0
  79. package/dist/types/excalidraw/components/App.text.d.ts +146 -0
  80. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  81. package/dist/types/excalidraw/components/App.viewport.d.ts +64 -4
  82. package/dist/types/excalidraw/components/App.wheel.d.ts +6 -2
  83. package/dist/types/excalidraw/components/App.wrap.d.ts +31 -0
  84. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -1
  85. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  86. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  87. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  88. package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
  89. package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
  90. package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
  91. package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
  92. package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
  93. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  94. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  95. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  96. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  97. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  98. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  99. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  100. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  101. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
  102. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  103. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +1 -1
  104. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -1
  105. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  106. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  107. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +13 -2
  108. package/dist/types/excalidraw/components/icons.d.ts +1 -0
  109. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -0
  110. package/dist/types/excalidraw/data/blob.d.ts +34 -16
  111. package/dist/types/excalidraw/data/index.d.ts +3 -3
  112. package/dist/types/excalidraw/data/json.d.ts +17 -8
  113. package/dist/types/excalidraw/fonts/Fonts.d.ts +9 -6
  114. package/dist/types/excalidraw/history.d.ts +10 -4
  115. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  116. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  117. package/dist/types/excalidraw/renderer/animation.d.ts +11 -4
  118. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  119. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  120. package/dist/types/excalidraw/scene/export.d.ts +343 -20
  121. package/dist/types/excalidraw/scene/types.d.ts +23 -1
  122. package/dist/types/excalidraw/types.d.ts +83 -14
  123. package/dist/types/excalidraw/viewport.d.ts +23 -1
  124. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
  125. package/dist/types/utils/src/index.d.ts +3 -1
  126. package/package.json +2 -2
  127. package/dist/types/utils/src/export.d.ts +0 -36
@@ -13,8 +13,8 @@ export declare const actionGroup: {
13
13
  captureUpdate: "EVENTUALLY";
14
14
  } | {
15
15
  appState: {
16
- editingGroupId: import("../types").AppState["editingGroupId"];
17
16
  selectedElementIds: import("../types").AppState["selectedElementIds"];
17
+ editingGroupId: import("../types").AppState["editingGroupId"];
18
18
  selectedGroupIds: import("../types").AppState["selectedGroupIds"];
19
19
  contextMenu: {
20
20
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -36,12 +36,20 @@ export declare const actionGroup: {
36
36
  boxSelectionMode: import("../types").BoxSelectionMode;
37
37
  bindingPreference: "enabled" | "disabled";
38
38
  isMidpointSnappingEnabled: boolean;
39
+ showHints: boolean;
39
40
  inputDevice: import("../types").InputDevice;
40
41
  suggestedBinding: {
41
42
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
42
43
  midPoint?: import("@excalidraw/math").GlobalPoint;
43
44
  } | null;
44
- hoveredArrowTextAnchor: {
45
+ textToolHover: {
46
+ type: "text";
47
+ elementId: ExcalidrawElement["id"];
48
+ } | {
49
+ type: "container";
50
+ elementId: ExcalidrawElement["id"];
51
+ } | {
52
+ type: "arrow";
45
53
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
46
54
  anchor: "start" | "end" | "label";
47
55
  } | null;
@@ -137,6 +145,7 @@ export declare const actionGroup: {
137
145
  duration?: number;
138
146
  } | null;
139
147
  zenModeEnabled: boolean;
148
+ minimapEnabled: boolean;
140
149
  theme: import("@excalidraw/element/types").Theme;
141
150
  gridSize: number;
142
151
  gridStep: number;
@@ -202,8 +211,8 @@ export declare const actionUngroup: {
202
211
  captureUpdate: "EVENTUALLY";
203
212
  } | {
204
213
  appState: {
205
- editingGroupId: import("../types").AppState["editingGroupId"];
206
214
  selectedElementIds: import("../types").AppState["selectedElementIds"];
215
+ editingGroupId: import("../types").AppState["editingGroupId"];
207
216
  selectedGroupIds: import("../types").AppState["selectedGroupIds"];
208
217
  contextMenu: {
209
218
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -225,12 +234,20 @@ export declare const actionUngroup: {
225
234
  boxSelectionMode: import("../types").BoxSelectionMode;
226
235
  bindingPreference: "enabled" | "disabled";
227
236
  isMidpointSnappingEnabled: boolean;
237
+ showHints: boolean;
228
238
  inputDevice: import("../types").InputDevice;
229
239
  suggestedBinding: {
230
240
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
231
241
  midPoint?: import("@excalidraw/math").GlobalPoint;
232
242
  } | null;
233
- hoveredArrowTextAnchor: {
243
+ textToolHover: {
244
+ type: "text";
245
+ elementId: ExcalidrawElement["id"];
246
+ } | {
247
+ type: "container";
248
+ elementId: ExcalidrawElement["id"];
249
+ } | {
250
+ type: "arrow";
234
251
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
235
252
  anchor: "start" | "end" | "label";
236
253
  } | null;
@@ -326,6 +343,7 @@ export declare const actionUngroup: {
326
343
  duration?: number;
327
344
  } | null;
328
345
  zenModeEnabled: boolean;
346
+ minimapEnabled: boolean;
329
347
  theme: import("@excalidraw/element/types").Theme;
330
348
  gridSize: number;
331
349
  gridStep: number;
@@ -64,12 +64,20 @@ export declare const actionToggleLinearEditor: {
64
64
  boxSelectionMode: import("../types").BoxSelectionMode;
65
65
  bindingPreference: "enabled" | "disabled";
66
66
  isMidpointSnappingEnabled: boolean;
67
+ showHints: boolean;
67
68
  inputDevice: import("../types").InputDevice;
68
69
  suggestedBinding: {
69
70
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
70
71
  midPoint?: import("@excalidraw/math").GlobalPoint;
71
72
  } | null;
72
- hoveredArrowTextAnchor: {
73
+ textToolHover: {
74
+ type: "text";
75
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
76
+ } | {
77
+ type: "container";
78
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
79
+ } | {
80
+ type: "arrow";
73
81
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
74
82
  anchor: "start" | "end" | "label";
75
83
  } | null;
@@ -168,6 +176,7 @@ export declare const actionToggleLinearEditor: {
168
176
  duration?: number;
169
177
  } | null;
170
178
  zenModeEnabled: boolean;
179
+ minimapEnabled: boolean;
171
180
  theme: import("@excalidraw/element/types").Theme;
172
181
  gridSize: number;
173
182
  gridStep: number;
@@ -27,12 +27,20 @@ export declare const actionLink: {
27
27
  boxSelectionMode: import("../types").BoxSelectionMode;
28
28
  bindingPreference: "enabled" | "disabled";
29
29
  isMidpointSnappingEnabled: boolean;
30
+ showHints: boolean;
30
31
  inputDevice: import("../types").InputDevice;
31
32
  suggestedBinding: {
32
33
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
34
  midPoint?: import("@excalidraw/math").GlobalPoint;
34
35
  } | null;
35
- hoveredArrowTextAnchor: {
36
+ textToolHover: {
37
+ type: "text";
38
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
39
+ } | {
40
+ type: "container";
41
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
42
+ } | {
43
+ type: "arrow";
36
44
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
37
45
  anchor: "start" | "end" | "label";
38
46
  } | null;
@@ -130,6 +138,7 @@ export declare const actionLink: {
130
138
  duration?: number;
131
139
  } | null;
132
140
  zenModeEnabled: boolean;
141
+ minimapEnabled: boolean;
133
142
  theme: import("@excalidraw/element/types").Theme;
134
143
  gridSize: number;
135
144
  gridStep: number;
@@ -34,12 +34,20 @@ export declare const actionShortcuts: {
34
34
  boxSelectionMode: import("../types").BoxSelectionMode;
35
35
  bindingPreference: "enabled" | "disabled";
36
36
  isMidpointSnappingEnabled: boolean;
37
+ showHints: boolean;
37
38
  inputDevice: import("../types").InputDevice;
38
39
  suggestedBinding: {
39
40
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
40
41
  midPoint?: import("@excalidraw/math").GlobalPoint;
41
42
  } | null;
42
- hoveredArrowTextAnchor: {
43
+ textToolHover: {
44
+ type: "text";
45
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
46
+ } | {
47
+ type: "container";
48
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
49
+ } | {
50
+ type: "arrow";
43
51
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
44
52
  anchor: "start" | "end" | "label";
45
53
  } | null;
@@ -119,6 +127,7 @@ export declare const actionShortcuts: {
119
127
  duration?: number;
120
128
  } | null;
121
129
  zenModeEnabled: boolean;
130
+ minimapEnabled: boolean;
122
131
  theme: import("@excalidraw/element/types").Theme;
123
132
  gridSize: number;
124
133
  gridStep: number;
@@ -72,12 +72,20 @@ export declare const actionDecreaseFontSize: {
72
72
  boxSelectionMode: import("../types").BoxSelectionMode;
73
73
  bindingPreference: "enabled" | "disabled";
74
74
  isMidpointSnappingEnabled: boolean;
75
+ showHints: boolean;
75
76
  inputDevice: import("../types").InputDevice;
76
77
  suggestedBinding: {
77
78
  element: NonDeleted<ExcalidrawBindableElement>;
78
79
  midPoint?: import("@excalidraw/math").GlobalPoint;
79
80
  } | null;
80
- hoveredArrowTextAnchor: {
81
+ textToolHover: {
82
+ type: "text";
83
+ elementId: ExcalidrawElement["id"];
84
+ } | {
85
+ type: "container";
86
+ elementId: ExcalidrawElement["id"];
87
+ } | {
88
+ type: "arrow";
81
89
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
82
90
  anchor: "start" | "end" | "label";
83
91
  } | null;
@@ -175,6 +183,7 @@ export declare const actionDecreaseFontSize: {
175
183
  duration?: number;
176
184
  } | null;
177
185
  zenModeEnabled: boolean;
186
+ minimapEnabled: boolean;
178
187
  theme: import("@excalidraw/element/types").Theme;
179
188
  gridSize: number;
180
189
  gridStep: number;
@@ -257,12 +266,20 @@ export declare const actionIncreaseFontSize: {
257
266
  boxSelectionMode: import("../types").BoxSelectionMode;
258
267
  bindingPreference: "enabled" | "disabled";
259
268
  isMidpointSnappingEnabled: boolean;
269
+ showHints: boolean;
260
270
  inputDevice: import("../types").InputDevice;
261
271
  suggestedBinding: {
262
272
  element: NonDeleted<ExcalidrawBindableElement>;
263
273
  midPoint?: import("@excalidraw/math").GlobalPoint;
264
274
  } | null;
265
- hoveredArrowTextAnchor: {
275
+ textToolHover: {
276
+ type: "text";
277
+ elementId: ExcalidrawElement["id"];
278
+ } | {
279
+ type: "container";
280
+ elementId: ExcalidrawElement["id"];
281
+ } | {
282
+ type: "arrow";
266
283
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
267
284
  anchor: "start" | "end" | "label";
268
285
  } | null;
@@ -360,6 +377,7 @@ export declare const actionIncreaseFontSize: {
360
377
  duration?: number;
361
378
  } | null;
362
379
  zenModeEnabled: boolean;
380
+ minimapEnabled: boolean;
363
381
  theme: import("@excalidraw/element/types").Theme;
364
382
  gridSize: number;
365
383
  gridStep: number;
@@ -11,8 +11,8 @@ export declare const actionSelectAll: {
11
11
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => false | {
12
12
  appState: {
13
13
  selectedLinearElement: LinearElementEditor | null;
14
- editingGroupId: import("../types").AppState["editingGroupId"];
15
14
  selectedElementIds: import("../types").AppState["selectedElementIds"];
15
+ editingGroupId: import("../types").AppState["editingGroupId"];
16
16
  selectedGroupIds: import("../types").AppState["selectedGroupIds"];
17
17
  contextMenu: {
18
18
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -34,12 +34,20 @@ export declare const actionSelectAll: {
34
34
  boxSelectionMode: import("../types").BoxSelectionMode;
35
35
  bindingPreference: "enabled" | "disabled";
36
36
  isMidpointSnappingEnabled: boolean;
37
+ showHints: boolean;
37
38
  inputDevice: import("../types").InputDevice;
38
39
  suggestedBinding: {
39
40
  element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
40
41
  midPoint?: import("@excalidraw/math").GlobalPoint;
41
42
  } | null;
42
- hoveredArrowTextAnchor: {
43
+ textToolHover: {
44
+ type: "text";
45
+ elementId: ExcalidrawElement["id"];
46
+ } | {
47
+ type: "container";
48
+ elementId: ExcalidrawElement["id"];
49
+ } | {
50
+ type: "arrow";
43
51
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
44
52
  anchor: "start" | "end" | "label";
45
53
  } | null;
@@ -135,6 +143,7 @@ export declare const actionSelectAll: {
135
143
  duration?: number;
136
144
  } | null;
137
145
  zenModeEnabled: boolean;
146
+ minimapEnabled: boolean;
138
147
  theme: import("@excalidraw/element/types").Theme;
139
148
  gridSize: number;
140
149
  gridStep: number;
@@ -32,12 +32,20 @@ export declare const actionCopyStyles: {
32
32
  boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
35
36
  inputDevice: import("../types").InputDevice;
36
37
  suggestedBinding: {
37
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
39
40
  } | null;
40
- 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";
41
49
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
42
50
  anchor: "start" | "end" | "label";
43
51
  } | null;
@@ -131,6 +139,7 @@ export declare const actionCopyStyles: {
131
139
  selectedElementsAreBeingDragged: boolean;
132
140
  shouldCacheIgnoreZoom: boolean;
133
141
  zenModeEnabled: boolean;
142
+ minimapEnabled: boolean;
134
143
  theme: import("@excalidraw/element/types").Theme;
135
144
  gridSize: number;
136
145
  gridStep: number;
@@ -28,12 +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;
31
32
  inputDevice: import("../types").InputDevice;
32
33
  suggestedBinding: {
33
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
34
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
35
36
  } | null;
36
- 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";
37
45
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
38
46
  anchor: "start" | "end" | "label";
39
47
  } | null;
@@ -132,6 +140,7 @@ export declare const actionToggleArrowBinding: {
132
140
  duration?: number;
133
141
  } | null;
134
142
  zenModeEnabled: boolean;
143
+ minimapEnabled: boolean;
135
144
  theme: import("@excalidraw/element/types").Theme;
136
145
  gridSize: number;
137
146
  gridStep: number;
@@ -32,12 +32,20 @@ export declare const actionToggleGridMode: {
32
32
  boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
35
36
  inputDevice: import("../types").InputDevice;
36
37
  suggestedBinding: {
37
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
39
40
  } | null;
40
- 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";
41
49
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
42
50
  anchor: "start" | "end" | "label";
43
51
  } | null;
@@ -136,6 +144,7 @@ export declare const actionToggleGridMode: {
136
144
  duration?: number;
137
145
  } | null;
138
146
  zenModeEnabled: boolean;
147
+ minimapEnabled: boolean;
139
148
  theme: import("@excalidraw/element/types").Theme;
140
149
  gridSize: number;
141
150
  gridStep: number;
@@ -28,12 +28,20 @@ export declare const actionToggleMidpointSnapping: {
28
28
  isBindingEnabled: boolean;
29
29
  boxSelectionMode: import("../types").BoxSelectionMode;
30
30
  bindingPreference: "enabled" | "disabled";
31
+ showHints: boolean;
31
32
  inputDevice: import("../types").InputDevice;
32
33
  suggestedBinding: {
33
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
34
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
35
36
  } | null;
36
- 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";
37
45
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
38
46
  anchor: "start" | "end" | "label";
39
47
  } | null;
@@ -132,6 +140,7 @@ export declare const actionToggleMidpointSnapping: {
132
140
  duration?: number;
133
141
  } | null;
134
142
  zenModeEnabled: boolean;
143
+ minimapEnabled: boolean;
135
144
  theme: import("@excalidraw/element/types").Theme;
136
145
  gridSize: number;
137
146
  gridStep: number;
@@ -0,0 +1,201 @@
1
+ export declare const actionToggleMinimap: {
2
+ name: "minimap";
3
+ label: string;
4
+ icon: import("react/jsx-runtime").JSX.Element;
5
+ keywords: string[];
6
+ viewMode: true;
7
+ navigation: true;
8
+ trackEvent: {
9
+ category: "canvas";
10
+ predicate: (appState: Readonly<import("../types").AppState>) => boolean;
11
+ };
12
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
13
+ appState: {
14
+ minimapEnabled: boolean;
15
+ contextMenu: {
16
+ items: import("../components/ContextMenu").ContextMenuItems;
17
+ top: number;
18
+ left: number;
19
+ } | null;
20
+ showWelcomeScreen: boolean;
21
+ isLoading: boolean;
22
+ errorMessage: React.ReactNode;
23
+ activeEmbeddable: {
24
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
+ state: "hover" | "active";
26
+ } | null;
27
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
30
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
+ isBindingEnabled: boolean;
32
+ boxSelectionMode: import("../types").BoxSelectionMode;
33
+ bindingPreference: "enabled" | "disabled";
34
+ isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
36
+ inputDevice: import("../types").InputDevice;
37
+ suggestedBinding: {
38
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
+ midPoint?: import("@excalidraw/math").GlobalPoint;
40
+ } | null;
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";
49
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
50
+ anchor: "start" | "end" | "label";
51
+ } | null;
52
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
53
+ frameRendering: {
54
+ enabled: boolean;
55
+ name: boolean;
56
+ outline: boolean;
57
+ clip: boolean;
58
+ };
59
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
60
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
61
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
62
+ activeTool: {
63
+ lastActiveTool: import("../types").ActiveTool | null;
64
+ locked: boolean;
65
+ fromSelection: boolean;
66
+ } & import("../types").ActiveTool;
67
+ preferredSelectionTool: {
68
+ type: "selection" | "lasso";
69
+ initialized: boolean;
70
+ };
71
+ penMode: boolean;
72
+ penDetected: boolean;
73
+ exportBackground: boolean;
74
+ exportEmbedScene: boolean;
75
+ exportWithDarkMode: boolean;
76
+ exportScale: number;
77
+ currentItemStrokeColor: string;
78
+ currentItemStickynoteStrokeColor: string;
79
+ currentItemStickynoteBackgroundColor: string;
80
+ currentItemBackgroundColor: string;
81
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
82
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
83
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
84
+ currentItemRoughness: number;
85
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
86
+ currentItemOpacity: number;
87
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
88
+ currentItemFontSize: number;
89
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
90
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
91
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
92
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
93
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
94
+ currentItemArrowType: "sharp" | "round" | "elbow";
95
+ viewBackgroundColor: string;
96
+ scrollX: number;
97
+ scrollY: number;
98
+ scrollConstraints: import("../types").ScrollConstraints | null;
99
+ cursorButton: "up" | "down";
100
+ scrolledOutside: boolean;
101
+ name: string | null;
102
+ isResizing: boolean;
103
+ isRotating: boolean;
104
+ zoom: import("../types").Zoom;
105
+ openMenu: "canvas" | null;
106
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
107
+ openSidebar: {
108
+ name: import("../types").SidebarName;
109
+ tab?: import("../types").SidebarTabName;
110
+ } | null;
111
+ openDialog: null | {
112
+ name: "imageExport" | "help" | "jsonExport";
113
+ } | {
114
+ name: "ttd";
115
+ tab: "text-to-diagram" | "mermaid";
116
+ } | {
117
+ name: "commandPalette";
118
+ } | {
119
+ name: "settings";
120
+ } | {
121
+ name: "elementLinkSelector";
122
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
123
+ } | {
124
+ name: "charts";
125
+ data: import("../charts").Spreadsheet;
126
+ rawText: string;
127
+ };
128
+ defaultSidebarDockedPreference: boolean;
129
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
130
+ selectedElementIds: Readonly<{
131
+ [id: string]: true;
132
+ }>;
133
+ hoveredElementIds: Readonly<{
134
+ [id: string]: true;
135
+ }>;
136
+ previousSelectedElementIds: {
137
+ [id: string]: true;
138
+ };
139
+ selectedElementsAreBeingDragged: boolean;
140
+ shouldCacheIgnoreZoom: boolean;
141
+ toast: {
142
+ message: React.ReactNode;
143
+ closable?: boolean;
144
+ duration?: number;
145
+ } | null;
146
+ zenModeEnabled: boolean;
147
+ theme: import("@excalidraw/element/types").Theme;
148
+ gridSize: number;
149
+ gridStep: number;
150
+ gridModeEnabled: boolean;
151
+ viewModeEnabled: boolean;
152
+ selectedGroupIds: {
153
+ [groupId: string]: boolean;
154
+ };
155
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
156
+ width: number;
157
+ height: number;
158
+ offsetTop: number;
159
+ offsetLeft: number;
160
+ fileHandle: FileSystemFileHandle | null;
161
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
162
+ stats: {
163
+ open: boolean;
164
+ panels: number;
165
+ };
166
+ showHyperlinkPopup: false | "info" | "editor";
167
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
168
+ snapLines: readonly import("../snapping").SnapLine[];
169
+ originSnapOffset: {
170
+ x: number;
171
+ y: number;
172
+ } | null;
173
+ objectsSnapModeEnabled: boolean;
174
+ isCropping: boolean;
175
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
176
+ searchMatches: Readonly<{
177
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
178
+ matches: readonly import("../types").SearchMatch[];
179
+ }> | null;
180
+ activeLockedId: string | null;
181
+ lockedMultiSelections: {
182
+ [groupId: string]: true;
183
+ };
184
+ bindMode: import("@excalidraw/element/types").BindMode;
185
+ colorTopPicks: {
186
+ elementStroke: readonly string[] | null;
187
+ elementBackground: readonly string[] | null;
188
+ bucketFill: readonly string[] | null;
189
+ stickyNoteStroke: readonly string[] | null;
190
+ stickyNoteBackground: readonly string[] | null;
191
+ };
192
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
193
+ };
194
+ captureUpdate: "EVENTUALLY";
195
+ };
196
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
197
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
198
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
199
+ } & {
200
+ keyTest?: undefined;
201
+ };
@@ -31,12 +31,20 @@ export declare const actionToggleObjectsSnapMode: {
31
31
  boxSelectionMode: import("../types").BoxSelectionMode;
32
32
  bindingPreference: "enabled" | "disabled";
33
33
  isMidpointSnappingEnabled: boolean;
34
+ showHints: boolean;
34
35
  inputDevice: import("../types").InputDevice;
35
36
  suggestedBinding: {
36
37
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
38
  midPoint?: import("@excalidraw/math").GlobalPoint;
38
39
  } | null;
39
- hoveredArrowTextAnchor: {
40
+ textToolHover: {
41
+ type: "text";
42
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
43
+ } | {
44
+ type: "container";
45
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
46
+ } | {
47
+ type: "arrow";
40
48
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
41
49
  anchor: "start" | "end" | "label";
42
50
  } | null;
@@ -135,6 +143,7 @@ export declare const actionToggleObjectsSnapMode: {
135
143
  duration?: number;
136
144
  } | null;
137
145
  zenModeEnabled: boolean;
146
+ minimapEnabled: boolean;
138
147
  theme: import("@excalidraw/element/types").Theme;
139
148
  gridSize: number;
140
149
  gridStep: number;
@@ -36,12 +36,20 @@ export declare const actionToggleSearchMenu: {
36
36
  boxSelectionMode: import("../types").BoxSelectionMode;
37
37
  bindingPreference: "enabled" | "disabled";
38
38
  isMidpointSnappingEnabled: boolean;
39
+ showHints: boolean;
39
40
  inputDevice: import("../types").InputDevice;
40
41
  suggestedBinding: {
41
42
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
42
43
  midPoint?: import("@excalidraw/math").GlobalPoint;
43
44
  } | null;
44
- hoveredArrowTextAnchor: {
45
+ textToolHover: {
46
+ type: "text";
47
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
48
+ } | {
49
+ type: "container";
50
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
51
+ } | {
52
+ type: "arrow";
45
53
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
46
54
  anchor: "start" | "end" | "label";
47
55
  } | null;
@@ -119,6 +127,7 @@ export declare const actionToggleSearchMenu: {
119
127
  duration?: number;
120
128
  } | null;
121
129
  zenModeEnabled: boolean;
130
+ minimapEnabled: boolean;
122
131
  theme: import("@excalidraw/element/types").Theme;
123
132
  gridSize: number;
124
133
  gridStep: number;