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
Add platform fallback implementation #4708
Conversation
If `window` or `document` are `undefined`, a minimal platform implementation is used instead, which one only returns a context2d read from the given canvas/context.
@hach-que can you please test this PR and confirm that it works for your use case? |
@hach-que ping! |
Probably won't get a chance to test this for a while. As long as it avoids calling methods on |
I can't test it server side so can't guarantee that it will work as expected. Basically, if |
Found 5 minutes to test this. The following works:
|
Thanks @hach-que |
If `window` or `document` are `undefined`, a minimal platform implementation is used instead, which one only returns a context2d read from the given canvas/context.
If `window` or `document` are `undefined`, a minimal platform implementation is used instead, which one only returns a context2d read from the given canvas/context.
If
window
ordocument
areundefined
, a minimal platform implementation is used instead, which one only returns a context2d read from the given canvas/context.Relates to #4591