mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: DRY out and simplify setting active tool from toolbar (#7079)
This commit is contained in:
parent
12420592ef
commit
1f4f5e11ae
11 changed files with 116 additions and 165 deletions
|
@ -292,7 +292,7 @@ export type AppState = {
|
|||
showHyperlinkPopup: false | "info" | "editor";
|
||||
selectedLinearElement: LinearElementEditor | null;
|
||||
|
||||
snapLines: SnapLine[];
|
||||
snapLines: readonly SnapLine[];
|
||||
originSnapOffset: {
|
||||
x: number;
|
||||
y: number;
|
||||
|
@ -539,6 +539,8 @@ export type AppClassProperties = {
|
|||
onInsertElements: App["onInsertElements"];
|
||||
onExportImage: App["onExportImage"];
|
||||
lastViewportPosition: App["lastViewportPosition"];
|
||||
togglePenMode: App["togglePenMode"];
|
||||
setActiveTool: App["setActiveTool"];
|
||||
};
|
||||
|
||||
export type PointerDownState = Readonly<{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue