API: let user place created shape
Hi,
I want to suggest to provide an api that lets you create a shape and let the user place it (the same way when you place a part).
When I use api('createShape',...) I have to specify the coordinates where the shape is placed implicitly (for svg path based objects) or explicitly.
For SVGNODES I can use importByPathD which lets the user place the shape (however, it will place the shape again and again until the user aborts), but I haven't found an easy way for other shapes.
My current workaround for that is a real hack :D
I create the shape at the left top of the editor, get its id (which also requires a workaround), select it, call cut, fake a click event at the left top to set the reference point and call paste.
It works however ;)
It would be great if createShape had options to allow letting the user place the shape (once or multiple times) optionally with a way to set the reference point.
Sign In Or Register Comment after
No comments yet. Be the first to comment!