From 60b3e7d126f322d05767ac89b988087bdafbc0dc Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Mon, 6 Aug 2018 16:02:24 +0200 Subject: [PATCH] :sparkles: Round return value of path.length() --- src/path.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/path.js b/src/path.js index 8b1298401ac..da26625dda9 100644 --- a/src/path.js +++ b/src/path.js @@ -1,6 +1,7 @@ import Attributes from "./attributes"; import Point from "./point"; import Bezier from "bezier-js"; +import { round } from "./round"; function Path() { this.render = true; @@ -102,7 +103,7 @@ Path.prototype.length = function() { if (op.to) current = op.to; } - return length; + return round(length); }; /** Returns the startpoint of the path */