fabricjs-polygon | Draw polygon using mouse in fabricjs | Canvas library
kandi X-RAY | fabricjs-polygon Summary
kandi X-RAY | fabricjs-polygon Summary
Draw polygon using mouse in fabricjs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fabricjs-polygon
fabricjs-polygon Key Features
fabricjs-polygon Examples and Code Snippets
Community Discussions
Trending Discussions on fabricjs-polygon
QUESTION
I need to create instrument for draw polygon in my project with fabric js. I found sctipt https://github.com/taqimustafa/fabricjs-polygon it's perfect for me. But this script work with fabric 1.6.3 while i use 1.7.11.
And i have a small problem with fabric 1.7.11 and activeShape. ActiveShape draw only in area wich 90 degrees between first and last point.
Here is example: https://codepen.io/daer_ru/pen/pdOMyX
...ANSWER
Answered 2017-Nov-30 at 10:00You need to use objectCaching:false
while creating polygon. After making the full polygon don't use it, So it will crate own cache of object so it wont render on next render call if there is no modification .
Here is updated codepen
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fabricjs-polygon
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page