Hi GoJs Team,
We are evaluating the GoJS HTML5 library to implement a flow component within our product, but we are facing some issues while drawing.
Please find following scenarios.
Problem 1:
When Two nodes are having same parent, The links are not starting exactly from the split node. Please refer point 1 in below image.
We tried with other routing properties too in link template, but while using other properties(other than AvoidsNodes) links are getting intersected.
Problem 2:
When Two links are merging at joint node, the joining is not happening at node point. Refer point 2 in below image.
And Joint node is not vertically aligned with respect to split node.
Note:
We tried with LayeredDigraphLayout, but it’s totally changing the diagram shape by giving unnecessary elbows.
Layout Properties Used:
_diagram = $$(go.Diagram, "myDiagram-" + id, {
initialAutoScale : go.Diagram.UniformToFill,
layout : $$(go.TreeLayout,{nodeSpacing:35}),
"toolManager.mouseWheelBehavior" : go.ToolManager.WheelZoom,
initialContentAlignment : go.Spot.Center,
allowMove : false,
allowDelete : false
});
Link Properties Used:
var linkTemplate = $$(go.Link,
{
routing : go.Link.AvoidsNodes ,
curve : go.Link.JumpOver,
corner : 3,
toShortLength : 2,
adjusting : go.Link.Stretch,
smoothness : 1
},
Please let us know your response.
Thank You
Srinivas