moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Enable guidelines for request draggable/resizable

Open MRJCrunch opened this issue 2 years ago • 1 comments

Environments

  • Framework name: N/A
  • Framework version: N/A
  • Moveable Component version: 0.51.1

Description

My use case is the following: I'm developing whiteboard. Moveable works really good with rectangles but I also want to use arrows. At the beginning I've implemented arrows outside of the moveable because it was easier to control the edges, but now I realised that I want to see guidelines for them. It means that arrows should be a part of moveable target. I'm trying to add it, but have an issue with ables. In order to mimic the same behaviour as it was before I need to create a custom controls for moving arrow's edges. Then I call a moveable.request('resizable/draggable') to move or redraw the arrow, but guidelines don't work for programmatic calls of events. So these are my questions:

How can I embed arrows to the moveable in the right way? How can I trigger guidelines and snappable after manually moveable.request() call?

Screen Recording 2023-08-24 at 19 31 42

MRJCrunch avatar Aug 24 '23 17:08 MRJCrunch

I have the same question!

alejandromizraji avatar Jun 22 '24 20:06 alejandromizraji