points-on-curve
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,3 +0,4 @@ | ||
export declare type Point = readonly [number, number]; | ||
export type Point = readonly [number, number]; | ||
export declare function simplify(points: readonly Point[], distance: number): Point[]; | ||
export declare function simplifyPoints(points: readonly Point[], start: number, end: number, epsilon: number, newPoints?: Point[]): Point[]; | ||
export declare function pointsOnBezierCurves(points: readonly Point[], tolerance?: number, distance?: number): Point[]; |
@@ -85,3 +85,3 @@ // distance between 2 points | ||
// https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm | ||
function simplifyPoints(points, start, end, epsilon, newPoints) { | ||
export function simplifyPoints(points, start, end, epsilon, newPoints) { | ||
const outPoints = newPoints || []; | ||
@@ -88,0 +88,0 @@ // find the most distance point from the endpoints |
{ | ||
"name": "points-on-curve", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Estimate points on a bezier curve or a set of connexted bezier curves", | ||
@@ -29,2 +29,2 @@ "main": "lib/index.js", | ||
} | ||
} | ||
} |
@@ -96,3 +96,3 @@ export type Point = readonly [number, number]; | ||
// https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm | ||
function simplifyPoints(points: readonly Point[], start: number, end: number, epsilon: number, newPoints?: Point[]): Point[] { | ||
export function simplifyPoints(points: readonly Point[], start: number, end: number, epsilon: number, newPoints?: Point[]): Point[] { | ||
const outPoints = newPoints || []; | ||
@@ -99,0 +99,0 @@ |
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
17465
341