moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Customize moveable rotate handler styling

Open chenxeed opened this issue 3 years ago • 3 comments

Environments

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

Description

Hi! I love using moveable as it currently can cover most of the element editing scenarios that we need.

For the design, our UX team request if we can style the handler like this:

image

We need to move the "rotatable" handler to the bottom and style it differently. Is this possible?

chenxeed avatar Apr 27 '21 15:04 chenxeed

@chenxeed

Yes. it's possible.

Try using rotatationTarget.

https://codepen.io/daybrush/pen/OJWKdmP

daybrush avatar May 03 '21 18:05 daybrush

@chenxeed

Yes. it's possible.

Try using rotatationTarget.

https://codepen.io/daybrush/pen/OJWKdmP

How to do the same in Vanilla JS? I tried setting rotationTarget but nothing changed.

goodwin74 avatar Apr 15 '22 19:04 goodwin74

@goodwin74

What value did you set rotationTarget to?

daybrush avatar Apr 16 '22 06:04 daybrush