@zsviczian/excalidraw 0.18.0-11 → 0.18.0-12
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 +61 -61
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- 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 +9 -9
- 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/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/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/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/appState.d.ts +15 -15
- package/types/excalidraw/components/App.d.ts +4 -1
- 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 -4
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- 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 +1 -0
|
@@ -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;
|
|
@@ -76,7 +76,7 @@ export declare const actionGoToCollaborator: {
|
|
|
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;
|
|
@@ -95,7 +95,7 @@ export declare const actionChangeFillStyle: {
|
|
|
95
95
|
zoom: Readonly<{
|
|
96
96
|
value: import("../types").NormalizedZoomValue;
|
|
97
97
|
}>;
|
|
98
|
-
openMenu: "
|
|
98
|
+
openMenu: "canvas" | "shape" | null;
|
|
99
99
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
100
100
|
openSidebar: {
|
|
101
101
|
name: string;
|
|
@@ -317,7 +317,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
317
317
|
zoom: Readonly<{
|
|
318
318
|
value: import("../types").NormalizedZoomValue;
|
|
319
319
|
}>;
|
|
320
|
-
openMenu: "
|
|
320
|
+
openMenu: "canvas" | "shape" | null;
|
|
321
321
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
322
322
|
openSidebar: {
|
|
323
323
|
name: string;
|
|
@@ -539,7 +539,7 @@ export declare const actionChangeSloppiness: {
|
|
|
539
539
|
zoom: Readonly<{
|
|
540
540
|
value: import("../types").NormalizedZoomValue;
|
|
541
541
|
}>;
|
|
542
|
-
openMenu: "
|
|
542
|
+
openMenu: "canvas" | "shape" | null;
|
|
543
543
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
544
544
|
openSidebar: {
|
|
545
545
|
name: string;
|
|
@@ -761,7 +761,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
761
761
|
zoom: Readonly<{
|
|
762
762
|
value: import("../types").NormalizedZoomValue;
|
|
763
763
|
}>;
|
|
764
|
-
openMenu: "
|
|
764
|
+
openMenu: "canvas" | "shape" | null;
|
|
765
765
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
766
766
|
openSidebar: {
|
|
767
767
|
name: string;
|
|
@@ -983,7 +983,7 @@ export declare const actionChangeOpacity: {
|
|
|
983
983
|
zoom: Readonly<{
|
|
984
984
|
value: import("../types").NormalizedZoomValue;
|
|
985
985
|
}>;
|
|
986
|
-
openMenu: "
|
|
986
|
+
openMenu: "canvas" | "shape" | null;
|
|
987
987
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
988
988
|
openSidebar: {
|
|
989
989
|
name: string;
|
|
@@ -1206,7 +1206,7 @@ export declare const actionChangeFontSize: {
|
|
|
1206
1206
|
zoom: Readonly<{
|
|
1207
1207
|
value: import("../types").NormalizedZoomValue;
|
|
1208
1208
|
}>;
|
|
1209
|
-
openMenu: "
|
|
1209
|
+
openMenu: "canvas" | "shape" | null;
|
|
1210
1210
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1211
1211
|
openSidebar: {
|
|
1212
1212
|
name: string;
|
|
@@ -1429,7 +1429,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1429
1429
|
zoom: Readonly<{
|
|
1430
1430
|
value: import("../types").NormalizedZoomValue;
|
|
1431
1431
|
}>;
|
|
1432
|
-
openMenu: "
|
|
1432
|
+
openMenu: "canvas" | "shape" | null;
|
|
1433
1433
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1434
1434
|
openSidebar: {
|
|
1435
1435
|
name: string;
|
|
@@ -1652,7 +1652,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1652
1652
|
zoom: Readonly<{
|
|
1653
1653
|
value: import("../types").NormalizedZoomValue;
|
|
1654
1654
|
}>;
|
|
1655
|
-
openMenu: "
|
|
1655
|
+
openMenu: "canvas" | "shape" | null;
|
|
1656
1656
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1657
1657
|
openSidebar: {
|
|
1658
1658
|
name: string;
|
|
@@ -1806,8 +1806,8 @@ export declare const actionChangeFontFamily: {
|
|
|
1806
1806
|
trackEvent: false;
|
|
1807
1807
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1808
1808
|
appState: {
|
|
1809
|
-
currentHoveredFontFamily: number | null;
|
|
1810
1809
|
currentItemFontFamily: number;
|
|
1810
|
+
currentHoveredFontFamily: number | null;
|
|
1811
1811
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1812
1812
|
contextMenu: {
|
|
1813
1813
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1874,7 +1874,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1874
1874
|
zoom: Readonly<{
|
|
1875
1875
|
value: import("../types").NormalizedZoomValue;
|
|
1876
1876
|
}>;
|
|
1877
|
-
openMenu: "
|
|
1877
|
+
openMenu: "canvas" | "shape" | null;
|
|
1878
1878
|
openSidebar: {
|
|
1879
1879
|
name: string;
|
|
1880
1880
|
tab?: string | undefined;
|
|
@@ -2019,8 +2019,8 @@ export declare const actionChangeFontFamily: {
|
|
|
2019
2019
|
} | {
|
|
2020
2020
|
elements: ExcalidrawElement[];
|
|
2021
2021
|
appState: {
|
|
2022
|
-
currentHoveredFontFamily: number | null;
|
|
2023
2022
|
currentItemFontFamily: number;
|
|
2023
|
+
currentHoveredFontFamily: number | null;
|
|
2024
2024
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2025
2025
|
contextMenu: {
|
|
2026
2026
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -2087,7 +2087,7 @@ export declare const actionChangeFontFamily: {
|
|
|
2087
2087
|
zoom: Readonly<{
|
|
2088
2088
|
value: import("../types").NormalizedZoomValue;
|
|
2089
2089
|
}>;
|
|
2090
|
-
openMenu: "
|
|
2090
|
+
openMenu: "canvas" | "shape" | null;
|
|
2091
2091
|
openSidebar: {
|
|
2092
2092
|
name: string;
|
|
2093
2093
|
tab?: string | undefined;
|
|
@@ -2308,7 +2308,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2308
2308
|
zoom: Readonly<{
|
|
2309
2309
|
value: import("../types").NormalizedZoomValue;
|
|
2310
2310
|
}>;
|
|
2311
|
-
openMenu: "
|
|
2311
|
+
openMenu: "canvas" | "shape" | null;
|
|
2312
2312
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2313
2313
|
openSidebar: {
|
|
2314
2314
|
name: string;
|
|
@@ -2532,7 +2532,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2532
2532
|
zoom: Readonly<{
|
|
2533
2533
|
value: import("../types").NormalizedZoomValue;
|
|
2534
2534
|
}>;
|
|
2535
|
-
openMenu: "
|
|
2535
|
+
openMenu: "canvas" | "shape" | null;
|
|
2536
2536
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2537
2537
|
openSidebar: {
|
|
2538
2538
|
name: string;
|
|
@@ -2754,7 +2754,7 @@ export declare const actionChangeRoundness: {
|
|
|
2754
2754
|
zoom: Readonly<{
|
|
2755
2755
|
value: import("../types").NormalizedZoomValue;
|
|
2756
2756
|
}>;
|
|
2757
|
-
openMenu: "
|
|
2757
|
+
openMenu: "canvas" | "shape" | null;
|
|
2758
2758
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2759
2759
|
openSidebar: {
|
|
2760
2760
|
name: string;
|
|
@@ -2979,7 +2979,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2979
2979
|
zoom: Readonly<{
|
|
2980
2980
|
value: import("../types").NormalizedZoomValue;
|
|
2981
2981
|
}>;
|
|
2982
|
-
openMenu: "
|
|
2982
|
+
openMenu: "canvas" | "shape" | null;
|
|
2983
2983
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2984
2984
|
openSidebar: {
|
|
2985
2985
|
name: string;
|
|
@@ -3201,7 +3201,7 @@ export declare const actionChangeArrowType: {
|
|
|
3201
3201
|
zoom: Readonly<{
|
|
3202
3202
|
value: import("../types").NormalizedZoomValue;
|
|
3203
3203
|
}>;
|
|
3204
|
-
openMenu: "
|
|
3204
|
+
openMenu: "canvas" | "shape" | null;
|
|
3205
3205
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
3206
3206
|
openSidebar: {
|
|
3207
3207
|
name: string;
|
|
@@ -85,7 +85,7 @@ export declare const actionSelectAll: {
|
|
|
85
85
|
zoom: Readonly<{
|
|
86
86
|
value: import("../types").NormalizedZoomValue;
|
|
87
87
|
}>;
|
|
88
|
-
openMenu: "
|
|
88
|
+
openMenu: "canvas" | "shape" | null;
|
|
89
89
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
90
90
|
openSidebar: {
|
|
91
91
|
name: string;
|
|
@@ -78,7 +78,7 @@ export declare const actionCopyStyles: {
|
|
|
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;
|
|
@@ -80,7 +80,7 @@ export declare const actionToggleGridMode: {
|
|
|
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;
|
|
@@ -78,7 +78,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
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;
|