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.