Bump canvas from 3.0.1 to 3.1.0
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
withNode.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 textctx.textAlign
'start'
and'end'
are now'right'
and'left'
whenctx.direction === 'rtl'
Fixed
Changelog
Sourced from canvas's changelog.
3.1.0
- Replaced
simple-get
withNode.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 textctx.textAlign
'start'
and'end'
are now'right'
and'left'
whenctx.direction === 'rtl'
Fixed
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