Skip to content

Releases: jakubfiala/atrament

Atrament v1.4.0

01 Nov 10:51
Compare
Choose a tag to compare

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

01 Nov 10:37
Compare
Choose a tag to compare

This update adds the option to set the mode to disabled #60 #61. In this mode, no modifications are made to the canvas, but drawing is still tracked and the expected stroke events still fire. Thanks @uriberto for both suggesting and implementing this feature!

Atrament v1.2.0

01 Jun 10:45
Compare
Choose a tag to compare

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

05 Jan 13:50
Compare
Choose a tag to compare

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 called begin/endStroke and they record cursor position and combined with draw 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

01 Jan 21:54
Compare
Choose a tag to compare

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 the new 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

09 Aug 09:07
Compare
Choose a tag to compare

This update fixes #33 - so when clicking/tapping only once, a dot is drawn even if mousemove doesn't happen to fire.

Thanks @dethe for their brilliant fix 🙏

Atrament v0.3.0

16 Nov 12:24
Compare
Choose a tag to compare

This version brings bug fixes (issues #36 and #30)

thanks to @bencergazda for pull requests 🙏

Atrament v0.2.4

19 Jun 18:23
Compare
Choose a tag to compare

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

31 Jan 22:38
Compare
Choose a tag to compare

This release introduces a flag to turn off adaptive stroke width, and fixes a couple of issues:

  • #22 – fix for the crash when filling an already filled area with the same colour
  • #18eslint integration to enforce a coding style

Atrament v0.2.2

14 Dec 00:22
Compare
Choose a tag to compare

This release fixes issues when the canvas position is obtained with respect to nested content rather than the root element. thanks @rubenstolk 🎉