jq-signature icon indicating copy to clipboard operation
jq-signature copied to clipboard

Allow dynamic resizing of <canvas>'s

Open bencentra opened this issue 9 years ago • 0 comments

When the width of a canvas changes, it clears the canvas' context. This means everything drawn goes away, as well as all other settings (stroke color, thickness, etc).

Add a way to save the state of the canvas before resizing the window, then restore it (properly, given the altered width) when resizing the canvas.

bencentra avatar May 23 '15 20:05 bencentra