Comparing version 2.2.16 to 2.2.17
@@ -105,2 +105,3 @@ /// <reference types="offscreencanvas" /> | ||
bezier(step?: number): DPolygon; | ||
setGrowingHeight(from: number, to: number): DPolygon; | ||
private getBezierPoint; | ||
@@ -107,0 +108,0 @@ private simpleIncludeX; |
@@ -818,2 +818,16 @@ "use strict"; | ||
} | ||
setGrowingHeight(from, to) { | ||
const { fullLength } = this; | ||
let { first: prevPoint } = this; | ||
const d = to - from; | ||
let currentDistance = 0; | ||
this.loop() | ||
.setZ((p) => { | ||
currentDistance += prevPoint.distance(p); | ||
prevPoint = p; | ||
return from + currentDistance / fullLength * d; | ||
}) | ||
.run(); | ||
return this; | ||
} | ||
getBezierPoint(v) { | ||
@@ -820,0 +834,0 @@ if (this.length === 1) { |
{ | ||
"name": "dgeoutils", | ||
"version": "2.2.16", | ||
"version": "2.2.17", | ||
"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
110998
3178