Change default select tool to rect
This commit is contained in:
parent
60760e3d8e
commit
1043eac3ab
@ -34,18 +34,18 @@ function SelectToolSettings({
|
|||||||
useKeyboard(handleKeyDown);
|
useKeyboard(handleKeyDown);
|
||||||
|
|
||||||
const tools = [
|
const tools = [
|
||||||
{
|
|
||||||
id: "path",
|
|
||||||
title: "Lasso Selection (L)",
|
|
||||||
isSelected: settings.type === "path",
|
|
||||||
icon: <PathIcon />,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: "rectangle",
|
id: "rectangle",
|
||||||
title: "Rectangle Selection (R)",
|
title: "Rectangle Selection (R)",
|
||||||
isSelected: settings.type === "rectangle",
|
isSelected: settings.type === "rectangle",
|
||||||
icon: <RectIcon />,
|
icon: <RectIcon />,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "path",
|
||||||
|
title: "Lasso Selection (L)",
|
||||||
|
isSelected: settings.type === "path",
|
||||||
|
icon: <PathIcon />,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -20,7 +20,7 @@ import PointerToolIcon from "../../icons/PointerToolIcon";
|
|||||||
import FullScreenIcon from "../../icons/FullScreenIcon";
|
import FullScreenIcon from "../../icons/FullScreenIcon";
|
||||||
import FullScreenExitIcon from "../../icons/FullScreenExitIcon";
|
import FullScreenExitIcon from "../../icons/FullScreenExitIcon";
|
||||||
import NoteToolIcon from "../../icons/NoteToolIcon";
|
import NoteToolIcon from "../../icons/NoteToolIcon";
|
||||||
import SelectToolIcon from "../../icons/SelecToolIcon";
|
import SelectToolIcon from "../../icons/SelectToolIcon";
|
||||||
|
|
||||||
import UndoButton from "../controls/shared/UndoButton";
|
import UndoButton from "../controls/shared/UndoButton";
|
||||||
import RedoButton from "../controls/shared/RedoButton";
|
import RedoButton from "../controls/shared/RedoButton";
|
||||||
|
@ -67,7 +67,7 @@ function loadVersions(settings: Settings) {
|
|||||||
// v1.10.0 - Add select tool
|
// v1.10.0 - Add select tool
|
||||||
settings.version(8, (prev: any) => ({
|
settings.version(8, (prev: any) => ({
|
||||||
...prev,
|
...prev,
|
||||||
select: { type: "path" },
|
select: { type: "rectangle" },
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user