Per https://w3ctag.github.io/design-principles/#constructors, can we make these have constructors, instead of adding factory functions to CanvasRenderingContext2D?
If the constructor needs to take a CanvasRenderingContext2D as an argument to associate with the correct canvas, that's reasonable.
Per https://w3ctag.github.io/design-principles/#constructors, can we make these have constructors, instead of adding factory functions to CanvasRenderingContext2D?
If the constructor needs to take a CanvasRenderingContext2D as an argument to associate with the correct canvas, that's reasonable.