@excalidraw/math 0.18.0-1118751 → 0.18.0-143b5b6
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.
- package/dist/types/common/src/constants.d.ts +3 -0
- package/dist/types/common/src/utils.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +8 -0
- package/dist/types/element/src/collision.d.ts +6 -0
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/listMarker.d.ts +34 -0
- package/dist/types/element/src/newElement.d.ts +15 -1
- package/dist/types/element/src/textElement.d.ts +7 -0
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +27 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +18 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +63 -7
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +18 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +27 -3
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +12 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +18 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +18 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +27 -3
- package/dist/types/excalidraw/actions/actionGroup.d.ts +18 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +18 -2
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +197 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +9 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +9 -1
- package/dist/types/excalidraw/actions/index.d.ts +1 -0
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +1 -0
- package/dist/types/excalidraw/components/App.arrowText.d.ts +5 -39
- package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
- package/dist/types/excalidraw/components/App.d.ts +58 -258
- package/dist/types/excalidraw/components/App.duplicate.d.ts +52 -2
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +8 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +57 -0
- package/dist/types/excalidraw/components/App.text.d.ts +146 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +41 -1
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -0
- package/dist/types/excalidraw/data/blob.d.ts +18 -2
- package/dist/types/excalidraw/data/json.d.ts +9 -1
- package/dist/types/excalidraw/types.d.ts +35 -13
- package/dist/types/excalidraw/viewport.d.ts +22 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
- package/package.json +2 -2
|
@@ -140,7 +140,14 @@ export declare const actionLoadScene: {
|
|
|
140
140
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
141
141
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
142
142
|
} | null;
|
|
143
|
-
|
|
143
|
+
textToolHover: {
|
|
144
|
+
type: "text";
|
|
145
|
+
elementId: ExcalidrawElement["id"];
|
|
146
|
+
} | {
|
|
147
|
+
type: "container";
|
|
148
|
+
elementId: ExcalidrawElement["id"];
|
|
149
|
+
} | {
|
|
150
|
+
type: "arrow";
|
|
144
151
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
145
152
|
anchor: "start" | "end" | "label";
|
|
146
153
|
} | null;
|
|
@@ -176,6 +183,7 @@ export declare const actionLoadScene: {
|
|
|
176
183
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
177
184
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
178
185
|
bindingPreference: "enabled" | "disabled";
|
|
186
|
+
showHints: boolean;
|
|
179
187
|
inputDevice: import("../types").InputDevice;
|
|
180
188
|
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
181
189
|
preferredSelectionTool: {
|
|
@@ -274,12 +282,20 @@ export declare const actionLoadScene: {
|
|
|
274
282
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
275
283
|
bindingPreference: "enabled" | "disabled";
|
|
276
284
|
isMidpointSnappingEnabled: boolean;
|
|
285
|
+
showHints: boolean;
|
|
277
286
|
inputDevice: import("../types").InputDevice;
|
|
278
287
|
suggestedBinding: {
|
|
279
288
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
280
289
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
281
290
|
} | null;
|
|
282
|
-
|
|
291
|
+
textToolHover: {
|
|
292
|
+
type: "text";
|
|
293
|
+
elementId: ExcalidrawElement["id"];
|
|
294
|
+
} | {
|
|
295
|
+
type: "container";
|
|
296
|
+
elementId: ExcalidrawElement["id"];
|
|
297
|
+
} | {
|
|
298
|
+
type: "arrow";
|
|
283
299
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
284
300
|
anchor: "start" | "end" | "label";
|
|
285
301
|
} | null;
|
|
@@ -30,12 +30,20 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
30
30
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
31
|
bindingPreference: "enabled" | "disabled";
|
|
32
32
|
isMidpointSnappingEnabled: boolean;
|
|
33
|
+
showHints: boolean;
|
|
33
34
|
inputDevice: import("../types").InputDevice;
|
|
34
35
|
suggestedBinding: {
|
|
35
36
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
37
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
37
38
|
} | null;
|
|
38
|
-
|
|
39
|
+
textToolHover: {
|
|
40
|
+
type: "text";
|
|
41
|
+
elementId: ExcalidrawElement["id"];
|
|
42
|
+
} | {
|
|
43
|
+
type: "container";
|
|
44
|
+
elementId: ExcalidrawElement["id"];
|
|
45
|
+
} | {
|
|
46
|
+
type: "arrow";
|
|
39
47
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
40
48
|
anchor: "start" | "end" | "label";
|
|
41
49
|
} | null;
|
|
@@ -220,12 +228,20 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
220
228
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
221
229
|
bindingPreference: "enabled" | "disabled";
|
|
222
230
|
isMidpointSnappingEnabled: boolean;
|
|
231
|
+
showHints: boolean;
|
|
223
232
|
inputDevice: import("../types").InputDevice;
|
|
224
233
|
suggestedBinding: {
|
|
225
234
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
226
235
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
227
236
|
} | null;
|
|
228
|
-
|
|
237
|
+
textToolHover: {
|
|
238
|
+
type: "text";
|
|
239
|
+
elementId: ExcalidrawElement["id"];
|
|
240
|
+
} | {
|
|
241
|
+
type: "container";
|
|
242
|
+
elementId: ExcalidrawElement["id"];
|
|
243
|
+
} | {
|
|
244
|
+
type: "arrow";
|
|
229
245
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
230
246
|
anchor: "start" | "end" | "label";
|
|
231
247
|
} | null;
|
|
@@ -414,12 +430,20 @@ export declare const actionupdateFrameRendering: {
|
|
|
414
430
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
415
431
|
bindingPreference: "enabled" | "disabled";
|
|
416
432
|
isMidpointSnappingEnabled: boolean;
|
|
433
|
+
showHints: boolean;
|
|
417
434
|
inputDevice: import("../types").InputDevice;
|
|
418
435
|
suggestedBinding: {
|
|
419
436
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
420
437
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
421
438
|
} | null;
|
|
422
|
-
|
|
439
|
+
textToolHover: {
|
|
440
|
+
type: "text";
|
|
441
|
+
elementId: ExcalidrawElement["id"];
|
|
442
|
+
} | {
|
|
443
|
+
type: "container";
|
|
444
|
+
elementId: ExcalidrawElement["id"];
|
|
445
|
+
} | {
|
|
446
|
+
type: "arrow";
|
|
423
447
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
424
448
|
anchor: "start" | "end" | "label";
|
|
425
449
|
} | null;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -225,12 +233,20 @@ export declare const actionUngroup: {
|
|
|
225
233
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
226
234
|
bindingPreference: "enabled" | "disabled";
|
|
227
235
|
isMidpointSnappingEnabled: boolean;
|
|
236
|
+
showHints: boolean;
|
|
228
237
|
inputDevice: import("../types").InputDevice;
|
|
229
238
|
suggestedBinding: {
|
|
230
239
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
231
240
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
232
241
|
} | null;
|
|
233
|
-
|
|
242
|
+
textToolHover: {
|
|
243
|
+
type: "text";
|
|
244
|
+
elementId: ExcalidrawElement["id"];
|
|
245
|
+
} | {
|
|
246
|
+
type: "container";
|
|
247
|
+
elementId: ExcalidrawElement["id"];
|
|
248
|
+
} | {
|
|
249
|
+
type: "arrow";
|
|
234
250
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
235
251
|
anchor: "start" | "end" | "label";
|
|
236
252
|
} | null;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -257,12 +265,20 @@ export declare const actionIncreaseFontSize: {
|
|
|
257
265
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
258
266
|
bindingPreference: "enabled" | "disabled";
|
|
259
267
|
isMidpointSnappingEnabled: boolean;
|
|
268
|
+
showHints: boolean;
|
|
260
269
|
inputDevice: import("../types").InputDevice;
|
|
261
270
|
suggestedBinding: {
|
|
262
271
|
element: NonDeleted<ExcalidrawBindableElement>;
|
|
263
272
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
264
273
|
} | null;
|
|
265
|
-
|
|
274
|
+
textToolHover: {
|
|
275
|
+
type: "text";
|
|
276
|
+
elementId: ExcalidrawElement["id"];
|
|
277
|
+
} | {
|
|
278
|
+
type: "container";
|
|
279
|
+
elementId: ExcalidrawElement["id"];
|
|
280
|
+
} | {
|
|
281
|
+
type: "arrow";
|
|
266
282
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
267
283
|
anchor: "start" | "end" | "label";
|
|
268
284
|
} | null;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
export declare const actionToggleShowHints: {
|
|
2
|
+
name: "showHints";
|
|
3
|
+
label: string;
|
|
4
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
keywords: string[];
|
|
6
|
+
viewMode: false;
|
|
7
|
+
trackEvent: {
|
|
8
|
+
category: "canvas";
|
|
9
|
+
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
10
|
+
};
|
|
11
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
12
|
+
appState: {
|
|
13
|
+
showHints: boolean;
|
|
14
|
+
contextMenu: {
|
|
15
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
16
|
+
top: number;
|
|
17
|
+
left: number;
|
|
18
|
+
} | null;
|
|
19
|
+
showWelcomeScreen: boolean;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
errorMessage: React.ReactNode;
|
|
22
|
+
activeEmbeddable: {
|
|
23
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
|
+
state: "hover" | "active";
|
|
25
|
+
} | null;
|
|
26
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
|
+
isBindingEnabled: boolean;
|
|
31
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
32
|
+
bindingPreference: "enabled" | "disabled";
|
|
33
|
+
isMidpointSnappingEnabled: boolean;
|
|
34
|
+
inputDevice: import("../types").InputDevice;
|
|
35
|
+
suggestedBinding: {
|
|
36
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
37
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
38
|
+
} | null;
|
|
39
|
+
textToolHover: {
|
|
40
|
+
type: "text";
|
|
41
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
42
|
+
} | {
|
|
43
|
+
type: "container";
|
|
44
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
45
|
+
} | {
|
|
46
|
+
type: "arrow";
|
|
47
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
48
|
+
anchor: "start" | "end" | "label";
|
|
49
|
+
} | null;
|
|
50
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
51
|
+
frameRendering: {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
name: boolean;
|
|
54
|
+
outline: boolean;
|
|
55
|
+
clip: boolean;
|
|
56
|
+
};
|
|
57
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
58
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
59
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
60
|
+
activeTool: {
|
|
61
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
62
|
+
locked: boolean;
|
|
63
|
+
fromSelection: boolean;
|
|
64
|
+
} & import("../types").ActiveTool;
|
|
65
|
+
preferredSelectionTool: {
|
|
66
|
+
type: "selection" | "lasso";
|
|
67
|
+
initialized: boolean;
|
|
68
|
+
};
|
|
69
|
+
penMode: boolean;
|
|
70
|
+
penDetected: boolean;
|
|
71
|
+
exportBackground: boolean;
|
|
72
|
+
exportEmbedScene: boolean;
|
|
73
|
+
exportWithDarkMode: boolean;
|
|
74
|
+
exportScale: number;
|
|
75
|
+
currentItemStrokeColor: string;
|
|
76
|
+
currentItemStickynoteStrokeColor: string;
|
|
77
|
+
currentItemStickynoteBackgroundColor: string;
|
|
78
|
+
currentItemBackgroundColor: string;
|
|
79
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
80
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
81
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
82
|
+
currentItemRoughness: number;
|
|
83
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
84
|
+
currentItemOpacity: number;
|
|
85
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
86
|
+
currentItemFontSize: number;
|
|
87
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
88
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
89
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
90
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
91
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
92
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
93
|
+
viewBackgroundColor: string;
|
|
94
|
+
scrollX: number;
|
|
95
|
+
scrollY: number;
|
|
96
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
97
|
+
cursorButton: "up" | "down";
|
|
98
|
+
scrolledOutside: boolean;
|
|
99
|
+
name: string | null;
|
|
100
|
+
isResizing: boolean;
|
|
101
|
+
isRotating: boolean;
|
|
102
|
+
zoom: import("../types").Zoom;
|
|
103
|
+
openMenu: "canvas" | null;
|
|
104
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
105
|
+
openSidebar: {
|
|
106
|
+
name: import("../types").SidebarName;
|
|
107
|
+
tab?: import("../types").SidebarTabName;
|
|
108
|
+
} | null;
|
|
109
|
+
openDialog: null | {
|
|
110
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
111
|
+
} | {
|
|
112
|
+
name: "ttd";
|
|
113
|
+
tab: "text-to-diagram" | "mermaid";
|
|
114
|
+
} | {
|
|
115
|
+
name: "commandPalette";
|
|
116
|
+
} | {
|
|
117
|
+
name: "settings";
|
|
118
|
+
} | {
|
|
119
|
+
name: "elementLinkSelector";
|
|
120
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
121
|
+
} | {
|
|
122
|
+
name: "charts";
|
|
123
|
+
data: import("../charts").Spreadsheet;
|
|
124
|
+
rawText: string;
|
|
125
|
+
};
|
|
126
|
+
defaultSidebarDockedPreference: boolean;
|
|
127
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
128
|
+
selectedElementIds: Readonly<{
|
|
129
|
+
[id: string]: true;
|
|
130
|
+
}>;
|
|
131
|
+
hoveredElementIds: Readonly<{
|
|
132
|
+
[id: string]: true;
|
|
133
|
+
}>;
|
|
134
|
+
previousSelectedElementIds: {
|
|
135
|
+
[id: string]: true;
|
|
136
|
+
};
|
|
137
|
+
selectedElementsAreBeingDragged: boolean;
|
|
138
|
+
shouldCacheIgnoreZoom: boolean;
|
|
139
|
+
toast: {
|
|
140
|
+
message: React.ReactNode;
|
|
141
|
+
closable?: boolean;
|
|
142
|
+
duration?: number;
|
|
143
|
+
} | null;
|
|
144
|
+
zenModeEnabled: boolean;
|
|
145
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
146
|
+
gridSize: number;
|
|
147
|
+
gridStep: number;
|
|
148
|
+
gridModeEnabled: boolean;
|
|
149
|
+
viewModeEnabled: boolean;
|
|
150
|
+
selectedGroupIds: {
|
|
151
|
+
[groupId: string]: boolean;
|
|
152
|
+
};
|
|
153
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
154
|
+
width: number;
|
|
155
|
+
height: number;
|
|
156
|
+
offsetTop: number;
|
|
157
|
+
offsetLeft: number;
|
|
158
|
+
fileHandle: FileSystemFileHandle | null;
|
|
159
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
160
|
+
stats: {
|
|
161
|
+
open: boolean;
|
|
162
|
+
panels: number;
|
|
163
|
+
};
|
|
164
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
165
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
166
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
|
+
originSnapOffset: {
|
|
168
|
+
x: number;
|
|
169
|
+
y: number;
|
|
170
|
+
} | null;
|
|
171
|
+
objectsSnapModeEnabled: boolean;
|
|
172
|
+
isCropping: boolean;
|
|
173
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
174
|
+
searchMatches: Readonly<{
|
|
175
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
176
|
+
matches: readonly import("../types").SearchMatch[];
|
|
177
|
+
}> | null;
|
|
178
|
+
activeLockedId: string | null;
|
|
179
|
+
lockedMultiSelections: {
|
|
180
|
+
[groupId: string]: true;
|
|
181
|
+
};
|
|
182
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
183
|
+
colorTopPicks: {
|
|
184
|
+
elementStroke: readonly string[] | null;
|
|
185
|
+
elementBackground: readonly string[] | null;
|
|
186
|
+
bucketFill: readonly string[] | null;
|
|
187
|
+
stickyNoteStroke: readonly string[] | null;
|
|
188
|
+
stickyNoteBackground: readonly string[] | null;
|
|
189
|
+
};
|
|
190
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
191
|
+
};
|
|
192
|
+
captureUpdate: "NEVER";
|
|
193
|
+
};
|
|
194
|
+
checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
|
|
195
|
+
} & {
|
|
196
|
+
keyTest?: undefined;
|
|
197
|
+
};
|