v0.12.12
- Fix installation problems on Windows by switching from NPM to yarn for development (#1833).
- Change
Item#raster({ resolution, insert })to receive options object, while remaining backward compatible. - Change
Raster#smoothingto support the values'low','medium','high'and'off'. Setting to a boolean value is still supported, translatingfalse→'off'andtrue→'low'.
- Allow reusing of raster items in
Item#rasterize({ raster }): By providing an existing raster inoptions.raster, the raster and maybe even its underlying canvas can be reused, as long as the rasterized size doesn't change between rasterizations. This allows for big performance improvements.
v0.12.9
- Export
CanvasProviderto allow experimenting with https://www.npmjs.com/package/canvaskit-wasm on Node.js
- Fix
Path.strokeBoundsthat was incorrect for certain paths (#1824). - Fix Gulp 3 issues to be able to run Travis CI tests on Node.js 10, 12, 13 and 14.
v0.12.8
- TypeScript: Fix returned instance type (#1796).
- Fix
Path#strokeBoundsfor open paths (#1817). - Fix animation progress handling in
Tween.update(). - Fix setting
Item#scalingto a new value after it was set to zero (#1816). - SVG Import: Fully support SVG strings with leading line-breaks (#1813).
- Docs: Improve
Raster#initialize(object)documentation (#1815, #1782). - Docs: Fix
Item#getItem(options)documentation.
v0.12.5
- PaperScript: Add option
options.paperFeatures.operatorOverloadingto control operator overloading.
- Fix
new Raster(HTMLCanvasElement)constructor (#1745). - Handle
CurveLocationon paths with only one segment. - Fix recently introduced error in
CompoundPath.compare()(#1769). - Clamp opacity values to [0, 1] (#1814).
- Support closed
Pathitems with blend mode and no segments (#1763). - Fix error in
getCrossingSegments()(#1773). - SVG Import: Support SVG strings with leading line-breaks (#1813).
- Docs: Improve documentation for
Raster#drawImage(CanvasImageSource)(#1784).
- Use
'paper-'prefix in generated view ids.
v0.12.4
- Allow paper core import in TypeScript (#1713).
- Boolean: Improve performance from
O(n^2)to nearlyO(n)by the use of the sweep and prune algorithm (#1737). - Docs: Add support for nullable values.
- Fix
PathItem#getCrossing()to not return overlaps (#1409). - Fix regression in
Curve.getIntersections()(#1638). - Fix edge cases in
CurveLocation.isCrossing()(#1419, #1263). - Fix
SymbolItem#hitTestAll()to return only one match per symbol item (#1680). - Fix handling of negative
Shapesizes (#1733). - Fix parsing of RGB
Colorstrings with percentages (#1736). - Fix
Shapebounds when passing position in constructor (#1686). - Prevent nested group matrix from reset when transforming parent (#1711).
- Boolean: Fix edge cases in overlap detection (#1262).
- Boolean: Add check for paths with only one segment (#1351).
- Boolean: Correctly handle open filled paths (#1647).
- Boolean: Avoid winding number edge cases (#1619).
- Docs: Fix some documentation return types (#1679).