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 */