Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can single links be configured to ignore anchor points on nodes? (Read 2210 times)
dossantos
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Mar 25th, 2013
Can single links be configured to ignore anchor points on nodes?
Jul 21st, 2014 at 8:42am
Print Post  
Hi,

is it possible to make specific links ignore anchor points? So, generally the nodes have anchor points, and links can only attach to the nodes via those points (of which some are inbound-only and some are outbound-only, etc. etc.). But for links of certain types (maybe distinguished by their tag object value), the links should be able to connect anywhere on nodes.

Can this be achieved somehow?

Thanks,
  Tim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can single links be configured to ignore anchor points on nodes?
Reply #1 - Jul 21st, 2014 at 9:25am
Print Post  
Hi,

If you set e.Cancel = false for all AnchorPoints from ValidateAnchorPoint handler, the link should be able to connect to any point of the node.

Code
Select All
private void diagram_ValidateAnchorPoint(object sender, LinkValidationEventArgs e)
{
	e.Cancel = e.Link.Tag != null;
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
dossantos
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Mar 25th, 2013
Re: Can single links be configured to ignore anchor points on nodes?
Reply #2 - Jul 21st, 2014 at 11:40am
Print Post  
Ah, cool, thanks. Wasn't aware of that Event (I was looking for some property of DiagramLink instead - "IgnoreAnchors" or sth.)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint