summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/js/topo/Edge.js
diff options
context:
space:
mode:
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];
+}