summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/js/topo/Edge.js
blob: 1083d8ee9a6482232808d3cfbbaf07c90fec281b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var edgeColors = {
	red : "#f00",
	green: "#0f0",
  blue: "#00f",
  yellow: "#ff0",
  grey: "#ddd",
  black: "#000"
}

function Edge(id, label, source, target, size, color) {
	this.id = id;
	this.label = label;
	this.source = source;
	this.target = target;
	this.type = 'line';
  this.size = size;
	this.color = edgeColors[color];
}