svgdotjs / svg.draw.js

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

Refresh plugin #43

Closed VictorPulzz closed 6 years ago

VictorPulzz commented 6 years ago

How I can refresh plugin? For example, I drew rectangle, and i wont to delete him, because him bad, after I wont to drow new rectangle. I thought I had to stop (poly.draw("cancel")), and then run again poly.draw(), but it did not work. Sombody solve this problem?

Fuzzyma commented 6 years ago

Delete it and draw a new one

VictorPulzz commented 6 years ago

Hello, this my code, and it does not work: image

Fuzzyma commented 6 years ago

$polygon.remove() deletes the shape.