Download Latest Version canvas-v3.2.0-napi-v7-darwin-arm64.tar.gz (6.8 MB)
Email in envelope

Get an email when there's a new version of node-canvas

Home / v3.1.0
Name Modified Size InfoDownloads / Week
Parent folder
canvas-v3.1.0-napi-v7-win32-x64.tar.gz 2025-01-22 13.2 MB
canvas-v3.1.0-napi-v7-darwin-x64.tar.gz 2025-01-22 7.5 MB
canvas-v3.1.0-napi-v7-linux-x64.tar.gz 2025-01-22 8.8 MB
canvas-v3.1.0-napi-v7-darwin-arm64.tar.gz 2025-01-22 7.0 MB
README.md 2025-01-22 1.0 kB
v3.1.0 source code.tar.gz 2025-01-22 2.3 MB
v3.1.0 source code.zip 2025-01-22 2.3 MB
Totals: 7 Items   41.1 MB 0

3.1.0

  • Replaced simple-get with Node.js builtin fetch (#2309)
  • ctx.font has a new C++ parser and is 2x-400x faster. Please file an issue if you experience different results, as caching has been removed.
  • The restriction of registering fonts before a canvas is created has been removed. You can now register a font as late as right before the fillText call (#1921)

Added

  • Support for accessibility and links in PDFs
  • ctx.direction is implemented: 'rtl' or 'ltr' set the base direction of text
  • ctx.textAlign 'start' and 'end' are now 'right' and 'left' when ctx.direction === 'rtl'

Fixed

  • Fix a crash in getImageData when the rectangle is entirely outside the canvas. (#2024)
  • Fix getImageData cropping the resulting ImageData when the given rectangle is partly outside the canvas. (#1849)
Source: README.md, updated 2025-01-22