taqimustafa / fabricjs-polygon

Draw polygon using mouse in fabricjs
40 stars 11 forks source link

activeShape problem with fabric 1.7.11 #4

Closed daer-ru closed 6 years ago

daer-ru commented 6 years ago

Hi. Thanks for your script. Maybe you can help me with one problem?

I use fabric 1.7.11 and activeShape draw only in area wich 90 degrees between first and last point.

Here is your code with fabric 1.7.11 https://codepen.io/daer_ru/pen/pdOMyX

daer-ru commented 6 years ago

I found answer on stackoverflow :)

taqimustafa commented 6 years ago

@daer-ru i really wish i had time to update the code, because its a bit buggy. But i hope that some how the logic helped you in some way.