Removed edge snapping in favour of single layer fog system

This commit is contained in:
Mitchell McCaffrey
2021-02-16 08:27:39 +11:00
parent 1a2260515d
commit 7639297510
12 changed files with 187 additions and 255 deletions
+6 -6
View File
@@ -92,12 +92,12 @@ function Map({
onMapDraw(new RemoveShapeAction(shapeIds));
}
function handleFogShapeAdd(shape) {
onFogDraw(new AddShapeAction([shape]));
function handleFogShapesAdd(shapes) {
onFogDraw(new AddShapeAction(shapes));
}
function handleFogShapeCut(shape) {
onFogDraw(new CutShapeAction([shape]));
function handleFogShapesCut(shapes) {
onFogDraw(new CutShapeAction(shapes));
}
function handleFogShapesRemove(shapeIds) {
@@ -228,8 +228,8 @@ function Map({
<MapFog
map={map}
shapes={fogShapes}
onShapeAdd={handleFogShapeAdd}
onShapeCut={handleFogShapeCut}
onShapesAdd={handleFogShapesAdd}
onShapesCut={handleFogShapesCut}
onShapesRemove={handleFogShapesRemove}
onShapesEdit={handleFogShapesEdit}
active={selectedToolId === "fog"}