personalizedrefrigerator / js-draw

Draw pictures using a pen, touchscreen, or mouse! JS-draw is a freehand drawing library for JavaScript and TypeScript.
https://personalizedrefrigerator.github.io/js-draw/typedoc/
MIT License
79 stars 8 forks source link

Consider integrating `perfect-freehand` #59

Open personalizedrefrigerator opened 6 months ago

personalizedrefrigerator commented 6 months ago

The perfect-freehand library creates nice, pressure-sensitive strokes. As such, it is a possible solution to https://github.com/personalizedrefrigerator/js-draw/issues/20.

ShapeShifter499 commented 6 months ago

I noticed with Joplin on a Samsung Fold 4 that when more pressure is applied by a stylus, the whole stroke "thickens" instead of the line becoming thicker and thinner dynamically with pressure. Would this maybe fix that issue, or should I open a new issue report on here?

personalizedrefrigerator commented 6 months ago

I noticed with Joplin on a Samsung Fold 4 that when more pressure is applied by a stylus, the whole stroke "thickens" instead of the line becoming thicker and thinner dynamically with pressure. Would this maybe fix that issue, or should I open a new issue report on here?

The perfect-freehand library would fix this issue!

Note also that the "highlighter" pen is currently variable-width, so until this is updated, the "flat tip" pen may work for you: screenshot: flat tip pen selected

ShapeShifter499 commented 6 months ago

@personalizedrefrigerator This works for now, but the odd shape of the "highlighter" pen gives jagged/sloped marks. I'm wondering why it couldn't be applied to the normal pen shape.

ShapeShifter499 commented 6 months ago

Screenshot_20240215_224443_Joplin.jpg

I guess it looks okay. I'm kinda new to using this handwriting feature and Joplin in general. I might be noticing the same issue as personalizedrefrigerator/joplin-plugin-freehand-drawing#10 and #20