diff options
Diffstat (limited to 'openo-portal/portal-lifecyclemgr/js/topo/Node.js')
-rw-r--r-- | openo-portal/portal-lifecyclemgr/js/topo/Node.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/openo-portal/portal-lifecyclemgr/js/topo/Node.js b/openo-portal/portal-lifecyclemgr/js/topo/Node.js new file mode 100644 index 00000000..bae5fc8b --- /dev/null +++ b/openo-portal/portal-lifecyclemgr/js/topo/Node.js @@ -0,0 +1,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
+ };
+}
|