Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

points-on-curve

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

points-on-curve - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

lib/index.d.ts

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc