@excalidraw/excalidraw 0.18.0-a5d6939 → 0.18.0-a8acc82
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/chunk-6MX365WZ.js +5666 -0
- package/dist/dev/chunk-6MX365WZ.js.map +7 -0
- package/dist/dev/chunk-CP5DND7P.js +7 -0
- package/dist/dev/chunk-CP5DND7P.js.map +7 -0
- package/dist/dev/{chunk-X3RYHLJU.js → chunk-QF5FRM6O.js} +15 -5
- package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
- package/dist/dev/data/{image-JN3Y4CVN.js → image-GQCFJKGM.js} +3 -3
- package/dist/dev/index.css +230 -23
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +10262 -10068
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-CKWC2GMK.js → en-SMAPCEOQ.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-A66AFZZU.js +7 -0
- package/dist/prod/chunk-I4UNSFV6.js +12 -0
- package/dist/prod/chunk-R2M7VUMD.js +4 -0
- package/dist/prod/data/image-JWK7QZ22.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +25 -17
- package/dist/prod/locales/{en-SBO6ZHT2.js → en-TYY6KWIJ.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +40 -7
- package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +4 -2
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/utility-types.d.ts +5 -0
- package/dist/types/common/src/utils.d.ts +18 -4
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
- package/dist/types/element/src/align.d.ts +4 -3
- package/dist/types/element/src/binding.d.ts +25 -14
- package/dist/types/element/src/bounds.d.ts +14 -6
- package/dist/types/element/src/collision.d.ts +18 -12
- package/dist/types/element/src/cropElement.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
- package/dist/types/element/src/distance.d.ts +2 -2
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/dragElements.d.ts +3 -2
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/flowchart.d.ts +3 -2
- package/dist/types/element/src/fractionalIndex.d.ts +9 -3
- package/dist/types/element/src/frame.d.ts +4 -3
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +44 -2
- package/dist/types/element/src/linearElementEditor.d.ts +23 -36
- package/dist/types/element/src/mutateElement.d.ts +11 -3
- package/dist/types/element/src/newElement.d.ts +4 -3
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -1
- package/dist/types/element/src/resizeElements.d.ts +5 -4
- package/dist/types/element/src/selection.d.ts +0 -5
- package/dist/types/element/src/shape.d.ts +42 -0
- package/dist/types/element/src/sizeHelpers.d.ts +2 -2
- package/dist/types/element/src/store.d.ts +237 -0
- package/dist/types/element/src/textElement.d.ts +4 -3
- package/dist/types/element/src/typeChecks.d.ts +19 -1
- package/dist/types/element/src/types.d.ts +15 -2
- package/dist/types/element/src/utils.d.ts +16 -6
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +45 -54
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +30 -36
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +204 -242
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +90 -106
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +15 -18
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +45 -53
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +45 -52
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +15 -18
- package/dist/types/excalidraw/actions/actionExport.d.ts +145 -172
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +77 -42
- package/dist/types/excalidraw/actions/actionFrame.d.ts +107 -119
- package/dist/types/excalidraw/actions/actionGroup.d.ts +30 -36
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +541 -20
- package/dist/types/excalidraw/actions/actionLink.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -51
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +29 -35
- package/dist/types/excalidraw/actions/actionProperties.d.ts +246 -274
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +15 -18
- package/dist/types/excalidraw/actions/actionStyles.d.ts +15 -18
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +15 -18
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +15 -18
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +14 -190
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +15 -18
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +15 -18
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +15 -18
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +4 -3
- package/dist/types/excalidraw/appState.d.ts +20 -10
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +8 -5
- package/dist/types/excalidraw/components/App.d.ts +30 -30
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +7 -2
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
- package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +9 -0
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +3 -7
- package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
- package/dist/types/excalidraw/data/restore.d.ts +6 -1
- package/dist/types/excalidraw/data/transform.d.ts +1 -1
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
- package/dist/types/excalidraw/eraser/index.d.ts +0 -2
- package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/dist/types/excalidraw/history.d.ts +30 -22
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +11 -10
- package/dist/types/excalidraw/lasso/index.d.ts +1 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
- package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/dist/types/excalidraw/scene/types.d.ts +2 -0
- package/dist/types/excalidraw/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +36 -15
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- package/dist/types/math/src/angle.d.ts +2 -0
- package/dist/types/math/src/constants.d.ts +3 -0
- package/dist/types/math/src/curve.d.ts +34 -0
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/point.d.ts +1 -1
- package/dist/types/math/src/rectangle.d.ts +2 -0
- package/dist/types/math/src/segment.d.ts +1 -0
- package/dist/types/math/src/vector.d.ts +8 -2
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/withinBounds.d.ts +1 -1
- package/history.ts +146 -109
- package/package.json +13 -10
- package/dist/dev/chunk-GBJ7S76A.js +0 -18599
- package/dist/dev/chunk-GBJ7S76A.js.map +0 -7
- package/dist/dev/chunk-GIMGG4AT.js +0 -7
- package/dist/dev/chunk-GIMGG4AT.js.map +0 -7
- package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
- package/dist/prod/chunk-GKI4RZ6C.js +0 -7
- package/dist/prod/chunk-IUH5AXLB.js +0 -12
- package/dist/prod/chunk-TVF64BAY.js +0 -33
- package/dist/prod/data/image-CZ2OEVDB.js +0 -1
- package/dist/types/element/src/Shape.d.ts +0 -17
- package/dist/types/element/src/ShapeCache.d.ts +0 -25
- package/dist/types/element/src/shapes.d.ts +0 -23
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/store.d.ts +0 -129
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- package/dist/types/utils/src/collision.d.ts +0 -8
- /package/dist/dev/data/{image-JN3Y4CVN.js.map → image-GQCFJKGM.js.map} +0 -0
- /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-SMAPCEOQ.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "@excalidraw/element
|
|
2
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
3
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
4
|
export declare const actionSelectAll: {
|
|
5
5
|
name: "selectAll";
|
|
@@ -29,7 +29,7 @@ export declare const actionSelectAll: {
|
|
|
29
29
|
errorMessage: import("react").ReactNode;
|
|
30
30
|
activeEmbeddable: {
|
|
31
31
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
32
|
-
state: "
|
|
32
|
+
state: "active" | "hover";
|
|
33
33
|
} | null;
|
|
34
34
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
35
35
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -37,7 +37,7 @@ export declare const actionSelectAll: {
|
|
|
37
37
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
38
38
|
isBindingEnabled: boolean;
|
|
39
39
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
40
|
-
suggestedBindings: import("@excalidraw/element
|
|
40
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
41
41
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
42
42
|
frameRendering: {
|
|
43
43
|
enabled: boolean;
|
|
@@ -48,7 +48,6 @@ export declare const actionSelectAll: {
|
|
|
48
48
|
editingFrame: string | null;
|
|
49
49
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
50
50
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
51
|
-
editingLinearElement: LinearElementEditor | null;
|
|
52
51
|
activeTool: {
|
|
53
52
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
54
53
|
locked: boolean;
|
|
@@ -86,8 +85,8 @@ export declare const actionSelectAll: {
|
|
|
86
85
|
zoom: Readonly<{
|
|
87
86
|
value: import("../types").NormalizedZoomValue;
|
|
88
87
|
}>;
|
|
89
|
-
openMenu: "
|
|
90
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
88
|
+
openMenu: "canvas" | "shape" | null;
|
|
89
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
91
90
|
openSidebar: {
|
|
92
91
|
name: string;
|
|
93
92
|
tab?: string | undefined;
|
|
@@ -96,7 +95,7 @@ export declare const actionSelectAll: {
|
|
|
96
95
|
name: "imageExport" | "help" | "jsonExport";
|
|
97
96
|
} | {
|
|
98
97
|
name: "ttd";
|
|
99
|
-
tab: "text-to-diagram"
|
|
98
|
+
tab: "mermaid" | "text-to-diagram";
|
|
100
99
|
} | {
|
|
101
100
|
name: "commandPalette";
|
|
102
101
|
} | {
|
|
@@ -161,7 +160,6 @@ export declare const actionSelectAll: {
|
|
|
161
160
|
shown: true;
|
|
162
161
|
data: import("../charts").Spreadsheet;
|
|
163
162
|
};
|
|
164
|
-
pendingImageElementId: string | null;
|
|
165
163
|
showHyperlinkPopup: false | "editor" | "info";
|
|
166
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
165
|
originSnapOffset: {
|
|
@@ -173,16 +171,15 @@ export declare const actionSelectAll: {
|
|
|
173
171
|
followedBy: Set<import("../types").SocketId>;
|
|
174
172
|
isCropping: boolean;
|
|
175
173
|
croppingElementId: string | null;
|
|
176
|
-
searchMatches:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}[];
|
|
174
|
+
searchMatches: Readonly<{
|
|
175
|
+
focusedId: string | null;
|
|
176
|
+
matches: readonly import("../types").SearchMatch[];
|
|
177
|
+
}> | null;
|
|
178
|
+
activeLockedId: string | null;
|
|
179
|
+
lockedMultiSelections: {
|
|
180
|
+
[groupId: string]: true;
|
|
181
|
+
};
|
|
182
|
+
stylesPanelMode: "compact" | "full";
|
|
186
183
|
};
|
|
187
184
|
captureUpdate: "IMMEDIATELY";
|
|
188
185
|
};
|
|
@@ -22,7 +22,7 @@ export declare const actionCopyStyles: {
|
|
|
22
22
|
errorMessage: import("react").ReactNode;
|
|
23
23
|
activeEmbeddable: {
|
|
24
24
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
25
|
-
state: "
|
|
25
|
+
state: "active" | "hover";
|
|
26
26
|
} | null;
|
|
27
27
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
28
28
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -30,7 +30,7 @@ export declare const actionCopyStyles: {
|
|
|
30
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
32
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
|
-
suggestedBindings: import("@excalidraw/element
|
|
33
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
34
34
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
35
|
frameRendering: {
|
|
36
36
|
enabled: boolean;
|
|
@@ -41,7 +41,6 @@ export declare const actionCopyStyles: {
|
|
|
41
41
|
editingFrame: string | null;
|
|
42
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
43
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
45
44
|
activeTool: {
|
|
46
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
46
|
locked: boolean;
|
|
@@ -79,8 +78,8 @@ export declare const actionCopyStyles: {
|
|
|
79
78
|
zoom: Readonly<{
|
|
80
79
|
value: import("../types").NormalizedZoomValue;
|
|
81
80
|
}>;
|
|
82
|
-
openMenu: "
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
|
+
openMenu: "canvas" | "shape" | null;
|
|
82
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
83
|
openSidebar: {
|
|
85
84
|
name: string;
|
|
86
85
|
tab?: string | undefined;
|
|
@@ -89,7 +88,7 @@ export declare const actionCopyStyles: {
|
|
|
89
88
|
name: "imageExport" | "help" | "jsonExport";
|
|
90
89
|
} | {
|
|
91
90
|
name: "ttd";
|
|
92
|
-
tab: "text-to-diagram"
|
|
91
|
+
tab: "mermaid" | "text-to-diagram";
|
|
93
92
|
} | {
|
|
94
93
|
name: "commandPalette";
|
|
95
94
|
} | {
|
|
@@ -156,9 +155,8 @@ export declare const actionCopyStyles: {
|
|
|
156
155
|
shown: true;
|
|
157
156
|
data: import("../charts").Spreadsheet;
|
|
158
157
|
};
|
|
159
|
-
pendingImageElementId: string | null;
|
|
160
158
|
showHyperlinkPopup: false | "editor" | "info";
|
|
161
|
-
selectedLinearElement: import("@excalidraw/element
|
|
159
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
162
160
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
161
|
originSnapOffset: {
|
|
164
162
|
x: number;
|
|
@@ -169,16 +167,15 @@ export declare const actionCopyStyles: {
|
|
|
169
167
|
followedBy: Set<import("../types").SocketId>;
|
|
170
168
|
isCropping: boolean;
|
|
171
169
|
croppingElementId: string | null;
|
|
172
|
-
searchMatches:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}[];
|
|
170
|
+
searchMatches: Readonly<{
|
|
171
|
+
focusedId: string | null;
|
|
172
|
+
matches: readonly import("../types").SearchMatch[];
|
|
173
|
+
}> | null;
|
|
174
|
+
activeLockedId: string | null;
|
|
175
|
+
lockedMultiSelections: {
|
|
176
|
+
[groupId: string]: true;
|
|
177
|
+
};
|
|
178
|
+
stylesPanelMode: "compact" | "full";
|
|
182
179
|
};
|
|
183
180
|
captureUpdate: "EVENTUALLY";
|
|
184
181
|
};
|
|
@@ -24,7 +24,7 @@ export declare const actionToggleGridMode: {
|
|
|
24
24
|
errorMessage: import("react").ReactNode;
|
|
25
25
|
activeEmbeddable: {
|
|
26
26
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
27
|
-
state: "
|
|
27
|
+
state: "active" | "hover";
|
|
28
28
|
} | null;
|
|
29
29
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
30
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -32,7 +32,7 @@ export declare const actionToggleGridMode: {
|
|
|
32
32
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
33
|
isBindingEnabled: boolean;
|
|
34
34
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
|
-
suggestedBindings: import("@excalidraw/element
|
|
35
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
36
36
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
37
37
|
frameRendering: {
|
|
38
38
|
enabled: boolean;
|
|
@@ -43,7 +43,6 @@ export declare const actionToggleGridMode: {
|
|
|
43
43
|
editingFrame: string | null;
|
|
44
44
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
45
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
47
46
|
activeTool: {
|
|
48
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
48
|
locked: boolean;
|
|
@@ -81,8 +80,8 @@ export declare const actionToggleGridMode: {
|
|
|
81
80
|
zoom: Readonly<{
|
|
82
81
|
value: import("../types").NormalizedZoomValue;
|
|
83
82
|
}>;
|
|
84
|
-
openMenu: "
|
|
85
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
83
|
+
openMenu: "canvas" | "shape" | null;
|
|
84
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
86
85
|
openSidebar: {
|
|
87
86
|
name: string;
|
|
88
87
|
tab?: string | undefined;
|
|
@@ -91,7 +90,7 @@ export declare const actionToggleGridMode: {
|
|
|
91
90
|
name: "imageExport" | "help" | "jsonExport";
|
|
92
91
|
} | {
|
|
93
92
|
name: "ttd";
|
|
94
|
-
tab: "text-to-diagram"
|
|
93
|
+
tab: "mermaid" | "text-to-diagram";
|
|
95
94
|
} | {
|
|
96
95
|
name: "commandPalette";
|
|
97
96
|
} | {
|
|
@@ -162,9 +161,8 @@ export declare const actionToggleGridMode: {
|
|
|
162
161
|
shown: true;
|
|
163
162
|
data: import("../charts").Spreadsheet;
|
|
164
163
|
};
|
|
165
|
-
pendingImageElementId: string | null;
|
|
166
164
|
showHyperlinkPopup: false | "editor" | "info";
|
|
167
|
-
selectedLinearElement: import("@excalidraw/element
|
|
165
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
168
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
169
167
|
originSnapOffset: {
|
|
170
168
|
x: number;
|
|
@@ -174,16 +172,15 @@ export declare const actionToggleGridMode: {
|
|
|
174
172
|
followedBy: Set<import("../types").SocketId>;
|
|
175
173
|
isCropping: boolean;
|
|
176
174
|
croppingElementId: string | null;
|
|
177
|
-
searchMatches:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}[];
|
|
175
|
+
searchMatches: Readonly<{
|
|
176
|
+
focusedId: string | null;
|
|
177
|
+
matches: readonly import("../types").SearchMatch[];
|
|
178
|
+
}> | null;
|
|
179
|
+
activeLockedId: string | null;
|
|
180
|
+
lockedMultiSelections: {
|
|
181
|
+
[groupId: string]: true;
|
|
182
|
+
};
|
|
183
|
+
stylesPanelMode: "compact" | "full";
|
|
187
184
|
};
|
|
188
185
|
captureUpdate: "EVENTUALLY";
|
|
189
186
|
};
|
|
@@ -22,7 +22,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
22
22
|
errorMessage: import("react").ReactNode;
|
|
23
23
|
activeEmbeddable: {
|
|
24
24
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
25
|
-
state: "
|
|
25
|
+
state: "active" | "hover";
|
|
26
26
|
} | null;
|
|
27
27
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
28
28
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -30,7 +30,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
30
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
32
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
|
-
suggestedBindings: import("@excalidraw/element
|
|
33
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
34
34
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
35
|
frameRendering: {
|
|
36
36
|
enabled: boolean;
|
|
@@ -41,7 +41,6 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
41
41
|
editingFrame: string | null;
|
|
42
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
43
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
45
44
|
activeTool: {
|
|
46
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
46
|
locked: boolean;
|
|
@@ -79,8 +78,8 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
79
78
|
zoom: Readonly<{
|
|
80
79
|
value: import("../types").NormalizedZoomValue;
|
|
81
80
|
}>;
|
|
82
|
-
openMenu: "
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
|
+
openMenu: "canvas" | "shape" | null;
|
|
82
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
83
|
openSidebar: {
|
|
85
84
|
name: string;
|
|
86
85
|
tab?: string | undefined;
|
|
@@ -89,7 +88,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
89
88
|
name: "imageExport" | "help" | "jsonExport";
|
|
90
89
|
} | {
|
|
91
90
|
name: "ttd";
|
|
92
|
-
tab: "text-to-diagram"
|
|
91
|
+
tab: "mermaid" | "text-to-diagram";
|
|
93
92
|
} | {
|
|
94
93
|
name: "commandPalette";
|
|
95
94
|
} | {
|
|
@@ -160,9 +159,8 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
160
159
|
shown: true;
|
|
161
160
|
data: import("../charts").Spreadsheet;
|
|
162
161
|
};
|
|
163
|
-
pendingImageElementId: string | null;
|
|
164
162
|
showHyperlinkPopup: false | "editor" | "info";
|
|
165
|
-
selectedLinearElement: import("@excalidraw/element
|
|
163
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
166
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
165
|
originSnapOffset: {
|
|
168
166
|
x: number;
|
|
@@ -172,16 +170,15 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
172
170
|
followedBy: Set<import("../types").SocketId>;
|
|
173
171
|
isCropping: boolean;
|
|
174
172
|
croppingElementId: string | null;
|
|
175
|
-
searchMatches:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}[];
|
|
173
|
+
searchMatches: Readonly<{
|
|
174
|
+
focusedId: string | null;
|
|
175
|
+
matches: readonly import("../types").SearchMatch[];
|
|
176
|
+
}> | null;
|
|
177
|
+
activeLockedId: string | null;
|
|
178
|
+
lockedMultiSelections: {
|
|
179
|
+
[groupId: string]: true;
|
|
180
|
+
};
|
|
181
|
+
stylesPanelMode: "compact" | "full";
|
|
185
182
|
};
|
|
186
183
|
captureUpdate: "EVENTUALLY";
|
|
187
184
|
};
|
|
@@ -12,179 +12,6 @@ export declare const actionToggleSearchMenu: {
|
|
|
12
12
|
predicate: (appState: Readonly<AppState>) => boolean;
|
|
13
13
|
};
|
|
14
14
|
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties): false | {
|
|
15
|
-
appState: {
|
|
16
|
-
openSidebar: null;
|
|
17
|
-
contextMenu: {
|
|
18
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
19
|
-
top: number;
|
|
20
|
-
left: number;
|
|
21
|
-
} | null;
|
|
22
|
-
showWelcomeScreen: boolean;
|
|
23
|
-
isLoading: boolean;
|
|
24
|
-
errorMessage: import("react").ReactNode;
|
|
25
|
-
activeEmbeddable: {
|
|
26
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
27
|
-
state: "hover" | "active";
|
|
28
|
-
} | null;
|
|
29
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
32
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
|
-
isBindingEnabled: boolean;
|
|
34
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
36
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
37
|
-
frameRendering: {
|
|
38
|
-
enabled: boolean;
|
|
39
|
-
name: boolean;
|
|
40
|
-
outline: boolean;
|
|
41
|
-
clip: boolean;
|
|
42
|
-
};
|
|
43
|
-
editingFrame: string | null;
|
|
44
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
47
|
-
activeTool: {
|
|
48
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
|
-
locked: boolean;
|
|
50
|
-
fromSelection: boolean;
|
|
51
|
-
} & import("../types").ActiveTool;
|
|
52
|
-
penMode: boolean;
|
|
53
|
-
penDetected: boolean;
|
|
54
|
-
exportBackground: boolean;
|
|
55
|
-
exportEmbedScene: boolean;
|
|
56
|
-
exportWithDarkMode: boolean;
|
|
57
|
-
exportScale: number;
|
|
58
|
-
currentItemStrokeColor: string;
|
|
59
|
-
currentItemBackgroundColor: string;
|
|
60
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
61
|
-
currentItemStrokeWidth: number;
|
|
62
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
63
|
-
currentItemRoughness: number;
|
|
64
|
-
currentItemOpacity: number;
|
|
65
|
-
currentItemFontFamily: number;
|
|
66
|
-
currentItemFontSize: number;
|
|
67
|
-
currentItemTextAlign: string;
|
|
68
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
69
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
|
-
currentHoveredFontFamily: number | null;
|
|
71
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
72
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
73
|
-
viewBackgroundColor: string;
|
|
74
|
-
scrollX: number;
|
|
75
|
-
scrollY: number;
|
|
76
|
-
cursorButton: "up" | "down";
|
|
77
|
-
scrolledOutside: boolean;
|
|
78
|
-
name: string | null;
|
|
79
|
-
isResizing: boolean;
|
|
80
|
-
isRotating: boolean;
|
|
81
|
-
zoom: Readonly<{
|
|
82
|
-
value: import("../types").NormalizedZoomValue;
|
|
83
|
-
}>;
|
|
84
|
-
openMenu: "shape" | "canvas" | null;
|
|
85
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
86
|
-
openDialog: {
|
|
87
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
88
|
-
} | {
|
|
89
|
-
name: "ttd";
|
|
90
|
-
tab: "text-to-diagram" | "mermaid";
|
|
91
|
-
} | {
|
|
92
|
-
name: "commandPalette";
|
|
93
|
-
} | {
|
|
94
|
-
name: "elementLinkSelector";
|
|
95
|
-
sourceElementId: string;
|
|
96
|
-
} | null;
|
|
97
|
-
defaultSidebarDockedPreference: boolean;
|
|
98
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
99
|
-
selectedElementIds: Readonly<{
|
|
100
|
-
[id: string]: true;
|
|
101
|
-
}>;
|
|
102
|
-
hoveredElementIds: Readonly<{
|
|
103
|
-
[id: string]: true;
|
|
104
|
-
}>;
|
|
105
|
-
previousSelectedElementIds: {
|
|
106
|
-
[id: string]: true;
|
|
107
|
-
};
|
|
108
|
-
selectedElementsAreBeingDragged: boolean;
|
|
109
|
-
shouldCacheIgnoreZoom: boolean;
|
|
110
|
-
toast: {
|
|
111
|
-
message: string;
|
|
112
|
-
closable?: boolean | undefined;
|
|
113
|
-
duration?: number | undefined;
|
|
114
|
-
} | null;
|
|
115
|
-
zenModeEnabled: boolean;
|
|
116
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
117
|
-
gridSize: number;
|
|
118
|
-
gridStep: number;
|
|
119
|
-
gridModeEnabled: boolean;
|
|
120
|
-
viewModeEnabled: boolean;
|
|
121
|
-
selectedGroupIds: {
|
|
122
|
-
[groupId: string]: boolean;
|
|
123
|
-
};
|
|
124
|
-
editingGroupId: string | null;
|
|
125
|
-
width: number;
|
|
126
|
-
height: number;
|
|
127
|
-
offsetTop: number;
|
|
128
|
-
offsetLeft: number;
|
|
129
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
130
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
131
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
132
|
-
button?: "up" | "down" | undefined;
|
|
133
|
-
selectedElementIds?: Readonly<{
|
|
134
|
-
[id: string]: true;
|
|
135
|
-
}> | undefined;
|
|
136
|
-
username?: string | null | undefined;
|
|
137
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
138
|
-
color?: {
|
|
139
|
-
background: string;
|
|
140
|
-
stroke: string;
|
|
141
|
-
} | undefined;
|
|
142
|
-
avatarUrl?: string | undefined;
|
|
143
|
-
id?: string | undefined;
|
|
144
|
-
socketId?: import("../types").SocketId | undefined;
|
|
145
|
-
isCurrentUser?: boolean | undefined;
|
|
146
|
-
isInCall?: boolean | undefined;
|
|
147
|
-
isSpeaking?: boolean | undefined;
|
|
148
|
-
isMuted?: boolean | undefined;
|
|
149
|
-
}>>;
|
|
150
|
-
stats: {
|
|
151
|
-
open: boolean;
|
|
152
|
-
panels: number;
|
|
153
|
-
};
|
|
154
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
155
|
-
pasteDialog: {
|
|
156
|
-
shown: false;
|
|
157
|
-
data: null;
|
|
158
|
-
} | {
|
|
159
|
-
shown: true;
|
|
160
|
-
data: import("../charts").Spreadsheet;
|
|
161
|
-
};
|
|
162
|
-
pendingImageElementId: string | null;
|
|
163
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
164
|
-
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
165
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
166
|
-
originSnapOffset: {
|
|
167
|
-
x: number;
|
|
168
|
-
y: number;
|
|
169
|
-
} | null;
|
|
170
|
-
objectsSnapModeEnabled: boolean;
|
|
171
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
172
|
-
followedBy: Set<import("../types").SocketId>;
|
|
173
|
-
isCropping: boolean;
|
|
174
|
-
croppingElementId: string | null;
|
|
175
|
-
searchMatches: readonly {
|
|
176
|
-
id: string;
|
|
177
|
-
focus: boolean;
|
|
178
|
-
matchedLines: {
|
|
179
|
-
offsetX: number;
|
|
180
|
-
offsetY: number;
|
|
181
|
-
width: number;
|
|
182
|
-
height: number;
|
|
183
|
-
}[];
|
|
184
|
-
}[];
|
|
185
|
-
};
|
|
186
|
-
captureUpdate: "EVENTUALLY";
|
|
187
|
-
} | {
|
|
188
15
|
appState: {
|
|
189
16
|
openSidebar: {
|
|
190
17
|
name: "default";
|
|
@@ -201,7 +28,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
201
28
|
errorMessage: import("react").ReactNode;
|
|
202
29
|
activeEmbeddable: {
|
|
203
30
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
204
|
-
state: "
|
|
31
|
+
state: "active" | "hover";
|
|
205
32
|
} | null;
|
|
206
33
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
207
34
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -209,7 +36,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
209
36
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
210
37
|
isBindingEnabled: boolean;
|
|
211
38
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
212
|
-
suggestedBindings: import("@excalidraw/element
|
|
39
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
213
40
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
214
41
|
frameRendering: {
|
|
215
42
|
enabled: boolean;
|
|
@@ -220,7 +47,6 @@ export declare const actionToggleSearchMenu: {
|
|
|
220
47
|
editingFrame: string | null;
|
|
221
48
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
222
49
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
223
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
224
50
|
activeTool: {
|
|
225
51
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
226
52
|
locked: boolean;
|
|
@@ -258,8 +84,8 @@ export declare const actionToggleSearchMenu: {
|
|
|
258
84
|
zoom: Readonly<{
|
|
259
85
|
value: import("../types").NormalizedZoomValue;
|
|
260
86
|
}>;
|
|
261
|
-
openMenu: "
|
|
262
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
87
|
+
openMenu: "canvas" | "shape" | null;
|
|
88
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
263
89
|
defaultSidebarDockedPreference: boolean;
|
|
264
90
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
265
91
|
selectedElementIds: Readonly<{
|
|
@@ -325,9 +151,8 @@ export declare const actionToggleSearchMenu: {
|
|
|
325
151
|
shown: true;
|
|
326
152
|
data: import("../charts").Spreadsheet;
|
|
327
153
|
};
|
|
328
|
-
pendingImageElementId: string | null;
|
|
329
154
|
showHyperlinkPopup: false | "editor" | "info";
|
|
330
|
-
selectedLinearElement: import("@excalidraw/element
|
|
155
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
331
156
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
332
157
|
originSnapOffset: {
|
|
333
158
|
x: number;
|
|
@@ -338,16 +163,15 @@ export declare const actionToggleSearchMenu: {
|
|
|
338
163
|
followedBy: Set<import("../types").SocketId>;
|
|
339
164
|
isCropping: boolean;
|
|
340
165
|
croppingElementId: string | null;
|
|
341
|
-
searchMatches:
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
}[];
|
|
166
|
+
searchMatches: Readonly<{
|
|
167
|
+
focusedId: string | null;
|
|
168
|
+
matches: readonly import("../types").SearchMatch[];
|
|
169
|
+
}> | null;
|
|
170
|
+
activeLockedId: string | null;
|
|
171
|
+
lockedMultiSelections: {
|
|
172
|
+
[groupId: string]: true;
|
|
173
|
+
};
|
|
174
|
+
stylesPanelMode: "compact" | "full";
|
|
351
175
|
};
|
|
352
176
|
captureUpdate: "EVENTUALLY";
|
|
353
177
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
+
export declare const actionToggleShapeSwitch: {
|
|
3
|
+
name: "toggleShapeSwitch";
|
|
4
|
+
label: string;
|
|
5
|
+
icon: () => null;
|
|
6
|
+
viewMode: true;
|
|
7
|
+
trackEvent: {
|
|
8
|
+
category: "shape_switch";
|
|
9
|
+
action: string;
|
|
10
|
+
};
|
|
11
|
+
keywords: string[];
|
|
12
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
|
|
13
|
+
captureUpdate: "NEVER";
|
|
14
|
+
};
|
|
15
|
+
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
16
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
17
|
+
} & {
|
|
18
|
+
keyTest?: undefined;
|
|
19
|
+
};
|