Draw polygon using mouse in fabricjs
https://github.com/taqimustafa/fabricjs-polygon
在原来的基础上扩展了
- setColor() /set the color of line/
- setStroke() /set the Stroke of line/
- setStrokeWidth() /set the StrokeWidth of line/
- setStrokeDashArray([a,b]) /set the StrokeDashArray of line/
- setStrokeDashArray 用来设置虚线 ,每隔a个位置空b个位置