Packages

@napi-rs/canvas

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

Your version

125 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 0.1.64

    25 Nov 2024
    • Missing icudtl.dat on Windows

  2. 0.1.63

    23 Nov 2024
    • Panic when restore from scale(0,0) state

    • shadowBlur position

    • Shadow blur 0 makes text shadow not render at all

  3. 0.1.62

    15 Nov 2024
    • Allow set file path as Image#src

    • Support data url as Image#src

    • Align the imageSmoothingQuality behavior with chrome

  4. 0.1.61

    13 Nov 2024
    • After clearing, the bitmap should be cleared, and the width and height should be reset to the initial values.

  5. 0.1.60

    7 Nov 2024
    • SvgCanvas: Allow canvas size modification

    • Upgrade to NAPI-RS 3.0.0-alpha.19

    • Memory leak in Image

  6. 0.1.59

    27 Oct 2024
    • Build macos with xcode llvm

    • loadImage convert ArrayBuffer issue

    • Upgrade skia to m131

  7. 0.1.58

    14 Oct 2024
    • loadImage memleak and performance issue

  8. 0.1.57

    14 Oct 2024
    • chrome/m130

    • Creating canvas with width or height of zero or less

    • Memory leak in Image/loadImage

  9. 0.1.56

    19 Sep 2024
    • ?? is error on node@10

    • Adjust the order of onload calls

  10. 0.1.55

    4 Sep 2024
    • Image src is null after loaded

    • Upgrade skia to m129

  11. 0.1.54

    17 Aug 2024
    • Update skia to m127

    • Handle relative and invalid URLs in redirects when passing URL to loadImage()

    • Image decode should be async

  12. 0.1.53

    9 Jun 2024
    • armv7 segmentfault

    • Update README.md

    • chrome/m116

  13. 0.1.52

    17 Apr 2024
    • Negative letter spacing

    • drawImage with exif orientation

    • chrome/m125

  14. 0.1.51

    4 Mar 2024
    • Remove postinstall script for gnu/musl platform

  15. 0.1.50

    26 Feb 2024
    • Support ctx.letterSpacing and ctx.wordSpacing

  16. 0.1.49

    22 Feb 2024
    • chrome/m123

    • Memory leak while encoding png from Canvas

  17. 0.1.48

    21 Feb 2024
    • Memory leak in Canvas encode

    • isPointInPath/isPointInStroke should respect transform

    • Map points args order

  18. 0.1.47

    19 Feb 2024
    • DOMMatrix#transformPoint

    • Font css parser should handle the font height

  19. 0.1.46

    19 Feb 2024
    • Draw text on svg

  20. 0.1.45

    5 Feb 2024
    • Use drawPicture in some blending modes such as destination-in

    • Added a couple of examples of the loadImage function to README.md

    • Upgrade skia to chrome/122

  21. 0.1.44

    22 Aug 2023
    • File extensions in loadFontsFromDir() are no longer case-sensitive

  22. 0.1.43

    11 Aug 2023

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  23. 0.1.42

    8 Aug 2023
    • Url is string type

    • Add ctx.canvas property on svg context

  24. 0.1.41

    22 May 2023
    • Adjust order of generating bitmap

  25. 0.1.40

    9 Apr 2023
    • chrome/m113

  26. 0.1.39

    14 Mar 2023
    • Set empty src to Image

  27. 0.1.38

    11 Mar 2023
    • skia/m112

  28. 0.1.37

    27 Feb 2023
    • Reject if image is not supported

  29. 0.1.36

    21 Feb 2023
    • Recalc paint_x according to align if maxWidth is set

  30. 0.1.35

    16 Feb 2023
    • Canvas instance check

    • DOMMatrix object to skia Transform convert

    • DOMMatrix to skia Transform

  31. 0.1.34

    12 Jan 2023
    • Wrong text baseline calculation in drawText and measureText

  32. 0.1.33

    8 Jan 2023
    • maxWidth overflow paint_x position should power the scale ratio

  33. 0.1.32

    7 Jan 2023
    • chrome/m110

    • roundRect

    • getTransform should return DOMMatrix

  34. 0.1.31

    2 Jan 2023
    • chrome/m107

    • chrome/m108

    • Multiple define on cached native object in jest

  35. 0.1.30

    22 Sep 2022
    • TypeScript types for avif config

    • Error listening to req

    • Ctx.globalAlpha should effect drawImage

  36. 0.1.29

    26 Aug 2022
    • isBufferLike in load-image.js

    • Data url should be standard base64

    • drawImage alpha should not effect by fillStyle

  37. 0.1.28

    16 Aug 2022
    • Adjust Node.js external memory while creating Canvas

  38. 0.1.27

    14 Aug 2022
    • Segfault while drawing empty text

  39. 0.1.26

    7 Aug 2022
    • Redirect handler

    • chrome/m105

    • Miss applying image_smoothing_enabled and image_smoothing_quality

  40. 0.1.25

    30 Jun 2022
    • Implement loadImage function

    • Add stream and alt support for Image

    • Skia chrome/m104

  41. 0.1.24

    30 Jun 2022
    • Implement loadImage function

    • Add stream and alt support for Image

    • Skia chrome/m104

  42. 0.1.23

    23 Jun 2022

    You can now use @napi-rs/canvas in older linux distribution, like debian:stretch

  43. 0.1.22

    2 Jun 2022
    • Example with copyrightinfo, Bulid with dependencies

    • chrome/m101

    • Fix artifacts upload

  44. 0.1.21

    10 Mar 2022
    • BlendMode::Source should be copy instead of source

    • Bugfix

  45. 0.1.20

    15 Feb 2022
    • Fix the issue of arc to + bezier to + quad to at empty path case

    • Scoot method for path empty case

    • The quality default value case of encode(type, quality) method

  46. 0.1.19

    31 Dec 2021
    • Text align and font fallback

  47. 0.1.18

    30 Dec 2021
    • Upgrade skia to chrome/m98

    • Reduce install size for linux glibc/musl

  48. 0.1.17

    12 Dec 2021
  49. 0.1.15

    11 Nov 2021
    • vercel/nft and webpack compatible issue

  50. 0.1.14

    26 Oct 2021
    • Now generating avif images is 10x+ faster.

    • Use different quality for WebP and JPEG formats, which is more in line with the browser's default values.

    • The option to generate avif removes alphaQuality and calculates it internally.