We are evaluating the GoJS HTML5 library to implement a flow component within our product, but we are facing some issues while drawing.
We are tying to create a diagram which contains LoopFlow.
A loop will have a LoopStart and LoopEnd node, in between it may have other flow.
To make it look like a loop, a forward link and a bakward link has been created.
Forward link connects LoopStart to LoopEnd and Backward link connects LoopEnd to LoopStart.
but the diagram is not resulting as expected as desired diagram.
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
},
Note:
We are using TreeLayout with above properties, we tried with LayeredDigraph but its giving odd shape compare to TreeLayout.
If someone is having any idea, please respond.
Thanks in advance
Srinivas