Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to set different shapenode with custom anchorpattern from javascript (Read 1459 times)
ncepu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 25
Joined: Mar 5th, 2012
How to set different shapenode with custom anchorpattern from javascript
Mar 5th, 2012 at 6:37am
Print Post  
How can I use javascript to set different shapenode with custom anchorpattern but not predefined anchorpattern.
Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to set different shapenode with custom anchorpattern from javascript
Reply #1 - Mar 5th, 2012 at 8:30am
Print Post  
If using JavaApplet mode, you can call ScriptHelper.createAnchorPattern() to get a new AnchorPattern instance. Then use ScriptHelper.createAnchorPoint(x, y) to create anchor points, and add them to the pattern via the AnchorPattern.getPoints().add() method.

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


I Love MindFusion!

Posts: 25
Joined: Mar 5th, 2012
Re: How to set different shapenode with custom anchorpattern from javascript
Reply #2 - Mar 5th, 2012 at 8:41am
Print Post  
Thank you very much!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint