@napi-rs/canvas
1.1.0 · 30 Oct 2026MIT47.9M / weekRepositoryHomepagenpmAtom feed
125 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 0.1.x
0.1.13
20 Oct 2021Text align position
Update rust toolchain
Upgrade to chrome/m96
Bug Fixes
Text align position
Center
image
End
image
Left
image
Right
image
Start
image
Features
Update rust toolchain
Upgrade to chrome/m96
0.1.12
15 Oct 2021Support avif format output
0.1.11
30 Sep 2021Support colorSpace: 'display-p3'
0.1.10
27 Sep 2021image_filter to Image SamplingOptions conversion
Implement filter for Context
0.1.9
24 Sep 2021aarch64-apple-darwin (macOS m1 chips) build [skip skia]
0.1.8
19 Sep 2021Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
0.1.7
14 Sep 2021deps: update rust crate cssparser to 0.29
Transform state between save/restore
0.1.6
25 Aug 2021Example to png
Pass the fabric.js visual tests
Strip start and end ' from font family
Bug Fixes
Example to png
Pass the fabric.js visual tests
Fix addColorStop sort issue in CanvasGradient
Fix Transform::inverse method
No need map_points in CanvasGradient::get_shader
CSS Color now allowed to be empty string
Allow createPattern from another Canvas
toDataURL should be STANDARD base64
swap Path in beginPath for better performance
Strip start and end ' from font family
Features
chrome/m94
Load fonts from user dir
0.1.5
13 Aug 2021Default value of FilterQuality in SamplingOptions should be high
Add resize SVG demo
0.1.4
11 Aug 2021Scale svg image if need
0.1.3
6 Aug 2021Icudtl.dat download logic in publish job
0.1.2
6 Aug 2021Windows icudtl.data version and path
Implement convertSVGTextToPath function
0.1.1
2 Aug 2021Use viewbox as svg_container_size if width & height is empty
Upgrade to skia/chrome/m93 latest
0.1.0
30 Jul 2021Canvas.png() to canvas.encode('png')
Multi font families
Sample image size update
Bug Fixes
Canvas.png() to canvas.encode('png')
Multi font families
Sample image size update
Features
Add .asWinding() to convert the sample image of SVG filltype
Add basic measureText setup
measureText with all textAlign and textBaseline
Support register font with family name alias
Support woff/woff2 fonts
Svg canvas backend
- 0.0.x
0.0.12
14 Jul 2021Support raw pixels output
Support toDataURL and toDataURLAsync on canvas element
0.0.11
13 Jul 2021support maxWidth in fillText and strokeText
0.0.10
12 Jul 2021Missing registerFromPath implementation
0.0.9
11 Jul 2021Upgrade skia to chrome/m92 latest
0.0.8
23 Jun 2021Support conic gradient
Support webp output
0.0.6
6 May 2021Windows setAssetFontManager crash
Add .editorconfig file
Add font collection singleton scaffold
Bug Fixes
Windows setAssetFontManager crash
Features
Add .editorconfig file
Add font collection singleton scaffold
Support GlobalFonts.families
Support GlobalFonts.has
Support GlobalFonts.register
0.0.5
4 May 2021path: wrong Stroke type cast and miterLimit default value
Add stroke to trim test to make it more visually recognizable
Add getFillTypeString() for PathKit
Bug Fixes
path: wrong Stroke type cast and miterLimit default value
Add stroke to trim test to make it more visually recognizable
Features
Add getFillTypeString() for PathKit
Add PathKit.dash()
0.0.4
19 Apr 2021Parse error for single font size rules
path2d: implement pathkit functions
Skia chrome/m91, add back mimalloc
0.0.3
27 Mar 2021Wrong package name in index.js
0.0.2
27 Mar 2021Bitmap destructor
Build on windows
Compat with Node.js readonly error messages
Bug Fixes
Bitmap destructor
Build on windows
Compat with Node.js readonly error messages
Eslint & vscode config ignore
Image shadow
Image src getter
Setters on readonly properties
Sync lock file
Transform matrix config
Features
Add drawImage poc
Add image class poc
Add image SkData field poc
ImageData relates API and tests
Implement image pattern
Scale and rotate
Skia m89
Support all drawImage variants
Support context alpha
Support creating SkImage
Support getContextAttributes
Support isPointInPath
Support isPointInStroke
Support naturalWidth/naturalHeight/complete/alt
Sync skia m89
Text states and font styles
Performance Improvements
Disable image data copy