jakubfiala / atrament

A small JS library for beautiful drawing and handwriting on the HTML Canvas.
http://fiala.space/atrament/demo
MIT License
1.55k stars 116 forks source link

Clarify how to access Atrament class #31

Closed raphinesse closed 4 years ago

raphinesse commented 7 years ago

It should be clarified that Atrament will never be exposed automatically. From the docs, I expected it to be in global scope, when including atrament.min.js.

Do not get me wrong though, I think it is good that there is only one global. This is just about clear documentation.

jakubfiala commented 7 years ago

This is actually a bug, Atrament should be exposed when you include the lib in a script tag. Thanks for flagging this up!

raphinesse commented 7 years ago

You're welcome

jakubfiala commented 4 years ago

Hi @raphinesse - just FYI, in Atrament 1.0.0 the Atrament class is the default export, I got rid of the factory function.