Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

feat: Window-independent requestAnimationFrame

Open CatchABus opened this issue 2 years ago • 0 comments

This PR ensures that library will be able to use requestAnimationFrame method regardless of platform. For example, one can declare a polyfill of this method to Node's global object instead of browser's window and make use of it. Methods like setTimeout are already used that way so they need no additional handling.

Inspiration came by discussion in #11579 which suggested adding support to chart platforms but this seemed to be a cleaner solution.

CatchABus avatar Nov 19 '23 21:11 CatchABus