const context = this ? this.getContext("2d") : DOM.context2d(width, height);
Is that if the width or height changes, the retained canvas is the wrong size. It’d be nice if there were a simple way to retain the canvas, but only if it is the desired size.
The problem with:
Is that if the width or height changes, the retained canvas is the wrong size. It’d be nice if there were a simple way to retain the canvas, but only if it is the desired size.