svgdotjs / svg.draw.js

An extension of svg.js which allows to draw elements with mouse
MIT License
239 stars 57 forks source link

is there any solution to draw line with 45 or 90 degrees? #56

Closed bugloos closed 4 years ago

bugloos commented 4 years ago

i want to draw a polygon with lines that all angle between lines are 90 or 45, with this library is it possible?

dotnetCarpenter commented 4 years ago

Yes. Take a look here: https://stackoverflow.com/q/59585107/205696