daybrush / moveable

Moveable! Draggable! Resizable! Scalable! Rotatable! Warpable! Pinchable! Groupable! Snappable!
https://daybrush.com/moveable/
MIT License
9.9k stars 611 forks source link

Vertical and Horizontal Stacks, similar to Group Align Options #1045

Open jadiagaurang opened 9 months ago

jadiagaurang commented 9 months ago

Environments

Hi @daybrush

I want to add a new feature to my design tool to allow Vertical Stacking of Elements when they are Gropped, similar to Group Align Options. (https://daybrush.com/moveable/storybook/?path=/story/request-ables-through-a-method--request-draggable-align)

Can you help me develop a Method or come up with the logic? Thank you in advance

daybrush commented 8 months ago

@jadiagaurang

The demo link is only available when it is a target.

When I checked, some of the align demos did not work properly, so I plan to fix demo.

The demo requires pressing a button and executing the following method.

moveableRef.current?.updateRect();

I think the demo has everything you want, but what features do you want?