Releases: jakubfiala/atrament
Atrament v1.4.0
This update fixes an undesired behaviour where stroke events were recorded when clicking outside of the canvas, and strokes were drawn even if the mouse has been pressed outside of the canvas, too. Thanks @future-cyborg for diagnosing and fixing this!
Atrament v1.3.0
Atrament v1.2.0
This release removes mentions of the opacity
option, which was removed in v1.0.0. I believe the option wasn't very useful, because the way Atrament draws the strokes is via many composite curves, which may overlap. When using the globalAlpha
setting, this means the resulting stroke doesn't have uniform opacity, but is rather composed of a number of semi-transparent layers.
Thanks @alireza23 for pointing out the broken opacity
slider in the demo (#52)
Atrament v1.1.0
This version brings API improvements and bug fixes mainly relating to the launch of v1.0.0. I decided to break semver rules here because 1.0.0 is only a few days old.
- fixes #45 and #46 -
begin/endDrawing
are now calledbegin/endStroke
and they record cursor position and combined withdraw
can be used to reconstruct strokes. See the Programmatic Drawing section of the README for a code example. - fixes #47 - Erase mode is now working correctly
- removes the
opacity
option as it caused issues with programmatic drawing, and wasn't really working in an intuitive way anyway, since each Atrament stroke consists of many potentially overlapping curve segments.
Atrament v1.0.0
First major version bump of Atrament is here!
This version brings breaking changes to the API and new features, such as:
- getting rid of the
atrament
factory function, and replacing it with thenew Atrament(...
constructor - adding a proper events system with new events such as
strokestart
/strokeend
fillstart
/fillend
strokerecorded
- By recording reconstructible stroke data, it's now possible to implement undo/redo functionality, as well as canvas transforms on top of Atrament
- making the
smoothing
parameter a number, which means developers can fine tune their desired smoothing intensity
Atrament v0.3.1
Atrament v0.3.0
This version brings bug fixes (issues #36 and #30)
thanks to @bencergazda for pull requests 🙏
Atrament v0.2.4
This version introduces a fix to a Chrome bug where decimal values were rounded upwards, causing shifts in array indices when performing the flood fill algorithm.
Bug discovered and fixed by @rubenanton90 – thanks a lot!
Atrament v0.2.3
Atrament v0.2.2
This release fixes issues when the canvas position is obtained with respect to nested content rather than the root element. thanks @rubenstolk 🎉