@excalidraw/excalidraw 0.18.0-6fc8502 → 0.18.0-a18b139
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-H7XJ5UVD.js → chunk-MJMGTOVG.js} +2 -2
- package/dist/dev/{chunk-KYBDXI6F.js → chunk-U3G3LY5D.js} +5304 -5762
- package/dist/dev/chunk-U3G3LY5D.js.map +7 -0
- package/dist/dev/data/{image-NKFINVKH.js → image-Y366K5SN.js} +3 -3
- package/dist/dev/index.js +1090 -730
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-PUQLEN73.js +33 -0
- package/dist/prod/{chunk-KJYFYP64.js → chunk-VQA74LVG.js} +1 -1
- package/dist/prod/data/image-WY2VMQLG.js +1 -0
- package/dist/prod/index.js +17 -17
- 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 +2 -0
- package/dist/types/common/src/utils.d.ts +7 -1
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +8 -11
- package/dist/types/element/src/align.d.ts +3 -3
- package/dist/types/element/src/binding.d.ts +10 -11
- package/dist/types/element/src/bounds.d.ts +2 -2
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/dragElements.d.ts +3 -2
- package/dist/types/element/src/duplicate.d.ts +10 -13
- 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 +2 -2
- package/dist/types/element/src/frame.d.ts +2 -2
- package/dist/types/element/src/linearElementEditor.d.ts +13 -13
- package/dist/types/element/src/mutateElement.d.ts +10 -2
- package/dist/types/element/src/resizeElements.d.ts +4 -4
- package/dist/types/element/src/selection.d.ts +11 -0
- package/dist/types/element/src/sizeHelpers.d.ts +0 -1
- package/dist/types/element/src/textElement.d.ts +5 -3
- package/dist/types/element/src/zindex.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +27 -27
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionExport.d.ts +31 -31
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionGroup.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +17 -17
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/dist/types/excalidraw/appState.d.ts +15 -15
- package/dist/types/excalidraw/components/App.d.ts +15 -4
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -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/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- 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 -4
- 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/eraser/index.d.ts +14 -0
- package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/dist/types/excalidraw/lasso/utils.d.ts +1 -2
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
- package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/dist/types/excalidraw/scene/types.d.ts +2 -0
- package/dist/types/excalidraw/types.d.ts +6 -0
- package/dist/types/math/src/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/dev/chunk-KYBDXI6F.js.map +0 -7
- package/dist/prod/chunk-CAN5RS4P.js +0 -31
- package/dist/prod/data/image-5XD47O4X.js +0 -1
- /package/dist/dev/{chunk-H7XJ5UVD.js.map → chunk-MJMGTOVG.js.map} +0 -0
- /package/dist/dev/data/{image-NKFINVKH.js.map → image-Y366K5SN.js.map} +0 -0
|
@@ -51,6 +51,12 @@ export declare const actionClearCanvas: {
|
|
|
51
51
|
locked: boolean;
|
|
52
52
|
fromSelection: boolean;
|
|
53
53
|
} & import("../types").ActiveTool;
|
|
54
|
+
name: string | null;
|
|
55
|
+
zoom: Readonly<{
|
|
56
|
+
value: import("../types").NormalizedZoomValue;
|
|
57
|
+
}>;
|
|
58
|
+
scrollX: number;
|
|
59
|
+
scrollY: number;
|
|
54
60
|
viewBackgroundColor: string;
|
|
55
61
|
frameRendering: {
|
|
56
62
|
enabled: boolean;
|
|
@@ -58,12 +64,6 @@ export declare const actionClearCanvas: {
|
|
|
58
64
|
outline: boolean;
|
|
59
65
|
clip: boolean;
|
|
60
66
|
};
|
|
61
|
-
name: string | null;
|
|
62
|
-
zoom: Readonly<{
|
|
63
|
-
value: import("../types").NormalizedZoomValue;
|
|
64
|
-
}>;
|
|
65
|
-
scrollX: number;
|
|
66
|
-
scrollY: number;
|
|
67
67
|
viewModeEnabled: boolean;
|
|
68
68
|
openDialog: {
|
|
69
69
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -132,14 +132,6 @@ export declare const actionClearCanvas: {
|
|
|
132
132
|
height: number;
|
|
133
133
|
}[];
|
|
134
134
|
}[];
|
|
135
|
-
objectsSnapModeEnabled: boolean;
|
|
136
|
-
shouldCacheIgnoreZoom: boolean;
|
|
137
|
-
exportScale: number;
|
|
138
|
-
selectedElementsAreBeingDragged: boolean;
|
|
139
|
-
currentHoveredFontFamily: number | null;
|
|
140
|
-
hoveredElementIds: Readonly<{
|
|
141
|
-
[id: string]: true;
|
|
142
|
-
}>;
|
|
143
135
|
contextMenu: {
|
|
144
136
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
145
137
|
top: number;
|
|
@@ -153,6 +145,7 @@ export declare const actionClearCanvas: {
|
|
|
153
145
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
154
146
|
editingFrame: string | null;
|
|
155
147
|
exportWithDarkMode: boolean;
|
|
148
|
+
exportScale: number;
|
|
156
149
|
currentItemStrokeColor: string;
|
|
157
150
|
currentItemBackgroundColor: string;
|
|
158
151
|
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
@@ -165,12 +158,13 @@ export declare const actionClearCanvas: {
|
|
|
165
158
|
currentItemTextAlign: string;
|
|
166
159
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
167
160
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
161
|
+
currentHoveredFontFamily: number | null;
|
|
168
162
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
169
163
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
170
164
|
cursorButton: "up" | "down";
|
|
171
165
|
scrolledOutside: boolean;
|
|
172
166
|
isResizing: boolean;
|
|
173
|
-
openMenu: "
|
|
167
|
+
openMenu: "canvas" | "shape" | null;
|
|
174
168
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
175
169
|
openSidebar: {
|
|
176
170
|
name: string;
|
|
@@ -178,9 +172,14 @@ export declare const actionClearCanvas: {
|
|
|
178
172
|
} | null;
|
|
179
173
|
defaultSidebarDockedPreference: boolean;
|
|
180
174
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
175
|
+
hoveredElementIds: Readonly<{
|
|
176
|
+
[id: string]: true;
|
|
177
|
+
}>;
|
|
181
178
|
previousSelectedElementIds: {
|
|
182
179
|
[id: string]: true;
|
|
183
180
|
};
|
|
181
|
+
selectedElementsAreBeingDragged: boolean;
|
|
182
|
+
shouldCacheIgnoreZoom: boolean;
|
|
184
183
|
toast: {
|
|
185
184
|
message: string;
|
|
186
185
|
closable?: boolean | undefined;
|
|
@@ -193,6 +192,7 @@ export declare const actionClearCanvas: {
|
|
|
193
192
|
x: number;
|
|
194
193
|
y: number;
|
|
195
194
|
} | null;
|
|
195
|
+
objectsSnapModeEnabled: boolean;
|
|
196
196
|
userToFollow: import("../types").UserToFollow | null;
|
|
197
197
|
followedBy: Set<import("../types").SocketId>;
|
|
198
198
|
};
|
|
@@ -279,7 +279,7 @@ export declare const actionZoomIn: {
|
|
|
279
279
|
name: string | null;
|
|
280
280
|
isResizing: boolean;
|
|
281
281
|
isRotating: boolean;
|
|
282
|
-
openMenu: "
|
|
282
|
+
openMenu: "canvas" | "shape" | null;
|
|
283
283
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
284
284
|
openSidebar: {
|
|
285
285
|
name: string;
|
|
@@ -469,7 +469,7 @@ export declare const actionZoomOut: {
|
|
|
469
469
|
name: string | null;
|
|
470
470
|
isResizing: boolean;
|
|
471
471
|
isRotating: boolean;
|
|
472
|
-
openMenu: "
|
|
472
|
+
openMenu: "canvas" | "shape" | null;
|
|
473
473
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
474
474
|
openSidebar: {
|
|
475
475
|
name: string;
|
|
@@ -659,7 +659,7 @@ export declare const actionResetZoom: {
|
|
|
659
659
|
name: string | null;
|
|
660
660
|
isResizing: boolean;
|
|
661
661
|
isRotating: boolean;
|
|
662
|
-
openMenu: "
|
|
662
|
+
openMenu: "canvas" | "shape" | null;
|
|
663
663
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
664
664
|
openSidebar: {
|
|
665
665
|
name: string;
|
|
@@ -855,7 +855,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
855
855
|
name: string | null;
|
|
856
856
|
isResizing: boolean;
|
|
857
857
|
isRotating: boolean;
|
|
858
|
-
openMenu: "
|
|
858
|
+
openMenu: "canvas" | "shape" | null;
|
|
859
859
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
860
860
|
openSidebar: {
|
|
861
861
|
name: string;
|
|
@@ -1047,7 +1047,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1047
1047
|
name: string | null;
|
|
1048
1048
|
isResizing: boolean;
|
|
1049
1049
|
isRotating: boolean;
|
|
1050
|
-
openMenu: "
|
|
1050
|
+
openMenu: "canvas" | "shape" | null;
|
|
1051
1051
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1052
1052
|
openSidebar: {
|
|
1053
1053
|
name: string;
|
|
@@ -1231,7 +1231,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1231
1231
|
name: string | null;
|
|
1232
1232
|
isResizing: boolean;
|
|
1233
1233
|
isRotating: boolean;
|
|
1234
|
-
openMenu: "
|
|
1234
|
+
openMenu: "canvas" | "shape" | null;
|
|
1235
1235
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1236
1236
|
openSidebar: {
|
|
1237
1237
|
name: string;
|
|
@@ -1419,7 +1419,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1419
1419
|
name: string | null;
|
|
1420
1420
|
isResizing: boolean;
|
|
1421
1421
|
isRotating: boolean;
|
|
1422
|
-
openMenu: "
|
|
1422
|
+
openMenu: "canvas" | "shape" | null;
|
|
1423
1423
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1424
1424
|
openSidebar: {
|
|
1425
1425
|
name: string;
|
|
@@ -1608,7 +1608,7 @@ export declare const actionZoomToFit: {
|
|
|
1608
1608
|
name: string | null;
|
|
1609
1609
|
isResizing: boolean;
|
|
1610
1610
|
isRotating: boolean;
|
|
1611
|
-
openMenu: "
|
|
1611
|
+
openMenu: "canvas" | "shape" | null;
|
|
1612
1612
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1613
1613
|
openSidebar: {
|
|
1614
1614
|
name: string;
|
|
@@ -1799,7 +1799,7 @@ export declare const actionToggleTheme: {
|
|
|
1799
1799
|
zoom: Readonly<{
|
|
1800
1800
|
value: import("../types").NormalizedZoomValue;
|
|
1801
1801
|
}>;
|
|
1802
|
-
openMenu: "
|
|
1802
|
+
openMenu: "canvas" | "shape" | null;
|
|
1803
1803
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1804
1804
|
openSidebar: {
|
|
1805
1805
|
name: string;
|
|
@@ -1985,7 +1985,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1985
1985
|
zoom: Readonly<{
|
|
1986
1986
|
value: import("../types").NormalizedZoomValue;
|
|
1987
1987
|
}>;
|
|
1988
|
-
openMenu: "
|
|
1988
|
+
openMenu: "canvas" | "shape" | null;
|
|
1989
1989
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1990
1990
|
openSidebar: {
|
|
1991
1991
|
name: string;
|
|
@@ -2166,7 +2166,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2166
2166
|
zoom: Readonly<{
|
|
2167
2167
|
value: import("../types").NormalizedZoomValue;
|
|
2168
2168
|
}>;
|
|
2169
|
-
openMenu: "
|
|
2169
|
+
openMenu: "canvas" | "shape" | null;
|
|
2170
2170
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2171
2171
|
openSidebar: {
|
|
2172
2172
|
name: string;
|
|
@@ -2347,7 +2347,7 @@ export declare const actionToggleHandTool: {
|
|
|
2347
2347
|
zoom: Readonly<{
|
|
2348
2348
|
value: import("../types").NormalizedZoomValue;
|
|
2349
2349
|
}>;
|
|
2350
|
-
openMenu: "
|
|
2350
|
+
openMenu: "canvas" | "shape" | null;
|
|
2351
2351
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2352
2352
|
openSidebar: {
|
|
2353
2353
|
name: string;
|
|
@@ -76,7 +76,7 @@ export declare const actionCopy: {
|
|
|
76
76
|
zoom: Readonly<{
|
|
77
77
|
value: import("../types").NormalizedZoomValue;
|
|
78
78
|
}>;
|
|
79
|
-
openMenu: "
|
|
79
|
+
openMenu: "canvas" | "shape" | null;
|
|
80
80
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
81
|
openSidebar: {
|
|
82
82
|
name: string;
|
|
@@ -266,7 +266,7 @@ export declare const actionPaste: {
|
|
|
266
266
|
zoom: Readonly<{
|
|
267
267
|
value: import("../types").NormalizedZoomValue;
|
|
268
268
|
}>;
|
|
269
|
-
openMenu: "
|
|
269
|
+
openMenu: "canvas" | "shape" | null;
|
|
270
270
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
271
271
|
openSidebar: {
|
|
272
272
|
name: string;
|
|
@@ -457,7 +457,7 @@ export declare const actionCut: {
|
|
|
457
457
|
zoom: Readonly<{
|
|
458
458
|
value: import("../types").NormalizedZoomValue;
|
|
459
459
|
}>;
|
|
460
|
-
openMenu: "
|
|
460
|
+
openMenu: "canvas" | "shape" | null;
|
|
461
461
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
462
462
|
openSidebar: {
|
|
463
463
|
name: string;
|
|
@@ -664,7 +664,7 @@ export declare const actionCut: {
|
|
|
664
664
|
zoom: Readonly<{
|
|
665
665
|
value: import("../types").NormalizedZoomValue;
|
|
666
666
|
}>;
|
|
667
|
-
openMenu: "
|
|
667
|
+
openMenu: "canvas" | "shape" | null;
|
|
668
668
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
669
669
|
openSidebar: {
|
|
670
670
|
name: string;
|
|
@@ -846,7 +846,7 @@ export declare const actionCut: {
|
|
|
846
846
|
zoom: Readonly<{
|
|
847
847
|
value: import("../types").NormalizedZoomValue;
|
|
848
848
|
}>;
|
|
849
|
-
openMenu: "
|
|
849
|
+
openMenu: "canvas" | "shape" | null;
|
|
850
850
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
851
851
|
openSidebar: {
|
|
852
852
|
name: string;
|
|
@@ -1059,7 +1059,7 @@ export declare const actionCopyAsPng: {
|
|
|
1059
1059
|
zoom: Readonly<{
|
|
1060
1060
|
value: import("../types").NormalizedZoomValue;
|
|
1061
1061
|
}>;
|
|
1062
|
-
openMenu: "
|
|
1062
|
+
openMenu: "canvas" | "shape" | null;
|
|
1063
1063
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1064
1064
|
openSidebar: {
|
|
1065
1065
|
name: string;
|
|
@@ -79,7 +79,7 @@ export declare const actionToggleCropEditor: {
|
|
|
79
79
|
zoom: Readonly<{
|
|
80
80
|
value: import("../types").NormalizedZoomValue;
|
|
81
81
|
}>;
|
|
82
|
-
openMenu: "
|
|
82
|
+
openMenu: "canvas" | "shape" | null;
|
|
83
83
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
84
|
openSidebar: {
|
|
85
85
|
name: string;
|
|
@@ -80,7 +80,7 @@ export declare const actionDeleteSelected: {
|
|
|
80
80
|
zoom: Readonly<{
|
|
81
81
|
value: import("../types").NormalizedZoomValue;
|
|
82
82
|
}>;
|
|
83
|
-
openMenu: "
|
|
83
|
+
openMenu: "canvas" | "shape" | null;
|
|
84
84
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
85
85
|
openSidebar: {
|
|
86
86
|
name: string;
|
|
@@ -287,7 +287,7 @@ export declare const actionDeleteSelected: {
|
|
|
287
287
|
zoom: Readonly<{
|
|
288
288
|
value: import("../types").NormalizedZoomValue;
|
|
289
289
|
}>;
|
|
290
|
-
openMenu: "
|
|
290
|
+
openMenu: "canvas" | "shape" | null;
|
|
291
291
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
292
292
|
openSidebar: {
|
|
293
293
|
name: string;
|
|
@@ -469,7 +469,7 @@ export declare const actionDeleteSelected: {
|
|
|
469
469
|
zoom: Readonly<{
|
|
470
470
|
value: import("../types").NormalizedZoomValue;
|
|
471
471
|
}>;
|
|
472
|
-
openMenu: "
|
|
472
|
+
openMenu: "canvas" | "shape" | null;
|
|
473
473
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
474
474
|
openSidebar: {
|
|
475
475
|
name: string;
|
|
@@ -108,7 +108,7 @@ export declare const actionLinkToElement: {
|
|
|
108
108
|
zoom: Readonly<{
|
|
109
109
|
value: import("../types").NormalizedZoomValue;
|
|
110
110
|
}>;
|
|
111
|
-
openMenu: "
|
|
111
|
+
openMenu: "canvas" | "shape" | null;
|
|
112
112
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
113
113
|
openSidebar: {
|
|
114
114
|
name: string;
|
|
@@ -79,7 +79,7 @@ export declare const actionToggleElementLock: {
|
|
|
79
79
|
zoom: Readonly<{
|
|
80
80
|
value: import("../types").NormalizedZoomValue;
|
|
81
81
|
}>;
|
|
82
|
-
openMenu: "
|
|
82
|
+
openMenu: "canvas" | "shape" | null;
|
|
83
83
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
84
|
openSidebar: {
|
|
85
85
|
name: string;
|
|
@@ -271,7 +271,7 @@ export declare const actionUnlockAllElements: {
|
|
|
271
271
|
zoom: Readonly<{
|
|
272
272
|
value: import("../types").NormalizedZoomValue;
|
|
273
273
|
}>;
|
|
274
|
-
openMenu: "
|
|
274
|
+
openMenu: "canvas" | "shape" | null;
|
|
275
275
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
276
276
|
openSidebar: {
|
|
277
277
|
name: string;
|
|
@@ -76,7 +76,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
76
76
|
zoom: Readonly<{
|
|
77
77
|
value: import("../types").NormalizedZoomValue;
|
|
78
78
|
}>;
|
|
79
|
-
openMenu: "
|
|
79
|
+
openMenu: "canvas" | "shape" | null;
|
|
80
80
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
81
|
openSidebar: {
|
|
82
82
|
name: string;
|
|
@@ -74,7 +74,7 @@ export declare const actionChangeProjectName: {
|
|
|
74
74
|
zoom: Readonly<{
|
|
75
75
|
value: import("../types").NormalizedZoomValue;
|
|
76
76
|
}>;
|
|
77
|
-
openMenu: "
|
|
77
|
+
openMenu: "canvas" | "shape" | null;
|
|
78
78
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
79
79
|
openSidebar: {
|
|
80
80
|
name: string;
|
|
@@ -262,7 +262,7 @@ export declare const actionChangeExportScale: {
|
|
|
262
262
|
zoom: Readonly<{
|
|
263
263
|
value: import("../types").NormalizedZoomValue;
|
|
264
264
|
}>;
|
|
265
|
-
openMenu: "
|
|
265
|
+
openMenu: "canvas" | "shape" | null;
|
|
266
266
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
267
267
|
openSidebar: {
|
|
268
268
|
name: string;
|
|
@@ -450,7 +450,7 @@ export declare const actionChangeExportBackground: {
|
|
|
450
450
|
zoom: Readonly<{
|
|
451
451
|
value: import("../types").NormalizedZoomValue;
|
|
452
452
|
}>;
|
|
453
|
-
openMenu: "
|
|
453
|
+
openMenu: "canvas" | "shape" | null;
|
|
454
454
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
455
455
|
openSidebar: {
|
|
456
456
|
name: string;
|
|
@@ -638,7 +638,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
638
638
|
zoom: Readonly<{
|
|
639
639
|
value: import("../types").NormalizedZoomValue;
|
|
640
640
|
}>;
|
|
641
|
-
openMenu: "
|
|
641
|
+
openMenu: "canvas" | "shape" | null;
|
|
642
642
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
643
643
|
openSidebar: {
|
|
644
644
|
name: string;
|
|
@@ -832,7 +832,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
832
832
|
zoom: Readonly<{
|
|
833
833
|
value: import("../types").NormalizedZoomValue;
|
|
834
834
|
}>;
|
|
835
|
-
openMenu: "
|
|
835
|
+
openMenu: "canvas" | "shape" | null;
|
|
836
836
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
837
837
|
openSidebar: {
|
|
838
838
|
name: string;
|
|
@@ -1023,7 +1023,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1023
1023
|
zoom: Readonly<{
|
|
1024
1024
|
value: import("../types").NormalizedZoomValue;
|
|
1025
1025
|
}>;
|
|
1026
|
-
openMenu: "
|
|
1026
|
+
openMenu: "canvas" | "shape" | null;
|
|
1027
1027
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1028
1028
|
openSidebar: {
|
|
1029
1029
|
name: string;
|
|
@@ -1131,6 +1131,17 @@ export declare const actionLoadScene: {
|
|
|
1131
1131
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1132
1132
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
1133
1133
|
appState: {
|
|
1134
|
+
name: string | null;
|
|
1135
|
+
activeTool: {
|
|
1136
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
1137
|
+
locked: boolean;
|
|
1138
|
+
fromSelection: boolean;
|
|
1139
|
+
} & import("../types").ActiveTool;
|
|
1140
|
+
zoom: Readonly<{
|
|
1141
|
+
value: import("../types").NormalizedZoomValue;
|
|
1142
|
+
}>;
|
|
1143
|
+
scrollX: number;
|
|
1144
|
+
scrollY: number;
|
|
1134
1145
|
viewBackgroundColor: string;
|
|
1135
1146
|
frameRendering: {
|
|
1136
1147
|
enabled: boolean;
|
|
@@ -1138,12 +1149,6 @@ export declare const actionLoadScene: {
|
|
|
1138
1149
|
outline: boolean;
|
|
1139
1150
|
clip: boolean;
|
|
1140
1151
|
};
|
|
1141
|
-
name: string | null;
|
|
1142
|
-
zoom: Readonly<{
|
|
1143
|
-
value: import("../types").NormalizedZoomValue;
|
|
1144
|
-
}>;
|
|
1145
|
-
scrollX: number;
|
|
1146
|
-
scrollY: number;
|
|
1147
1152
|
viewModeEnabled: boolean;
|
|
1148
1153
|
openDialog: {
|
|
1149
1154
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -1213,17 +1218,6 @@ export declare const actionLoadScene: {
|
|
|
1213
1218
|
height: number;
|
|
1214
1219
|
}[];
|
|
1215
1220
|
}[];
|
|
1216
|
-
gridModeEnabled: boolean;
|
|
1217
|
-
objectsSnapModeEnabled: boolean;
|
|
1218
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1219
|
-
exportScale: number;
|
|
1220
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1221
|
-
gridSize: number;
|
|
1222
|
-
gridStep: number;
|
|
1223
|
-
currentHoveredFontFamily: number | null;
|
|
1224
|
-
hoveredElementIds: Readonly<{
|
|
1225
|
-
[id: string]: true;
|
|
1226
|
-
}>;
|
|
1227
1221
|
contextMenu: {
|
|
1228
1222
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1229
1223
|
top: number;
|
|
@@ -1236,16 +1230,12 @@ export declare const actionLoadScene: {
|
|
|
1236
1230
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1237
1231
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1238
1232
|
editingFrame: string | null;
|
|
1239
|
-
activeTool: {
|
|
1240
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1241
|
-
locked: boolean;
|
|
1242
|
-
fromSelection: boolean;
|
|
1243
|
-
} & import("../types").ActiveTool;
|
|
1244
1233
|
penMode: boolean;
|
|
1245
1234
|
penDetected: boolean;
|
|
1246
1235
|
exportBackground: boolean;
|
|
1247
1236
|
exportEmbedScene: boolean;
|
|
1248
1237
|
exportWithDarkMode: boolean;
|
|
1238
|
+
exportScale: number;
|
|
1249
1239
|
currentItemStrokeColor: string;
|
|
1250
1240
|
currentItemBackgroundColor: string;
|
|
1251
1241
|
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
@@ -1258,12 +1248,13 @@ export declare const actionLoadScene: {
|
|
|
1258
1248
|
currentItemTextAlign: string;
|
|
1259
1249
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1260
1250
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1251
|
+
currentHoveredFontFamily: number | null;
|
|
1261
1252
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1262
1253
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1263
1254
|
cursorButton: "up" | "down";
|
|
1264
1255
|
scrolledOutside: boolean;
|
|
1265
1256
|
isResizing: boolean;
|
|
1266
|
-
openMenu: "
|
|
1257
|
+
openMenu: "canvas" | "shape" | null;
|
|
1267
1258
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1268
1259
|
openSidebar: {
|
|
1269
1260
|
name: string;
|
|
@@ -1271,14 +1262,22 @@ export declare const actionLoadScene: {
|
|
|
1271
1262
|
} | null;
|
|
1272
1263
|
defaultSidebarDockedPreference: boolean;
|
|
1273
1264
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1265
|
+
hoveredElementIds: Readonly<{
|
|
1266
|
+
[id: string]: true;
|
|
1267
|
+
}>;
|
|
1274
1268
|
previousSelectedElementIds: {
|
|
1275
1269
|
[id: string]: true;
|
|
1276
1270
|
};
|
|
1271
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1272
|
+
shouldCacheIgnoreZoom: boolean;
|
|
1277
1273
|
toast: {
|
|
1278
1274
|
message: string;
|
|
1279
1275
|
closable?: boolean | undefined;
|
|
1280
1276
|
duration?: number | undefined;
|
|
1281
1277
|
} | null;
|
|
1278
|
+
gridSize: number;
|
|
1279
|
+
gridStep: number;
|
|
1280
|
+
gridModeEnabled: boolean;
|
|
1282
1281
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1283
1282
|
stats: {
|
|
1284
1283
|
open: boolean;
|
|
@@ -1297,6 +1296,7 @@ export declare const actionLoadScene: {
|
|
|
1297
1296
|
x: number;
|
|
1298
1297
|
y: number;
|
|
1299
1298
|
} | null;
|
|
1299
|
+
objectsSnapModeEnabled: boolean;
|
|
1300
1300
|
userToFollow: import("../types").UserToFollow | null;
|
|
1301
1301
|
followedBy: Set<import("../types").SocketId>;
|
|
1302
1302
|
};
|
|
@@ -1372,7 +1372,7 @@ export declare const actionLoadScene: {
|
|
|
1372
1372
|
zoom: Readonly<{
|
|
1373
1373
|
value: import("../types").NormalizedZoomValue;
|
|
1374
1374
|
}>;
|
|
1375
|
-
openMenu: "
|
|
1375
|
+
openMenu: "canvas" | "shape" | null;
|
|
1376
1376
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1377
1377
|
openSidebar: {
|
|
1378
1378
|
name: string;
|
|
@@ -1561,7 +1561,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1561
1561
|
zoom: Readonly<{
|
|
1562
1562
|
value: import("../types").NormalizedZoomValue;
|
|
1563
1563
|
}>;
|
|
1564
|
-
openMenu: "
|
|
1564
|
+
openMenu: "canvas" | "shape" | null;
|
|
1565
1565
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1566
1566
|
openSidebar: {
|
|
1567
1567
|
name: string;
|
|
@@ -75,7 +75,7 @@ export declare const actionFinalize: {
|
|
|
75
75
|
zoom: Readonly<{
|
|
76
76
|
value: import("../types").NormalizedZoomValue;
|
|
77
77
|
}>;
|
|
78
|
-
openMenu: "
|
|
78
|
+
openMenu: "canvas" | "shape" | null;
|
|
79
79
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
80
80
|
openSidebar: {
|
|
81
81
|
name: string;
|
|
@@ -254,7 +254,7 @@ export declare const actionFinalize: {
|
|
|
254
254
|
zoom: Readonly<{
|
|
255
255
|
value: import("../types").NormalizedZoomValue;
|
|
256
256
|
}>;
|
|
257
|
-
openMenu: "
|
|
257
|
+
openMenu: "canvas" | "shape" | null;
|
|
258
258
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
259
259
|
openSidebar: {
|
|
260
260
|
name: string;
|
|
@@ -78,7 +78,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
78
78
|
zoom: Readonly<{
|
|
79
79
|
value: import("../types").NormalizedZoomValue;
|
|
80
80
|
}>;
|
|
81
|
-
openMenu: "
|
|
81
|
+
openMenu: "canvas" | "shape" | null;
|
|
82
82
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
83
83
|
openSidebar: {
|
|
84
84
|
name: string;
|
|
@@ -270,7 +270,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
270
270
|
zoom: Readonly<{
|
|
271
271
|
value: import("../types").NormalizedZoomValue;
|
|
272
272
|
}>;
|
|
273
|
-
openMenu: "
|
|
273
|
+
openMenu: "canvas" | "shape" | null;
|
|
274
274
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
275
275
|
openSidebar: {
|
|
276
276
|
name: string;
|
|
@@ -460,7 +460,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
460
460
|
zoom: Readonly<{
|
|
461
461
|
value: import("../types").NormalizedZoomValue;
|
|
462
462
|
}>;
|
|
463
|
-
openMenu: "
|
|
463
|
+
openMenu: "canvas" | "shape" | null;
|
|
464
464
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
465
465
|
openSidebar: {
|
|
466
466
|
name: string;
|
|
@@ -650,7 +650,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
650
650
|
zoom: Readonly<{
|
|
651
651
|
value: import("../types").NormalizedZoomValue;
|
|
652
652
|
}>;
|
|
653
|
-
openMenu: "
|
|
653
|
+
openMenu: "canvas" | "shape" | null;
|
|
654
654
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
655
655
|
openSidebar: {
|
|
656
656
|
name: string;
|
|
@@ -88,7 +88,7 @@ export declare const actionGroup: {
|
|
|
88
88
|
zoom: Readonly<{
|
|
89
89
|
value: import("../types").NormalizedZoomValue;
|
|
90
90
|
}>;
|
|
91
|
-
openMenu: "
|
|
91
|
+
openMenu: "canvas" | "shape" | null;
|
|
92
92
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
93
93
|
openSidebar: {
|
|
94
94
|
name: string;
|
|
@@ -283,7 +283,7 @@ export declare const actionUngroup: {
|
|
|
283
283
|
zoom: Readonly<{
|
|
284
284
|
value: import("../types").NormalizedZoomValue;
|
|
285
285
|
}>;
|
|
286
|
-
openMenu: "
|
|
286
|
+
openMenu: "canvas" | "shape" | null;
|
|
287
287
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
288
288
|
openSidebar: {
|
|
289
289
|
name: string;
|
|
@@ -79,7 +79,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
79
79
|
zoom: Readonly<{
|
|
80
80
|
value: import("../types").NormalizedZoomValue;
|
|
81
81
|
}>;
|
|
82
|
-
openMenu: "
|
|
82
|
+
openMenu: "canvas" | "shape" | null;
|
|
83
83
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
84
|
openSidebar: {
|
|
85
85
|
name: string;
|
|
@@ -454,7 +454,7 @@ export declare const actionShortcuts: {
|
|
|
454
454
|
zoom: Readonly<{
|
|
455
455
|
value: import("../types").NormalizedZoomValue;
|
|
456
456
|
}>;
|
|
457
|
-
openMenu: "
|
|
457
|
+
openMenu: "canvas" | "shape" | null;
|
|
458
458
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
459
459
|
openSidebar: {
|
|
460
460
|
name: string;
|
|
@@ -77,7 +77,7 @@ export declare const actionGoToCollaborator: {
|
|
|
77
77
|
zoom: Readonly<{
|
|
78
78
|
value: import("../types").NormalizedZoomValue;
|
|
79
79
|
}>;
|
|
80
|
-
openMenu: "
|
|
80
|
+
openMenu: "canvas" | "shape" | null;
|
|
81
81
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
82
|
openSidebar: {
|
|
83
83
|
name: string;
|