@excalidraw/element 0.18.0-4872083 → 0.18.0-4ce38fb
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/dev/index.js +5645 -3994
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +16 -15
- package/dist/types/common/src/colors.d.ts +13 -7
- package/dist/types/common/src/constants.d.ts +54 -0
- package/dist/types/common/src/keys.d.ts +2 -0
- package/dist/types/common/src/random.d.ts +7 -0
- package/dist/types/common/src/utils.d.ts +5 -0
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/binding.d.ts +13 -7
- package/dist/types/element/src/collision.d.ts +14 -5
- package/dist/types/element/src/comparisons.d.ts +5 -3
- package/dist/types/element/src/delta.d.ts +23 -1
- package/dist/types/element/src/duplicate.d.ts +60 -0
- package/dist/types/element/src/flowchart.d.ts +5 -1
- package/dist/types/element/src/frame.d.ts +2 -2
- package/dist/types/element/src/index.d.ts +2 -0
- package/dist/types/element/src/linearElementEditor.d.ts +10 -0
- package/dist/types/element/src/listMarker.d.ts +34 -0
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +39 -3
- package/dist/types/element/src/renderElement.d.ts +21 -4
- package/dist/types/element/src/shape.d.ts +15 -1
- package/dist/types/element/src/sizeHelpers.d.ts +6 -0
- package/dist/types/element/src/stickyNote.d.ts +183 -0
- package/dist/types/element/src/textElement.d.ts +9 -1
- package/dist/types/element/src/transform.d.ts +25 -6
- package/dist/types/element/src/typeChecks.d.ts +3 -2
- package/dist/types/element/src/types.d.ts +35 -6
- package/dist/types/element/src/utils.d.ts +15 -4
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +60 -3
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +40 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +140 -7
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +40 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +61 -4
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +23 -1
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +40 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +40 -2
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +111 -4
- package/dist/types/excalidraw/actions/actionGroup.d.ts +40 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +71 -2
- package/dist/types/excalidraw/actions/actionLink.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +50 -8
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +21 -2
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +197 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +20 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +20 -1
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- 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 +23 -1
- package/dist/types/excalidraw/components/App.arrowText.d.ts +28 -30
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +10 -0
- package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +8 -0
- package/dist/types/excalidraw/components/App.d.ts +110 -199
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -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.toolDrag.d.ts +63 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +41 -1
- package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +6 -2
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- package/dist/types/excalidraw/components/IconButton.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/Tools.d.ts +7 -2
- package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
- package/dist/types/excalidraw/components/icons.d.ts +2 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +2 -2
- package/dist/types/excalidraw/data/blob.d.ts +40 -2
- package/dist/types/excalidraw/data/json.d.ts +20 -1
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +64 -2
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +3 -1
- package/dist/types/excalidraw/types.d.ts +140 -18
- package/dist/types/excalidraw/viewport.d.ts +33 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
- package/dist/types/math/src/curve.d.ts +19 -12
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/utils/src/export.d.ts +1 -0
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +4 -4
|
@@ -29,11 +29,20 @@ export declare const actionAddToLibrary: {
|
|
|
29
29
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
30
30
|
bindingPreference: "enabled" | "disabled";
|
|
31
31
|
isMidpointSnappingEnabled: boolean;
|
|
32
|
+
showHints: boolean;
|
|
33
|
+
inputDevice: import("../types").InputDevice;
|
|
32
34
|
suggestedBinding: {
|
|
33
35
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
34
36
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
35
37
|
} | null;
|
|
36
|
-
|
|
38
|
+
textToolHover: {
|
|
39
|
+
type: "text";
|
|
40
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
41
|
+
} | {
|
|
42
|
+
type: "container";
|
|
43
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
44
|
+
} | {
|
|
45
|
+
type: "arrow";
|
|
37
46
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
38
47
|
anchor: "start" | "end" | "label";
|
|
39
48
|
} | null;
|
|
@@ -63,6 +72,8 @@ export declare const actionAddToLibrary: {
|
|
|
63
72
|
exportWithDarkMode: boolean;
|
|
64
73
|
exportScale: number;
|
|
65
74
|
currentItemStrokeColor: string;
|
|
75
|
+
currentItemStickynoteStrokeColor: string;
|
|
76
|
+
currentItemStickynoteBackgroundColor: string;
|
|
66
77
|
currentItemBackgroundColor: string;
|
|
67
78
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
68
79
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -163,6 +174,14 @@ export declare const actionAddToLibrary: {
|
|
|
163
174
|
[groupId: string]: true;
|
|
164
175
|
};
|
|
165
176
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
177
|
+
colorTopPicks: {
|
|
178
|
+
elementStroke: readonly string[] | null;
|
|
179
|
+
elementBackground: readonly string[] | null;
|
|
180
|
+
bucketFill: readonly string[] | null;
|
|
181
|
+
stickyNoteStroke: readonly string[] | null;
|
|
182
|
+
stickyNoteBackground: readonly string[] | null;
|
|
183
|
+
};
|
|
184
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
166
185
|
};
|
|
167
186
|
} | {
|
|
168
187
|
captureUpdate: "EVENTUALLY";
|
|
@@ -187,11 +206,20 @@ export declare const actionAddToLibrary: {
|
|
|
187
206
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
188
207
|
bindingPreference: "enabled" | "disabled";
|
|
189
208
|
isMidpointSnappingEnabled: boolean;
|
|
209
|
+
showHints: boolean;
|
|
210
|
+
inputDevice: import("../types").InputDevice;
|
|
190
211
|
suggestedBinding: {
|
|
191
212
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
192
213
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
193
214
|
} | null;
|
|
194
|
-
|
|
215
|
+
textToolHover: {
|
|
216
|
+
type: "text";
|
|
217
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
218
|
+
} | {
|
|
219
|
+
type: "container";
|
|
220
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
221
|
+
} | {
|
|
222
|
+
type: "arrow";
|
|
195
223
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
196
224
|
anchor: "start" | "end" | "label";
|
|
197
225
|
} | null;
|
|
@@ -221,6 +249,8 @@ export declare const actionAddToLibrary: {
|
|
|
221
249
|
exportWithDarkMode: boolean;
|
|
222
250
|
exportScale: number;
|
|
223
251
|
currentItemStrokeColor: string;
|
|
252
|
+
currentItemStickynoteStrokeColor: string;
|
|
253
|
+
currentItemStickynoteBackgroundColor: string;
|
|
224
254
|
currentItemBackgroundColor: string;
|
|
225
255
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
226
256
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -326,6 +356,14 @@ export declare const actionAddToLibrary: {
|
|
|
326
356
|
[groupId: string]: true;
|
|
327
357
|
};
|
|
328
358
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
359
|
+
colorTopPicks: {
|
|
360
|
+
elementStroke: readonly string[] | null;
|
|
361
|
+
elementBackground: readonly string[] | null;
|
|
362
|
+
bucketFill: readonly string[] | null;
|
|
363
|
+
stickyNoteStroke: readonly string[] | null;
|
|
364
|
+
stickyNoteBackground: readonly string[] | null;
|
|
365
|
+
};
|
|
366
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
329
367
|
};
|
|
330
368
|
}> | {
|
|
331
369
|
captureUpdate: "EVENTUALLY";
|
|
@@ -350,11 +388,20 @@ export declare const actionAddToLibrary: {
|
|
|
350
388
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
351
389
|
bindingPreference: "enabled" | "disabled";
|
|
352
390
|
isMidpointSnappingEnabled: boolean;
|
|
391
|
+
showHints: boolean;
|
|
392
|
+
inputDevice: import("../types").InputDevice;
|
|
353
393
|
suggestedBinding: {
|
|
354
394
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
355
395
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
356
396
|
} | null;
|
|
357
|
-
|
|
397
|
+
textToolHover: {
|
|
398
|
+
type: "text";
|
|
399
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
400
|
+
} | {
|
|
401
|
+
type: "container";
|
|
402
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
403
|
+
} | {
|
|
404
|
+
type: "arrow";
|
|
358
405
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
359
406
|
anchor: "start" | "end" | "label";
|
|
360
407
|
} | null;
|
|
@@ -384,6 +431,8 @@ export declare const actionAddToLibrary: {
|
|
|
384
431
|
exportWithDarkMode: boolean;
|
|
385
432
|
exportScale: number;
|
|
386
433
|
currentItemStrokeColor: string;
|
|
434
|
+
currentItemStickynoteStrokeColor: string;
|
|
435
|
+
currentItemStickynoteBackgroundColor: string;
|
|
387
436
|
currentItemBackgroundColor: string;
|
|
388
437
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
389
438
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -489,6 +538,14 @@ export declare const actionAddToLibrary: {
|
|
|
489
538
|
[groupId: string]: true;
|
|
490
539
|
};
|
|
491
540
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
541
|
+
colorTopPicks: {
|
|
542
|
+
elementStroke: readonly string[] | null;
|
|
543
|
+
elementBackground: readonly string[] | null;
|
|
544
|
+
bucketFill: readonly string[] | null;
|
|
545
|
+
stickyNoteStroke: readonly string[] | null;
|
|
546
|
+
stickyNoteBackground: readonly string[] | null;
|
|
547
|
+
};
|
|
548
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
492
549
|
};
|
|
493
550
|
};
|
|
494
551
|
label: string;
|
|
@@ -11,7 +11,7 @@ export declare const actionAlignTop: {
|
|
|
11
11
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
12
12
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
|
-
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
14
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
15
15
|
captureUpdate: "IMMEDIATELY";
|
|
16
16
|
};
|
|
17
17
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -29,7 +29,7 @@ export declare const actionAlignBottom: {
|
|
|
29
29
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
30
30
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
31
31
|
appState: Readonly<AppState>;
|
|
32
|
-
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
32
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
33
33
|
captureUpdate: "IMMEDIATELY";
|
|
34
34
|
};
|
|
35
35
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -47,7 +47,7 @@ export declare const actionAlignLeft: {
|
|
|
47
47
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
48
48
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
49
49
|
appState: Readonly<AppState>;
|
|
50
|
-
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
50
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
51
51
|
captureUpdate: "IMMEDIATELY";
|
|
52
52
|
};
|
|
53
53
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -65,7 +65,7 @@ export declare const actionAlignRight: {
|
|
|
65
65
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
66
66
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
67
67
|
appState: Readonly<AppState>;
|
|
68
|
-
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
68
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
69
69
|
captureUpdate: "IMMEDIATELY";
|
|
70
70
|
};
|
|
71
71
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -83,7 +83,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
83
83
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
84
84
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
85
85
|
appState: Readonly<AppState>;
|
|
86
|
-
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
86
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
87
87
|
captureUpdate: "IMMEDIATELY";
|
|
88
88
|
};
|
|
89
89
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -100,7 +100,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
100
100
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
101
101
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
102
102
|
appState: Readonly<AppState>;
|
|
103
|
-
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
103
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
104
104
|
captureUpdate: "IMMEDIATELY";
|
|
105
105
|
};
|
|
106
106
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -49,11 +49,20 @@ export declare const actionBindText: {
|
|
|
49
49
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
50
50
|
bindingPreference: "enabled" | "disabled";
|
|
51
51
|
isMidpointSnappingEnabled: boolean;
|
|
52
|
+
showHints: boolean;
|
|
53
|
+
inputDevice: import("../types").InputDevice;
|
|
52
54
|
suggestedBinding: {
|
|
53
55
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
54
56
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
55
57
|
} | null;
|
|
56
|
-
|
|
58
|
+
textToolHover: {
|
|
59
|
+
type: "text";
|
|
60
|
+
elementId: ExcalidrawElement["id"];
|
|
61
|
+
} | {
|
|
62
|
+
type: "container";
|
|
63
|
+
elementId: ExcalidrawElement["id"];
|
|
64
|
+
} | {
|
|
65
|
+
type: "arrow";
|
|
57
66
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
58
67
|
anchor: "start" | "end" | "label";
|
|
59
68
|
} | null;
|
|
@@ -83,6 +92,8 @@ export declare const actionBindText: {
|
|
|
83
92
|
exportWithDarkMode: boolean;
|
|
84
93
|
exportScale: number;
|
|
85
94
|
currentItemStrokeColor: string;
|
|
95
|
+
currentItemStickynoteStrokeColor: string;
|
|
96
|
+
currentItemStickynoteBackgroundColor: string;
|
|
86
97
|
currentItemBackgroundColor: string;
|
|
87
98
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
88
99
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -185,6 +196,14 @@ export declare const actionBindText: {
|
|
|
185
196
|
[groupId: string]: true;
|
|
186
197
|
};
|
|
187
198
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
199
|
+
colorTopPicks: {
|
|
200
|
+
elementStroke: readonly string[] | null;
|
|
201
|
+
elementBackground: readonly string[] | null;
|
|
202
|
+
bucketFill: readonly string[] | null;
|
|
203
|
+
stickyNoteStroke: readonly string[] | null;
|
|
204
|
+
stickyNoteBackground: readonly string[] | null;
|
|
205
|
+
};
|
|
206
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
188
207
|
};
|
|
189
208
|
captureUpdate: "IMMEDIATELY";
|
|
190
209
|
};
|
|
@@ -224,11 +243,20 @@ export declare const actionWrapTextInContainer: {
|
|
|
224
243
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
225
244
|
bindingPreference: "enabled" | "disabled";
|
|
226
245
|
isMidpointSnappingEnabled: boolean;
|
|
246
|
+
showHints: boolean;
|
|
247
|
+
inputDevice: import("../types").InputDevice;
|
|
227
248
|
suggestedBinding: {
|
|
228
249
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
229
250
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
230
251
|
} | null;
|
|
231
|
-
|
|
252
|
+
textToolHover: {
|
|
253
|
+
type: "text";
|
|
254
|
+
elementId: ExcalidrawElement["id"];
|
|
255
|
+
} | {
|
|
256
|
+
type: "container";
|
|
257
|
+
elementId: ExcalidrawElement["id"];
|
|
258
|
+
} | {
|
|
259
|
+
type: "arrow";
|
|
232
260
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
233
261
|
anchor: "start" | "end" | "label";
|
|
234
262
|
} | null;
|
|
@@ -258,6 +286,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
258
286
|
exportWithDarkMode: boolean;
|
|
259
287
|
exportScale: number;
|
|
260
288
|
currentItemStrokeColor: string;
|
|
289
|
+
currentItemStickynoteStrokeColor: string;
|
|
290
|
+
currentItemStickynoteBackgroundColor: string;
|
|
261
291
|
currentItemBackgroundColor: string;
|
|
262
292
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
263
293
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -360,6 +390,14 @@ export declare const actionWrapTextInContainer: {
|
|
|
360
390
|
[groupId: string]: true;
|
|
361
391
|
};
|
|
362
392
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
393
|
+
colorTopPicks: {
|
|
394
|
+
elementStroke: readonly string[] | null;
|
|
395
|
+
elementBackground: readonly string[] | null;
|
|
396
|
+
bucketFill: readonly string[] | null;
|
|
397
|
+
stickyNoteStroke: readonly string[] | null;
|
|
398
|
+
stickyNoteBackground: readonly string[] | null;
|
|
399
|
+
};
|
|
400
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
363
401
|
};
|
|
364
402
|
captureUpdate: "IMMEDIATELY";
|
|
365
403
|
};
|
|
@@ -26,6 +26,14 @@ export declare const actionClearCanvas: {
|
|
|
26
26
|
open: boolean;
|
|
27
27
|
panels: number;
|
|
28
28
|
};
|
|
29
|
+
colorTopPicks: {
|
|
30
|
+
elementStroke: readonly string[] | null;
|
|
31
|
+
elementBackground: readonly string[] | null;
|
|
32
|
+
bucketFill: readonly string[] | null;
|
|
33
|
+
stickyNoteStroke: readonly string[] | null;
|
|
34
|
+
stickyNoteBackground: readonly string[] | null;
|
|
35
|
+
};
|
|
36
|
+
fontTopPicks: readonly number[] | null;
|
|
29
37
|
activeTool: {
|
|
30
38
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
31
39
|
locked: boolean;
|
|
@@ -82,7 +90,14 @@ export declare const actionClearCanvas: {
|
|
|
82
90
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
83
91
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
84
92
|
} | null;
|
|
85
|
-
|
|
93
|
+
textToolHover: {
|
|
94
|
+
type: "text";
|
|
95
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
96
|
+
} | {
|
|
97
|
+
type: "container";
|
|
98
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
99
|
+
} | {
|
|
100
|
+
type: "arrow";
|
|
86
101
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
87
102
|
anchor: "start" | "end" | "label";
|
|
88
103
|
} | null;
|
|
@@ -117,6 +132,8 @@ export declare const actionClearCanvas: {
|
|
|
117
132
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
118
133
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
119
134
|
bindingPreference: "enabled" | "disabled";
|
|
135
|
+
showHints: boolean;
|
|
136
|
+
inputDevice: import("../types").InputDevice;
|
|
120
137
|
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
121
138
|
preferredSelectionTool: {
|
|
122
139
|
type: "selection" | "lasso";
|
|
@@ -124,6 +141,8 @@ export declare const actionClearCanvas: {
|
|
|
124
141
|
};
|
|
125
142
|
exportWithDarkMode: boolean;
|
|
126
143
|
currentItemStrokeColor: string;
|
|
144
|
+
currentItemStickynoteStrokeColor: string;
|
|
145
|
+
currentItemStickynoteBackgroundColor: string;
|
|
127
146
|
currentItemBackgroundColor: string;
|
|
128
147
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
129
148
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -210,11 +229,20 @@ export declare const actionZoomIn: {
|
|
|
210
229
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
211
230
|
bindingPreference: "enabled" | "disabled";
|
|
212
231
|
isMidpointSnappingEnabled: boolean;
|
|
232
|
+
showHints: boolean;
|
|
233
|
+
inputDevice: import("../types").InputDevice;
|
|
213
234
|
suggestedBinding: {
|
|
214
235
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
215
236
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
216
237
|
} | null;
|
|
217
|
-
|
|
238
|
+
textToolHover: {
|
|
239
|
+
type: "text";
|
|
240
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
241
|
+
} | {
|
|
242
|
+
type: "container";
|
|
243
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
244
|
+
} | {
|
|
245
|
+
type: "arrow";
|
|
218
246
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
219
247
|
anchor: "start" | "end" | "label";
|
|
220
248
|
} | null;
|
|
@@ -244,6 +272,8 @@ export declare const actionZoomIn: {
|
|
|
244
272
|
exportWithDarkMode: boolean;
|
|
245
273
|
exportScale: number;
|
|
246
274
|
currentItemStrokeColor: string;
|
|
275
|
+
currentItemStickynoteStrokeColor: string;
|
|
276
|
+
currentItemStickynoteBackgroundColor: string;
|
|
247
277
|
currentItemBackgroundColor: string;
|
|
248
278
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
249
279
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -346,6 +376,14 @@ export declare const actionZoomIn: {
|
|
|
346
376
|
[groupId: string]: true;
|
|
347
377
|
};
|
|
348
378
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
379
|
+
colorTopPicks: {
|
|
380
|
+
elementStroke: readonly string[] | null;
|
|
381
|
+
elementBackground: readonly string[] | null;
|
|
382
|
+
bucketFill: readonly string[] | null;
|
|
383
|
+
stickyNoteStroke: readonly string[] | null;
|
|
384
|
+
stickyNoteBackground: readonly string[] | null;
|
|
385
|
+
};
|
|
386
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
349
387
|
};
|
|
350
388
|
captureUpdate: "EVENTUALLY";
|
|
351
389
|
};
|
|
@@ -389,11 +427,20 @@ export declare const actionZoomOut: {
|
|
|
389
427
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
390
428
|
bindingPreference: "enabled" | "disabled";
|
|
391
429
|
isMidpointSnappingEnabled: boolean;
|
|
430
|
+
showHints: boolean;
|
|
431
|
+
inputDevice: import("../types").InputDevice;
|
|
392
432
|
suggestedBinding: {
|
|
393
433
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
394
434
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
395
435
|
} | null;
|
|
396
|
-
|
|
436
|
+
textToolHover: {
|
|
437
|
+
type: "text";
|
|
438
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
439
|
+
} | {
|
|
440
|
+
type: "container";
|
|
441
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
442
|
+
} | {
|
|
443
|
+
type: "arrow";
|
|
397
444
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
398
445
|
anchor: "start" | "end" | "label";
|
|
399
446
|
} | null;
|
|
@@ -423,6 +470,8 @@ export declare const actionZoomOut: {
|
|
|
423
470
|
exportWithDarkMode: boolean;
|
|
424
471
|
exportScale: number;
|
|
425
472
|
currentItemStrokeColor: string;
|
|
473
|
+
currentItemStickynoteStrokeColor: string;
|
|
474
|
+
currentItemStickynoteBackgroundColor: string;
|
|
426
475
|
currentItemBackgroundColor: string;
|
|
427
476
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
428
477
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -525,6 +574,14 @@ export declare const actionZoomOut: {
|
|
|
525
574
|
[groupId: string]: true;
|
|
526
575
|
};
|
|
527
576
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
577
|
+
colorTopPicks: {
|
|
578
|
+
elementStroke: readonly string[] | null;
|
|
579
|
+
elementBackground: readonly string[] | null;
|
|
580
|
+
bucketFill: readonly string[] | null;
|
|
581
|
+
stickyNoteStroke: readonly string[] | null;
|
|
582
|
+
stickyNoteBackground: readonly string[] | null;
|
|
583
|
+
};
|
|
584
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
528
585
|
};
|
|
529
586
|
captureUpdate: "EVENTUALLY";
|
|
530
587
|
};
|
|
@@ -568,11 +625,20 @@ export declare const actionResetZoom: {
|
|
|
568
625
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
569
626
|
bindingPreference: "enabled" | "disabled";
|
|
570
627
|
isMidpointSnappingEnabled: boolean;
|
|
628
|
+
showHints: boolean;
|
|
629
|
+
inputDevice: import("../types").InputDevice;
|
|
571
630
|
suggestedBinding: {
|
|
572
631
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
573
632
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
574
633
|
} | null;
|
|
575
|
-
|
|
634
|
+
textToolHover: {
|
|
635
|
+
type: "text";
|
|
636
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
637
|
+
} | {
|
|
638
|
+
type: "container";
|
|
639
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
640
|
+
} | {
|
|
641
|
+
type: "arrow";
|
|
576
642
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
577
643
|
anchor: "start" | "end" | "label";
|
|
578
644
|
} | null;
|
|
@@ -602,6 +668,8 @@ export declare const actionResetZoom: {
|
|
|
602
668
|
exportWithDarkMode: boolean;
|
|
603
669
|
exportScale: number;
|
|
604
670
|
currentItemStrokeColor: string;
|
|
671
|
+
currentItemStickynoteStrokeColor: string;
|
|
672
|
+
currentItemStickynoteBackgroundColor: string;
|
|
605
673
|
currentItemBackgroundColor: string;
|
|
606
674
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
607
675
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -704,6 +772,14 @@ export declare const actionResetZoom: {
|
|
|
704
772
|
[groupId: string]: true;
|
|
705
773
|
};
|
|
706
774
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
775
|
+
colorTopPicks: {
|
|
776
|
+
elementStroke: readonly string[] | null;
|
|
777
|
+
elementBackground: readonly string[] | null;
|
|
778
|
+
bucketFill: readonly string[] | null;
|
|
779
|
+
stickyNoteStroke: readonly string[] | null;
|
|
780
|
+
stickyNoteBackground: readonly string[] | null;
|
|
781
|
+
};
|
|
782
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
707
783
|
};
|
|
708
784
|
captureUpdate: "EVENTUALLY";
|
|
709
785
|
};
|
|
@@ -747,11 +823,20 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
747
823
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
748
824
|
bindingPreference: "enabled" | "disabled";
|
|
749
825
|
isMidpointSnappingEnabled: boolean;
|
|
826
|
+
showHints: boolean;
|
|
827
|
+
inputDevice: import("../types").InputDevice;
|
|
750
828
|
suggestedBinding: {
|
|
751
829
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
752
830
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
753
831
|
} | null;
|
|
754
|
-
|
|
832
|
+
textToolHover: {
|
|
833
|
+
type: "text";
|
|
834
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
835
|
+
} | {
|
|
836
|
+
type: "container";
|
|
837
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
838
|
+
} | {
|
|
839
|
+
type: "arrow";
|
|
755
840
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
756
841
|
anchor: "start" | "end" | "label";
|
|
757
842
|
} | null;
|
|
@@ -781,6 +866,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
781
866
|
exportWithDarkMode: boolean;
|
|
782
867
|
exportScale: number;
|
|
783
868
|
currentItemStrokeColor: string;
|
|
869
|
+
currentItemStickynoteStrokeColor: string;
|
|
870
|
+
currentItemStickynoteBackgroundColor: string;
|
|
784
871
|
currentItemBackgroundColor: string;
|
|
785
872
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
786
873
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -883,6 +970,14 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
883
970
|
[groupId: string]: true;
|
|
884
971
|
};
|
|
885
972
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
973
|
+
colorTopPicks: {
|
|
974
|
+
elementStroke: readonly string[] | null;
|
|
975
|
+
elementBackground: readonly string[] | null;
|
|
976
|
+
bucketFill: readonly string[] | null;
|
|
977
|
+
stickyNoteStroke: readonly string[] | null;
|
|
978
|
+
stickyNoteBackground: readonly string[] | null;
|
|
979
|
+
};
|
|
980
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
886
981
|
};
|
|
887
982
|
captureUpdate: "EVENTUALLY";
|
|
888
983
|
};
|
|
@@ -925,11 +1020,20 @@ export declare const actionZoomToFitSelection: {
|
|
|
925
1020
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
926
1021
|
bindingPreference: "enabled" | "disabled";
|
|
927
1022
|
isMidpointSnappingEnabled: boolean;
|
|
1023
|
+
showHints: boolean;
|
|
1024
|
+
inputDevice: import("../types").InputDevice;
|
|
928
1025
|
suggestedBinding: {
|
|
929
1026
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
930
1027
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
931
1028
|
} | null;
|
|
932
|
-
|
|
1029
|
+
textToolHover: {
|
|
1030
|
+
type: "text";
|
|
1031
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1032
|
+
} | {
|
|
1033
|
+
type: "container";
|
|
1034
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1035
|
+
} | {
|
|
1036
|
+
type: "arrow";
|
|
933
1037
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
934
1038
|
anchor: "start" | "end" | "label";
|
|
935
1039
|
} | null;
|
|
@@ -959,6 +1063,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
959
1063
|
exportWithDarkMode: boolean;
|
|
960
1064
|
exportScale: number;
|
|
961
1065
|
currentItemStrokeColor: string;
|
|
1066
|
+
currentItemStickynoteStrokeColor: string;
|
|
1067
|
+
currentItemStickynoteBackgroundColor: string;
|
|
962
1068
|
currentItemBackgroundColor: string;
|
|
963
1069
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
964
1070
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -1061,6 +1167,14 @@ export declare const actionZoomToFitSelection: {
|
|
|
1061
1167
|
[groupId: string]: true;
|
|
1062
1168
|
};
|
|
1063
1169
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1170
|
+
colorTopPicks: {
|
|
1171
|
+
elementStroke: readonly string[] | null;
|
|
1172
|
+
elementBackground: readonly string[] | null;
|
|
1173
|
+
bucketFill: readonly string[] | null;
|
|
1174
|
+
stickyNoteStroke: readonly string[] | null;
|
|
1175
|
+
stickyNoteBackground: readonly string[] | null;
|
|
1176
|
+
};
|
|
1177
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
1064
1178
|
};
|
|
1065
1179
|
captureUpdate: "EVENTUALLY";
|
|
1066
1180
|
};
|
|
@@ -1103,11 +1217,20 @@ export declare const actionZoomToFit: {
|
|
|
1103
1217
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1104
1218
|
bindingPreference: "enabled" | "disabled";
|
|
1105
1219
|
isMidpointSnappingEnabled: boolean;
|
|
1220
|
+
showHints: boolean;
|
|
1221
|
+
inputDevice: import("../types").InputDevice;
|
|
1106
1222
|
suggestedBinding: {
|
|
1107
1223
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1108
1224
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1109
1225
|
} | null;
|
|
1110
|
-
|
|
1226
|
+
textToolHover: {
|
|
1227
|
+
type: "text";
|
|
1228
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1229
|
+
} | {
|
|
1230
|
+
type: "container";
|
|
1231
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1232
|
+
} | {
|
|
1233
|
+
type: "arrow";
|
|
1111
1234
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
1112
1235
|
anchor: "start" | "end" | "label";
|
|
1113
1236
|
} | null;
|
|
@@ -1137,6 +1260,8 @@ export declare const actionZoomToFit: {
|
|
|
1137
1260
|
exportWithDarkMode: boolean;
|
|
1138
1261
|
exportScale: number;
|
|
1139
1262
|
currentItemStrokeColor: string;
|
|
1263
|
+
currentItemStickynoteStrokeColor: string;
|
|
1264
|
+
currentItemStickynoteBackgroundColor: string;
|
|
1140
1265
|
currentItemBackgroundColor: string;
|
|
1141
1266
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
1142
1267
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -1239,6 +1364,14 @@ export declare const actionZoomToFit: {
|
|
|
1239
1364
|
[groupId: string]: true;
|
|
1240
1365
|
};
|
|
1241
1366
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1367
|
+
colorTopPicks: {
|
|
1368
|
+
elementStroke: readonly string[] | null;
|
|
1369
|
+
elementBackground: readonly string[] | null;
|
|
1370
|
+
bucketFill: readonly string[] | null;
|
|
1371
|
+
stickyNoteStroke: readonly string[] | null;
|
|
1372
|
+
stickyNoteBackground: readonly string[] | null;
|
|
1373
|
+
};
|
|
1374
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
1242
1375
|
};
|
|
1243
1376
|
captureUpdate: "EVENTUALLY";
|
|
1244
1377
|
};
|