Need to wrap node in LayeredDigraphLayout inside Lane as its get wrap in grid layout after defining Wrapping Column
I need to override LayeredDigraphLayout so that I can able to use some of the property of LayeredDigraphLayout and GridLayout because I need to automatically adjust my nodes inside lane after some specific size using Spacing property
Right now I am using this code
function LayeredDigraphCustom() {
go.LayeredDigraphLayout.call(this);
this.isInitial = false; // don’t even do initial layout
this.isOngoing = false; // don’t invalidate layout when nodes or links are added or removed
this.direction = 0;
this.columnSpacing = 30;
this.layerSpacing = 30;
this.linkSpacing = 30;
this.setsPortSpots = false;
this.layeringOption = go.LayeredDigraphLayout.LayerLongestPathSource;
}
go.Diagram.inherit(LayeredDigraphCustom, go.LayeredDigraphLayout);
swimLanesGroupTemplate =
$(go.Group, "Spot", groupStyle(),
{
name: "Lane",
selectionAdorned: swimLaneshowSelection, // use a Binding on the Shape.stroke to show selection
contextMenu: $(go.Adornment),//laneEventMenu,
minLocation: new go.Point(NaN, -Infinity), // only allow vertical movement
maxLocation: new go.Point(NaN, Infinity),
selectionObjectName: "SHAPE", // selecting a lane causes the body of the lane to be highlit, not the label
resizable: true, resizeObjectName: "SHAPE", // the custom resizeAdornmentTemplate only permits two kinds of resizing
layout: $(LayeredDigraphCustom),
computesBoundsAfterDrag: true, // needed to prevent recomputing Group.placeholder bounds too soon
computesBoundsIncludingLinks: false, // to reduce occurrences of links going briefly outside the lane
computesBoundsIncludingLocation: true, // to support empty space at top-left corner of lane
handlesDragDropForMembers: true,
but I need to update this swimLanesGroupTemplate Layout some event occurs