Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Bug in link connection behaviour (Read 3167 times)
stefski
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 31
Location: Norway
Joined: Jul 17th, 2009
Bug in link connection behaviour
Mar 17th, 2015 at 8:46am
Print Post  
Hi,

one of my colleagues has discovered what seems to be a bug in the link routing behavior. Seems to be present both in our 5.7 Winforms version and in the WPF version 3.2.0...

In the WhileCreating and the WhileModifiyng rerouting modes the link does not get the right connection point on the node.
It can be seen in the routing sample application (MindFusion.Diagramming for WPF\VS2012).

In the sample application, resize on of the nodes, so it is, say, 10x as wide as its height. Drag a link from another node and try to drop it on the bottom and far to the right of the node. You will see that the link is not connected to the right place. It gets the correct position when dropping in the center but when you try dropping out to the side the link end is positioned with an offset relative to the mouse position.
Strangely enough it seems to be related to the width/height ratio of the node. The longer and thinner the node the larger the error offset will be.
The WhenModified mode is correct and makes the connection point as expected

  

Kind regards

Steffen Skov
OLGA Application Architect
Schlumberger Information Solutions AS
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Bug in link connection behaviour
Reply #1 - Mar 18th, 2015 at 3:31pm
Print Post  
Hi,

Link creation code tries to point last link segment to node's center. This is done by finding intersection of link from next-to-last point to center with node's border, and if the width/height ratio is large, the intersection gets away when mouse pointer is far from the center. You can see this happen more clearly without routing when you draw straight line single-segment links between nodes, or if you move second point of Dynamic links.

The intersection-to-center code does not mesh that well with routing apparently, because the router also moves the previous point from last segment somewhere above the node aligned with mouse pointer, and the end result is not very clear. We'll disable centering in WhileCreating mode for next release; then the link should align to mouse pointer's orthogonal projection on node's border.

Kind regards,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Bug in link connection behaviour
Reply #2 - May 25th, 2015 at 5:58pm
Print Post  
Hi,

This build should let you move link ends to the furthest border points of long nodes in WhileCreating / WhileModifying routing modes:
https://mindfusion.eu/_beta/fcnet_route_endpoints.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint