Comparing version 1.0.2 to 1.0.3
@@ -443,3 +443,3 @@ "use strict"; | ||
clone() { | ||
const res = new DPolygon([...this.points.map((r) => r.clone())]); | ||
const res = new DPolygon(this.points.map((r) => r.clone())); | ||
res.holes = this.holes.map((h) => h.clone()); | ||
@@ -752,3 +752,3 @@ res.properties = this.properties; | ||
ctx.moveTo(start.x, start.y); | ||
for (let i = 1; i < (steps % this.length); i++) { | ||
for (let i = 1; i <= (steps % this.length); i++) { | ||
const { x, y } = this.p(i); | ||
@@ -755,0 +755,0 @@ ctx.lineTo(x, y); |
{ | ||
"name": "dgeoutils", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78833