diff options
author | 2016-09-15 15:25:08 +0100 | |
---|---|---|
committer | 2016-09-15 15:25:08 +0100 | |
commit | dd1587966ad8e35ae6229d0cfd47ac258413d661 (patch) | |
tree | aa55bb80bcc2c73c46e659b50ff74131ba982d46 /openo-portal/portal-lifecyclemgr/js/topo/Node.js | |
parent | 32eda7657d737fa1f7eb8f7acc662a7c67c25b60 (diff) |
initial submit for the topology page hard-coded based on sigma
Change-Id: I557ef7f7979cac7585abd15ce54a4862f2f99fb8
Signed-off-by: Xiuchao Wu <xiuchao.wu@huawei.com>
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
+ };
+}
|