daybrush / moveable

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

keepRatio for both clippable and resizeable #701

Closed corey34 closed 2 years ago

corey34 commented 2 years ago

Could you make it so that keepRatio can be applied differently for clippable and resizeable?

In my case, I want true for resizeable and false for clippable but that does not seem possible now.

Thanks

daybrush commented 2 years ago

@corey34

moveable's new version is released.

https://daybrush.com/moveable/storybook2/?path=/story/advanced-clippable--keepratio-for-both-clippable-and-resizeable

                   resizable={{
                        keepRatio: true,
                    }}
                    clippable={{
                        keepRatio: false,
                    }}
corey34 commented 2 years ago

Thanks @daybrush