moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Can I set the origin to be the corner of the image and not the center?

Open ViktorTheFirst opened this issue 3 years ago • 1 comments

Environments

  • Framework name: React
  • Framework version: 16.13.1
  • Moveable Component version: React moveable 0.38.4

Description

I would like the origin of the image be in the left top corner of the image and not in the middle, is it possible?

Thank you by the way, really beautiful library you got here.

ViktorTheFirst avatar Aug 31 '22 14:08 ViktorTheFirst

@ViktorTheFirst

The location of the origin is relative to the transform-origin.

Default is 50% 50%, set to 0 0.

transform-origin: 0 0;

daybrush avatar Aug 31 '22 16:08 daybrush