Hi,
I have a topology that uses "Nodeset". I am drawing paths (for example, VlanPath) on top of the topology when user selects the vlans.
When I collapse the Nodesets, the vlanpaths remain on screen not collapsing with the Nodeset. Is there a way to make Nodeset aware of the vlanPaths when collapsing/expanding?
FYI, I don't need to draw the vlanPath from node to the nodeset when it is collapsed if that makes my life easier.
The vlanpath is extended like this:
nx.define('IND.VlanPath', nx.graphic.Component, {
properties:{...},
view:{ type: 'nx.graphic.Group',
content: [{
name: 'vlanPath',
type: 'nx.graphic.Path',
props: {
'fill': 'none',
'stroke-width': '10px',
'stroke-dasharray': '4,0.8'
}]
},
methods:{...}
};
I setup a custom layer
nx.define("IND.VlanLayer", nx.graphic.Topology.Layer, {
properties:{...},
methods:{...}
};
I setup the layer like this:
sender.insertLayerAfter("vlan", "IND.VlanLayer", "linkSet");
this.view('topo').graph().on("updateVertexCoordinate", function (sender, vertex) {
this.view('topo').getLayer("vlan")._draw();
}, this);