@excalidraw/excalidraw 0.16.1-5561755 → 0.16.1-aaf73c8
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/CHANGELOG.md +6 -0
- package/dist/excalidraw.development.js +185 -75
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +24 -24
- package/types/actions/actionAlign.d.ts +8 -8
- package/types/actions/actionBoundText.d.ts +16 -16
- package/types/actions/actionCanvas.d.ts +112 -112
- package/types/actions/actionClipboard.d.ts +44 -44
- package/types/actions/actionDeleteSelected.d.ts +26 -26
- package/types/actions/actionDistribute.d.ts +4 -4
- package/types/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/actions/actionElementLock.d.ts +18 -18
- package/types/actions/actionExport.d.ts +87 -87
- package/types/actions/actionFinalize.d.ts +18 -18
- package/types/actions/actionFlip.d.ts +4 -4
- package/types/actions/actionFrame.d.ts +26 -26
- package/types/actions/actionGroup.d.ts +20 -20
- package/types/actions/actionLinearEditor.d.ts +8 -8
- package/types/actions/actionMenu.d.ts +26 -26
- package/types/actions/actionProperties.d.ts +108 -108
- package/types/actions/actionSelectAll.d.ts +10 -10
- package/types/actions/actionStyles.d.ts +12 -12
- package/types/actions/actionToggleGridMode.d.ts +10 -10
- package/types/actions/actionToggleObjectsSnapMode.d.ts +137 -0
- package/types/actions/actionToggleStats.d.ts +10 -10
- package/types/actions/actionToggleViewMode.d.ts +10 -10
- package/types/actions/actionToggleZenMode.d.ts +10 -10
- package/types/actions/actionZindex.d.ts +8 -8
- package/types/actions/index.d.ts +1 -0
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +6 -11
- package/types/components/Actions.d.ts +4 -9
- package/types/components/App.d.ts +17 -5
- 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 -5
- package/types/components/MobileMenu.d.ts +1 -5
- package/types/components/Sidebar/Sidebar.d.ts +1 -1
- package/types/components/Stack.d.ts +2 -2
- 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/cursor.d.ts +5 -0
- package/types/element/Hyperlink.d.ts +10 -10
- package/types/element/bounds.d.ts +4 -5
- package/types/element/dragElements.d.ts +11 -2
- package/types/element/embeddable.d.ts +8 -8
- package/types/element/linearElementEditor.d.ts +8 -8
- package/types/element/mutateElement.d.ts +1 -1
- package/types/element/resizeElements.d.ts +2 -2
- package/types/frame.d.ts +5 -0
- package/types/keys.d.ts +1 -0
- package/types/math.d.ts +2 -0
- package/types/renderer/renderSnaps.d.ts +2 -0
- package/types/scene/selection.d.ts +1 -0
- package/types/snapping.d.ts +108 -0
- package/types/types.d.ts +31 -16
- package/types/utils.d.ts +3 -8
|
@@ -37,15 +37,9 @@ export declare const actionToggleCanvasMenu: {
|
|
|
37
37
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
38
38
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
39
39
|
activeTool: {
|
|
40
|
-
lastActiveTool: import("../types").
|
|
40
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
41
41
|
locked: boolean;
|
|
42
|
-
} & (
|
|
43
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
44
|
-
customType: null;
|
|
45
|
-
} | {
|
|
46
|
-
type: "custom";
|
|
47
|
-
customType: string;
|
|
48
|
-
});
|
|
42
|
+
} & import("../types").ActiveTool;
|
|
49
43
|
penMode: boolean;
|
|
50
44
|
penDetected: boolean;
|
|
51
45
|
exportBackground: boolean;
|
|
@@ -123,6 +117,12 @@ export declare const actionToggleCanvasMenu: {
|
|
|
123
117
|
pendingImageElementId: string | null;
|
|
124
118
|
showHyperlinkPopup: false | "editor" | "info";
|
|
125
119
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
120
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
121
|
+
originSnapOffset: {
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
} | null;
|
|
125
|
+
objectsSnapModeEnabled: boolean;
|
|
126
126
|
};
|
|
127
127
|
commitToHistory: false;
|
|
128
128
|
};
|
|
@@ -169,15 +169,9 @@ export declare const actionToggleEditMenu: {
|
|
|
169
169
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
170
170
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
171
171
|
activeTool: {
|
|
172
|
-
lastActiveTool: import("../types").
|
|
172
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
173
173
|
locked: boolean;
|
|
174
|
-
} & (
|
|
175
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
176
|
-
customType: null;
|
|
177
|
-
} | {
|
|
178
|
-
type: "custom";
|
|
179
|
-
customType: string;
|
|
180
|
-
});
|
|
174
|
+
} & import("../types").ActiveTool;
|
|
181
175
|
penMode: boolean;
|
|
182
176
|
penDetected: boolean;
|
|
183
177
|
exportBackground: boolean;
|
|
@@ -255,6 +249,12 @@ export declare const actionToggleEditMenu: {
|
|
|
255
249
|
pendingImageElementId: string | null;
|
|
256
250
|
showHyperlinkPopup: false | "editor" | "info";
|
|
257
251
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
252
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
253
|
+
originSnapOffset: {
|
|
254
|
+
x: number;
|
|
255
|
+
y: number;
|
|
256
|
+
} | null;
|
|
257
|
+
objectsSnapModeEnabled: boolean;
|
|
258
258
|
};
|
|
259
259
|
commitToHistory: false;
|
|
260
260
|
};
|
|
@@ -316,15 +316,9 @@ export declare const actionShortcuts: {
|
|
|
316
316
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
317
317
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
318
318
|
activeTool: {
|
|
319
|
-
lastActiveTool: import("../types").
|
|
319
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
320
320
|
locked: boolean;
|
|
321
|
-
} & (
|
|
322
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
323
|
-
customType: null;
|
|
324
|
-
} | {
|
|
325
|
-
type: "custom";
|
|
326
|
-
customType: string;
|
|
327
|
-
});
|
|
321
|
+
} & import("../types").ActiveTool;
|
|
328
322
|
penMode: boolean;
|
|
329
323
|
penDetected: boolean;
|
|
330
324
|
exportBackground: boolean;
|
|
@@ -402,10 +396,16 @@ export declare const actionShortcuts: {
|
|
|
402
396
|
pendingImageElementId: string | null;
|
|
403
397
|
showHyperlinkPopup: false | "editor" | "info";
|
|
404
398
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
399
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
400
|
+
originSnapOffset: {
|
|
401
|
+
x: number;
|
|
402
|
+
y: number;
|
|
403
|
+
} | null;
|
|
404
|
+
objectsSnapModeEnabled: boolean;
|
|
405
405
|
};
|
|
406
406
|
commitToHistory: false;
|
|
407
407
|
};
|
|
408
|
-
keyTest: (event:
|
|
408
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
409
409
|
} & {
|
|
410
|
-
keyTest?: ((event:
|
|
410
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
411
411
|
};
|
|
@@ -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";
|
|
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;
|
|
@@ -142,6 +136,12 @@ export declare const actionChangeFillStyle: {
|
|
|
142
136
|
pendingImageElementId: string | null;
|
|
143
137
|
showHyperlinkPopup: false | "editor" | "info";
|
|
144
138
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
139
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
140
|
+
originSnapOffset: {
|
|
141
|
+
x: number;
|
|
142
|
+
y: number;
|
|
143
|
+
} | null;
|
|
144
|
+
objectsSnapModeEnabled: boolean;
|
|
145
145
|
};
|
|
146
146
|
commitToHistory: true;
|
|
147
147
|
};
|
|
@@ -187,15 +187,9 @@ export declare const actionChangeStrokeWidth: {
|
|
|
187
187
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
188
188
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
189
189
|
activeTool: {
|
|
190
|
-
lastActiveTool: import("../../src/types").
|
|
190
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
191
191
|
locked: boolean;
|
|
192
|
-
} & (
|
|
193
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
194
|
-
customType: null;
|
|
195
|
-
} | {
|
|
196
|
-
type: "custom";
|
|
197
|
-
customType: string;
|
|
198
|
-
});
|
|
192
|
+
} & import("../../src/types").ActiveTool;
|
|
199
193
|
penMode: boolean;
|
|
200
194
|
penDetected: boolean;
|
|
201
195
|
exportBackground: boolean;
|
|
@@ -273,6 +267,12 @@ export declare const actionChangeStrokeWidth: {
|
|
|
273
267
|
pendingImageElementId: string | null;
|
|
274
268
|
showHyperlinkPopup: false | "editor" | "info";
|
|
275
269
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
270
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
271
|
+
originSnapOffset: {
|
|
272
|
+
x: number;
|
|
273
|
+
y: number;
|
|
274
|
+
} | null;
|
|
275
|
+
objectsSnapModeEnabled: boolean;
|
|
276
276
|
};
|
|
277
277
|
commitToHistory: true;
|
|
278
278
|
};
|
|
@@ -318,15 +318,9 @@ export declare const actionChangeSloppiness: {
|
|
|
318
318
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
319
319
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
320
320
|
activeTool: {
|
|
321
|
-
lastActiveTool: import("../../src/types").
|
|
321
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
322
322
|
locked: boolean;
|
|
323
|
-
} & (
|
|
324
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
325
|
-
customType: null;
|
|
326
|
-
} | {
|
|
327
|
-
type: "custom";
|
|
328
|
-
customType: string;
|
|
329
|
-
});
|
|
323
|
+
} & import("../../src/types").ActiveTool;
|
|
330
324
|
penMode: boolean;
|
|
331
325
|
penDetected: boolean;
|
|
332
326
|
exportBackground: boolean;
|
|
@@ -404,6 +398,12 @@ export declare const actionChangeSloppiness: {
|
|
|
404
398
|
pendingImageElementId: string | null;
|
|
405
399
|
showHyperlinkPopup: false | "editor" | "info";
|
|
406
400
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
401
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
402
|
+
originSnapOffset: {
|
|
403
|
+
x: number;
|
|
404
|
+
y: number;
|
|
405
|
+
} | null;
|
|
406
|
+
objectsSnapModeEnabled: boolean;
|
|
407
407
|
};
|
|
408
408
|
commitToHistory: true;
|
|
409
409
|
};
|
|
@@ -449,15 +449,9 @@ export declare const actionChangeStrokeStyle: {
|
|
|
449
449
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
450
450
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
451
451
|
activeTool: {
|
|
452
|
-
lastActiveTool: import("../../src/types").
|
|
452
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
453
453
|
locked: boolean;
|
|
454
|
-
} & (
|
|
455
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
456
|
-
customType: null;
|
|
457
|
-
} | {
|
|
458
|
-
type: "custom";
|
|
459
|
-
customType: string;
|
|
460
|
-
});
|
|
454
|
+
} & import("../../src/types").ActiveTool;
|
|
461
455
|
penMode: boolean;
|
|
462
456
|
penDetected: boolean;
|
|
463
457
|
exportBackground: boolean;
|
|
@@ -535,6 +529,12 @@ export declare const actionChangeStrokeStyle: {
|
|
|
535
529
|
pendingImageElementId: string | null;
|
|
536
530
|
showHyperlinkPopup: false | "editor" | "info";
|
|
537
531
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
532
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
533
|
+
originSnapOffset: {
|
|
534
|
+
x: number;
|
|
535
|
+
y: number;
|
|
536
|
+
} | null;
|
|
537
|
+
objectsSnapModeEnabled: boolean;
|
|
538
538
|
};
|
|
539
539
|
commitToHistory: true;
|
|
540
540
|
};
|
|
@@ -580,15 +580,9 @@ export declare const actionChangeOpacity: {
|
|
|
580
580
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
581
581
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
582
582
|
activeTool: {
|
|
583
|
-
lastActiveTool: import("../../src/types").
|
|
583
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
584
584
|
locked: boolean;
|
|
585
|
-
} & (
|
|
586
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
587
|
-
customType: null;
|
|
588
|
-
} | {
|
|
589
|
-
type: "custom";
|
|
590
|
-
customType: string;
|
|
591
|
-
});
|
|
585
|
+
} & import("../../src/types").ActiveTool;
|
|
592
586
|
penMode: boolean;
|
|
593
587
|
penDetected: boolean;
|
|
594
588
|
exportBackground: boolean;
|
|
@@ -666,6 +660,12 @@ export declare const actionChangeOpacity: {
|
|
|
666
660
|
pendingImageElementId: string | null;
|
|
667
661
|
showHyperlinkPopup: false | "editor" | "info";
|
|
668
662
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
663
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
664
|
+
originSnapOffset: {
|
|
665
|
+
x: number;
|
|
666
|
+
y: number;
|
|
667
|
+
} | null;
|
|
668
|
+
objectsSnapModeEnabled: boolean;
|
|
669
669
|
};
|
|
670
670
|
commitToHistory: true;
|
|
671
671
|
};
|
|
@@ -711,15 +711,9 @@ export declare const actionChangeFontSize: {
|
|
|
711
711
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
712
712
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
713
713
|
activeTool: {
|
|
714
|
-
lastActiveTool: import("../../src/types").
|
|
714
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
715
715
|
locked: boolean;
|
|
716
|
-
} & (
|
|
717
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
718
|
-
customType: null;
|
|
719
|
-
} | {
|
|
720
|
-
type: "custom";
|
|
721
|
-
customType: string;
|
|
722
|
-
});
|
|
716
|
+
} & import("../../src/types").ActiveTool;
|
|
723
717
|
penMode: boolean;
|
|
724
718
|
penDetected: boolean;
|
|
725
719
|
exportBackground: boolean;
|
|
@@ -797,6 +791,12 @@ export declare const actionChangeFontSize: {
|
|
|
797
791
|
pendingImageElementId: string | null;
|
|
798
792
|
showHyperlinkPopup: false | "editor" | "info";
|
|
799
793
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
794
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
795
|
+
originSnapOffset: {
|
|
796
|
+
x: number;
|
|
797
|
+
y: number;
|
|
798
|
+
} | null;
|
|
799
|
+
objectsSnapModeEnabled: boolean;
|
|
800
800
|
};
|
|
801
801
|
commitToHistory: boolean;
|
|
802
802
|
};
|
|
@@ -842,15 +842,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
842
842
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
843
843
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
844
844
|
activeTool: {
|
|
845
|
-
lastActiveTool: import("../../src/types").
|
|
845
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
846
846
|
locked: boolean;
|
|
847
|
-
} & (
|
|
848
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
849
|
-
customType: null;
|
|
850
|
-
} | {
|
|
851
|
-
type: "custom";
|
|
852
|
-
customType: string;
|
|
853
|
-
});
|
|
847
|
+
} & import("../../src/types").ActiveTool;
|
|
854
848
|
penMode: boolean;
|
|
855
849
|
penDetected: boolean;
|
|
856
850
|
exportBackground: boolean;
|
|
@@ -928,12 +922,18 @@ export declare const actionDecreaseFontSize: {
|
|
|
928
922
|
pendingImageElementId: string | null;
|
|
929
923
|
showHyperlinkPopup: false | "editor" | "info";
|
|
930
924
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
925
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
926
|
+
originSnapOffset: {
|
|
927
|
+
x: number;
|
|
928
|
+
y: number;
|
|
929
|
+
} | null;
|
|
930
|
+
objectsSnapModeEnabled: boolean;
|
|
931
931
|
};
|
|
932
932
|
commitToHistory: boolean;
|
|
933
933
|
};
|
|
934
|
-
keyTest: (event:
|
|
934
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
935
935
|
} & {
|
|
936
|
-
keyTest?: ((event:
|
|
936
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
937
937
|
};
|
|
938
938
|
export declare const actionIncreaseFontSize: {
|
|
939
939
|
name: "increaseFontSize";
|
|
@@ -973,15 +973,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
973
973
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
974
974
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
975
975
|
activeTool: {
|
|
976
|
-
lastActiveTool: import("../../src/types").
|
|
976
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
977
977
|
locked: boolean;
|
|
978
|
-
} & (
|
|
979
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
980
|
-
customType: null;
|
|
981
|
-
} | {
|
|
982
|
-
type: "custom";
|
|
983
|
-
customType: string;
|
|
984
|
-
});
|
|
978
|
+
} & import("../../src/types").ActiveTool;
|
|
985
979
|
penMode: boolean;
|
|
986
980
|
penDetected: boolean;
|
|
987
981
|
exportBackground: boolean;
|
|
@@ -1059,12 +1053,18 @@ export declare const actionIncreaseFontSize: {
|
|
|
1059
1053
|
pendingImageElementId: string | null;
|
|
1060
1054
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1061
1055
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1056
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1057
|
+
originSnapOffset: {
|
|
1058
|
+
x: number;
|
|
1059
|
+
y: number;
|
|
1060
|
+
} | null;
|
|
1061
|
+
objectsSnapModeEnabled: boolean;
|
|
1062
1062
|
};
|
|
1063
1063
|
commitToHistory: boolean;
|
|
1064
1064
|
};
|
|
1065
|
-
keyTest: (event:
|
|
1065
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1066
1066
|
} & {
|
|
1067
|
-
keyTest?: ((event:
|
|
1067
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1068
1068
|
};
|
|
1069
1069
|
export declare const actionChangeFontFamily: {
|
|
1070
1070
|
name: "changeFontFamily";
|
|
@@ -1104,15 +1104,9 @@ export declare const actionChangeFontFamily: {
|
|
|
1104
1104
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1105
1105
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1106
1106
|
activeTool: {
|
|
1107
|
-
lastActiveTool: import("../../src/types").
|
|
1107
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1108
1108
|
locked: boolean;
|
|
1109
|
-
} & (
|
|
1110
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1111
|
-
customType: null;
|
|
1112
|
-
} | {
|
|
1113
|
-
type: "custom";
|
|
1114
|
-
customType: string;
|
|
1115
|
-
});
|
|
1109
|
+
} & import("../../src/types").ActiveTool;
|
|
1116
1110
|
penMode: boolean;
|
|
1117
1111
|
penDetected: boolean;
|
|
1118
1112
|
exportBackground: boolean;
|
|
@@ -1190,6 +1184,12 @@ export declare const actionChangeFontFamily: {
|
|
|
1190
1184
|
pendingImageElementId: string | null;
|
|
1191
1185
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1192
1186
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1187
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1188
|
+
originSnapOffset: {
|
|
1189
|
+
x: number;
|
|
1190
|
+
y: number;
|
|
1191
|
+
} | null;
|
|
1192
|
+
objectsSnapModeEnabled: boolean;
|
|
1193
1193
|
};
|
|
1194
1194
|
commitToHistory: true;
|
|
1195
1195
|
};
|
|
@@ -1235,15 +1235,9 @@ export declare const actionChangeTextAlign: {
|
|
|
1235
1235
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1236
1236
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1237
1237
|
activeTool: {
|
|
1238
|
-
lastActiveTool: import("../../src/types").
|
|
1238
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1239
1239
|
locked: boolean;
|
|
1240
|
-
} & (
|
|
1241
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1242
|
-
customType: null;
|
|
1243
|
-
} | {
|
|
1244
|
-
type: "custom";
|
|
1245
|
-
customType: string;
|
|
1246
|
-
});
|
|
1240
|
+
} & import("../../src/types").ActiveTool;
|
|
1247
1241
|
penMode: boolean;
|
|
1248
1242
|
penDetected: boolean;
|
|
1249
1243
|
exportBackground: boolean;
|
|
@@ -1321,6 +1315,12 @@ export declare const actionChangeTextAlign: {
|
|
|
1321
1315
|
pendingImageElementId: string | null;
|
|
1322
1316
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1323
1317
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1318
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1319
|
+
originSnapOffset: {
|
|
1320
|
+
x: number;
|
|
1321
|
+
y: number;
|
|
1322
|
+
} | null;
|
|
1323
|
+
objectsSnapModeEnabled: boolean;
|
|
1324
1324
|
};
|
|
1325
1325
|
commitToHistory: true;
|
|
1326
1326
|
};
|
|
@@ -1367,15 +1367,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1367
1367
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1368
1368
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1369
1369
|
activeTool: {
|
|
1370
|
-
lastActiveTool: import("../../src/types").
|
|
1370
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1371
1371
|
locked: boolean;
|
|
1372
|
-
} & (
|
|
1373
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1374
|
-
customType: null;
|
|
1375
|
-
} | {
|
|
1376
|
-
type: "custom";
|
|
1377
|
-
customType: string;
|
|
1378
|
-
});
|
|
1372
|
+
} & import("../../src/types").ActiveTool;
|
|
1379
1373
|
penMode: boolean;
|
|
1380
1374
|
penDetected: boolean;
|
|
1381
1375
|
exportBackground: boolean;
|
|
@@ -1454,6 +1448,12 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1454
1448
|
pendingImageElementId: string | null;
|
|
1455
1449
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1456
1450
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1451
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1452
|
+
originSnapOffset: {
|
|
1453
|
+
x: number;
|
|
1454
|
+
y: number;
|
|
1455
|
+
} | null;
|
|
1456
|
+
objectsSnapModeEnabled: boolean;
|
|
1457
1457
|
};
|
|
1458
1458
|
commitToHistory: true;
|
|
1459
1459
|
};
|
|
@@ -1499,15 +1499,9 @@ export declare const actionChangeRoundness: {
|
|
|
1499
1499
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1500
1500
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1501
1501
|
activeTool: {
|
|
1502
|
-
lastActiveTool: import("../../src/types").
|
|
1502
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1503
1503
|
locked: boolean;
|
|
1504
|
-
} & (
|
|
1505
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1506
|
-
customType: null;
|
|
1507
|
-
} | {
|
|
1508
|
-
type: "custom";
|
|
1509
|
-
customType: string;
|
|
1510
|
-
});
|
|
1504
|
+
} & import("../../src/types").ActiveTool;
|
|
1511
1505
|
penMode: boolean;
|
|
1512
1506
|
penDetected: boolean;
|
|
1513
1507
|
exportBackground: boolean;
|
|
@@ -1585,6 +1579,12 @@ export declare const actionChangeRoundness: {
|
|
|
1585
1579
|
pendingImageElementId: string | null;
|
|
1586
1580
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1587
1581
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1582
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1583
|
+
originSnapOffset: {
|
|
1584
|
+
x: number;
|
|
1585
|
+
y: number;
|
|
1586
|
+
} | null;
|
|
1587
|
+
objectsSnapModeEnabled: boolean;
|
|
1588
1588
|
};
|
|
1589
1589
|
commitToHistory: true;
|
|
1590
1590
|
};
|
|
@@ -1632,15 +1632,9 @@ export declare const actionChangeArrowhead: {
|
|
|
1632
1632
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1633
1633
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1634
1634
|
activeTool: {
|
|
1635
|
-
lastActiveTool: import("../../src/types").
|
|
1635
|
+
lastActiveTool: import("../../src/types").ActiveTool | null;
|
|
1636
1636
|
locked: boolean;
|
|
1637
|
-
} & (
|
|
1638
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1639
|
-
customType: null;
|
|
1640
|
-
} | {
|
|
1641
|
-
type: "custom";
|
|
1642
|
-
customType: string;
|
|
1643
|
-
});
|
|
1637
|
+
} & import("../../src/types").ActiveTool;
|
|
1644
1638
|
penMode: boolean;
|
|
1645
1639
|
penDetected: boolean;
|
|
1646
1640
|
exportBackground: boolean;
|
|
@@ -1719,6 +1713,12 @@ export declare const actionChangeArrowhead: {
|
|
|
1719
1713
|
pendingImageElementId: string | null;
|
|
1720
1714
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1721
1715
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1716
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1717
|
+
originSnapOffset: {
|
|
1718
|
+
x: number;
|
|
1719
|
+
y: number;
|
|
1720
|
+
} | null;
|
|
1721
|
+
objectsSnapModeEnabled: boolean;
|
|
1722
1722
|
};
|
|
1723
1723
|
commitToHistory: true;
|
|
1724
1724
|
};
|
|
@@ -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";
|
|
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;
|
|
@@ -125,11 +119,17 @@ export declare const actionSelectAll: {
|
|
|
125
119
|
};
|
|
126
120
|
pendingImageElementId: string | null;
|
|
127
121
|
showHyperlinkPopup: false | "editor" | "info";
|
|
122
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
123
|
+
originSnapOffset: {
|
|
124
|
+
x: number;
|
|
125
|
+
y: number;
|
|
126
|
+
} | null;
|
|
127
|
+
objectsSnapModeEnabled: boolean;
|
|
128
128
|
};
|
|
129
129
|
commitToHistory: true;
|
|
130
130
|
};
|
|
131
131
|
contextItemLabel: string;
|
|
132
|
-
keyTest: (event:
|
|
132
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
133
133
|
} & {
|
|
134
|
-
keyTest?: ((event:
|
|
134
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
135
135
|
};
|
|
@@ -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";
|
|
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;
|
|
@@ -122,13 +116,19 @@ export declare const actionCopyStyles: {
|
|
|
122
116
|
pendingImageElementId: string | null;
|
|
123
117
|
showHyperlinkPopup: false | "editor" | "info";
|
|
124
118
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
119
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
120
|
+
originSnapOffset: {
|
|
121
|
+
x: number;
|
|
122
|
+
y: number;
|
|
123
|
+
} | null;
|
|
124
|
+
objectsSnapModeEnabled: boolean;
|
|
125
125
|
};
|
|
126
126
|
commitToHistory: false;
|
|
127
127
|
};
|
|
128
128
|
contextItemLabel: string;
|
|
129
|
-
keyTest: (event:
|
|
129
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
130
130
|
} & {
|
|
131
|
-
keyTest?: ((event:
|
|
131
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
132
132
|
};
|
|
133
133
|
export declare const actionPasteStyles: {
|
|
134
134
|
name: "pasteStyles";
|
|
@@ -143,7 +143,7 @@ export declare const actionPasteStyles: {
|
|
|
143
143
|
commitToHistory: true;
|
|
144
144
|
};
|
|
145
145
|
contextItemLabel: string;
|
|
146
|
-
keyTest: (event:
|
|
146
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
147
147
|
} & {
|
|
148
|
-
keyTest?: ((event:
|
|
148
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
149
149
|
};
|
|
@@ -9,6 +9,7 @@ export declare const actionToggleGridMode: {
|
|
|
9
9
|
perform(elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<AppState>): {
|
|
10
10
|
appState: {
|
|
11
11
|
gridSize: number | null;
|
|
12
|
+
objectsSnapModeEnabled: false;
|
|
12
13
|
contextMenu: {
|
|
13
14
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
14
15
|
top: number;
|
|
@@ -40,15 +41,9 @@ export declare const actionToggleGridMode: {
|
|
|
40
41
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
41
42
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
42
43
|
activeTool: {
|
|
43
|
-
lastActiveTool: import("../types").
|
|
44
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
45
|
locked: boolean;
|
|
45
|
-
} & (
|
|
46
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
47
|
-
customType: null;
|
|
48
|
-
} | {
|
|
49
|
-
type: "custom";
|
|
50
|
-
customType: string;
|
|
51
|
-
});
|
|
46
|
+
} & import("../types").ActiveTool;
|
|
52
47
|
penMode: boolean;
|
|
53
48
|
penDetected: boolean;
|
|
54
49
|
exportBackground: boolean;
|
|
@@ -126,13 +121,18 @@ export declare const actionToggleGridMode: {
|
|
|
126
121
|
pendingImageElementId: string | null;
|
|
127
122
|
showHyperlinkPopup: false | "editor" | "info";
|
|
128
123
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
124
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
125
|
+
originSnapOffset: {
|
|
126
|
+
x: number;
|
|
127
|
+
y: number;
|
|
128
|
+
} | null;
|
|
129
129
|
};
|
|
130
130
|
commitToHistory: false;
|
|
131
131
|
};
|
|
132
132
|
checked: (appState: AppState) => boolean;
|
|
133
133
|
predicate: (element: readonly import("../element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
134
134
|
contextItemLabel: string;
|
|
135
|
-
keyTest: (event:
|
|
135
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
136
136
|
} & {
|
|
137
|
-
keyTest?: ((event:
|
|
137
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
138
138
|
};
|