v0.12.15
Fixed
- Fix NPM installation problem with
husky
introduced inv0.12.13
v0.12.13
Fixed
- Fix faulty positioning regression in
Item#rasterize()
(#1905).
v0.12.12
Fixed
- Fix installation problems on Windows by switching from NPM to yarn for development (#1833).
Changed
- Change
Item#raster({ resolution, insert })
to receive options object, while remaining backward compatible. - Change
Raster#smoothing
to support the values'low'
,'medium'
,'high'
and'off'
. Setting to a boolean value is still supported, translatingfalse
→'off'
andtrue
→'low'
.
Added
- 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
Added
- Export
CanvasProvider
to allow experimenting with https://www.npmjs.com/package/canvaskit-wasm on Node.js
Fixed
- Fix
Path.strokeBounds
that 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
Fixed
- TypeScript: Fix returned instance type (#1796).
- Fix
Path#strokeBounds
for open paths (#1817). - Fix animation progress handling in
Tween.update()
. - Fix setting
Item#scaling
to 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.7
Fixed
- PaperScript: Actually make
options.paperFeatures.moduleExports
work independently fromoptions.paperFeatures.operatorOverloading
.
v0.12.6
Added
- PaperScript: Add option
options.paperFeatures.moduleExports
to control module exports conversion.
v0.12.5
Added
- PaperScript: Add option
options.paperFeatures.operatorOverloading
to control operator overloading.
Fixed
- Fix
new Raster(HTMLCanvasElement)
constructor (#1745). - Handle
CurveLocation
on paths with only one segment. - Fix recently introduced error in
CompoundPath.compare()
(#1769). - Clamp opacity values to [0, 1] (#1814).
- Support closed
Path
items 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).
Changed
- Use
'paper-'
prefix in generated view ids.
v0.12.4
Added
- 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.
Fixed
- 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
Shape
sizes (#1733). - Fix parsing of RGB
Color
strings with percentages (#1736). - Fix
Shape
bounds 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).