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'