moveable icon indicating copy to clipboard operation
moveable copied to clipboard

How group Rotate & Resizeable can keep center when resize?

Open cuongdevjs opened this issue 4 years ago • 1 comments
trafficstars

Environments

  • Framework name: React-moveable
  • Framework version:
  • Moveable Component version:
  • Testable Address(optional): https://codesandbox.io/s/condescending-wilbur-lgwf0?file=/src/App.js

Description

I want to keep center when resizing on all directions, though I was set keepRatio by true, the shape can't keep center position origin which I was set initial. You can see my example: https://codesandbox.io/s/condescending-wilbur-lgwf0?file=/src/App.js

cuongdevjs avatar Sep 13 '21 05:09 cuongdevjs

@cuongdevjs

use setFixedDirection

onResizeStart={(e) => {
          e.setFixedDirection([0, 0]);
}}

daybrush avatar Oct 29 '21 16:10 daybrush