Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transformOrigin in rotate #670

Closed
amyounesi opened this issue May 29, 2022 · 2 comments
Closed

transformOrigin in rotate #670

amyounesi opened this issue May 29, 2022 · 2 comments

Comments

@amyounesi
Copy link

Environments

  • Framework name:Vue
  • Framework version:0.28.0
  • Moveable Component version:1.8.11
  • Testable Address(optional):

Description

how can set transformOrigin on RotateStart?
already set as top,left

e.target.style.transformOrigin="center" not work beacuse The position of the element changed

@daybrush
Copy link
Owner

daybrush commented Jun 9, 2022

@amyounesi

okay. I'll this feature.

@daybrush daybrush added this to the 0.31.0 milestone Jun 9, 2022
@daybrush
Copy link
Owner

  • lit-moveable 0.8.0
  • moveable 0.31.0
  • preact-moveable 0.33.0
  • react-compat-moveable 0.19.0
  • react-moveable 0.34.0
  • svelte-moveable 0.23.0
  • vue-moveable 2.0.0-beta.22
  • vue3-moveable 0.6.0
  • ngx-moveable 0.28.0

@amyounesi

It seems impossible to change the transformOrigin of the style.

But use setFixedDirection of resizeStart event.

If you use e.setFixedDirection([0, 0]) even if transformOrigin is top left you can get the same effect as transformOrigin(50% 50%) .

@daybrush daybrush closed this as completed Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants