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.

Package Sidebar

Install

npm i simplify-flat-array

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • stbaer