Closed raphinesse closed 5 years ago
well the idea was that you should always set the internal canvas size when creating Atrament
. But yeah, I guess hard-coding the default values is odd.
Is there a reason why the size should be supplied to atrament
?
this is fixed in v0.3.0 🎉
IMHO, giving no width and height at all to
atrament
should not reset the dimensions of thecanvas
element. It is quite unexpected, not to say irritating.In case you need the dimensions internally, you should instead read them from the canvas element.