Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic can dynamically add/remove anchors? (Read 1195 times)
GoldyWang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 34
Joined: May 7th, 2012
can dynamically add/remove anchors?
May 23rd, 2012 at 8:31am
Print Post  
i want dynamically or interactively add anchors on shapeNode, as the attachment show,

can we?
is there out-of-box solution ?
  

anchor.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: can dynamically add/remove anchors?
Reply #1 - May 23rd, 2012 at 1:14pm
Print Post  
You should be able to add a new AnchorPoint to AnchorPattern.Points at any time.

If you simply need to arrange links at equal distances along node sides, you can do that without using anchor points; just set the links' end point positions from LinkCreated / LinkModified handlers. The DistributeLinks method here shows how to do that:
http://mindfusion.eu/Forum/YaBB.pl?num=1302946461/1#1

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