Hello,
I've a tool selection for my SVG, with polygon and rectangle drawings.
If I click the polygon tool (which launches a svg.polygon.draw()) and immediately after that I click the rectangle tool (svg.rect.draw()) without actually using the polygon, rect will place two small circles on starting and ending corners of the rectangle.
Is there any workaround to avoid this behaviour? I tried this without succeeding:
polygon.draw('cancel')
as set doesn't exist at the moment of calling it
// Remove all circles
this.set.each(function () {
this.remove();
});
I can't tell if this is an issue with the clean function or I'm doing something wrong.
Noticed this problem has been fixed already in github but the updated version is not yet on npm. @Fuzzyma are you planning to update npm soon with recent changes?
Hello, I've a tool selection for my SVG, with polygon and rectangle drawings.
If I click the polygon tool (which launches a svg.polygon.draw()) and immediately after that I click the rectangle tool (svg.rect.draw()) without actually using the polygon, rect will place two small circles on starting and ending corners of the rectangle.
Is there any workaround to avoid this behaviour? I tried this without succeeding:
polygon.draw('cancel')
as set doesn't exist at the moment of calling it
I can't tell if this is an issue with the clean function or I'm doing something wrong.