@dreamweiver wrote:
Hi Team,
I have used LayeredDigraphLayout to arrange the nodes horizontally and vertically, although everything is working fine, the link style seems to be different from the one what I have defined originally for the links in my diagram.
here is my link template
{ selectable: false, selectionAdornmentTemplate: linkSelectionAdornmentTemplate, routing: go.Link.Normal, curve: go.Link.Bezier }result of above link template is below
the same diagram when i align it horizontally, i get below result
overall I like the link style resulted from horizontal arrangement of nodes (using LayeredDigraphLayout), but I am not able to configure my default link template as such, so could you please help me with this.
below is the config of LayeredDigraphLayout:
var $ = go.GraphObject.make; var defLayout = myDiagram.layout; myDiagram.startTransaction("Layout Change"); myDiagram.layout = $( go.LayeredDigraphLayout, { isInitial : false, isOngoing : false, layeringOption : go.LayeredDigraphLayout.LayerLongestPathSource, layerSpacing : 100, columnSpacing : 50, setsPortSpots : false, angle : _angle } ); myDiagram.layoutDiagram(true); myDiagram.layout = defLayout; // Assign the new layout to the existing diagram myDiagram.commitTransaction("Layout Change");
Posts: 1
Participants: 1

