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. 1.x · latest line
  2. 1.1.0

    30 Oct 2026
    • build: Bind the addon's own symbols on Linux so Electron's cxx runtime cannot replace them

    • text: Draw text the same on every OS by default, add setTextRenderer

    • path: Draw full-sweep arc() and ellipse() for every start angle

  3. 1.0.13

    21 Oct 2026
    • canvas: Wrap native methods, not previous wrappers, on re-evaluation

  4. 1.0.12

    20 Oct 2026
    • canvas: Preserve fractional global alpha through native paints

    • canvas: Preserve pattern snapshots and honor current image sampling quality

    • canvas: Enable dithering for gradient fill and stroke paints

  5. 1.0.11

    10 Oct 2026
    • Emit CycloneDX SBOMs for platform packages

    • Start a new subpath for each Path2D.addPath call

  6. 1.0.10

    1 Oct 2026
    • use-after-free when ctx.restore() revives a GC'd CanvasPattern

    • Release deferred recording on reads and cap recorded memory

    • chrome/m156

  7. 1.0.9

    9 Sep 2026
    • Invalidate FontCollection typeface cache on font registration

    • chrome/m154

  8. 1.0.8

    24 Aug 2026
    • Capture call-time snapshot in async encode APIs

    • Snapshot canvas source in drawImage to avoid per-call pixel copy

  9. 1.0.7

    18 Aug 2026
    • Fast getImageData readback with runtime-dispatched SIMD unpremultiply

    • putImageData no longer inherits transform/clip after getImageData

  10. 1.0.6

    13 Aug 2026
    • Keep skia surface alive during async encode

  11. 1.0.5

    9 Aug 2026
    • Prefer raster signatures over SVG markers

    • Reject malformed raster images

  12. 1.0.3

    28 Jul 2026
    • shadow: Apply shadowColor alpha once instead of squaring it

    • shadow: Align Canvas2D shadows with Chromium

    • chrome/m151

  13. 1.0.2

    30 Jun 2026
    • chrome/m149

  14. 1.0.1

    24 Jun 2026
    • Link aarch64-pc-windows-msvc against static CRT

    • Missing icudtl.dat in win32-arm64 package

  15. 1.0.0

    4 May 2026

    We have achieved ~11m/week downloads, and the API is stable, so we have decided to release version 1.0 at this time. There are no breaking changes; it's safe for everyone to upgrade.

  16. 0.1.x
  17. 0.1.100

    26 Apr 2026
    • image: loadImage settles on invalid input

  18. 0.1.99

    18 Apr 2026
    • drawImage gray halo on transparent PNG edges with imageSmoothingEnabled

    • Allow canvas package postinstall script for benchmark CI

  19. 0.1.98

    15 Apr 2026
    • Chrome m148

  20. 0.1.97

    16 Mar 2026
    • Use signed integers for canvas APIs that accept negative coordinates

  21. 0.1.96

    5 Mar 2026
    • Prevent memory leak when drawing canvas onto another via drawImage()

  22. 0.1.95

    24 Feb 2026
    • Snapshot pixel data in putImageData for deferred rendering mode

  23. 0.1.94

    20 Feb 2026
    • putImageData incorrectly blending pixels due to Mitchell cubic resampler

  24. 0.1.93

    17 Feb 2026
    • Chrome m146

  25. 0.1.92

    12 Feb 2026
    • Add node-canvas compatibility layer (@napi-rs/canvas/node-canvas)

    • putImageData bypassed deferred rendering PageRecorder

  26. 0.1.91

    9 Feb 2026
    • Plug native memory leaks in SVG canvas, bitmap shader, and stream allocations

    • Clip with nested transforms intersects in device space

  27. 0.1.90

    5 Feb 2026
    • Copy font data in GlobalFonts.register to prevent buffer invalidation

    • Support http url in image src

    • Add Drop impl for SkPictureRecorder to prevent memory leak

  28. 0.1.89

    28 Jan 2026
    • Napi feature

    • Implement deferred rendering with incremental layer caching

  29. 0.1.88

    27 Dec 2025
    • Should throw TypeError if drawImage param mismatched

  30. 0.1.87

    26 Dec 2025
    • Make Image class HTML spec compliant for jsdom integration

    • Ignore Letter Spacing in Cursive Scripts

    • image: Make Buffer load synchronous and add decode() method

  31. 0.1.86

    21 Dec 2025
    • Chrome m144

    • RTL text fillText(maxWidth) x positioning calculation error

  32. 0.1.85

    19 Dec 2025
    • Add fontVariantCaps

    • feta: Support CanvasRenderingContext2D.reset()

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

  33. 0.1.84

    6 Dec 2025
    • Add GIF encoding support

    • Add fontStretch and fontKerning support

  34. 0.1.83

    27 Nov 2025
    • Add variable font support

    • Chrome m143

  35. 0.1.82

    11 Nov 2025
    • PDFDocument support

    • Add PDF annotation APIs using SkAnnotation.h for interactive links and navigation

    • Add Uint16Array and Float32Array support to ImageData constructor

  36. 0.1.81

    26 Oct 2025
    • Upgrade to chrome/142

  37. 0.1.80

    13 Sep 2025
    • External memory usage adjustment mismatch

    • Shadow is not applied with transform correctly

  38. 0.1.79

    8 Sep 2025
    • DOMMatrix.invertSelf() to return self for non-invertible matrices per DOM spec

    • Prevent segfault when creating patterns from canvases

  39. 0.1.78

    29 Aug 2025
    • Canvas pattern live reference issue causing incorrect rendering

    • Chrome m140

  40. 0.1.77

    8 Aug 2025
    • Return early if setLineDash param is invalid

  41. 0.1.76

    1 Aug 2025

    This release includes the fix in #2824 It caused the memory leak in Image #1093

  42. 0.1.75

    1 Aug 2025
    • Data URL handling for non-image MIME types (resolves #1088)

    • Implement toBlob method with HTML Canvas standard compliance for issue #1087

  43. 0.1.74

    17 Jul 2025
    • Upgrade to NAPI-RS 3.0.0-beta.11

    • Ref was deprecated in NAPI-RS

    • Hsl color parsing

  44. 0.1.73

    29 Jun 2025
    • Wrong data pointer to ImageData in Electron env

  45. 0.1.72

    25 Jun 2025
    • Use this library with webpack

    • putImageData doesn't work on Electron environment

  46. 0.1.71

    8 Jun 2025
    • Chrome m137

    • Upgrade to NAPI-RS beta

    • Upgrade cssparser

  47. 0.1.70

    2 May 2025
    • Expose SkCornerPathEffect as round() fn on Path2D

    • Resize svg from file path render an empty image

  48. 0.1.69

    4 Apr 2025
    • Memory leak when creating bitmap from svg

    • Accept non-string param as text

    • Chrome m136

  49. 0.1.68

    4 Mar 2025
    • Don't panic if current ts is not able to invert when transform

    • Draw canvas on canvas clip

    • Bitmap::from_image_data width and height

  50. 0.1.67

    8 Feb 2025
    • drawImage canvas implementation

    • Make sure SVGCanvas get content is complete

  51. 0.1.66

    2 Feb 2025
    • Double free in putImageData

    • Support encode stream

    • chrome/m133

  52. 0.1.65

    2 Dec 2024
    • loadImage should handle file URL