Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

simplify-flat-array

1.0.0 • Public • Published

simplify-flat-array

simplify-js for flat number arrays ([ x1, y1, x2, y2,...]).

Install

npm i simplify-flat-array

Use

Like simplify-js, except for the points format. See simplify-js demo/doku

simplify(points, tolerance, highQuality)

  • points - [Array] - [ x1, y1, x2, y2,...].

  • tolerance - Number

  • highQuality Boolean - includes distance-based processing if true

The return value is also a flat number array.

Test

npm run test

The tests from simplify-js are included, only changed the points format.

install

npm i simplify-flat-array

Downloadsweekly downloads

1

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability