|
Hi, I have a decision node with anchor pattern apat1 = new AnchorPattern([ new AnchorPoint(50, 0, true, false), new AnchorPoint(100, 50, true, true), new AnchorPoint(0, 50, true, true)]); created link using var dlink = diagram.getFactory().createDiagramLink( originnode,targetnode]); then created connection points for decision node using origin.createConnectionPoint(dlink, apat1.points[0],true); origin.createConnectionPoint(dlink, apat1.points[1], false); origin.createConnectionPoint(dlink, apat1.points[2], false);
created treelayout var treeLayout = new TreeLayout(); treeLayout.linkType = TreeLayoutLinkType.Cascading; treeLayout.anchoring = Anchoring.Reassign; diagram.arrange(treeLayout);
The issue i am facing is the out going links from the decision node is always originating from the (100,50) anchor point. I need the out going links from (0,50) and (100,50) points. I am using the JS 1.3 beta version. Please guide me on how to fix this.
Thanks
|