@napi-rs/canvas
1.2.0 · 21 Nov 2026MIT56.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @napi-rs/canvas From 0.1.100 to 1.2.0
16 releases in betweenevery note read
Release by release
- New
Supports CSS values, ranges (
'100 900','oblique 10deg 20deg','75% 125%'),calc(), and'auto'. Invalid descriptors returnnullwithout registering; non-object descriptors throw aTypeError. - New
Variable fonts clamp
wght/slnt/wdthto declared descriptor ranges, use theitalaxis foritalicwhen available, and apply variation coordinates in SVG<text>. - New
Static (non-variable)
font-stretchmatching now follows CSS Fonts Level 4 (Width > Style > Weightpriority and exact matches for expanded widths).
- New
- New
text: Add fontFeatureSettings, fontVariantLigatures/Numeric/Position, fontSizeAdjust and fontOpticalSizing
- New
text: Add the Blink shaper scaffold behind NAPI_RS_CANVAS_SHAPER
- New
text: Shape canvas text with the Blink-style shaper core
- New
text: Add Blink fallback stages and the macOS system fallback to the shaper
- New
- New
text: Draw text the same on every OS by default, add setTextRenderer
- Fixed
build: Bind the addon's own symbols on Linux so Electron's cxx runtime cannot replace them
- Fixed
path: Draw full-sweep arc() and ellipse() for every start angle
- Fixed
path: Draw a degenerate ellipse() as straight lines like Chrome
- New
- Fixed
canvas: Wrap native methods, not previous wrappers, on re-evaluation
- Fixed
- New
skia: Build Skia with Chrome's CPU raster defines and blitters
- New
color: CSS Color 4/5 at every canvas color site, like Chrome
- New
canvas: Rasterize text like Chrome with CoreText and Fontations
- New
canvas: float16 canvas storage and float ImageData formats
- New
- New
Emit CycloneDX SBOMs for platform packages
- Fixed
Start a new subpath for each Path2D.addPath call
- New
- New
chrome/m156
- Fixed
use-after-free when ctx.restore() revives a GC'd CanvasPattern
- Fixed
Release deferred recording on reads and cap recorded memory
- New
- New
chrome/m154
- Fixed
Invalidate FontCollection typeface cache on font registration
- New
50 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.