@zsviczian/excalidraw 0.18.0-5 → 0.18.0-50
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/excalidraw.development.js +745 -503
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
- package/dist/styles.development.css +1062 -429
- package/dist/styles.production.css +26 -22
- package/package.json +14 -3
- package/types/common/src/commonObsidianUtils.d.ts +13 -0
- package/types/common/src/constants.d.ts +42 -18
- package/types/common/src/editorInterface.d.ts +35 -0
- package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/types/common/src/font-metadata.d.ts +4 -2
- package/types/common/src/index.d.ts +2 -0
- package/types/common/src/utility-types.d.ts +5 -0
- package/types/common/src/utils.d.ts +20 -5
- package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
- package/types/element/src/align.d.ts +4 -3
- package/types/element/src/binding.d.ts +27 -17
- package/types/element/src/bounds.d.ts +14 -6
- package/types/element/src/collision.d.ts +18 -12
- package/types/element/src/cropElement.d.ts +1 -1
- package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
- package/types/element/src/distance.d.ts +2 -2
- package/types/element/src/distribute.d.ts +2 -1
- package/types/element/src/dragElements.d.ts +3 -2
- package/types/element/src/duplicate.d.ts +10 -13
- package/types/element/src/elbowArrow.d.ts +1 -1
- package/types/element/src/flowchart.d.ts +3 -2
- package/types/element/src/fractionalIndex.d.ts +9 -3
- package/types/element/src/frame.d.ts +5 -4
- package/types/element/src/groups.d.ts +1 -0
- package/types/element/src/index.d.ts +44 -2
- package/types/element/src/linearElementEditor.d.ts +23 -36
- package/types/element/src/mutateElement.d.ts +11 -3
- package/types/element/src/newElement.d.ts +6 -4
- package/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/types/element/src/renderElement.d.ts +4 -1
- package/types/element/src/resizeElements.d.ts +6 -5
- package/types/element/src/resizeTest.d.ts +5 -4
- package/types/element/src/selection.d.ts +11 -5
- package/types/element/src/shape.d.ts +42 -0
- package/types/element/src/sizeHelpers.d.ts +2 -2
- package/types/element/src/store.d.ts +237 -0
- package/types/element/src/textElement.d.ts +5 -3
- package/types/element/src/transformHandles.d.ts +5 -4
- package/types/element/src/typeChecks.d.ts +19 -1
- package/types/element/src/types.d.ts +25 -2
- package/types/element/src/utils.d.ts +16 -6
- package/types/element/src/zindex.d.ts +1 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +75 -54
- package/types/excalidraw/actions/actionBoundText.d.ts +50 -36
- package/types/excalidraw/actions/actionCanvas.d.ts +388 -282
- package/types/excalidraw/actions/actionClipboard.d.ts +151 -107
- package/types/excalidraw/actions/actionCropEditor.d.ts +25 -18
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +77 -55
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/excalidraw/actions/actionElementLink.d.ts +25 -18
- package/types/excalidraw/actions/actionElementLock.d.ts +65 -52
- package/types/excalidraw/actions/actionEmbeddable.d.ts +25 -18
- package/types/excalidraw/actions/actionExport.d.ts +237 -174
- package/types/excalidraw/actions/actionFinalize.d.ts +307 -43
- package/types/excalidraw/actions/actionFrame.d.ts +157 -120
- package/types/excalidraw/actions/actionGroup.d.ts +50 -36
- package/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +563 -20
- package/types/excalidraw/actions/actionLink.d.ts +23 -16
- package/types/excalidraw/actions/actionMenu.d.ts +25 -456
- package/types/excalidraw/actions/actionNavigate.d.ts +49 -35
- package/types/excalidraw/actions/actionProperties.d.ts +629 -273
- package/types/excalidraw/actions/actionSelectAll.d.ts +25 -18
- package/types/excalidraw/actions/actionStyles.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -223
- package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -19
- package/types/excalidraw/actions/actionTrayMenu.d.ts +226 -0
- package/types/excalidraw/actions/index.d.ts +4 -2
- package/types/excalidraw/actions/types.d.ts +4 -3
- package/types/excalidraw/appState.d.ts +24 -10
- package/types/excalidraw/clipboard.d.ts +68 -5
- package/types/excalidraw/components/Actions.d.ts +20 -7
- package/types/excalidraw/components/App.d.ts +63 -38
- package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
- package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
- package/types/excalidraw/components/Ellipsify.d.ts +3 -0
- package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
- package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/types/excalidraw/components/MobileMenu.d.ts +4 -5
- package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
- package/types/excalidraw/components/Popover.d.ts +2 -1
- package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/types/excalidraw/components/Range.d.ts +3 -3
- package/types/excalidraw/components/Section.d.ts +1 -0
- package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
- package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/types/excalidraw/components/Stats/utils.d.ts +4 -11
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/types/excalidraw/components/TextField.d.ts +1 -0
- package/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/types/excalidraw/components/TrayMenu.d.ts +26 -0
- package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
- package/types/excalidraw/components/icons.d.ts +13 -0
- package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
- package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
- package/types/excalidraw/components/shapes.d.ts +115 -5
- package/types/excalidraw/data/blob.d.ts +3 -7
- package/types/excalidraw/data/reconcile.d.ts +1 -0
- package/types/excalidraw/data/restore.d.ts +6 -1
- package/types/excalidraw/data/transform.d.ts +1 -1
- package/types/excalidraw/data/types.d.ts +4 -1
- package/types/excalidraw/editor-jotai.d.ts +6 -6
- package/types/excalidraw/eraser/index.d.ts +12 -0
- package/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/types/excalidraw/history.d.ts +30 -22
- package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/types/excalidraw/index.d.ts +15 -14
- package/types/excalidraw/lasso/index.d.ts +1 -0
- package/types/excalidraw/lasso/utils.d.ts +3 -3
- package/types/excalidraw/obsidianUtils.d.ts +22 -4
- package/types/excalidraw/renderer/helpers.d.ts +7 -2
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/types/excalidraw/scene/Renderer.d.ts +1 -2
- package/types/excalidraw/scene/index.d.ts +2 -2
- package/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/types/excalidraw/scene/types.d.ts +5 -3
- package/types/excalidraw/shortcut.d.ts +1 -0
- package/types/excalidraw/snapping.d.ts +2 -2
- package/types/excalidraw/types.d.ts +68 -30
- package/types/excalidraw/webpack.dev.config.d.ts +2 -0
- package/types/excalidraw/webpack.prod.config.d.ts +2 -0
- package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- package/types/math/src/angle.d.ts +2 -0
- package/types/math/src/constants.d.ts +3 -0
- package/types/math/src/curve.d.ts +34 -0
- package/types/math/src/index.d.ts +1 -0
- package/types/math/src/point.d.ts +1 -1
- package/types/math/src/rectangle.d.ts +2 -0
- package/types/math/src/segment.d.ts +1 -0
- package/types/math/src/types.d.ts +1 -0
- package/types/math/src/vector.d.ts +8 -2
- package/types/utils/src/bbox.d.ts +1 -1
- package/types/utils/src/index.d.ts +1 -1
- package/types/utils/src/withinBounds.d.ts +1 -1
- package/types/element/src/Shape.d.ts +0 -17
- package/types/element/src/ShapeCache.d.ts +0 -25
- package/types/element/src/shapes.d.ts +0 -23
- package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/types/excalidraw/store.d.ts +0 -129
- package/types/excalidraw/visualdebug.d.ts +0 -41
- package/types/utils/src/collision.d.ts +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinearElementEditor } from "@excalidraw/element
|
|
1
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
export declare const actionSelectAll: {
|
|
4
4
|
name: "selectAll";
|
|
@@ -36,23 +36,28 @@ export declare const actionSelectAll: {
|
|
|
36
36
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
37
37
|
isBindingEnabled: boolean;
|
|
38
38
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
39
|
-
suggestedBindings: import("@excalidraw/element
|
|
39
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
40
40
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
41
41
|
frameRendering: {
|
|
42
42
|
enabled: boolean;
|
|
43
43
|
name: boolean;
|
|
44
44
|
outline: boolean;
|
|
45
45
|
clip: boolean;
|
|
46
|
+
markerName: boolean;
|
|
47
|
+
markerEnabled: boolean;
|
|
46
48
|
};
|
|
47
49
|
editingFrame: string | null;
|
|
48
50
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
49
51
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
50
|
-
editingLinearElement: LinearElementEditor | null;
|
|
51
52
|
activeTool: {
|
|
52
53
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
53
54
|
locked: boolean;
|
|
54
55
|
fromSelection: boolean;
|
|
55
56
|
} & import("../types").ActiveTool;
|
|
57
|
+
preferredSelectionTool: {
|
|
58
|
+
type: "selection" | "lasso";
|
|
59
|
+
initialized: boolean;
|
|
60
|
+
};
|
|
56
61
|
penMode: boolean;
|
|
57
62
|
penDetected: boolean;
|
|
58
63
|
exportBackground: boolean;
|
|
@@ -74,6 +79,7 @@ export declare const actionSelectAll: {
|
|
|
74
79
|
currentHoveredFontFamily: number | null;
|
|
75
80
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
76
81
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
82
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
77
83
|
viewBackgroundColor: string;
|
|
78
84
|
scrollX: number;
|
|
79
85
|
scrollY: number;
|
|
@@ -85,8 +91,8 @@ export declare const actionSelectAll: {
|
|
|
85
91
|
zoom: Readonly<{
|
|
86
92
|
value: import("../types").NormalizedZoomValue;
|
|
87
93
|
}>;
|
|
88
|
-
openMenu: "
|
|
89
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
94
|
+
openMenu: "canvas" | "shape" | null;
|
|
95
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
90
96
|
openSidebar: {
|
|
91
97
|
name: string;
|
|
92
98
|
tab?: string | undefined;
|
|
@@ -160,10 +166,8 @@ export declare const actionSelectAll: {
|
|
|
160
166
|
shown: true;
|
|
161
167
|
data: import("../charts").Spreadsheet;
|
|
162
168
|
};
|
|
163
|
-
|
|
164
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
169
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
165
170
|
linkOpacity: number;
|
|
166
|
-
trayModeEnabled: boolean;
|
|
167
171
|
colorPalette?: {
|
|
168
172
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
169
173
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -176,6 +180,7 @@ export declare const actionSelectAll: {
|
|
|
176
180
|
} | undefined;
|
|
177
181
|
allowWheelZoom?: boolean | undefined;
|
|
178
182
|
allowPinchZoom?: boolean | undefined;
|
|
183
|
+
disableContextMenu: boolean;
|
|
179
184
|
pinnedScripts?: string[] | undefined;
|
|
180
185
|
customPens?: any[] | undefined;
|
|
181
186
|
currentStrokeOptions?: any;
|
|
@@ -184,6 +189,10 @@ export declare const actionSelectAll: {
|
|
|
184
189
|
Bold: string;
|
|
185
190
|
Regular: string;
|
|
186
191
|
};
|
|
192
|
+
gridDirection: {
|
|
193
|
+
horizontal: boolean;
|
|
194
|
+
vertical: boolean;
|
|
195
|
+
};
|
|
187
196
|
highlightSearchResult: boolean;
|
|
188
197
|
dynamicStyle: {
|
|
189
198
|
[x: string]: string;
|
|
@@ -204,16 +213,14 @@ export declare const actionSelectAll: {
|
|
|
204
213
|
followedBy: Set<import("../types").SocketId>;
|
|
205
214
|
isCropping: boolean;
|
|
206
215
|
croppingElementId: string | null;
|
|
207
|
-
searchMatches:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}[];
|
|
216
|
-
}[];
|
|
216
|
+
searchMatches: Readonly<{
|
|
217
|
+
focusedId: string | null;
|
|
218
|
+
matches: readonly import("../types").SearchMatch[];
|
|
219
|
+
}> | null;
|
|
220
|
+
activeLockedId: string | null;
|
|
221
|
+
lockedMultiSelections: {
|
|
222
|
+
[groupId: string]: true;
|
|
223
|
+
};
|
|
217
224
|
};
|
|
218
225
|
captureUpdate: "IMMEDIATELY";
|
|
219
226
|
};
|
|
@@ -29,23 +29,28 @@ export declare const actionCopyStyles: {
|
|
|
29
29
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
31
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
-
suggestedBindings: import("@excalidraw/element
|
|
32
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
33
33
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
36
36
|
name: boolean;
|
|
37
37
|
outline: boolean;
|
|
38
38
|
clip: boolean;
|
|
39
|
+
markerName: boolean;
|
|
40
|
+
markerEnabled: boolean;
|
|
39
41
|
};
|
|
40
42
|
editingFrame: string | null;
|
|
41
43
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
42
44
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
44
45
|
activeTool: {
|
|
45
46
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
47
|
locked: boolean;
|
|
47
48
|
fromSelection: boolean;
|
|
48
49
|
} & import("../types").ActiveTool;
|
|
50
|
+
preferredSelectionTool: {
|
|
51
|
+
type: "selection" | "lasso";
|
|
52
|
+
initialized: boolean;
|
|
53
|
+
};
|
|
49
54
|
penMode: boolean;
|
|
50
55
|
penDetected: boolean;
|
|
51
56
|
exportBackground: boolean;
|
|
@@ -67,6 +72,7 @@ export declare const actionCopyStyles: {
|
|
|
67
72
|
currentHoveredFontFamily: number | null;
|
|
68
73
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
69
74
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
75
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
70
76
|
viewBackgroundColor: string;
|
|
71
77
|
scrollX: number;
|
|
72
78
|
scrollY: number;
|
|
@@ -78,8 +84,8 @@ export declare const actionCopyStyles: {
|
|
|
78
84
|
zoom: Readonly<{
|
|
79
85
|
value: import("../types").NormalizedZoomValue;
|
|
80
86
|
}>;
|
|
81
|
-
openMenu: "
|
|
82
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
87
|
+
openMenu: "canvas" | "shape" | null;
|
|
88
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
83
89
|
openSidebar: {
|
|
84
90
|
name: string;
|
|
85
91
|
tab?: string | undefined;
|
|
@@ -155,10 +161,8 @@ export declare const actionCopyStyles: {
|
|
|
155
161
|
shown: true;
|
|
156
162
|
data: import("../charts").Spreadsheet;
|
|
157
163
|
};
|
|
158
|
-
|
|
159
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
164
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
160
165
|
linkOpacity: number;
|
|
161
|
-
trayModeEnabled: boolean;
|
|
162
166
|
colorPalette?: {
|
|
163
167
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
164
168
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -171,6 +175,7 @@ export declare const actionCopyStyles: {
|
|
|
171
175
|
} | undefined;
|
|
172
176
|
allowWheelZoom?: boolean | undefined;
|
|
173
177
|
allowPinchZoom?: boolean | undefined;
|
|
178
|
+
disableContextMenu: boolean;
|
|
174
179
|
pinnedScripts?: string[] | undefined;
|
|
175
180
|
customPens?: any[] | undefined;
|
|
176
181
|
currentStrokeOptions?: any;
|
|
@@ -179,6 +184,10 @@ export declare const actionCopyStyles: {
|
|
|
179
184
|
Bold: string;
|
|
180
185
|
Regular: string;
|
|
181
186
|
};
|
|
187
|
+
gridDirection: {
|
|
188
|
+
horizontal: boolean;
|
|
189
|
+
vertical: boolean;
|
|
190
|
+
};
|
|
182
191
|
highlightSearchResult: boolean;
|
|
183
192
|
dynamicStyle: {
|
|
184
193
|
[x: string]: string;
|
|
@@ -189,7 +198,7 @@ export declare const actionCopyStyles: {
|
|
|
189
198
|
nameColor: string;
|
|
190
199
|
};
|
|
191
200
|
invertBindingBehaviour: boolean;
|
|
192
|
-
selectedLinearElement: import("@excalidraw/element
|
|
201
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
193
202
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
194
203
|
originSnapOffset: {
|
|
195
204
|
x: number;
|
|
@@ -200,16 +209,14 @@ export declare const actionCopyStyles: {
|
|
|
200
209
|
followedBy: Set<import("../types").SocketId>;
|
|
201
210
|
isCropping: boolean;
|
|
202
211
|
croppingElementId: string | null;
|
|
203
|
-
searchMatches:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}[];
|
|
212
|
-
}[];
|
|
212
|
+
searchMatches: Readonly<{
|
|
213
|
+
focusedId: string | null;
|
|
214
|
+
matches: readonly import("../types").SearchMatch[];
|
|
215
|
+
}> | null;
|
|
216
|
+
activeLockedId: string | null;
|
|
217
|
+
lockedMultiSelections: {
|
|
218
|
+
[groupId: string]: true;
|
|
219
|
+
};
|
|
213
220
|
};
|
|
214
221
|
captureUpdate: "EVENTUALLY";
|
|
215
222
|
};
|
|
@@ -31,23 +31,28 @@ export declare const actionToggleGridMode: {
|
|
|
31
31
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
32
|
isBindingEnabled: boolean;
|
|
33
33
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
|
-
suggestedBindings: import("@excalidraw/element
|
|
34
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
35
35
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
36
36
|
frameRendering: {
|
|
37
37
|
enabled: boolean;
|
|
38
38
|
name: boolean;
|
|
39
39
|
outline: boolean;
|
|
40
40
|
clip: boolean;
|
|
41
|
+
markerName: boolean;
|
|
42
|
+
markerEnabled: boolean;
|
|
41
43
|
};
|
|
42
44
|
editingFrame: string | null;
|
|
43
45
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
44
46
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
45
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
46
47
|
activeTool: {
|
|
47
48
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
48
49
|
locked: boolean;
|
|
49
50
|
fromSelection: boolean;
|
|
50
51
|
} & import("../types").ActiveTool;
|
|
52
|
+
preferredSelectionTool: {
|
|
53
|
+
type: "selection" | "lasso";
|
|
54
|
+
initialized: boolean;
|
|
55
|
+
};
|
|
51
56
|
penMode: boolean;
|
|
52
57
|
penDetected: boolean;
|
|
53
58
|
exportBackground: boolean;
|
|
@@ -69,6 +74,7 @@ export declare const actionToggleGridMode: {
|
|
|
69
74
|
currentHoveredFontFamily: number | null;
|
|
70
75
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
71
76
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
77
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
72
78
|
viewBackgroundColor: string;
|
|
73
79
|
scrollX: number;
|
|
74
80
|
scrollY: number;
|
|
@@ -80,8 +86,8 @@ export declare const actionToggleGridMode: {
|
|
|
80
86
|
zoom: Readonly<{
|
|
81
87
|
value: import("../types").NormalizedZoomValue;
|
|
82
88
|
}>;
|
|
83
|
-
openMenu: "
|
|
84
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
89
|
+
openMenu: "canvas" | "shape" | null;
|
|
90
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
85
91
|
openSidebar: {
|
|
86
92
|
name: string;
|
|
87
93
|
tab?: string | undefined;
|
|
@@ -161,10 +167,8 @@ export declare const actionToggleGridMode: {
|
|
|
161
167
|
shown: true;
|
|
162
168
|
data: import("../charts").Spreadsheet;
|
|
163
169
|
};
|
|
164
|
-
|
|
165
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
170
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
166
171
|
linkOpacity: number;
|
|
167
|
-
trayModeEnabled: boolean;
|
|
168
172
|
colorPalette?: {
|
|
169
173
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
170
174
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -177,6 +181,7 @@ export declare const actionToggleGridMode: {
|
|
|
177
181
|
} | undefined;
|
|
178
182
|
allowWheelZoom?: boolean | undefined;
|
|
179
183
|
allowPinchZoom?: boolean | undefined;
|
|
184
|
+
disableContextMenu: boolean;
|
|
180
185
|
pinnedScripts?: string[] | undefined;
|
|
181
186
|
customPens?: any[] | undefined;
|
|
182
187
|
currentStrokeOptions?: any;
|
|
@@ -185,6 +190,10 @@ export declare const actionToggleGridMode: {
|
|
|
185
190
|
Bold: string;
|
|
186
191
|
Regular: string;
|
|
187
192
|
};
|
|
193
|
+
gridDirection: {
|
|
194
|
+
horizontal: boolean;
|
|
195
|
+
vertical: boolean;
|
|
196
|
+
};
|
|
188
197
|
highlightSearchResult: boolean;
|
|
189
198
|
dynamicStyle: {
|
|
190
199
|
[x: string]: string;
|
|
@@ -195,7 +204,7 @@ export declare const actionToggleGridMode: {
|
|
|
195
204
|
nameColor: string;
|
|
196
205
|
};
|
|
197
206
|
invertBindingBehaviour: boolean;
|
|
198
|
-
selectedLinearElement: import("@excalidraw/element
|
|
207
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
199
208
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
200
209
|
originSnapOffset: {
|
|
201
210
|
x: number;
|
|
@@ -205,16 +214,14 @@ export declare const actionToggleGridMode: {
|
|
|
205
214
|
followedBy: Set<import("../types").SocketId>;
|
|
206
215
|
isCropping: boolean;
|
|
207
216
|
croppingElementId: string | null;
|
|
208
|
-
searchMatches:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}[];
|
|
217
|
-
}[];
|
|
217
|
+
searchMatches: Readonly<{
|
|
218
|
+
focusedId: string | null;
|
|
219
|
+
matches: readonly import("../types").SearchMatch[];
|
|
220
|
+
}> | null;
|
|
221
|
+
activeLockedId: string | null;
|
|
222
|
+
lockedMultiSelections: {
|
|
223
|
+
[groupId: string]: true;
|
|
224
|
+
};
|
|
218
225
|
};
|
|
219
226
|
captureUpdate: "EVENTUALLY";
|
|
220
227
|
};
|
|
@@ -29,23 +29,28 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
29
29
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
31
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
-
suggestedBindings: import("@excalidraw/element
|
|
32
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
33
33
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
36
36
|
name: boolean;
|
|
37
37
|
outline: boolean;
|
|
38
38
|
clip: boolean;
|
|
39
|
+
markerName: boolean;
|
|
40
|
+
markerEnabled: boolean;
|
|
39
41
|
};
|
|
40
42
|
editingFrame: string | null;
|
|
41
43
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
42
44
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
44
45
|
activeTool: {
|
|
45
46
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
47
|
locked: boolean;
|
|
47
48
|
fromSelection: boolean;
|
|
48
49
|
} & import("../types").ActiveTool;
|
|
50
|
+
preferredSelectionTool: {
|
|
51
|
+
type: "selection" | "lasso";
|
|
52
|
+
initialized: boolean;
|
|
53
|
+
};
|
|
49
54
|
penMode: boolean;
|
|
50
55
|
penDetected: boolean;
|
|
51
56
|
exportBackground: boolean;
|
|
@@ -67,6 +72,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
67
72
|
currentHoveredFontFamily: number | null;
|
|
68
73
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
69
74
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
75
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
70
76
|
viewBackgroundColor: string;
|
|
71
77
|
scrollX: number;
|
|
72
78
|
scrollY: number;
|
|
@@ -78,8 +84,8 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
78
84
|
zoom: Readonly<{
|
|
79
85
|
value: import("../types").NormalizedZoomValue;
|
|
80
86
|
}>;
|
|
81
|
-
openMenu: "
|
|
82
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
87
|
+
openMenu: "canvas" | "shape" | null;
|
|
88
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
83
89
|
openSidebar: {
|
|
84
90
|
name: string;
|
|
85
91
|
tab?: string | undefined;
|
|
@@ -159,10 +165,8 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
159
165
|
shown: true;
|
|
160
166
|
data: import("../charts").Spreadsheet;
|
|
161
167
|
};
|
|
162
|
-
|
|
163
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
168
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
164
169
|
linkOpacity: number;
|
|
165
|
-
trayModeEnabled: boolean;
|
|
166
170
|
colorPalette?: {
|
|
167
171
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
168
172
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -175,6 +179,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
175
179
|
} | undefined;
|
|
176
180
|
allowWheelZoom?: boolean | undefined;
|
|
177
181
|
allowPinchZoom?: boolean | undefined;
|
|
182
|
+
disableContextMenu: boolean;
|
|
178
183
|
pinnedScripts?: string[] | undefined;
|
|
179
184
|
customPens?: any[] | undefined;
|
|
180
185
|
currentStrokeOptions?: any;
|
|
@@ -183,6 +188,10 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
183
188
|
Bold: string;
|
|
184
189
|
Regular: string;
|
|
185
190
|
};
|
|
191
|
+
gridDirection: {
|
|
192
|
+
horizontal: boolean;
|
|
193
|
+
vertical: boolean;
|
|
194
|
+
};
|
|
186
195
|
highlightSearchResult: boolean;
|
|
187
196
|
dynamicStyle: {
|
|
188
197
|
[x: string]: string;
|
|
@@ -193,7 +202,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
193
202
|
nameColor: string;
|
|
194
203
|
};
|
|
195
204
|
invertBindingBehaviour: boolean;
|
|
196
|
-
selectedLinearElement: import("@excalidraw/element
|
|
205
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
197
206
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
198
207
|
originSnapOffset: {
|
|
199
208
|
x: number;
|
|
@@ -203,16 +212,14 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
203
212
|
followedBy: Set<import("../types").SocketId>;
|
|
204
213
|
isCropping: boolean;
|
|
205
214
|
croppingElementId: string | null;
|
|
206
|
-
searchMatches:
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}[];
|
|
215
|
-
}[];
|
|
215
|
+
searchMatches: Readonly<{
|
|
216
|
+
focusedId: string | null;
|
|
217
|
+
matches: readonly import("../types").SearchMatch[];
|
|
218
|
+
}> | null;
|
|
219
|
+
activeLockedId: string | null;
|
|
220
|
+
lockedMultiSelections: {
|
|
221
|
+
[groupId: string]: true;
|
|
222
|
+
};
|
|
216
223
|
};
|
|
217
224
|
captureUpdate: "EVENTUALLY";
|
|
218
225
|
};
|