- improve TypeScript typings (
poly2tri.d.ts) : full JSDoc, type options (SweepContextOptions), minor fixes - development : add benchmarks for custom points
{X,Y}in addition toPoint
- keep all
dist/files in npm package, including UMD version
- TypeScript types (
poly2tri.d.ts) initialy provided by @ElemarJR are now directly bundled in the NPM package (no need to install separately fromDefinitelyTypedor@types) - reduce size of npm package
- fix old google code URLs in
package.json - upgrade build and tests dependencies
- new
SweepContext.addHolesmethod, to add multiple holes with one call - bower.json now points to the un-minified source, as per the bower.json spec. Reported by Matt DesLauriers @mattdesl
- better jsdoc annotations
- add additional test cases and improve unit tests performances
- performance improvement. Replace all
Math.atan2calls by dot vectors computations, producing about 5 to 10% performance improvement on the benchmark. Idea by Andrey Diduh - add additional test cases
- upgrade Browserify. As a side effect, the generated bundle
dist/poly2tri.jsis more compatible with the buggyExtendScriptparser (who chokes on nested ternary operators?:?:). - internal : improve benchmark code to track performances
- provide a minified build in
dist/poly2tri.min.js, using UglifyJS 2. - add a
poly2tri.VERSIONstring - merge some code updates from C++ version
- add more tests
- improve code modularity
- add Pan and Zoom capability to the demo, using KineticJS.
- display pointer position in the demo
- internal:
- use
bowerto manage front-end dependencies for the demo - use Benchmark.js to track performances between releases
- use
- Browserify is used to generate a UMD (universal module definition) bundle, compatible with the various module systems.
- the released code for browsers is now in the
dist/directory (thesrc/directory contains the source code for Node.js). - add a Bower package
- move repository from Google Code to GitHub
- remove deprecated Namespace.js support
- add additional check from Java version for intersecting constraints (issue #88)
- more test cases
- publish as an official Node.js module on npm https://npmjs.org/package/poly2tri
- use karma for cross browsers testing