in frontend/app/scripts/modules/topology/controllers/topologyCtrl.js [119:173]
function createTopology() {
var microServices = new vis.DataSet($scope.microServices);
var prosAndCons = new vis.DataSet($scope.prosAndCons);
var container = document.getElementById('topology');
var data = {
nodes: microServices,
edges: prosAndCons
};
var options = {
autoResize: false,
height: (screen.height - 300).toString(),
width: (screen.width - 325).toString(),
physics: {
enabled: true
},
edges: {
arrows: {
to: {
enabled: true,
scaleFactor: 1,
type: 'arrow'
}
},
arrowStrikethrough: false,
length: 170
},
nodes: {
shape: "circle",
color: {
border: "rgba(59,50,233,1)",
background: "rgb(255,255,255)",
highlight: {
border: "rgba(226,77,233,1)",
background: "rgba(130,38,255,1)"
},
hover: {
border: "rgba(226,77,233,1)",
background: "rgba(130,38,255,1)"
}
},
font: {
size: 17
},
shapeProperties: {
borderRadius: 5
}
},
interaction: {
navigationButtons: true,
hover: true
}
};
var topology = new vis.Network(container, data, options);
}