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