You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can create a plugin for the draw plugin to handle other shapes. But for this to work, you would need to change the type of an element created by the shapes plugin. Usually, the type is the tag name. So a svg.js polygon object has the property type:polygon. The draw plugin picks that up and loads the polygon extension to draw a polygon. But thats not what you want. You want to draw a custom shape.
So, register an extension for say "star" and change the type of the created polygon to star so that draw loads the correct plugin. Now you can handle the drawing process.
oooor you just spawn a shape with a predefined size and make it resizable. That might be easier...
How can I use shapes in conjunction with draw plugin. I want to draw a pentagon with mouse movement, similar to other basic shapes.
Is there a way to do it?
The text was updated successfully, but these errors were encountered: