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

Realtime draw updates #77

Closed profispojka closed 1 year ago

profispojka commented 2 years ago

strokerecorded event fires up only on mouseup. Is there an event that gives me real time draw data?

profispojka commented 2 years ago

Prepared a PR for this but i dont have permissions. Could you take a look? image

@jakubfiala

jakubfiala commented 2 years ago

Hello @profispojka - thank you for flagging this up, I think it sounds like a useful event to have. I think you can open the PR if you fork the repository, and then make a PR with this repository's master branch as the base :) I would also suggest calling the event pointdrawn - because at this point we haven't got a complete stroke.

In any case, big thanks for your contribution! Once the PR is reviewed & merged, I'll release this in the v2.1.0 update

profispojka commented 2 years ago

Hi Jakub. PR is ready, please check it out. https://github.com/jakubfiala/atrament.js/pull/78

jakubfiala commented 1 year ago

addressed in the 3.0.0 release