This Pull Request's changes add support for dependency-less and dependency-specific Canvas, as a result, it also forbids direct canvas-constructor imports. Instead, use one of the following:
canvas-constructor/browser: for the HTML5 <canvas> wrapper.
This Pull Request's changes add support for dependency-less and dependency-specific
Canvas
, as a result, it also forbids directcanvas-constructor
imports. Instead, use one of the following:canvas-constructor/browser
: for the HTML5<canvas>
wrapper.canvas-constructor/cairo
: for thecanvas
wrapper.canvas-constructor/skia
: for theskia-canvas
wrapper.Usage is the same as always, except for the change of imports. Additionally,
/cairo
and/skia
now expose aregisterFont
function.