From 2427856be9cc5644370b401ff5cfc187717a7936 Mon Sep 17 00:00:00 2001 From: Wouter R Date: Sun, 2 Feb 2014 02:43:33 +0100 Subject: [PATCH] Fix bounds calculation of paths with coords >|9999|. --- js/Shape.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Shape.js b/js/Shape.js index 722370b..ebf1c59 100644 --- a/js/Shape.js +++ b/js/Shape.js @@ -40,7 +40,7 @@ function endShape() { } function getBounds(points) { - var xMin=9999,xMax=-9999,yMin=9999,yMax=-9999; + var xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity; for (var i=0; i