From a3eb26529f25724a94e9a24a82ab9074e7bf4739 Mon Sep 17 00:00:00 2001 From: luigser Date: Thu, 19 Nov 2015 17:12:46 +0100 Subject: [PATCH] graph datalet updates --- datalets/graph-datalet/graph-datalet.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/datalets/graph-datalet/graph-datalet.html b/datalets/graph-datalet/graph-datalet.html index 593eb61..a0d626b 100644 --- a/datalets/graph-datalet/graph-datalet.html +++ b/datalets/graph-datalet/graph-datalet.html @@ -248,13 +248,6 @@ Example: _this.$.dialog.open();*/ }, - openModal : function(t) { - var e = t.split(" ").join("_").toLowerCase(); - $(".modal-content").hide(); - $("." + e).fadeIn(); - $("#modal").modal() - }, - /** * It is called after the element’s template has been stamped and all elements inside the element’s local * DOM have been configured (with values bound from parents, deserialized attributes, or else default values) @@ -281,7 +274,12 @@ Example: height: "100%" }).attr("viewBox", "0 0 " + this.width + " " + this.height).attr("pointer-events", "all").style("position", "absolute").attr("style", "transform:translate(0px)"); - var g = JSON.parse(this.data); + /*var g = JSON.parse(this.data); + g.nodes[0].x = this.width / 2; + g.nodes[0].y = this.height / 2; + this.buildGraph(g);*/ + + var g = this.data; g.nodes[0].x = this.width / 2; g.nodes[0].y = this.height / 2; this.buildGraph(g); -- libgit2 0.21.4