Commit cd150041 authored by maxchaza's avatar maxchaza

remove expand button on mouseleave

parent f74051eb
......@@ -2254,6 +2254,12 @@ metExploreD3.GraphNode = {
.select('.locker')
.classed('hide', true);
metExploreD3.GraphNode.node
.filter(function (node) {
return node === d;
})
.select('.expand')
.classed('hide', true);
if (!metExploreD3.GraphStyleEdition.editMode) {
var transform = d3.select(this).attr("transform");
......@@ -2502,11 +2508,18 @@ metExploreD3.GraphNode = {
.on("mouseleave", function (d) {
metExploreD3.GraphNode.node
.filter(function (node) {
return node == d
return node === d
})
.select('.locker')
.classed('hide', true);
metExploreD3.GraphNode.node
.filter(function (node) {
return node === d;
})
.select('.expand')
.classed('hide', true);
if (!metExploreD3.GraphStyleEdition.editMode) {
var transform = d3.select(this).attr("transform");
var scale = transform.substring(transform.indexOf("scale"), transform.length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment