@napi-rs/canvas
1.1.0 · 30 Oct 2026MIT47.9M / weekRepositoryHomepagenpmAtom feed
1.1.0 is the newest release of 1.x.
In short
7 new19 fixed5 internal
Release note
What's Changed
canvas: Preserve fractional global alpha through native paints
canvas: Preserve pattern snapshots and honor current image sampling quality
canvas: Enable dithering for gradient fill and stroke paints
Retain display-p3 backing surfaces through context acquisition and resize
canvas: WebIDL conversion for ImageData, getContext, createPattern
canvas: Match Chrome for hsl() colors and gradient edge cases
canvas: ImageData patterns and SvgCanvas reads like Chrome
Reset style getters on resize, tag AVIF color, exact PDF alpha
canvas: Match Chrome for alpha:false, clearRect and 'copy'
skia: Build Skia with Chrome's CPU raster defines and blitters
canvas: Draw Image sources from Chrome's decode-cache levels
crash-safe non-finite args, ImageData sizes, DOMMatrixInit
canvas: WebIDL conversion, arity checks and exceptions like Chrome
imagedata: ImageData and get/put/createImageData work like Chrome
canvas: Paths, clips, roundRect and setTransform work like Chrome
canvas: Style getters, shadowColor and canvas sizes like Chrome
canvas: Gradients and SVG conic export work like Chrome
color: CSS Color 4/5 at every canvas color site, like Chrome
canvas: Compositing, shadows, drawCanvas and filters like Chrome
codecs: Chrome's encoders, AVIF decode, data: URLs and SVG images
canvas: Parse fonts, lay out and measure text like Blink
canvas: Rasterize text like Chrome with CoreText and Fontations
canvas: float16 canvas storage and float ImageData formats
svg: Draw SVG images like Chrome: CSS, var(), <use>, <image>
canvas: Write DPI and text metadata in toBuffer, encode and encodeSync
chrome/m157