You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saw the implementation of clearCanvas() based on #46, but this is not exactly what @lifenautjoe was asking for, I think.
clearCanvas() removes the confetti but the canvases keep stacking. So if you have a button that shows confetti you'll get a bunch of empty canvases.
Maybe we need a destroyCanvas() or something like that? Alternatively clearCanvas() could also remove the canvas element from the DOM.
Happy to raise a PR if you want to get it in.
The text was updated successfully, but these errors were encountered:
hey Vladimir,
Thanks for the neat little lib!
Saw the implementation of clearCanvas() based on #46, but this is not exactly what @lifenautjoe was asking for, I think.
clearCanvas() removes the confetti but the canvases keep stacking. So if you have a button that shows confetti you'll get a bunch of empty canvases.
Maybe we need a destroyCanvas() or something like that? Alternatively clearCanvas() could also remove the canvas element from the DOM.
Happy to raise a PR if you want to get it in.
The text was updated successfully, but these errors were encountered: