diff --git a/src/extension/parallelogram.ts b/src/extension/parallelogram.ts index b9fad49..614ff19 100644 --- a/src/extension/parallelogram.ts +++ b/src/extension/parallelogram.ts @@ -36,7 +36,7 @@ const parallelogram: OverlayTemplate = { ] } if (coordinates.length === 3) { - const coordinate = { x: coordinates[0].x + (coordinates[2].x - coordinates[1].x), y: coordinates[2].y } + const coordinate = { x: coordinates[0].x + coordinates[2].x - coordinates[1].x, y: coordinates[0].y + coordinates[2].y - coordinates[1].y } return [ { type: 'polygon',