Skip to content

Bump canvas from 3.0.1 to 3.1.0

Dependabot requested to merge dependabot-npm_and_yarn-canvas-3.1.0 into master

Bumps canvas from 3.0.1 to 3.1.0.

Release notes

Sourced from canvas's releases.

v3.1.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)
Changelog

Sourced from canvas's changelog.

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)
Commits
  • 61e474e 3.1.0
  • 88e9657 allow registerFont after a canvas has been created (#2483)
  • 52330b8 support ctx.direction and textAlign start/end
  • 0b2edc1 remove reference to old JS parseFont
  • a0c8031 getImageData fixes when rectangle is outside of canvas
  • da33bbe Add link tags for pdfs
  • 728e76c add C++ parser for the font shorthand
  • 7ed0a96 add font setter benchmarks
  • 1d956b7 use fetch api
  • See full diff in compare view


Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts

Merge request reports

Loading