Made grid snapping have a threshold and removed the option to toggle it on and off

This commit is contained in:
Mitchell McCaffrey
2020-04-28 11:31:01 +10:00
parent 734b966a53
commit b3bf3c3598
11 changed files with 21 additions and 105 deletions
+1 -3
View File
@@ -49,18 +49,16 @@ function Map({
const [selectedToolId, setSelectedToolId] = useState("pan");
const [toolSettings, setToolSettings] = useState({
fog: { type: "add", useGridSnapping: false, useEdgeSnapping: true },
fog: { type: "add", useEdgeSnapping: true },
brush: {
color: "darkGray",
type: "stroke",
useBlending: false,
useGridSnapping: false,
},
shape: {
color: "red",
type: "rectangle",
useBlending: true,
useGridSnapping: false,
},
});
function handleToolSettingChange(tool, change) {