From 80bdde42c89321cad660a0f71d95563fe016fb05 Mon Sep 17 00:00:00 2001 From: Luca Lianas Date: Tue, 6 Dec 2016 11:23:45 +0100 Subject: [PATCH] bug fix --- src/js/shapes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/shapes.js b/src/js/shapes.js index 53480fc..f7a3c4c 100644 --- a/src/js/shapes.js +++ b/src/js/shapes.js @@ -141,7 +141,7 @@ function Shape(id, transform_matrix) { }; this.getCoveragePercentage = function(shape) { - var shape_area = shape.getArea(); + var shape_area = shape.getArea(1); if ((typeof this.paper_shape !== 'undefined') && (typeof shape_area !== 'undefined')) { var intersection = this._shapeToPath().intersect(shape._shapeToPath()); // passing 1 as pixel size because we only need area in pixels to get the coverage ratio