arch-inc / fabricjs-psbrush

Fabric.js用の感圧ブラシ実装 / A lightweight pressure-sensitive brush implementation for Fabric.js
https://arch-inc.github.io/fabricjs-psbrush/
Other
62 stars 24 forks source link

Pixellate when changing brush width between two strokes #15

Closed benoitlahoz closed 3 years ago

benoitlahoz commented 3 years ago

Hi and thank you for this great work!

I have an issue when changing the brush width between two strokes. Everything is fine when we are on small values, but when I set the width to higher values I have a very pixellated and cropped result when finalizing (see below).

fabricjs-psbrush

During the stroke everything is OK, and if I initialize the brush with high value also.

Any idea on how to avoid this behavior? Thank you!

EDIT

It seems to be a fabric.js problem See https://github.com/fabricjs/fabric.js/issues/4672

benoitlahoz commented 3 years ago

Well the solution was in the issue mentioned above: fabric.js accepts string in place of number but produces this strange behavior.

arcatdmz commented 3 years ago

@oz- Thanks for the issue report -- we weren't aware of this Fabric.js issue. Good luck with your app development!