Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node Proximity-Based Link Behaviour (Read 2341 times)
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Node Proximity-Based Link Behaviour
Feb 23rd, 2010 at 11:13am
Print Post  
hi

Is there a property that would act as a threashold that effects where the diagram will connect Links to Nodes?

We are seeing that when nodes are particularly close, the Link end-points will jump to the center of the node (normally in conjunction with UIElements rather than ShapeNodes).  Moving the nodes apart, the link will jump back to the outer edge of the node.  Is there a way to reduce the distance at which this occurrs or (possibly, preffered) prevent this happening completely?

Many thanks

Paul
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Proximity-Based Link Behaviour
Reply #1 - Feb 23rd, 2010 at 11:35am
Print Post  
Hi,

This should happen only if the nodes intersect. For hosted controls, the control enumerates the constituent visuals of the 2 UIElement to determine if any of them intersects. If this does not work for the kind of controls you are using, we could add some callback to let your determine if the nodes intersect, or some property to make links connect to the node borders in all cases.

Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: Node Proximity-Based Link Behaviour
Reply #2 - Feb 23rd, 2010 at 12:05pm
Print Post  
In our current usage the simplest option would suit us fine, where the Links snap to the Node border regardless, though I dare say some other users would like to have fine control over how things act.


Thanks

Paul
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Proximity-Based Link Behaviour
Reply #3 - Mar 16th, 2010 at 8:18am
Print Post  
Hi,

Please check it this will work for you:
https://mindfusion.eu/_beta/wpfdiag231.zip

If nodes intersect, the link end will be placed at the nearest point of the node border instead of the node's center. It's kind of using the SnapToBorder behavior as a fallback.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint