@napi-rs/canvas
1.1.0 · 30 Oct 2026MIT47.9M / weekRepositoryHomepagenpmAtom feed
Your version
0.1.100 is the newest release of 0.1.x.
In short
5 new1 fixed2 internal
Release note
What's Changed
Lottie
See lottie-to-video.ts for example
const { LottieAnimation } = require('@napi-rs/canvas')
// Load from file
const animation = LottieAnimation.loadFromFile('animation.json')
// Load from JSON string with resource path for external assets
const animation = LottieAnimation.loadFromData(jsonString, {
resourcePath: '/path/to/assets',
})github.com/user-attachments/assets/e99d61a8-901…
Changelog
Add
fontVariantCapsfeta: Support
CanvasRenderingContext2D.reset()Initial black color string should be
#000000rather than#000Support windows arm64
Basic support for
directionSupport Lottie API