paper
Advanced tools
Changelog
0.12.17
{ willReadFrequently: true }
canvas context option where needed (#2008).Changelog
0.12.16
Item#rasterize()
bounds cache when reusing raster.{ willReadFrequently: true }
canvas context option where needed (#1999, #2000, #2003).Path.*
constructor properties handling when passing { insert: true }
Raster#setImageData()
to #putImageData()
.Raster#setImageData()
to also respect image size.Numerical.ANGULAR_EPSILON
for Path#arcTo()
Changelog
0.12.12
Item#raster({ resolution, insert })
to receive options object, while remaining backward compatible.Raster#smoothing
to support the values 'low'
, 'medium'
, 'high'
and 'off'
. Setting to a boolean value is still supported, translating false
→
'off'
and true
→ 'low'
.Item#rasterize({ raster })
: By providing an existing raster in options.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.Changelog
0.12.9
CanvasProvider
to allow experimenting with
https://www.npmjs.com/package/canvaskit-wasm on Node.jsPath.strokeBounds
that was incorrect for certain paths (#1824).Changelog
0.12.8
Path#strokeBounds
for open paths (#1817).Tween.update()
.Item#scaling
to a new value after it was set to zero (#1816).Raster#initialize(object)
documentation (#1815, #1782).Item#getItem(options)
documentation.