New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 0.1.1 to 0.2.0

1

lib/index.d.ts
export declare type Point = [number, number];
export declare function simplify(points: Point[], distance: number): Point[];
export declare function pointsOnBezierCurves(points: Point[], tolerance?: number, distance?: number): Point[];

@@ -80,2 +80,5 @@ // distance between 2 points

}
export function simplify(points, distance) {
return simplifyPoints(points, 0, points.length, distance);
}
// Ramer–Douglas–Peucker algorithm

@@ -82,0 +85,0 @@ // https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm

2

package.json
{
"name": "points-on-curve",
"version": "0.1.1",
"version": "0.2.0",
"description": "Estimate points on a bezier curve or a set of connexted bezier curves",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -90,2 +90,6 @@ export type Point = [number, number];

export function simplify(points: Point[], distance: number): Point[] {
return simplifyPoints(points, 0, points.length, distance);
}
// Ramer–Douglas–Peucker algorithm

@@ -92,0 +96,0 @@ // https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm

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