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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i simplify-flat-array

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • stbaer