@excalidraw/math 0.18.0-2b1c2a9 → 0.18.0-2c3dcc0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +8 -2
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +1 -1
- package/dist/types/common/src/colors.d.ts +3 -0
- package/dist/types/common/src/constants.d.ts +56 -0
- package/dist/types/common/src/keys.d.ts +4 -0
- package/dist/types/common/src/random.d.ts +7 -0
- package/dist/types/common/src/utils.d.ts +12 -1
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +4 -1
- package/dist/types/element/src/binding.d.ts +75 -7
- package/dist/types/element/src/bounds.d.ts +10 -2
- package/dist/types/element/src/collision.d.ts +21 -5
- package/dist/types/element/src/comparisons.d.ts +5 -3
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +30 -2
- package/dist/types/element/src/distribute.d.ts +4 -1
- package/dist/types/element/src/dragElements.d.ts +8 -3
- package/dist/types/element/src/duplicate.d.ts +60 -0
- package/dist/types/element/src/elbowArrow.d.ts +5 -0
- package/dist/types/element/src/embeddable.d.ts +2 -1
- package/dist/types/element/src/flowchart.d.ts +6 -8
- package/dist/types/element/src/frame.d.ts +21 -3
- package/dist/types/element/src/groups.d.ts +1 -6
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +3 -0
- package/dist/types/element/src/linearElementEditor.d.ts +4 -1
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +40 -3
- package/dist/types/element/src/renderElement.d.ts +31 -4
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +15 -5
- package/dist/types/element/src/selection.d.ts +4 -10
- package/dist/types/element/src/shape.d.ts +17 -1
- package/dist/types/element/src/sizeHelpers.d.ts +6 -0
- package/dist/types/element/src/stickyNote.d.ts +191 -0
- package/dist/types/element/src/textElement.d.ts +10 -2
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +3 -2
- package/dist/types/element/src/transform.d.ts +30 -7
- package/dist/types/element/src/typeChecks.d.ts +3 -2
- package/dist/types/element/src/types.d.ts +28 -6
- package/dist/types/element/src/utils.d.ts +8 -1
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +48 -3
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +62 -208
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +121 -16
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +32 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -546
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +32 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +39 -9
- package/dist/types/excalidraw/actions/actionFrame.d.ts +92 -479
- package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +66 -2
- package/dist/types/excalidraw/actions/actionLink.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +42 -8
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +17 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -2
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- package/dist/types/excalidraw/actions/index.d.ts +3 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +26 -8
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
- package/dist/types/excalidraw/charts/index.d.ts +2 -1
- package/dist/types/excalidraw/components/Actions.d.ts +10 -2
- 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 +129 -218
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
- package/dist/types/excalidraw/components/App.text.d.ts +194 -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 +64 -4
- package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
- package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -1
- 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/Minimap/Minimap.d.ts +15 -0
- package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
- package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
- package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
- package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
- package/dist/types/excalidraw/components/Tools.d.ts +7 -2
- package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
- 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/InteractiveCanvas.d.ts +0 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +13 -2
- package/dist/types/excalidraw/components/icons.d.ts +2 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +3 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +2 -2
- package/dist/types/excalidraw/data/blob.d.ts +46 -16
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +23 -8
- package/dist/types/excalidraw/fonts/Fonts.d.ts +9 -6
- package/dist/types/excalidraw/history.d.ts +10 -4
- package/dist/types/excalidraw/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +11 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +18 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +64 -3
- package/dist/types/excalidraw/scene/export.d.ts +343 -20
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +26 -2
- package/dist/types/excalidraw/types.d.ts +191 -22
- package/dist/types/excalidraw/viewport.d.ts +29 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
- package/dist/types/utils/src/index.d.ts +3 -1
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +2 -2
- package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +0 -31
- package/dist/types/utils/src/export.d.ts +0 -35
|
@@ -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,11 +36,20 @@ export declare const actionGroup: {
|
|
|
36
36
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
37
37
|
bindingPreference: "enabled" | "disabled";
|
|
38
38
|
isMidpointSnappingEnabled: boolean;
|
|
39
|
+
showHints: boolean;
|
|
40
|
+
inputDevice: import("../types").InputDevice;
|
|
39
41
|
suggestedBinding: {
|
|
40
42
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
41
43
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
42
44
|
} | null;
|
|
43
|
-
|
|
45
|
+
textToolHover: {
|
|
46
|
+
type: "text";
|
|
47
|
+
elementId: ExcalidrawElement["id"];
|
|
48
|
+
} | {
|
|
49
|
+
type: "container";
|
|
50
|
+
elementId: ExcalidrawElement["id"];
|
|
51
|
+
} | {
|
|
52
|
+
type: "arrow";
|
|
44
53
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
45
54
|
anchor: "start" | "end" | "label";
|
|
46
55
|
} | null;
|
|
@@ -70,6 +79,8 @@ export declare const actionGroup: {
|
|
|
70
79
|
exportWithDarkMode: boolean;
|
|
71
80
|
exportScale: number;
|
|
72
81
|
currentItemStrokeColor: string;
|
|
82
|
+
currentItemStickynoteStrokeColor: string;
|
|
83
|
+
currentItemStickynoteBackgroundColor: string;
|
|
73
84
|
currentItemBackgroundColor: string;
|
|
74
85
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
75
86
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -134,6 +145,7 @@ export declare const actionGroup: {
|
|
|
134
145
|
duration?: number;
|
|
135
146
|
} | null;
|
|
136
147
|
zenModeEnabled: boolean;
|
|
148
|
+
minimapEnabled: boolean;
|
|
137
149
|
theme: import("@excalidraw/element/types").Theme;
|
|
138
150
|
gridSize: number;
|
|
139
151
|
gridStep: number;
|
|
@@ -172,7 +184,10 @@ export declare const actionGroup: {
|
|
|
172
184
|
elementStroke: readonly string[] | null;
|
|
173
185
|
elementBackground: readonly string[] | null;
|
|
174
186
|
bucketFill: readonly string[] | null;
|
|
187
|
+
stickyNoteStroke: readonly string[] | null;
|
|
188
|
+
stickyNoteBackground: readonly string[] | null;
|
|
175
189
|
};
|
|
190
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
176
191
|
};
|
|
177
192
|
elements: OrderedExcalidrawElement[];
|
|
178
193
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -196,8 +211,8 @@ export declare const actionUngroup: {
|
|
|
196
211
|
captureUpdate: "EVENTUALLY";
|
|
197
212
|
} | {
|
|
198
213
|
appState: {
|
|
199
|
-
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
200
214
|
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
215
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
201
216
|
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
202
217
|
contextMenu: {
|
|
203
218
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -219,11 +234,20 @@ export declare const actionUngroup: {
|
|
|
219
234
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
220
235
|
bindingPreference: "enabled" | "disabled";
|
|
221
236
|
isMidpointSnappingEnabled: boolean;
|
|
237
|
+
showHints: boolean;
|
|
238
|
+
inputDevice: import("../types").InputDevice;
|
|
222
239
|
suggestedBinding: {
|
|
223
240
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
224
241
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
225
242
|
} | null;
|
|
226
|
-
|
|
243
|
+
textToolHover: {
|
|
244
|
+
type: "text";
|
|
245
|
+
elementId: ExcalidrawElement["id"];
|
|
246
|
+
} | {
|
|
247
|
+
type: "container";
|
|
248
|
+
elementId: ExcalidrawElement["id"];
|
|
249
|
+
} | {
|
|
250
|
+
type: "arrow";
|
|
227
251
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
228
252
|
anchor: "start" | "end" | "label";
|
|
229
253
|
} | null;
|
|
@@ -253,6 +277,8 @@ export declare const actionUngroup: {
|
|
|
253
277
|
exportWithDarkMode: boolean;
|
|
254
278
|
exportScale: number;
|
|
255
279
|
currentItemStrokeColor: string;
|
|
280
|
+
currentItemStickynoteStrokeColor: string;
|
|
281
|
+
currentItemStickynoteBackgroundColor: string;
|
|
256
282
|
currentItemBackgroundColor: string;
|
|
257
283
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
258
284
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -317,6 +343,7 @@ export declare const actionUngroup: {
|
|
|
317
343
|
duration?: number;
|
|
318
344
|
} | null;
|
|
319
345
|
zenModeEnabled: boolean;
|
|
346
|
+
minimapEnabled: boolean;
|
|
320
347
|
theme: import("@excalidraw/element/types").Theme;
|
|
321
348
|
gridSize: number;
|
|
322
349
|
gridStep: number;
|
|
@@ -355,7 +382,10 @@ export declare const actionUngroup: {
|
|
|
355
382
|
elementStroke: readonly string[] | null;
|
|
356
383
|
elementBackground: readonly string[] | null;
|
|
357
384
|
bucketFill: readonly string[] | null;
|
|
385
|
+
stickyNoteStroke: readonly string[] | null;
|
|
386
|
+
stickyNoteBackground: readonly string[] | null;
|
|
358
387
|
};
|
|
388
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
359
389
|
};
|
|
360
390
|
elements: OrderedExcalidrawElement[];
|
|
361
391
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -64,11 +64,20 @@ export declare const actionToggleLinearEditor: {
|
|
|
64
64
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
65
65
|
bindingPreference: "enabled" | "disabled";
|
|
66
66
|
isMidpointSnappingEnabled: boolean;
|
|
67
|
+
showHints: boolean;
|
|
68
|
+
inputDevice: import("../types").InputDevice;
|
|
67
69
|
suggestedBinding: {
|
|
68
70
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
69
71
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
70
72
|
} | null;
|
|
71
|
-
|
|
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";
|
|
72
81
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
73
82
|
anchor: "start" | "end" | "label";
|
|
74
83
|
} | null;
|
|
@@ -98,6 +107,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
98
107
|
exportWithDarkMode: boolean;
|
|
99
108
|
exportScale: number;
|
|
100
109
|
currentItemStrokeColor: string;
|
|
110
|
+
currentItemStickynoteStrokeColor: string;
|
|
111
|
+
currentItemStickynoteBackgroundColor: string;
|
|
101
112
|
currentItemBackgroundColor: string;
|
|
102
113
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
103
114
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -165,6 +176,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
165
176
|
duration?: number;
|
|
166
177
|
} | null;
|
|
167
178
|
zenModeEnabled: boolean;
|
|
179
|
+
minimapEnabled: boolean;
|
|
168
180
|
theme: import("@excalidraw/element/types").Theme;
|
|
169
181
|
gridSize: number;
|
|
170
182
|
gridStep: number;
|
|
@@ -206,7 +218,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
206
218
|
elementStroke: readonly string[] | null;
|
|
207
219
|
elementBackground: readonly string[] | null;
|
|
208
220
|
bucketFill: readonly string[] | null;
|
|
221
|
+
stickyNoteStroke: readonly string[] | null;
|
|
222
|
+
stickyNoteBackground: readonly string[] | null;
|
|
209
223
|
};
|
|
224
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
210
225
|
};
|
|
211
226
|
captureUpdate: "IMMEDIATELY";
|
|
212
227
|
};
|
|
@@ -252,6 +267,7 @@ export declare const actionTogglePolygon: {
|
|
|
252
267
|
frameId: string | null;
|
|
253
268
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
254
269
|
updated: number;
|
|
270
|
+
created: number | null;
|
|
255
271
|
link: string | null;
|
|
256
272
|
locked: boolean;
|
|
257
273
|
customData?: Record<string, any>;
|
|
@@ -291,6 +307,7 @@ export declare const actionTogglePolygon: {
|
|
|
291
307
|
frameId: string | null;
|
|
292
308
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
293
309
|
updated: number;
|
|
310
|
+
created: number | null;
|
|
294
311
|
link: string | null;
|
|
295
312
|
locked: boolean;
|
|
296
313
|
customData?: Record<string, any>;
|
|
@@ -325,6 +342,7 @@ export declare const actionTogglePolygon: {
|
|
|
325
342
|
frameId: string | null;
|
|
326
343
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
327
344
|
updated: number;
|
|
345
|
+
created: number | null;
|
|
328
346
|
link: string | null;
|
|
329
347
|
locked: boolean;
|
|
330
348
|
customData?: Record<string, any>;
|
|
@@ -359,6 +377,43 @@ export declare const actionTogglePolygon: {
|
|
|
359
377
|
frameId: string | null;
|
|
360
378
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
361
379
|
updated: number;
|
|
380
|
+
created: number | null;
|
|
381
|
+
link: string | null;
|
|
382
|
+
locked: boolean;
|
|
383
|
+
customData?: Record<string, any>;
|
|
384
|
+
}> & Readonly<{
|
|
385
|
+
type: "stickynote";
|
|
386
|
+
baseHeight: number;
|
|
387
|
+
}> & {
|
|
388
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
389
|
+
}) | (Readonly<{
|
|
390
|
+
id: string;
|
|
391
|
+
x: number;
|
|
392
|
+
y: number;
|
|
393
|
+
strokeColor: string;
|
|
394
|
+
backgroundColor: string;
|
|
395
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
396
|
+
strokeWidth: number;
|
|
397
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
398
|
+
roundness: null | {
|
|
399
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
400
|
+
value?: number;
|
|
401
|
+
};
|
|
402
|
+
roughness: number;
|
|
403
|
+
opacity: number;
|
|
404
|
+
width: number;
|
|
405
|
+
height: number;
|
|
406
|
+
angle: import("@excalidraw/math").Radians;
|
|
407
|
+
seed: number;
|
|
408
|
+
version: number;
|
|
409
|
+
versionNonce: number;
|
|
410
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
411
|
+
isDeleted: boolean;
|
|
412
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
413
|
+
frameId: string | null;
|
|
414
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
415
|
+
updated: number;
|
|
416
|
+
created: number | null;
|
|
362
417
|
link: string | null;
|
|
363
418
|
locked: boolean;
|
|
364
419
|
customData?: Record<string, any>;
|
|
@@ -393,6 +448,7 @@ export declare const actionTogglePolygon: {
|
|
|
393
448
|
frameId: string | null;
|
|
394
449
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
395
450
|
updated: number;
|
|
451
|
+
created: number | null;
|
|
396
452
|
link: string | null;
|
|
397
453
|
locked: boolean;
|
|
398
454
|
customData?: Record<string, any>;
|
|
@@ -427,6 +483,7 @@ export declare const actionTogglePolygon: {
|
|
|
427
483
|
frameId: string | null;
|
|
428
484
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
429
485
|
updated: number;
|
|
486
|
+
created: number | null;
|
|
430
487
|
link: string | null;
|
|
431
488
|
locked: boolean;
|
|
432
489
|
customData?: Record<string, any>;
|
|
@@ -461,6 +518,7 @@ export declare const actionTogglePolygon: {
|
|
|
461
518
|
frameId: string | null;
|
|
462
519
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
463
520
|
updated: number;
|
|
521
|
+
created: number | null;
|
|
464
522
|
link: string | null;
|
|
465
523
|
locked: boolean;
|
|
466
524
|
customData?: Record<string, any>;
|
|
@@ -498,6 +556,7 @@ export declare const actionTogglePolygon: {
|
|
|
498
556
|
frameId: string | null;
|
|
499
557
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
500
558
|
updated: number;
|
|
559
|
+
created: number | null;
|
|
501
560
|
link: string | null;
|
|
502
561
|
locked: boolean;
|
|
503
562
|
customData?: Record<string, any>;
|
|
@@ -536,6 +595,7 @@ export declare const actionTogglePolygon: {
|
|
|
536
595
|
frameId: string | null;
|
|
537
596
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
538
597
|
updated: number;
|
|
598
|
+
created: number | null;
|
|
539
599
|
link: string | null;
|
|
540
600
|
locked: boolean;
|
|
541
601
|
customData?: Record<string, any>;
|
|
@@ -571,6 +631,7 @@ export declare const actionTogglePolygon: {
|
|
|
571
631
|
frameId: string | null;
|
|
572
632
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
573
633
|
updated: number;
|
|
634
|
+
created: number | null;
|
|
574
635
|
link: string | null;
|
|
575
636
|
locked: boolean;
|
|
576
637
|
customData?: Record<string, any>;
|
|
@@ -606,6 +667,7 @@ export declare const actionTogglePolygon: {
|
|
|
606
667
|
frameId: string | null;
|
|
607
668
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
608
669
|
updated: number;
|
|
670
|
+
created: number | null;
|
|
609
671
|
link: string | null;
|
|
610
672
|
locked: boolean;
|
|
611
673
|
customData?: Record<string, any>;
|
|
@@ -613,10 +675,11 @@ export declare const actionTogglePolygon: {
|
|
|
613
675
|
type: "text";
|
|
614
676
|
fontSize: number;
|
|
615
677
|
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
678
|
+
baseFontSize: number | null;
|
|
616
679
|
text: string;
|
|
617
680
|
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
618
681
|
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
619
|
-
containerId: import("@excalidraw/element/types").
|
|
682
|
+
containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
|
|
620
683
|
originalText: string;
|
|
621
684
|
autoResize: boolean;
|
|
622
685
|
lineHeight: number & {
|
|
@@ -652,6 +715,7 @@ export declare const actionTogglePolygon: {
|
|
|
652
715
|
frameId: string | null;
|
|
653
716
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
654
717
|
updated: number;
|
|
718
|
+
created: number | null;
|
|
655
719
|
link: string | null;
|
|
656
720
|
locked: boolean;
|
|
657
721
|
customData?: Record<string, any>;
|
|
@@ -27,11 +27,20 @@ export declare const actionLink: {
|
|
|
27
27
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
28
28
|
bindingPreference: "enabled" | "disabled";
|
|
29
29
|
isMidpointSnappingEnabled: boolean;
|
|
30
|
+
showHints: boolean;
|
|
31
|
+
inputDevice: import("../types").InputDevice;
|
|
30
32
|
suggestedBinding: {
|
|
31
33
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
32
34
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
33
35
|
} | null;
|
|
34
|
-
|
|
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";
|
|
35
44
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
36
45
|
anchor: "start" | "end" | "label";
|
|
37
46
|
} | null;
|
|
@@ -61,6 +70,8 @@ export declare const actionLink: {
|
|
|
61
70
|
exportWithDarkMode: boolean;
|
|
62
71
|
exportScale: number;
|
|
63
72
|
currentItemStrokeColor: string;
|
|
73
|
+
currentItemStickynoteStrokeColor: string;
|
|
74
|
+
currentItemStickynoteBackgroundColor: string;
|
|
64
75
|
currentItemBackgroundColor: string;
|
|
65
76
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
66
77
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -127,6 +138,7 @@ export declare const actionLink: {
|
|
|
127
138
|
duration?: number;
|
|
128
139
|
} | null;
|
|
129
140
|
zenModeEnabled: boolean;
|
|
141
|
+
minimapEnabled: boolean;
|
|
130
142
|
theme: import("@excalidraw/element/types").Theme;
|
|
131
143
|
gridSize: number;
|
|
132
144
|
gridStep: number;
|
|
@@ -168,7 +180,10 @@ export declare const actionLink: {
|
|
|
168
180
|
elementStroke: readonly string[] | null;
|
|
169
181
|
elementBackground: readonly string[] | null;
|
|
170
182
|
bucketFill: readonly string[] | null;
|
|
183
|
+
stickyNoteStroke: readonly string[] | null;
|
|
184
|
+
stickyNoteBackground: readonly string[] | null;
|
|
171
185
|
};
|
|
186
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
172
187
|
};
|
|
173
188
|
captureUpdate: "IMMEDIATELY";
|
|
174
189
|
};
|
|
@@ -34,11 +34,20 @@ export declare const actionShortcuts: {
|
|
|
34
34
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
35
35
|
bindingPreference: "enabled" | "disabled";
|
|
36
36
|
isMidpointSnappingEnabled: boolean;
|
|
37
|
+
showHints: boolean;
|
|
38
|
+
inputDevice: import("../types").InputDevice;
|
|
37
39
|
suggestedBinding: {
|
|
38
40
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
39
41
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
40
42
|
} | null;
|
|
41
|
-
|
|
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";
|
|
42
51
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
43
52
|
anchor: "start" | "end" | "label";
|
|
44
53
|
} | null;
|
|
@@ -68,6 +77,8 @@ export declare const actionShortcuts: {
|
|
|
68
77
|
exportWithDarkMode: boolean;
|
|
69
78
|
exportScale: number;
|
|
70
79
|
currentItemStrokeColor: string;
|
|
80
|
+
currentItemStickynoteStrokeColor: string;
|
|
81
|
+
currentItemStickynoteBackgroundColor: string;
|
|
71
82
|
currentItemBackgroundColor: string;
|
|
72
83
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
73
84
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -116,6 +127,7 @@ export declare const actionShortcuts: {
|
|
|
116
127
|
duration?: number;
|
|
117
128
|
} | null;
|
|
118
129
|
zenModeEnabled: boolean;
|
|
130
|
+
minimapEnabled: boolean;
|
|
119
131
|
theme: import("@excalidraw/element/types").Theme;
|
|
120
132
|
gridSize: number;
|
|
121
133
|
gridStep: number;
|
|
@@ -158,7 +170,10 @@ export declare const actionShortcuts: {
|
|
|
158
170
|
elementStroke: readonly string[] | null;
|
|
159
171
|
elementBackground: readonly string[] | null;
|
|
160
172
|
bucketFill: readonly string[] | null;
|
|
173
|
+
stickyNoteStroke: readonly string[] | null;
|
|
174
|
+
stickyNoteBackground: readonly string[] | null;
|
|
161
175
|
};
|
|
176
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
162
177
|
};
|
|
163
178
|
captureUpdate: "EVENTUALLY";
|
|
164
179
|
};
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { type StrokeWidthKey } from "@excalidraw/common";
|
|
2
2
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, NonDeleted, NonDeletedExcalidrawElement, TextAlign } from "@excalidraw/element/types";
|
|
3
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, NonDeleted, NonDeletedExcalidrawElement, TextAlign } from "@excalidraw/element/types";
|
|
4
4
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
5
|
-
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: NonDeletedExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) =>
|
|
5
|
+
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: NonDeletedExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => (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 | ExcalidrawTextElement | ExcalidrawFreeDrawElement)[];
|
|
6
6
|
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
|
|
7
7
|
/**
|
|
8
8
|
* input value (usually the element attribute value,
|
|
9
9
|
* but depends on what the action's PanelComponent input expects)
|
|
10
10
|
*/
|
|
11
11
|
getValue: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
12
|
-
export declare const actionChangeStrokeColor: import("./types").Action<
|
|
12
|
+
export declare const actionChangeStrokeColor: import("./types").Action<Partial<AppState> & {
|
|
13
|
+
color?: string;
|
|
14
|
+
}> & {
|
|
13
15
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
14
16
|
};
|
|
15
|
-
export declare const actionChangeBackgroundColor: import("./types").Action<
|
|
17
|
+
export declare const actionChangeBackgroundColor: import("./types").Action<Partial<AppState> & {
|
|
18
|
+
color?: string;
|
|
19
|
+
}> & {
|
|
16
20
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
17
21
|
};
|
|
18
22
|
export declare const actionChangeBucketFillBackgroundColor: import("./types").Action<Pick<AppState, "currentItemBackgroundColor">> & {
|
|
@@ -45,7 +49,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
45
49
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
46
50
|
trackEvent: false;
|
|
47
51
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
|
|
48
|
-
elements:
|
|
52
|
+
elements: (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 | ExcalidrawTextElement | ExcalidrawFreeDrawElement)[];
|
|
49
53
|
appState: {
|
|
50
54
|
currentItemFontSize: number;
|
|
51
55
|
contextMenu: {
|
|
@@ -68,11 +72,20 @@ export declare const actionDecreaseFontSize: {
|
|
|
68
72
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
69
73
|
bindingPreference: "enabled" | "disabled";
|
|
70
74
|
isMidpointSnappingEnabled: boolean;
|
|
75
|
+
showHints: boolean;
|
|
76
|
+
inputDevice: import("../types").InputDevice;
|
|
71
77
|
suggestedBinding: {
|
|
72
78
|
element: NonDeleted<ExcalidrawBindableElement>;
|
|
73
79
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
74
80
|
} | null;
|
|
75
|
-
|
|
81
|
+
textToolHover: {
|
|
82
|
+
type: "text";
|
|
83
|
+
elementId: ExcalidrawElement["id"];
|
|
84
|
+
} | {
|
|
85
|
+
type: "container";
|
|
86
|
+
elementId: ExcalidrawElement["id"];
|
|
87
|
+
} | {
|
|
88
|
+
type: "arrow";
|
|
76
89
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
77
90
|
anchor: "start" | "end" | "label";
|
|
78
91
|
} | null;
|
|
@@ -102,6 +115,8 @@ export declare const actionDecreaseFontSize: {
|
|
|
102
115
|
exportWithDarkMode: boolean;
|
|
103
116
|
exportScale: number;
|
|
104
117
|
currentItemStrokeColor: string;
|
|
118
|
+
currentItemStickynoteStrokeColor: string;
|
|
119
|
+
currentItemStickynoteBackgroundColor: string;
|
|
105
120
|
currentItemBackgroundColor: string;
|
|
106
121
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
107
122
|
currentItemStrokeWidthKey: StrokeWidthKey;
|
|
@@ -168,6 +183,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
168
183
|
duration?: number;
|
|
169
184
|
} | null;
|
|
170
185
|
zenModeEnabled: boolean;
|
|
186
|
+
minimapEnabled: boolean;
|
|
171
187
|
theme: import("@excalidraw/element/types").Theme;
|
|
172
188
|
gridSize: number;
|
|
173
189
|
gridStep: number;
|
|
@@ -210,7 +226,10 @@ export declare const actionDecreaseFontSize: {
|
|
|
210
226
|
elementStroke: readonly string[] | null;
|
|
211
227
|
elementBackground: readonly string[] | null;
|
|
212
228
|
bucketFill: readonly string[] | null;
|
|
229
|
+
stickyNoteStroke: readonly string[] | null;
|
|
230
|
+
stickyNoteBackground: readonly string[] | null;
|
|
213
231
|
};
|
|
232
|
+
fontTopPicks: readonly FontFamilyValues[] | null;
|
|
214
233
|
};
|
|
215
234
|
captureUpdate: "IMMEDIATELY";
|
|
216
235
|
};
|
|
@@ -224,7 +243,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
224
243
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
225
244
|
trackEvent: false;
|
|
226
245
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
|
|
227
|
-
elements:
|
|
246
|
+
elements: (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 | ExcalidrawTextElement | ExcalidrawFreeDrawElement)[];
|
|
228
247
|
appState: {
|
|
229
248
|
currentItemFontSize: number;
|
|
230
249
|
contextMenu: {
|
|
@@ -247,11 +266,20 @@ export declare const actionIncreaseFontSize: {
|
|
|
247
266
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
248
267
|
bindingPreference: "enabled" | "disabled";
|
|
249
268
|
isMidpointSnappingEnabled: boolean;
|
|
269
|
+
showHints: boolean;
|
|
270
|
+
inputDevice: import("../types").InputDevice;
|
|
250
271
|
suggestedBinding: {
|
|
251
272
|
element: NonDeleted<ExcalidrawBindableElement>;
|
|
252
273
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
253
274
|
} | null;
|
|
254
|
-
|
|
275
|
+
textToolHover: {
|
|
276
|
+
type: "text";
|
|
277
|
+
elementId: ExcalidrawElement["id"];
|
|
278
|
+
} | {
|
|
279
|
+
type: "container";
|
|
280
|
+
elementId: ExcalidrawElement["id"];
|
|
281
|
+
} | {
|
|
282
|
+
type: "arrow";
|
|
255
283
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
256
284
|
anchor: "start" | "end" | "label";
|
|
257
285
|
} | null;
|
|
@@ -281,6 +309,8 @@ export declare const actionIncreaseFontSize: {
|
|
|
281
309
|
exportWithDarkMode: boolean;
|
|
282
310
|
exportScale: number;
|
|
283
311
|
currentItemStrokeColor: string;
|
|
312
|
+
currentItemStickynoteStrokeColor: string;
|
|
313
|
+
currentItemStickynoteBackgroundColor: string;
|
|
284
314
|
currentItemBackgroundColor: string;
|
|
285
315
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
286
316
|
currentItemStrokeWidthKey: StrokeWidthKey;
|
|
@@ -347,6 +377,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
347
377
|
duration?: number;
|
|
348
378
|
} | null;
|
|
349
379
|
zenModeEnabled: boolean;
|
|
380
|
+
minimapEnabled: boolean;
|
|
350
381
|
theme: import("@excalidraw/element/types").Theme;
|
|
351
382
|
gridSize: number;
|
|
352
383
|
gridStep: number;
|
|
@@ -389,7 +420,10 @@ export declare const actionIncreaseFontSize: {
|
|
|
389
420
|
elementStroke: readonly string[] | null;
|
|
390
421
|
elementBackground: readonly string[] | null;
|
|
391
422
|
bucketFill: readonly string[] | null;
|
|
423
|
+
stickyNoteStroke: readonly string[] | null;
|
|
424
|
+
stickyNoteBackground: readonly string[] | null;
|
|
392
425
|
};
|
|
426
|
+
fontTopPicks: readonly FontFamilyValues[] | null;
|
|
393
427
|
};
|
|
394
428
|
captureUpdate: "IMMEDIATELY";
|
|
395
429
|
};
|
|
@@ -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,11 +34,20 @@ export declare const actionSelectAll: {
|
|
|
34
34
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
35
35
|
bindingPreference: "enabled" | "disabled";
|
|
36
36
|
isMidpointSnappingEnabled: boolean;
|
|
37
|
+
showHints: boolean;
|
|
38
|
+
inputDevice: import("../types").InputDevice;
|
|
37
39
|
suggestedBinding: {
|
|
38
40
|
element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
39
41
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
40
42
|
} | null;
|
|
41
|
-
|
|
43
|
+
textToolHover: {
|
|
44
|
+
type: "text";
|
|
45
|
+
elementId: ExcalidrawElement["id"];
|
|
46
|
+
} | {
|
|
47
|
+
type: "container";
|
|
48
|
+
elementId: ExcalidrawElement["id"];
|
|
49
|
+
} | {
|
|
50
|
+
type: "arrow";
|
|
42
51
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
43
52
|
anchor: "start" | "end" | "label";
|
|
44
53
|
} | null;
|
|
@@ -68,6 +77,8 @@ export declare const actionSelectAll: {
|
|
|
68
77
|
exportWithDarkMode: boolean;
|
|
69
78
|
exportScale: number;
|
|
70
79
|
currentItemStrokeColor: string;
|
|
80
|
+
currentItemStickynoteStrokeColor: string;
|
|
81
|
+
currentItemStickynoteBackgroundColor: string;
|
|
71
82
|
currentItemBackgroundColor: string;
|
|
72
83
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
73
84
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -132,6 +143,7 @@ export declare const actionSelectAll: {
|
|
|
132
143
|
duration?: number;
|
|
133
144
|
} | null;
|
|
134
145
|
zenModeEnabled: boolean;
|
|
146
|
+
minimapEnabled: boolean;
|
|
135
147
|
theme: import("@excalidraw/element/types").Theme;
|
|
136
148
|
gridSize: number;
|
|
137
149
|
gridStep: number;
|
|
@@ -169,7 +181,10 @@ export declare const actionSelectAll: {
|
|
|
169
181
|
elementStroke: readonly string[] | null;
|
|
170
182
|
elementBackground: readonly string[] | null;
|
|
171
183
|
bucketFill: readonly string[] | null;
|
|
184
|
+
stickyNoteStroke: readonly string[] | null;
|
|
185
|
+
stickyNoteBackground: readonly string[] | null;
|
|
172
186
|
};
|
|
187
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
173
188
|
};
|
|
174
189
|
captureUpdate: "IMMEDIATELY";
|
|
175
190
|
};
|