We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
a dedicated worker has full support for requestAnimationFrame() https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame
requestAnimationFrame()
/** * Request animation polyfill */ export const requestAnimFrame = (function() { if (typeof window === 'undefined') { return function(callback) { return callback(); }; } return window.requestAnimationFrame; }());
so this will get applied, which is not good.
what you want to check instead:
if (!globalThis.requestAnimationFrame) { // smart polyfill }
polyfill getting applied in dedicated workers
https://github.com/neomjs/chartjs-demo
No response
v4.4.4
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected behavior
a dedicated worker has full support for
requestAnimationFrame()
https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame
so this will get applied, which is not good.
what you want to check instead:
Current behavior
polyfill getting applied in dedicated workers
Reproducible sample
https://github.com/neomjs/chartjs-demo
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
v4.4.4
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: