Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic strange issue while performing drag/drop for link (Read 3065 times)
Gaurav Dubey
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Sep 28th, 2016
strange issue while performing drag/drop for link
Dec 29th, 2017 at 10:35am
Print Post  
I am implementing drag/drop feature for links in application, however facing strange issue in that, If a link is straight i.e. no segment, link won't move in diagram and looks like freeze. However if there is at least 1 segment in link, it moves.

Following attributes have been set for link in diagram:
      diag.setAllowSplitLinks( false);
      diag.setLinkEndsMovable( true);
      diag.setLinkCrossings( LinkCrossings.Arcs);
      diag.setAllowUnconnectedLinks( false);
      diag.setAllowLinksRepeat( true);


we have set AllowSplitLinks property as false because it creates unnecessary segments and bit annoying to user.

If we make it true, then link moves at least but create new segment instead of move.

Thanks in advance.

Gaurav
  

Mindfusion_Drag_Issue.png ( 11 KB | 193 Downloads )
Mindfusion_Drag_Issue.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: strange issue while performing drag/drop for link
Reply #1 - Jan 2nd, 2018 at 9:15am
Print Post  
I think you might be using an older version of the library. Current one gives higher priority to end points of a link and should pick them up for moving immediately.

Older versions hit-test by points' index order and try to grab the next-to-last point when it coincides with last to one, the former won't be able to move when in 2-segment cascading link (cascading links always have at least two segments, and if it looks like a single straight one as in the image, it means one of the segments has zero-length).

If you don't want to upgrade, create a three-segment link instead and make sure second and third points are in the middle.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint