Change default select tool to rect

This commit is contained in:
Mitchell McCaffrey 2021-07-22 16:05:54 +10:00
parent 60760e3d8e
commit 1043eac3ab
4 changed files with 8 additions and 8 deletions

View File

@ -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 (

View File

@ -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";

View File

@ -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" },
})); }));
} }