Cleanup in relations visualisation code
Change-Id: Ie5a24f24993d6c5b844333aff3ffd6bcbb7451d4
diff --git a/dev/js/src/match/relations.js b/dev/js/src/match/relations.js
index 54fd18c..f79d189 100644
--- a/dev/js/src/match/relations.js
+++ b/dev/js/src/match/relations.js
@@ -131,6 +131,16 @@
labelE.setAttribute("y", middleY + 3);
labelE.setAttribute("text-anchor", "middle");
labelE.appendChild(document.createTextNode(arc.label));
+
+ /*
+ var textWidth = labelE.getComputedTextLength();
+
+ var labelR = g.appendChild(this._c("rect"));
+ labelR.setAttribute("x", x + middle);
+ labelR.setAttribute("y", middleY + 3);
+ labelR.setAttribute("width", textWidth +30);
+ labelR.setAttribute("height", 20);
+ */
};
return g;
},