1
0
Fork 0

Round return value of path.length()

This commit is contained in:
Joost De Cock 2018-08-06 16:02:24 +02:00
parent a8b286e917
commit 60b3e7d126

View file

@ -1,6 +1,7 @@
import Attributes from "./attributes"; import Attributes from "./attributes";
import Point from "./point"; import Point from "./point";
import Bezier from "bezier-js"; import Bezier from "bezier-js";
import { round } from "./round";
function Path() { function Path() {
this.render = true; this.render = true;
@ -102,7 +103,7 @@ Path.prototype.length = function() {
if (op.to) current = op.to; if (op.to) current = op.to;
} }
return length; return round(length);
}; };
/** Returns the startpoint of the path */ /** Returns the startpoint of the path */