Open mordechaim opened 1 year ago
At the current moment, groups have no their own position and size. Only final shapes (text, image, svg, line) have them. So if you want to move a group, you need to move every child.
Ok for moving around I can simply add the coordinates, but scaling seems challenging.
Any pointers how to do this?
Hey, sorry for the late replay. So you want to change position/size via some inputs on the page? Or what is your use case?
It's not relevant anymore, but my idea was to have a way to add a group of elements to a specific position on the canvas programmatically.
When I group elements I can easily drag and resize them in the UI, but calling
set()
on the group with x, y, width, or height has no effect.Can the UI functionality be exposed to the API?