Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Make canvas optional peer dependency, allow sending Buffer directly #14

Merged
merged 7 commits into from
Jul 17, 2022

Conversation

foxxyz
Copy link
Owner

@foxxyz foxxyz commented Jul 16, 2022

  • feat!: canvas is now an optional peer dependency and not required for operation
  • feat: add low-level drawBuffer method which is used by drawCanvas and can also be called directly
  • feat: drawKey and drawScreen now accept either a (RGB16-565) Buffer as the second argument, or a callback. If a callback is used without installing canvas, the user will be informed to install it.

close #10

@foxxyz foxxyz self-assigned this Jul 16, 2022
@foxxyz foxxyz merged commit c67780f into master Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove canvas dependency
1 participant