aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/js/topo/Node.js
blob: bae5fc8b351166aaf0b2a7e3362a40f7555efd71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var icon = {
	type1 : "js/topo/img/NEUP.png",
	type2 : "js/topo/img/NETWORK.png",
	type3 : "js/topo/img/site.png"
}
function Node(id, label, size, type, x, y) {
	this.id = id;
	this.label = label;
	this.type = "square";
	this.x = x;
	this.y = y;
	this.size = size;
	this.color = "white";
	this.borderColor = "white";
	this.image = {
		url : icon[type],
		scale : 1.0,
		clip : 1.0
	};
}