@zsviczian/excalidraw 0.18.0-11 → 0.18.0-13
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 +103 -70
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +16 -0
- package/dist/styles.production.css +1 -0
- package/package.json +1 -1
- package/types/common/src/constants.d.ts +1 -0
- package/types/{excalidraw/scene → element/src}/Scene.d.ts +8 -11
- package/types/element/src/align.d.ts +3 -3
- package/types/element/src/binding.d.ts +18 -10
- package/types/element/src/dragElements.d.ts +3 -2
- 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 +2 -2
- package/types/element/src/frame.d.ts +1 -1
- package/types/element/src/linearElementEditor.d.ts +13 -13
- package/types/element/src/mutateElement.d.ts +10 -2
- package/types/element/src/newElement.d.ts +2 -2
- package/types/element/src/resizeElements.d.ts +5 -5
- package/types/element/src/sizeHelpers.d.ts +0 -1
- package/types/element/src/textElement.d.ts +4 -3
- package/types/element/src/typeChecks.d.ts +3 -0
- package/types/element/src/types.d.ts +3 -0
- package/types/element/src/zindex.d.ts +3 -3
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
- package/types/excalidraw/actions/actionBoundText.d.ts +2 -2
- package/types/excalidraw/actions/actionCanvas.d.ts +30 -30
- package/types/excalidraw/actions/actionClipboard.d.ts +6 -6
- package/types/excalidraw/actions/actionCropEditor.d.ts +1 -1
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +3 -3
- package/types/excalidraw/actions/actionElementLink.d.ts +1 -1
- package/types/excalidraw/actions/actionElementLock.d.ts +2 -2
- package/types/excalidraw/actions/actionEmbeddable.d.ts +1 -1
- package/types/excalidraw/actions/actionExport.d.ts +32 -32
- package/types/excalidraw/actions/actionFinalize.d.ts +2 -2
- package/types/excalidraw/actions/actionFrame.d.ts +6 -6
- package/types/excalidraw/actions/actionGroup.d.ts +2 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
- package/types/excalidraw/actions/actionMenu.d.ts +1 -1
- package/types/excalidraw/actions/actionNavigate.d.ts +1 -1
- package/types/excalidraw/actions/actionProperties.d.ts +17 -17
- package/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
- package/types/excalidraw/actions/actionStyles.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +2 -2
- package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
- package/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/types/excalidraw/actions/types.d.ts +2 -2
- package/types/excalidraw/appState.d.ts +15 -15
- package/types/excalidraw/components/App.d.ts +6 -1
- package/types/excalidraw/components/ConvertElementTypePopup.d.ts +49 -0
- package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
- 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/Dimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- 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/hyperlink/Hyperlink.d.ts +3 -2
- package/types/excalidraw/editor-jotai.d.ts +6 -6
- package/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/types/excalidraw/scene/Renderer.d.ts +1 -1
- package/types/excalidraw/scene/types.d.ts +2 -0
- package/types/excalidraw/types.d.ts +2 -0
- package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
|
@@ -65,6 +65,12 @@ export declare const actionClearCanvas: {
|
|
|
65
65
|
allowWheelZoom: boolean | undefined;
|
|
66
66
|
pinnedScripts: string[] | undefined;
|
|
67
67
|
customPens: any[] | undefined;
|
|
68
|
+
name: string | null;
|
|
69
|
+
zoom: Readonly<{
|
|
70
|
+
value: import("../types").NormalizedZoomValue;
|
|
71
|
+
}>;
|
|
72
|
+
scrollX: number;
|
|
73
|
+
scrollY: number;
|
|
68
74
|
viewBackgroundColor: string;
|
|
69
75
|
frameRendering: {
|
|
70
76
|
enabled: boolean;
|
|
@@ -77,12 +83,6 @@ export declare const actionClearCanvas: {
|
|
|
77
83
|
fill: string;
|
|
78
84
|
nameColor: string;
|
|
79
85
|
};
|
|
80
|
-
name: string | null;
|
|
81
|
-
zoom: Readonly<{
|
|
82
|
-
value: import("../types").NormalizedZoomValue;
|
|
83
|
-
}>;
|
|
84
|
-
scrollX: number;
|
|
85
|
-
scrollY: number;
|
|
86
86
|
viewModeEnabled: boolean;
|
|
87
87
|
openDialog: {
|
|
88
88
|
name: "help" | "imageExport" | "jsonExport";
|
|
@@ -160,15 +160,6 @@ export declare const actionClearCanvas: {
|
|
|
160
160
|
height: number;
|
|
161
161
|
}[];
|
|
162
162
|
}[];
|
|
163
|
-
objectsSnapModeEnabled: boolean;
|
|
164
|
-
shouldCacheIgnoreZoom: boolean;
|
|
165
|
-
exportScale: number;
|
|
166
|
-
selectedElementsAreBeingDragged: boolean;
|
|
167
|
-
linkOpacity: number;
|
|
168
|
-
currentHoveredFontFamily: number | null;
|
|
169
|
-
hoveredElementIds: Readonly<{
|
|
170
|
-
[id: string]: true;
|
|
171
|
-
}>;
|
|
172
163
|
contextMenu: {
|
|
173
164
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
174
165
|
top: number;
|
|
@@ -182,6 +173,7 @@ export declare const actionClearCanvas: {
|
|
|
182
173
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
183
174
|
editingFrame: string | null;
|
|
184
175
|
exportWithDarkMode: boolean;
|
|
176
|
+
exportScale: number;
|
|
185
177
|
currentItemStrokeColor: string;
|
|
186
178
|
currentItemBackgroundColor: string;
|
|
187
179
|
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
@@ -194,12 +186,13 @@ export declare const actionClearCanvas: {
|
|
|
194
186
|
currentItemTextAlign: string;
|
|
195
187
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
196
188
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
189
|
+
currentHoveredFontFamily: number | null;
|
|
197
190
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
198
191
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
199
192
|
cursorButton: "up" | "down";
|
|
200
193
|
scrolledOutside: boolean;
|
|
201
194
|
isResizing: boolean;
|
|
202
|
-
openMenu: "
|
|
195
|
+
openMenu: "canvas" | "shape" | null;
|
|
203
196
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
204
197
|
openSidebar: {
|
|
205
198
|
name: string;
|
|
@@ -207,9 +200,14 @@ export declare const actionClearCanvas: {
|
|
|
207
200
|
} | null;
|
|
208
201
|
defaultSidebarDockedPreference: boolean;
|
|
209
202
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
203
|
+
hoveredElementIds: Readonly<{
|
|
204
|
+
[id: string]: true;
|
|
205
|
+
}>;
|
|
210
206
|
previousSelectedElementIds: {
|
|
211
207
|
[id: string]: true;
|
|
212
208
|
};
|
|
209
|
+
selectedElementsAreBeingDragged: boolean;
|
|
210
|
+
shouldCacheIgnoreZoom: boolean;
|
|
213
211
|
toast: {
|
|
214
212
|
message: string;
|
|
215
213
|
closable?: boolean | undefined;
|
|
@@ -218,6 +216,7 @@ export declare const actionClearCanvas: {
|
|
|
218
216
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
219
217
|
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
220
218
|
showHyperlinkPopup: false | "editor" | "info";
|
|
219
|
+
linkOpacity: number;
|
|
221
220
|
currentStrokeOptions?: any;
|
|
222
221
|
resetCustomPen?: any;
|
|
223
222
|
dynamicStyle: {
|
|
@@ -228,6 +227,7 @@ export declare const actionClearCanvas: {
|
|
|
228
227
|
x: number;
|
|
229
228
|
y: number;
|
|
230
229
|
} | null;
|
|
230
|
+
objectsSnapModeEnabled: boolean;
|
|
231
231
|
userToFollow: import("../types").UserToFollow | null;
|
|
232
232
|
followedBy: Set<import("../types").SocketId>;
|
|
233
233
|
};
|
|
@@ -314,7 +314,7 @@ export declare const actionZoomIn: {
|
|
|
314
314
|
name: string | null;
|
|
315
315
|
isResizing: boolean;
|
|
316
316
|
isRotating: boolean;
|
|
317
|
-
openMenu: "
|
|
317
|
+
openMenu: "canvas" | "shape" | null;
|
|
318
318
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
319
319
|
openSidebar: {
|
|
320
320
|
name: string;
|
|
@@ -540,7 +540,7 @@ export declare const actionZoomOut: {
|
|
|
540
540
|
name: string | null;
|
|
541
541
|
isResizing: boolean;
|
|
542
542
|
isRotating: boolean;
|
|
543
|
-
openMenu: "
|
|
543
|
+
openMenu: "canvas" | "shape" | null;
|
|
544
544
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
545
545
|
openSidebar: {
|
|
546
546
|
name: string;
|
|
@@ -766,7 +766,7 @@ export declare const actionResetZoom: {
|
|
|
766
766
|
name: string | null;
|
|
767
767
|
isResizing: boolean;
|
|
768
768
|
isRotating: boolean;
|
|
769
|
-
openMenu: "
|
|
769
|
+
openMenu: "canvas" | "shape" | null;
|
|
770
770
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
771
771
|
openSidebar: {
|
|
772
772
|
name: string;
|
|
@@ -998,7 +998,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
998
998
|
name: string | null;
|
|
999
999
|
isResizing: boolean;
|
|
1000
1000
|
isRotating: boolean;
|
|
1001
|
-
openMenu: "
|
|
1001
|
+
openMenu: "canvas" | "shape" | null;
|
|
1002
1002
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1003
1003
|
openSidebar: {
|
|
1004
1004
|
name: string;
|
|
@@ -1226,7 +1226,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1226
1226
|
name: string | null;
|
|
1227
1227
|
isResizing: boolean;
|
|
1228
1228
|
isRotating: boolean;
|
|
1229
|
-
openMenu: "
|
|
1229
|
+
openMenu: "canvas" | "shape" | null;
|
|
1230
1230
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1231
1231
|
openSidebar: {
|
|
1232
1232
|
name: string;
|
|
@@ -1446,7 +1446,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1446
1446
|
name: string | null;
|
|
1447
1447
|
isResizing: boolean;
|
|
1448
1448
|
isRotating: boolean;
|
|
1449
|
-
openMenu: "
|
|
1449
|
+
openMenu: "canvas" | "shape" | null;
|
|
1450
1450
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1451
1451
|
openSidebar: {
|
|
1452
1452
|
name: string;
|
|
@@ -1670,7 +1670,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1670
1670
|
name: string | null;
|
|
1671
1671
|
isResizing: boolean;
|
|
1672
1672
|
isRotating: boolean;
|
|
1673
|
-
openMenu: "
|
|
1673
|
+
openMenu: "canvas" | "shape" | null;
|
|
1674
1674
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1675
1675
|
openSidebar: {
|
|
1676
1676
|
name: string;
|
|
@@ -1895,7 +1895,7 @@ export declare const actionZoomToFit: {
|
|
|
1895
1895
|
name: string | null;
|
|
1896
1896
|
isResizing: boolean;
|
|
1897
1897
|
isRotating: boolean;
|
|
1898
|
-
openMenu: "
|
|
1898
|
+
openMenu: "canvas" | "shape" | null;
|
|
1899
1899
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1900
1900
|
openSidebar: {
|
|
1901
1901
|
name: string;
|
|
@@ -2122,7 +2122,7 @@ export declare const actionToggleTheme: {
|
|
|
2122
2122
|
zoom: Readonly<{
|
|
2123
2123
|
value: import("../types").NormalizedZoomValue;
|
|
2124
2124
|
}>;
|
|
2125
|
-
openMenu: "
|
|
2125
|
+
openMenu: "canvas" | "shape" | null;
|
|
2126
2126
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2127
2127
|
openSidebar: {
|
|
2128
2128
|
name: string;
|
|
@@ -2344,7 +2344,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2344
2344
|
zoom: Readonly<{
|
|
2345
2345
|
value: import("../types").NormalizedZoomValue;
|
|
2346
2346
|
}>;
|
|
2347
|
-
openMenu: "
|
|
2347
|
+
openMenu: "canvas" | "shape" | null;
|
|
2348
2348
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2349
2349
|
openSidebar: {
|
|
2350
2350
|
name: string;
|
|
@@ -2561,7 +2561,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2561
2561
|
zoom: Readonly<{
|
|
2562
2562
|
value: import("../types").NormalizedZoomValue;
|
|
2563
2563
|
}>;
|
|
2564
|
-
openMenu: "
|
|
2564
|
+
openMenu: "canvas" | "shape" | null;
|
|
2565
2565
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2566
2566
|
openSidebar: {
|
|
2567
2567
|
name: string;
|
|
@@ -2778,7 +2778,7 @@ export declare const actionToggleHandTool: {
|
|
|
2778
2778
|
zoom: Readonly<{
|
|
2779
2779
|
value: import("../types").NormalizedZoomValue;
|
|
2780
2780
|
}>;
|
|
2781
|
-
openMenu: "
|
|
2781
|
+
openMenu: "canvas" | "shape" | null;
|
|
2782
2782
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2783
2783
|
openSidebar: {
|
|
2784
2784
|
name: string;
|
|
@@ -2994,7 +2994,7 @@ export declare const actionToggleLaserPointer: {
|
|
|
2994
2994
|
zoom: Readonly<{
|
|
2995
2995
|
value: import("../types").NormalizedZoomValue;
|
|
2996
2996
|
}>;
|
|
2997
|
-
openMenu: "
|
|
2997
|
+
openMenu: "canvas" | "shape" | null;
|
|
2998
2998
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2999
2999
|
openSidebar: {
|
|
3000
3000
|
name: string;
|
|
@@ -3207,7 +3207,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
3207
3207
|
name: string | null;
|
|
3208
3208
|
isResizing: boolean;
|
|
3209
3209
|
isRotating: boolean;
|
|
3210
|
-
openMenu: "
|
|
3210
|
+
openMenu: "canvas" | "shape" | null;
|
|
3211
3211
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
3212
3212
|
openSidebar: {
|
|
3213
3213
|
name: string;
|
|
@@ -75,7 +75,7 @@ export declare const actionCopy: {
|
|
|
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;
|
|
@@ -301,7 +301,7 @@ export declare const actionPaste: {
|
|
|
301
301
|
zoom: Readonly<{
|
|
302
302
|
value: import("../types").NormalizedZoomValue;
|
|
303
303
|
}>;
|
|
304
|
-
openMenu: "
|
|
304
|
+
openMenu: "canvas" | "shape" | null;
|
|
305
305
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
306
306
|
openSidebar: {
|
|
307
307
|
name: string;
|
|
@@ -528,7 +528,7 @@ export declare const actionCut: {
|
|
|
528
528
|
zoom: Readonly<{
|
|
529
529
|
value: import("../types").NormalizedZoomValue;
|
|
530
530
|
}>;
|
|
531
|
-
openMenu: "
|
|
531
|
+
openMenu: "canvas" | "shape" | null;
|
|
532
532
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
533
533
|
openSidebar: {
|
|
534
534
|
name: string;
|
|
@@ -771,7 +771,7 @@ export declare const actionCut: {
|
|
|
771
771
|
zoom: Readonly<{
|
|
772
772
|
value: import("../types").NormalizedZoomValue;
|
|
773
773
|
}>;
|
|
774
|
-
openMenu: "
|
|
774
|
+
openMenu: "canvas" | "shape" | null;
|
|
775
775
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
776
776
|
openSidebar: {
|
|
777
777
|
name: string;
|
|
@@ -989,7 +989,7 @@ export declare const actionCut: {
|
|
|
989
989
|
zoom: Readonly<{
|
|
990
990
|
value: import("../types").NormalizedZoomValue;
|
|
991
991
|
}>;
|
|
992
|
-
openMenu: "
|
|
992
|
+
openMenu: "canvas" | "shape" | null;
|
|
993
993
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
994
994
|
openSidebar: {
|
|
995
995
|
name: string;
|
|
@@ -1238,7 +1238,7 @@ export declare const actionCopyAsPng: {
|
|
|
1238
1238
|
zoom: Readonly<{
|
|
1239
1239
|
value: import("../types").NormalizedZoomValue;
|
|
1240
1240
|
}>;
|
|
1241
|
-
openMenu: "
|
|
1241
|
+
openMenu: "canvas" | "shape" | null;
|
|
1242
1242
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1243
1243
|
openSidebar: {
|
|
1244
1244
|
name: string;
|
|
@@ -78,7 +78,7 @@ export declare const actionToggleCropEditor: {
|
|
|
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;
|
|
@@ -79,7 +79,7 @@ export declare const actionDeleteSelected: {
|
|
|
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;
|
|
@@ -322,7 +322,7 @@ export declare const actionDeleteSelected: {
|
|
|
322
322
|
zoom: Readonly<{
|
|
323
323
|
value: import("../types").NormalizedZoomValue;
|
|
324
324
|
}>;
|
|
325
|
-
openMenu: "
|
|
325
|
+
openMenu: "canvas" | "shape" | null;
|
|
326
326
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
327
327
|
openSidebar: {
|
|
328
328
|
name: string;
|
|
@@ -540,7 +540,7 @@ export declare const actionDeleteSelected: {
|
|
|
540
540
|
zoom: Readonly<{
|
|
541
541
|
value: import("../types").NormalizedZoomValue;
|
|
542
542
|
}>;
|
|
543
|
-
openMenu: "
|
|
543
|
+
openMenu: "canvas" | "shape" | null;
|
|
544
544
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
545
545
|
openSidebar: {
|
|
546
546
|
name: string;
|
|
@@ -107,7 +107,7 @@ export declare const actionLinkToElement: {
|
|
|
107
107
|
zoom: Readonly<{
|
|
108
108
|
value: import("../types").NormalizedZoomValue;
|
|
109
109
|
}>;
|
|
110
|
-
openMenu: "
|
|
110
|
+
openMenu: "canvas" | "shape" | null;
|
|
111
111
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
112
112
|
openSidebar: {
|
|
113
113
|
name: string;
|
|
@@ -78,7 +78,7 @@ export declare const actionToggleElementLock: {
|
|
|
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;
|
|
@@ -306,7 +306,7 @@ export declare const actionUnlockAllElements: {
|
|
|
306
306
|
zoom: Readonly<{
|
|
307
307
|
value: import("../types").NormalizedZoomValue;
|
|
308
308
|
}>;
|
|
309
|
-
openMenu: "
|
|
309
|
+
openMenu: "canvas" | "shape" | null;
|
|
310
310
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
311
311
|
openSidebar: {
|
|
312
312
|
name: string;
|
|
@@ -75,7 +75,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
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;
|
|
@@ -73,7 +73,7 @@ export declare const actionChangeProjectName: {
|
|
|
73
73
|
zoom: Readonly<{
|
|
74
74
|
value: import("../types").NormalizedZoomValue;
|
|
75
75
|
}>;
|
|
76
|
-
openMenu: "
|
|
76
|
+
openMenu: "canvas" | "shape" | null;
|
|
77
77
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
78
78
|
openSidebar: {
|
|
79
79
|
name: string;
|
|
@@ -297,7 +297,7 @@ export declare const actionChangeExportScale: {
|
|
|
297
297
|
zoom: Readonly<{
|
|
298
298
|
value: import("../types").NormalizedZoomValue;
|
|
299
299
|
}>;
|
|
300
|
-
openMenu: "
|
|
300
|
+
openMenu: "canvas" | "shape" | null;
|
|
301
301
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
302
302
|
openSidebar: {
|
|
303
303
|
name: string;
|
|
@@ -521,7 +521,7 @@ export declare const actionChangeExportBackground: {
|
|
|
521
521
|
zoom: Readonly<{
|
|
522
522
|
value: import("../types").NormalizedZoomValue;
|
|
523
523
|
}>;
|
|
524
|
-
openMenu: "
|
|
524
|
+
openMenu: "canvas" | "shape" | null;
|
|
525
525
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
526
526
|
openSidebar: {
|
|
527
527
|
name: string;
|
|
@@ -745,7 +745,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
745
745
|
zoom: Readonly<{
|
|
746
746
|
value: import("../types").NormalizedZoomValue;
|
|
747
747
|
}>;
|
|
748
|
-
openMenu: "
|
|
748
|
+
openMenu: "canvas" | "shape" | null;
|
|
749
749
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
750
750
|
openSidebar: {
|
|
751
751
|
name: string;
|
|
@@ -975,7 +975,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
975
975
|
zoom: Readonly<{
|
|
976
976
|
value: import("../types").NormalizedZoomValue;
|
|
977
977
|
}>;
|
|
978
|
-
openMenu: "
|
|
978
|
+
openMenu: "canvas" | "shape" | null;
|
|
979
979
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
980
980
|
openSidebar: {
|
|
981
981
|
name: string;
|
|
@@ -1202,7 +1202,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1202
1202
|
zoom: Readonly<{
|
|
1203
1203
|
value: import("../types").NormalizedZoomValue;
|
|
1204
1204
|
}>;
|
|
1205
|
-
openMenu: "
|
|
1205
|
+
openMenu: "canvas" | "shape" | null;
|
|
1206
1206
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1207
1207
|
openSidebar: {
|
|
1208
1208
|
name: string;
|
|
@@ -1346,6 +1346,17 @@ export declare const actionLoadScene: {
|
|
|
1346
1346
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1347
1347
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
1348
1348
|
appState: {
|
|
1349
|
+
name: string | null;
|
|
1350
|
+
activeTool: {
|
|
1351
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
1352
|
+
locked: boolean;
|
|
1353
|
+
fromSelection: boolean;
|
|
1354
|
+
} & import("../types").ActiveTool;
|
|
1355
|
+
zoom: Readonly<{
|
|
1356
|
+
value: import("../types").NormalizedZoomValue;
|
|
1357
|
+
}>;
|
|
1358
|
+
scrollX: number;
|
|
1359
|
+
scrollY: number;
|
|
1349
1360
|
viewBackgroundColor: string;
|
|
1350
1361
|
frameRendering: {
|
|
1351
1362
|
enabled: boolean;
|
|
@@ -1358,12 +1369,6 @@ export declare const actionLoadScene: {
|
|
|
1358
1369
|
fill: string;
|
|
1359
1370
|
nameColor: string;
|
|
1360
1371
|
};
|
|
1361
|
-
name: string | null;
|
|
1362
|
-
zoom: Readonly<{
|
|
1363
|
-
value: import("../types").NormalizedZoomValue;
|
|
1364
|
-
}>;
|
|
1365
|
-
scrollX: number;
|
|
1366
|
-
scrollY: number;
|
|
1367
1372
|
viewModeEnabled: boolean;
|
|
1368
1373
|
openDialog: {
|
|
1369
1374
|
name: "help" | "imageExport" | "jsonExport";
|
|
@@ -1442,18 +1447,6 @@ export declare const actionLoadScene: {
|
|
|
1442
1447
|
height: number;
|
|
1443
1448
|
}[];
|
|
1444
1449
|
}[];
|
|
1445
|
-
gridModeEnabled: boolean;
|
|
1446
|
-
objectsSnapModeEnabled: boolean;
|
|
1447
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1448
|
-
exportScale: number;
|
|
1449
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1450
|
-
gridSize: number;
|
|
1451
|
-
gridStep: number;
|
|
1452
|
-
linkOpacity: number;
|
|
1453
|
-
currentHoveredFontFamily: number | null;
|
|
1454
|
-
hoveredElementIds: Readonly<{
|
|
1455
|
-
[id: string]: true;
|
|
1456
|
-
}>;
|
|
1457
1450
|
contextMenu: {
|
|
1458
1451
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1459
1452
|
top: number;
|
|
@@ -1466,16 +1459,12 @@ export declare const actionLoadScene: {
|
|
|
1466
1459
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1467
1460
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1468
1461
|
editingFrame: string | null;
|
|
1469
|
-
activeTool: {
|
|
1470
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1471
|
-
locked: boolean;
|
|
1472
|
-
fromSelection: boolean;
|
|
1473
|
-
} & import("../types").ActiveTool;
|
|
1474
1462
|
penMode: boolean;
|
|
1475
1463
|
penDetected: boolean;
|
|
1476
1464
|
exportBackground: boolean;
|
|
1477
1465
|
exportEmbedScene: boolean;
|
|
1478
1466
|
exportWithDarkMode: boolean;
|
|
1467
|
+
exportScale: number;
|
|
1479
1468
|
currentItemStrokeColor: string;
|
|
1480
1469
|
currentItemBackgroundColor: string;
|
|
1481
1470
|
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
@@ -1488,12 +1477,13 @@ export declare const actionLoadScene: {
|
|
|
1488
1477
|
currentItemTextAlign: string;
|
|
1489
1478
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1490
1479
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1480
|
+
currentHoveredFontFamily: number | null;
|
|
1491
1481
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1492
1482
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1493
1483
|
cursorButton: "up" | "down";
|
|
1494
1484
|
scrolledOutside: boolean;
|
|
1495
1485
|
isResizing: boolean;
|
|
1496
|
-
openMenu: "
|
|
1486
|
+
openMenu: "canvas" | "shape" | null;
|
|
1497
1487
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1498
1488
|
openSidebar: {
|
|
1499
1489
|
name: string;
|
|
@@ -1501,14 +1491,22 @@ export declare const actionLoadScene: {
|
|
|
1501
1491
|
} | null;
|
|
1502
1492
|
defaultSidebarDockedPreference: boolean;
|
|
1503
1493
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1494
|
+
hoveredElementIds: Readonly<{
|
|
1495
|
+
[id: string]: true;
|
|
1496
|
+
}>;
|
|
1504
1497
|
previousSelectedElementIds: {
|
|
1505
1498
|
[id: string]: true;
|
|
1506
1499
|
};
|
|
1500
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1501
|
+
shouldCacheIgnoreZoom: boolean;
|
|
1507
1502
|
toast: {
|
|
1508
1503
|
message: string;
|
|
1509
1504
|
closable?: boolean | undefined;
|
|
1510
1505
|
duration?: number | undefined;
|
|
1511
1506
|
} | null;
|
|
1507
|
+
gridSize: number;
|
|
1508
|
+
gridStep: number;
|
|
1509
|
+
gridModeEnabled: boolean;
|
|
1512
1510
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1513
1511
|
stats: {
|
|
1514
1512
|
open: boolean;
|
|
@@ -1523,6 +1521,7 @@ export declare const actionLoadScene: {
|
|
|
1523
1521
|
data: import("../charts").Spreadsheet;
|
|
1524
1522
|
};
|
|
1525
1523
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1524
|
+
linkOpacity: number;
|
|
1526
1525
|
trayModeEnabled: boolean;
|
|
1527
1526
|
colorPalette?: {
|
|
1528
1527
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -1548,6 +1547,7 @@ export declare const actionLoadScene: {
|
|
|
1548
1547
|
x: number;
|
|
1549
1548
|
y: number;
|
|
1550
1549
|
} | null;
|
|
1550
|
+
objectsSnapModeEnabled: boolean;
|
|
1551
1551
|
userToFollow: import("../types").UserToFollow | null;
|
|
1552
1552
|
followedBy: Set<import("../types").SocketId>;
|
|
1553
1553
|
};
|
|
@@ -1623,7 +1623,7 @@ export declare const actionLoadScene: {
|
|
|
1623
1623
|
zoom: Readonly<{
|
|
1624
1624
|
value: import("../types").NormalizedZoomValue;
|
|
1625
1625
|
}>;
|
|
1626
|
-
openMenu: "
|
|
1626
|
+
openMenu: "canvas" | "shape" | null;
|
|
1627
1627
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1628
1628
|
openSidebar: {
|
|
1629
1629
|
name: string;
|
|
@@ -1848,7 +1848,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1848
1848
|
zoom: Readonly<{
|
|
1849
1849
|
value: import("../types").NormalizedZoomValue;
|
|
1850
1850
|
}>;
|
|
1851
|
-
openMenu: "
|
|
1851
|
+
openMenu: "canvas" | "shape" | null;
|
|
1852
1852
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1853
1853
|
openSidebar: {
|
|
1854
1854
|
name: string;
|
|
@@ -74,7 +74,7 @@ export declare const actionFinalize: {
|
|
|
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;
|
|
@@ -289,7 +289,7 @@ export declare const actionFinalize: {
|
|
|
289
289
|
zoom: Readonly<{
|
|
290
290
|
value: import("../types").NormalizedZoomValue;
|
|
291
291
|
}>;
|
|
292
|
-
openMenu: "
|
|
292
|
+
openMenu: "canvas" | "shape" | null;
|
|
293
293
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
294
294
|
openSidebar: {
|
|
295
295
|
name: string;
|
|
@@ -77,7 +77,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
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;
|
|
@@ -305,7 +305,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
305
305
|
zoom: Readonly<{
|
|
306
306
|
value: import("../types").NormalizedZoomValue;
|
|
307
307
|
}>;
|
|
308
|
-
openMenu: "
|
|
308
|
+
openMenu: "canvas" | "shape" | null;
|
|
309
309
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
310
310
|
openSidebar: {
|
|
311
311
|
name: string;
|
|
@@ -531,7 +531,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
531
531
|
zoom: Readonly<{
|
|
532
532
|
value: import("../types").NormalizedZoomValue;
|
|
533
533
|
}>;
|
|
534
|
-
openMenu: "
|
|
534
|
+
openMenu: "canvas" | "shape" | null;
|
|
535
535
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
536
536
|
openSidebar: {
|
|
537
537
|
name: string;
|
|
@@ -757,7 +757,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
757
757
|
zoom: Readonly<{
|
|
758
758
|
value: import("../types").NormalizedZoomValue;
|
|
759
759
|
}>;
|
|
760
|
-
openMenu: "
|
|
760
|
+
openMenu: "canvas" | "shape" | null;
|
|
761
761
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
762
762
|
openSidebar: {
|
|
763
763
|
name: string;
|
|
@@ -913,7 +913,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
913
913
|
};
|
|
914
914
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
915
915
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
916
|
-
elements: ((Readonly<{
|
|
916
|
+
elements: (import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement> | (Readonly<{
|
|
917
917
|
id: string;
|
|
918
918
|
x: number;
|
|
919
919
|
y: number;
|
|
@@ -1390,7 +1390,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1390
1390
|
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1391
1391
|
}> & {
|
|
1392
1392
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1393
|
-
})
|
|
1393
|
+
}))[];
|
|
1394
1394
|
appState: {
|
|
1395
1395
|
selectedElementIds: {
|
|
1396
1396
|
[x: string]: true;
|
|
@@ -87,7 +87,7 @@ export declare const actionGroup: {
|
|
|
87
87
|
zoom: Readonly<{
|
|
88
88
|
value: import("../types").NormalizedZoomValue;
|
|
89
89
|
}>;
|
|
90
|
-
openMenu: "
|
|
90
|
+
openMenu: "canvas" | "shape" | null;
|
|
91
91
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
92
92
|
openSidebar: {
|
|
93
93
|
name: string;
|
|
@@ -318,7 +318,7 @@ export declare const actionUngroup: {
|
|
|
318
318
|
zoom: Readonly<{
|
|
319
319
|
value: import("../types").NormalizedZoomValue;
|
|
320
320
|
}>;
|
|
321
|
-
openMenu: "
|
|
321
|
+
openMenu: "canvas" | "shape" | null;
|
|
322
322
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
323
323
|
openSidebar: {
|
|
324
324
|
name: string;
|
|
@@ -78,7 +78,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
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;
|
|
@@ -525,7 +525,7 @@ export declare const actionShortcuts: {
|
|
|
525
525
|
zoom: Readonly<{
|
|
526
526
|
value: import("../types").NormalizedZoomValue;
|
|
527
527
|
}>;
|
|
528
|
-
openMenu: "
|
|
528
|
+
openMenu: "canvas" | "shape" | null;
|
|
529
529
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
530
530
|
openSidebar: {
|
|
531
531
|
name: string;
|