moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Invalid size of rotated element inside resized group

Open gtanczyk opened this issue 3 years ago • 2 comments

Environments

  • Framework name: react-moveable
  • Framework version: latest
  • Moveable Component version: latest
  • Testable Address(optional): https://codesandbox.io/s/mystifying-drake-24gep

Description

One of elements inside the group is rotated by 60deg, and when I'm resizing the group, the rotated element is behaving unexpectedly. Looks like the rotation is not taken into account while calculating new width/height of the element, and therefore resizing the entire group in an unexpected way.

Actual: Kapture 2020-11-10 at 13 05 10

Expected: Disclaimer: sorry, this is not a perfect example, but you should get the idea: proportions between edges should not change. Kapture 2020-11-10 at 13 13 04

gtanczyk avatar Nov 10 '20 12:11 gtanczyk

@gtanczyk

I'm sorry. group does not support the function of keepRatio false.

To use when keepRatio is false, all rotations must be the same.

daybrush avatar Nov 14 '20 19:11 daybrush

Is there any news on this issue?

titoasty avatar Sep 21 '22 07:09 titoasty