Packages

@napi-rs/canvas

1.1.0 · 30 Oct 2026MIT47.9M / weekRepositoryHomepagenpmAtom feed

Your version

0.1.85

19 Dec 2025Where it was published

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 fontVariantCaps

  • feta: Support CanvasRenderingContext2D.reset()

  • Initial black color string should be #000000 rather than #000

  • Support windows arm64

  • Basic support for direction

  • Support Lottie API