moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Is it possible to setRect() the value obtained by getRect()?

Open sh-enomoto opened this issue 4 years ago • 1 comments

Environments

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

Description

I want to do like this.

const rect = moveable.getRect()

moveable.setRect(rect)

I want to set the initial position of moveable.

Is it possible?

Thanks for your great work.

sh-enomoto avatar Sep 30 '21 14:09 sh-enomoto

@sh-enomoto

I'm sorry. This seems impossible. Since we need to know the source of the transform, it is impossible to determine with rect.

daybrush avatar Oct 30 '21 19:10 daybrush