@zsviczian/excalidraw 0.16.1-obsidian-2 → 0.16.1-obsidian-4
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 +92 -26
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +9 -27
- package/types/actions/actionAlign.d.ts +8 -8
- package/types/actions/actionBoundText.d.ts +6 -18
- package/types/actions/actionCanvas.d.ts +206 -125
- package/types/actions/actionClipboard.d.ts +19 -49
- package/types/actions/actionDeleteSelected.d.ts +11 -29
- package/types/actions/actionDistribute.d.ts +4 -4
- package/types/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/actions/actionElementLock.d.ts +8 -20
- package/types/actions/actionExport.d.ts +35 -89
- package/types/actions/actionFinalize.d.ts +8 -20
- package/types/actions/actionFlip.d.ts +4 -4
- package/types/actions/actionFrame.d.ts +11 -29
- package/types/actions/actionGroup.d.ts +10 -22
- package/types/actions/actionLinearEditor.d.ts +3 -9
- package/types/actions/actionMenu.d.ts +13 -31
- package/types/actions/actionProperties.d.ts +43 -121
- package/types/actions/actionSelectAll.d.ts +5 -11
- package/types/actions/actionStyles.d.ts +7 -13
- package/types/actions/actionToggleGridMode.d.ts +5 -11
- package/types/actions/actionToggleObjectsSnapMode.d.ts +5 -11
- package/types/actions/actionToggleStats.d.ts +5 -11
- package/types/actions/actionToggleViewMode.d.ts +5 -11
- package/types/actions/actionToggleZenMode.d.ts +5 -11
- package/types/actions/actionZindex.d.ts +8 -8
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +7 -10
- package/types/components/Actions.d.ts +3 -4
- package/types/components/App.d.ts +7 -6
- package/types/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/components/LaserTool/LaserPathManager.d.ts +28 -0
- package/types/components/LaserTool/LaserPointerButton.d.ts +10 -0
- package/types/components/LaserTool/LaserTool.d.ts +7 -0
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenu.d.ts +6 -3
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
- package/types/components/dropdownMenu/common.d.ts +1 -1
- package/types/components/icons.d.ts +2 -0
- package/types/components/main-menu/MainMenu.d.ts +6 -3
- package/types/element/Hyperlink.d.ts +5 -11
- package/types/element/embeddable.d.ts +3 -9
- package/types/element/linearElementEditor.d.ts +3 -9
- package/types/types.d.ts +15 -17
- package/types/utils.d.ts +3 -4
|
@@ -56,15 +56,9 @@ export declare const actionChangeFillStyle: {
|
|
|
56
56
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
57
57
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
58
58
|
activeTool: {
|
|
59
|
-
lastActiveTool: import("../../src/types").
|
|
59
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
60
60
|
locked: boolean;
|
|
61
|
-
} & (
|
|
62
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
63
|
-
customType: null;
|
|
64
|
-
} | {
|
|
65
|
-
type: "custom";
|
|
66
|
-
customType: string;
|
|
67
|
-
});
|
|
61
|
+
} & import("../../src/types").ActiveTool;
|
|
68
62
|
penMode: boolean;
|
|
69
63
|
penDetected: boolean;
|
|
70
64
|
exportBackground: boolean;
|
|
@@ -168,7 +162,7 @@ export declare const actionChangeFillStyle: {
|
|
|
168
162
|
dynamicStyle: string;
|
|
169
163
|
invertBindingBehaviour: boolean;
|
|
170
164
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
171
|
-
snapLines: import("../snapping").SnapLine[];
|
|
165
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
172
166
|
originSnapOffset: {
|
|
173
167
|
x: number;
|
|
174
168
|
y: number;
|
|
@@ -219,15 +213,9 @@ export declare const actionChangeStrokeWidth: {
|
|
|
219
213
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
220
214
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
221
215
|
activeTool: {
|
|
222
|
-
lastActiveTool: import("../../src/types").
|
|
216
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
223
217
|
locked: boolean;
|
|
224
|
-
} & (
|
|
225
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
226
|
-
customType: null;
|
|
227
|
-
} | {
|
|
228
|
-
type: "custom";
|
|
229
|
-
customType: string;
|
|
230
|
-
});
|
|
218
|
+
} & import("../../src/types").ActiveTool;
|
|
231
219
|
penMode: boolean;
|
|
232
220
|
penDetected: boolean;
|
|
233
221
|
exportBackground: boolean;
|
|
@@ -331,7 +319,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
331
319
|
dynamicStyle: string;
|
|
332
320
|
invertBindingBehaviour: boolean;
|
|
333
321
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
334
|
-
snapLines: import("../snapping").SnapLine[];
|
|
322
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
335
323
|
originSnapOffset: {
|
|
336
324
|
x: number;
|
|
337
325
|
y: number;
|
|
@@ -382,15 +370,9 @@ export declare const actionChangeSloppiness: {
|
|
|
382
370
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
383
371
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
384
372
|
activeTool: {
|
|
385
|
-
lastActiveTool: import("../../src/types").
|
|
373
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
386
374
|
locked: boolean;
|
|
387
|
-
} & (
|
|
388
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
389
|
-
customType: null;
|
|
390
|
-
} | {
|
|
391
|
-
type: "custom";
|
|
392
|
-
customType: string;
|
|
393
|
-
});
|
|
375
|
+
} & import("../../src/types").ActiveTool;
|
|
394
376
|
penMode: boolean;
|
|
395
377
|
penDetected: boolean;
|
|
396
378
|
exportBackground: boolean;
|
|
@@ -494,7 +476,7 @@ export declare const actionChangeSloppiness: {
|
|
|
494
476
|
dynamicStyle: string;
|
|
495
477
|
invertBindingBehaviour: boolean;
|
|
496
478
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
497
|
-
snapLines: import("../snapping").SnapLine[];
|
|
479
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
498
480
|
originSnapOffset: {
|
|
499
481
|
x: number;
|
|
500
482
|
y: number;
|
|
@@ -545,15 +527,9 @@ export declare const actionChangeStrokeStyle: {
|
|
|
545
527
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
546
528
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
547
529
|
activeTool: {
|
|
548
|
-
lastActiveTool: import("../../src/types").
|
|
530
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
549
531
|
locked: boolean;
|
|
550
|
-
} & (
|
|
551
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
552
|
-
customType: null;
|
|
553
|
-
} | {
|
|
554
|
-
type: "custom";
|
|
555
|
-
customType: string;
|
|
556
|
-
});
|
|
532
|
+
} & import("../../src/types").ActiveTool;
|
|
557
533
|
penMode: boolean;
|
|
558
534
|
penDetected: boolean;
|
|
559
535
|
exportBackground: boolean;
|
|
@@ -657,7 +633,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
657
633
|
dynamicStyle: string;
|
|
658
634
|
invertBindingBehaviour: boolean;
|
|
659
635
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
660
|
-
snapLines: import("../snapping").SnapLine[];
|
|
636
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
661
637
|
originSnapOffset: {
|
|
662
638
|
x: number;
|
|
663
639
|
y: number;
|
|
@@ -708,15 +684,9 @@ export declare const actionChangeOpacity: {
|
|
|
708
684
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
709
685
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
710
686
|
activeTool: {
|
|
711
|
-
lastActiveTool: import("../../src/types").
|
|
687
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
712
688
|
locked: boolean;
|
|
713
|
-
} & (
|
|
714
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
715
|
-
customType: null;
|
|
716
|
-
} | {
|
|
717
|
-
type: "custom";
|
|
718
|
-
customType: string;
|
|
719
|
-
});
|
|
689
|
+
} & import("../../src/types").ActiveTool;
|
|
720
690
|
penMode: boolean;
|
|
721
691
|
penDetected: boolean;
|
|
722
692
|
exportBackground: boolean;
|
|
@@ -820,7 +790,7 @@ export declare const actionChangeOpacity: {
|
|
|
820
790
|
dynamicStyle: string;
|
|
821
791
|
invertBindingBehaviour: boolean;
|
|
822
792
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
823
|
-
snapLines: import("../snapping").SnapLine[];
|
|
793
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
824
794
|
originSnapOffset: {
|
|
825
795
|
x: number;
|
|
826
796
|
y: number;
|
|
@@ -871,15 +841,9 @@ export declare const actionChangeFontSize: {
|
|
|
871
841
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
872
842
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
873
843
|
activeTool: {
|
|
874
|
-
lastActiveTool: import("../../src/types").
|
|
844
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
875
845
|
locked: boolean;
|
|
876
|
-
} & (
|
|
877
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
878
|
-
customType: null;
|
|
879
|
-
} | {
|
|
880
|
-
type: "custom";
|
|
881
|
-
customType: string;
|
|
882
|
-
});
|
|
846
|
+
} & import("../../src/types").ActiveTool;
|
|
883
847
|
penMode: boolean;
|
|
884
848
|
penDetected: boolean;
|
|
885
849
|
exportBackground: boolean;
|
|
@@ -983,7 +947,7 @@ export declare const actionChangeFontSize: {
|
|
|
983
947
|
dynamicStyle: string;
|
|
984
948
|
invertBindingBehaviour: boolean;
|
|
985
949
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
986
|
-
snapLines: import("../snapping").SnapLine[];
|
|
950
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
987
951
|
originSnapOffset: {
|
|
988
952
|
x: number;
|
|
989
953
|
y: number;
|
|
@@ -1034,15 +998,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
1034
998
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1035
999
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1036
1000
|
activeTool: {
|
|
1037
|
-
lastActiveTool: import("../../src/types").
|
|
1001
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1038
1002
|
locked: boolean;
|
|
1039
|
-
} & (
|
|
1040
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1041
|
-
customType: null;
|
|
1042
|
-
} | {
|
|
1043
|
-
type: "custom";
|
|
1044
|
-
customType: string;
|
|
1045
|
-
});
|
|
1003
|
+
} & import("../../src/types").ActiveTool;
|
|
1046
1004
|
penMode: boolean;
|
|
1047
1005
|
penDetected: boolean;
|
|
1048
1006
|
exportBackground: boolean;
|
|
@@ -1146,7 +1104,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1146
1104
|
dynamicStyle: string;
|
|
1147
1105
|
invertBindingBehaviour: boolean;
|
|
1148
1106
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1149
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1107
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1150
1108
|
originSnapOffset: {
|
|
1151
1109
|
x: number;
|
|
1152
1110
|
y: number;
|
|
@@ -1155,9 +1113,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
1155
1113
|
};
|
|
1156
1114
|
commitToHistory: boolean;
|
|
1157
1115
|
};
|
|
1158
|
-
keyTest: (event:
|
|
1116
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1159
1117
|
} & {
|
|
1160
|
-
keyTest?: ((event:
|
|
1118
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1161
1119
|
};
|
|
1162
1120
|
export declare const actionIncreaseFontSize: {
|
|
1163
1121
|
name: "increaseFontSize";
|
|
@@ -1197,15 +1155,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
1197
1155
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1198
1156
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1199
1157
|
activeTool: {
|
|
1200
|
-
lastActiveTool: import("../../src/types").
|
|
1158
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1201
1159
|
locked: boolean;
|
|
1202
|
-
} & (
|
|
1203
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1204
|
-
customType: null;
|
|
1205
|
-
} | {
|
|
1206
|
-
type: "custom";
|
|
1207
|
-
customType: string;
|
|
1208
|
-
});
|
|
1160
|
+
} & import("../../src/types").ActiveTool;
|
|
1209
1161
|
penMode: boolean;
|
|
1210
1162
|
penDetected: boolean;
|
|
1211
1163
|
exportBackground: boolean;
|
|
@@ -1309,7 +1261,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1309
1261
|
dynamicStyle: string;
|
|
1310
1262
|
invertBindingBehaviour: boolean;
|
|
1311
1263
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1312
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1264
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1313
1265
|
originSnapOffset: {
|
|
1314
1266
|
x: number;
|
|
1315
1267
|
y: number;
|
|
@@ -1318,9 +1270,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
1318
1270
|
};
|
|
1319
1271
|
commitToHistory: boolean;
|
|
1320
1272
|
};
|
|
1321
|
-
keyTest: (event:
|
|
1273
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1322
1274
|
} & {
|
|
1323
|
-
keyTest?: ((event:
|
|
1275
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1324
1276
|
};
|
|
1325
1277
|
export declare const actionChangeFontFamily: {
|
|
1326
1278
|
name: "changeFontFamily";
|
|
@@ -1360,15 +1312,9 @@ export declare const actionChangeFontFamily: {
|
|
|
1360
1312
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1361
1313
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1362
1314
|
activeTool: {
|
|
1363
|
-
lastActiveTool: import("../../src/types").
|
|
1315
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1364
1316
|
locked: boolean;
|
|
1365
|
-
} & (
|
|
1366
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1367
|
-
customType: null;
|
|
1368
|
-
} | {
|
|
1369
|
-
type: "custom";
|
|
1370
|
-
customType: string;
|
|
1371
|
-
});
|
|
1317
|
+
} & import("../../src/types").ActiveTool;
|
|
1372
1318
|
penMode: boolean;
|
|
1373
1319
|
penDetected: boolean;
|
|
1374
1320
|
exportBackground: boolean;
|
|
@@ -1472,7 +1418,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1472
1418
|
dynamicStyle: string;
|
|
1473
1419
|
invertBindingBehaviour: boolean;
|
|
1474
1420
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1475
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1421
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1476
1422
|
originSnapOffset: {
|
|
1477
1423
|
x: number;
|
|
1478
1424
|
y: number;
|
|
@@ -1523,15 +1469,9 @@ export declare const actionChangeTextAlign: {
|
|
|
1523
1469
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1524
1470
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1525
1471
|
activeTool: {
|
|
1526
|
-
lastActiveTool: import("../../src/types").
|
|
1472
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1527
1473
|
locked: boolean;
|
|
1528
|
-
} & (
|
|
1529
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1530
|
-
customType: null;
|
|
1531
|
-
} | {
|
|
1532
|
-
type: "custom";
|
|
1533
|
-
customType: string;
|
|
1534
|
-
});
|
|
1474
|
+
} & import("../../src/types").ActiveTool;
|
|
1535
1475
|
penMode: boolean;
|
|
1536
1476
|
penDetected: boolean;
|
|
1537
1477
|
exportBackground: boolean;
|
|
@@ -1635,7 +1575,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1635
1575
|
dynamicStyle: string;
|
|
1636
1576
|
invertBindingBehaviour: boolean;
|
|
1637
1577
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1638
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1578
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1639
1579
|
originSnapOffset: {
|
|
1640
1580
|
x: number;
|
|
1641
1581
|
y: number;
|
|
@@ -1687,15 +1627,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1687
1627
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1688
1628
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1689
1629
|
activeTool: {
|
|
1690
|
-
lastActiveTool: import("../../src/types").
|
|
1630
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1691
1631
|
locked: boolean;
|
|
1692
|
-
} & (
|
|
1693
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1694
|
-
customType: null;
|
|
1695
|
-
} | {
|
|
1696
|
-
type: "custom";
|
|
1697
|
-
customType: string;
|
|
1698
|
-
});
|
|
1632
|
+
} & import("../../src/types").ActiveTool;
|
|
1699
1633
|
penMode: boolean;
|
|
1700
1634
|
penDetected: boolean;
|
|
1701
1635
|
exportBackground: boolean;
|
|
@@ -1800,7 +1734,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1800
1734
|
dynamicStyle: string;
|
|
1801
1735
|
invertBindingBehaviour: boolean;
|
|
1802
1736
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1803
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1737
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1804
1738
|
originSnapOffset: {
|
|
1805
1739
|
x: number;
|
|
1806
1740
|
y: number;
|
|
@@ -1851,15 +1785,9 @@ export declare const actionChangeRoundness: {
|
|
|
1851
1785
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1852
1786
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1853
1787
|
activeTool: {
|
|
1854
|
-
lastActiveTool: import("../../src/types").
|
|
1788
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1855
1789
|
locked: boolean;
|
|
1856
|
-
} & (
|
|
1857
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1858
|
-
customType: null;
|
|
1859
|
-
} | {
|
|
1860
|
-
type: "custom";
|
|
1861
|
-
customType: string;
|
|
1862
|
-
});
|
|
1790
|
+
} & import("../../src/types").ActiveTool;
|
|
1863
1791
|
penMode: boolean;
|
|
1864
1792
|
penDetected: boolean;
|
|
1865
1793
|
exportBackground: boolean;
|
|
@@ -1963,7 +1891,7 @@ export declare const actionChangeRoundness: {
|
|
|
1963
1891
|
dynamicStyle: string;
|
|
1964
1892
|
invertBindingBehaviour: boolean;
|
|
1965
1893
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1966
|
-
snapLines: import("../snapping").SnapLine[];
|
|
1894
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1967
1895
|
originSnapOffset: {
|
|
1968
1896
|
x: number;
|
|
1969
1897
|
y: number;
|
|
@@ -2016,15 +1944,9 @@ export declare const actionChangeArrowhead: {
|
|
|
2016
1944
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2017
1945
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
2018
1946
|
activeTool: {
|
|
2019
|
-
lastActiveTool: import("../../src/types").
|
|
1947
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
2020
1948
|
locked: boolean;
|
|
2021
|
-
} & (
|
|
2022
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
2023
|
-
customType: null;
|
|
2024
|
-
} | {
|
|
2025
|
-
type: "custom";
|
|
2026
|
-
customType: string;
|
|
2027
|
-
});
|
|
1949
|
+
} & import("../../src/types").ActiveTool;
|
|
2028
1950
|
penMode: boolean;
|
|
2029
1951
|
penDetected: boolean;
|
|
2030
1952
|
exportBackground: boolean;
|
|
@@ -2129,7 +2051,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2129
2051
|
dynamicStyle: string;
|
|
2130
2052
|
invertBindingBehaviour: boolean;
|
|
2131
2053
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
2132
|
-
snapLines: import("../snapping").SnapLine[];
|
|
2054
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
2133
2055
|
originSnapOffset: {
|
|
2134
2056
|
x: number;
|
|
2135
2057
|
y: number;
|
|
@@ -46,15 +46,9 @@ export declare const actionSelectAll: {
|
|
|
46
46
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
47
47
|
editingLinearElement: LinearElementEditor | null;
|
|
48
48
|
activeTool: {
|
|
49
|
-
lastActiveTool: import("../types").
|
|
49
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
50
|
locked: boolean;
|
|
51
|
-
} & (
|
|
52
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
53
|
-
customType: null;
|
|
54
|
-
} | {
|
|
55
|
-
type: "custom";
|
|
56
|
-
customType: string;
|
|
57
|
-
});
|
|
51
|
+
} & import("../types").ActiveTool;
|
|
58
52
|
penMode: boolean;
|
|
59
53
|
penDetected: boolean;
|
|
60
54
|
exportBackground: boolean;
|
|
@@ -151,7 +145,7 @@ export declare const actionSelectAll: {
|
|
|
151
145
|
};
|
|
152
146
|
dynamicStyle: string;
|
|
153
147
|
invertBindingBehaviour: boolean;
|
|
154
|
-
snapLines: import("../snapping").SnapLine[];
|
|
148
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
155
149
|
originSnapOffset: {
|
|
156
150
|
x: number;
|
|
157
151
|
y: number;
|
|
@@ -161,7 +155,7 @@ export declare const actionSelectAll: {
|
|
|
161
155
|
commitToHistory: true;
|
|
162
156
|
};
|
|
163
157
|
contextItemLabel: string;
|
|
164
|
-
keyTest: (event:
|
|
158
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
165
159
|
} & {
|
|
166
|
-
keyTest?: ((event:
|
|
160
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
167
161
|
};
|
|
@@ -40,15 +40,9 @@ export declare const actionCopyStyles: {
|
|
|
40
40
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
42
42
|
activeTool: {
|
|
43
|
-
lastActiveTool: import("../types").
|
|
43
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
44
|
locked: boolean;
|
|
45
|
-
} & (
|
|
46
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
47
|
-
customType: null;
|
|
48
|
-
} | {
|
|
49
|
-
type: "custom";
|
|
50
|
-
customType: string;
|
|
51
|
-
});
|
|
45
|
+
} & import("../types").ActiveTool;
|
|
52
46
|
penMode: boolean;
|
|
53
47
|
penDetected: boolean;
|
|
54
48
|
exportBackground: boolean;
|
|
@@ -148,7 +142,7 @@ export declare const actionCopyStyles: {
|
|
|
148
142
|
dynamicStyle: string;
|
|
149
143
|
invertBindingBehaviour: boolean;
|
|
150
144
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
151
|
-
snapLines: import("../snapping").SnapLine[];
|
|
145
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
152
146
|
originSnapOffset: {
|
|
153
147
|
x: number;
|
|
154
148
|
y: number;
|
|
@@ -158,9 +152,9 @@ export declare const actionCopyStyles: {
|
|
|
158
152
|
commitToHistory: false;
|
|
159
153
|
};
|
|
160
154
|
contextItemLabel: string;
|
|
161
|
-
keyTest: (event:
|
|
155
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
162
156
|
} & {
|
|
163
|
-
keyTest?: ((event:
|
|
157
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
164
158
|
};
|
|
165
159
|
export declare const actionPasteStyles: {
|
|
166
160
|
name: "pasteStyles";
|
|
@@ -175,7 +169,7 @@ export declare const actionPasteStyles: {
|
|
|
175
169
|
commitToHistory: true;
|
|
176
170
|
};
|
|
177
171
|
contextItemLabel: string;
|
|
178
|
-
keyTest: (event:
|
|
172
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
179
173
|
} & {
|
|
180
|
-
keyTest?: ((event:
|
|
174
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
181
175
|
};
|
|
@@ -41,15 +41,9 @@ export declare const actionToggleGridMode: {
|
|
|
41
41
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
42
42
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
43
43
|
activeTool: {
|
|
44
|
-
lastActiveTool: import("../types").
|
|
44
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
45
|
locked: boolean;
|
|
46
|
-
} & (
|
|
47
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
48
|
-
customType: null;
|
|
49
|
-
} | {
|
|
50
|
-
type: "custom";
|
|
51
|
-
customType: string;
|
|
52
|
-
});
|
|
46
|
+
} & import("../types").ActiveTool;
|
|
53
47
|
penMode: boolean;
|
|
54
48
|
penDetected: boolean;
|
|
55
49
|
exportBackground: boolean;
|
|
@@ -153,7 +147,7 @@ export declare const actionToggleGridMode: {
|
|
|
153
147
|
dynamicStyle: string;
|
|
154
148
|
invertBindingBehaviour: boolean;
|
|
155
149
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
156
|
-
snapLines: import("../snapping").SnapLine[];
|
|
150
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
157
151
|
originSnapOffset: {
|
|
158
152
|
x: number;
|
|
159
153
|
y: number;
|
|
@@ -164,7 +158,7 @@ export declare const actionToggleGridMode: {
|
|
|
164
158
|
checked: (appState: AppState) => boolean;
|
|
165
159
|
predicate: (element: readonly import("../element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
166
160
|
contextItemLabel: string;
|
|
167
|
-
keyTest: (event:
|
|
161
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
168
162
|
} & {
|
|
169
|
-
keyTest?: ((event:
|
|
163
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
170
164
|
};
|
|
@@ -40,15 +40,9 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
40
40
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
42
42
|
activeTool: {
|
|
43
|
-
lastActiveTool: import("../types").
|
|
43
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
44
|
locked: boolean;
|
|
45
|
-
} & (
|
|
46
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
47
|
-
customType: null;
|
|
48
|
-
} | {
|
|
49
|
-
type: "custom";
|
|
50
|
-
customType: string;
|
|
51
|
-
});
|
|
45
|
+
} & import("../types").ActiveTool;
|
|
52
46
|
penMode: boolean;
|
|
53
47
|
penDetected: boolean;
|
|
54
48
|
exportBackground: boolean;
|
|
@@ -152,7 +146,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
152
146
|
dynamicStyle: string;
|
|
153
147
|
invertBindingBehaviour: boolean;
|
|
154
148
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
155
|
-
snapLines: import("../snapping").SnapLine[];
|
|
149
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
156
150
|
originSnapOffset: {
|
|
157
151
|
x: number;
|
|
158
152
|
y: number;
|
|
@@ -163,7 +157,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
163
157
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
164
158
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
165
159
|
contextItemLabel: string;
|
|
166
|
-
keyTest: (event:
|
|
160
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
167
161
|
} & {
|
|
168
|
-
keyTest?: ((event:
|
|
162
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
169
163
|
};
|
|
@@ -38,15 +38,9 @@ export declare const actionToggleStats: {
|
|
|
38
38
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
39
39
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
40
40
|
activeTool: {
|
|
41
|
-
lastActiveTool: import("../types").
|
|
41
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
42
42
|
locked: boolean;
|
|
43
|
-
} & (
|
|
44
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
45
|
-
customType: null;
|
|
46
|
-
} | {
|
|
47
|
-
type: "custom";
|
|
48
|
-
customType: string;
|
|
49
|
-
});
|
|
43
|
+
} & import("../types").ActiveTool;
|
|
50
44
|
penMode: boolean;
|
|
51
45
|
penDetected: boolean;
|
|
52
46
|
exportBackground: boolean;
|
|
@@ -150,7 +144,7 @@ export declare const actionToggleStats: {
|
|
|
150
144
|
dynamicStyle: string;
|
|
151
145
|
invertBindingBehaviour: boolean;
|
|
152
146
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
153
|
-
snapLines: import("../snapping").SnapLine[];
|
|
147
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
154
148
|
originSnapOffset: {
|
|
155
149
|
x: number;
|
|
156
150
|
y: number;
|
|
@@ -161,7 +155,7 @@ export declare const actionToggleStats: {
|
|
|
161
155
|
};
|
|
162
156
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
163
157
|
contextItemLabel: string;
|
|
164
|
-
keyTest: (event:
|
|
158
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
165
159
|
} & {
|
|
166
|
-
keyTest?: ((event:
|
|
160
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
167
161
|
};
|
|
@@ -39,15 +39,9 @@ export declare const actionToggleViewMode: {
|
|
|
39
39
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
40
40
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
41
41
|
activeTool: {
|
|
42
|
-
lastActiveTool: import("../types").
|
|
42
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
43
|
locked: boolean;
|
|
44
|
-
} & (
|
|
45
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
46
|
-
customType: null;
|
|
47
|
-
} | {
|
|
48
|
-
type: "custom";
|
|
49
|
-
customType: string;
|
|
50
|
-
});
|
|
44
|
+
} & import("../types").ActiveTool;
|
|
51
45
|
penMode: boolean;
|
|
52
46
|
penDetected: boolean;
|
|
53
47
|
exportBackground: boolean;
|
|
@@ -151,7 +145,7 @@ export declare const actionToggleViewMode: {
|
|
|
151
145
|
dynamicStyle: string;
|
|
152
146
|
invertBindingBehaviour: boolean;
|
|
153
147
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
154
|
-
snapLines: import("../snapping").SnapLine[];
|
|
148
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
155
149
|
originSnapOffset: {
|
|
156
150
|
x: number;
|
|
157
151
|
y: number;
|
|
@@ -163,7 +157,7 @@ export declare const actionToggleViewMode: {
|
|
|
163
157
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
164
158
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
165
159
|
contextItemLabel: string;
|
|
166
|
-
keyTest: (event:
|
|
160
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
167
161
|
} & {
|
|
168
|
-
keyTest?: ((event:
|
|
162
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
169
163
|
};
|
|
@@ -39,15 +39,9 @@ export declare const actionToggleZenMode: {
|
|
|
39
39
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
40
40
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
41
41
|
activeTool: {
|
|
42
|
-
lastActiveTool: import("../types").
|
|
42
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
43
|
locked: boolean;
|
|
44
|
-
} & (
|
|
45
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
46
|
-
customType: null;
|
|
47
|
-
} | {
|
|
48
|
-
type: "custom";
|
|
49
|
-
customType: string;
|
|
50
|
-
});
|
|
44
|
+
} & import("../types").ActiveTool;
|
|
51
45
|
penMode: boolean;
|
|
52
46
|
penDetected: boolean;
|
|
53
47
|
exportBackground: boolean;
|
|
@@ -151,7 +145,7 @@ export declare const actionToggleZenMode: {
|
|
|
151
145
|
dynamicStyle: string;
|
|
152
146
|
invertBindingBehaviour: boolean;
|
|
153
147
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
154
|
-
snapLines: import("../snapping").SnapLine[];
|
|
148
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
155
149
|
originSnapOffset: {
|
|
156
150
|
x: number;
|
|
157
151
|
y: number;
|
|
@@ -163,7 +157,7 @@ export declare const actionToggleZenMode: {
|
|
|
163
157
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
164
158
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
165
159
|
contextItemLabel: string;
|
|
166
|
-
keyTest: (event:
|
|
160
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
167
161
|
} & {
|
|
168
|
-
keyTest?: ((event:
|
|
162
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
169
163
|
};
|