Replaced fog subtraction with fog cutting

This commit is contained in:
Mitchell McCaffrey
2020-12-03 16:52:24 +11:00
parent 5ae6f0bc1b
commit c24133813f
9 changed files with 144 additions and 109 deletions

View File

@@ -105,8 +105,8 @@ function Map({
onFogDraw({ type: "add", shapes: [shape] });
}
function handleFogShapeSubtract(shape) {
onFogDraw({ type: "subtract", shapes: [shape] });
function handleFogShapeCut(shape) {
onFogDraw({ type: "cut", shapes: [shape] });
}
function handleFogShapesRemove(shapeIds) {
@@ -327,7 +327,7 @@ function Map({
map={map}
shapes={fogShapes}
onShapeAdd={handleFogShapeAdd}
onShapeSubtract={handleFogShapeSubtract}
onShapeCut={handleFogShapeCut}
onShapesRemove={handleFogShapesRemove}
onShapesEdit={handleFogShapesEdit}
active={selectedToolId === "fog"}