aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/js/topo/Edge.js
diff options
context:
space:
mode:
authorXiuchao Wu <xiuchao.wu@huawei.com>2016-09-15 15:25:08 +0100
committerXiuchao Wu <xiuchao.wu@huawei.com>2016-09-15 15:25:08 +0100
commitdd1587966ad8e35ae6229d0cfd47ac258413d661 (patch)
treeaa55bb80bcc2c73c46e659b50ff74131ba982d46 /openo-portal/portal-lifecyclemgr/js/topo/Edge.js
parent32eda7657d737fa1f7eb8f7acc662a7c67c25b60 (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/Edge.js')
-rw-r--r--openo-portal/portal-lifecyclemgr/js/topo/Edge.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/openo-portal/portal-lifecyclemgr/js/topo/Edge.js b/openo-portal/portal-lifecyclemgr/js/topo/Edge.js
new file mode 100644
index 00000000..1083d8ee
--- /dev/null
+++ b/openo-portal/portal-lifecyclemgr/js/topo/Edge.js
@@ -0,0 +1,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];
+}