kyranet / canvas-constructor

An ES6 utility for canvas with built-in functions and chained methods.
https://canvasconstructor.js.org
MIT License
116 stars 23 forks source link

refactor: Skia and dep-less support #376

Closed kyranet closed 3 years ago

kyranet commented 3 years ago

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:

Usage is the same as always, except for the change of imports. Additionally, /cairo and /skia now expose a registerFont function.