lionix-team / vue-image-markup

vue-image-markup will provide you to edit uploaded image easily and save it.
https://image-markup.lionix-team.com
96 stars 44 forks source link

Glitch When using custom stroke Width in free drawing. #24

Open ayoub-lwela opened 3 years ago

ayoub-lwela commented 3 years ago

When using custom stroke Width in free drawing something strange happens upon mouse button release such as appearing on a different location on the canvas or just disappearing it is like magic.

therealstein commented 3 years ago

Hey, use strokeWidth with a number value instead of a string. I had the same issues with the pen. Maybe the example in README is wrong

nicoagp commented 3 years ago

I had the same issue, after updating the number value as a Number instead of string, this was solved. Thank you!

xiazhaoxia commented 2 years ago

Thank you very much @therealstein .Your solution is very helpful.

alvaromlg commented 2 years ago

The documentation should be updated, it still shows the strokeWidth as string and its buggy.

let customizeRectangle = { fill: 'blue',stroke: 'white',strokeWidth: "5" }
this.$refs.editor.set('rect',customizeRectangle)