Switch to using ctx.reset()
Closed this issue · 2 comments
ZMYaro commented
Switch to using CanvasRenderingContext2D.prototype.reset
, and move the existing Utils.clearCanvas
to a lazy polyfill for it.
ZMYaro commented
This is actually not ideal, as most of the times Utils.clearCanvas
was used, only the contents of the canvas needed to be removed, and the other properties that context.reset
reset did not need to be or were expected to remain untouched.