Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 67b90081 authored by Tatiana Rocher's avatar Tatiana Rocher

Merge branch 'selecClones'

parents ce322781 e7de1948
......@@ -258,7 +258,7 @@ ScatterPlot.prototype = {
this.grpLinks = this.plot_container.append('svg:g')
.attr('class', 'grpLinks');
//Initialisation des nodes
//Initialisation of nodes
this.nodes = d3.range(this.m.clones.length)
.map(Object);
for (var i = 0; i < this.m.clones.length; i++) {
......@@ -1702,7 +1702,19 @@ ScatterPlot.prototype = {
.append("text");
leg.exit()
.remove();
leg
leg.on("click", function(d){
var listToSelect = [];
var halfRangeColumn = 0.5;
if (self.axisX.labels.length>1)
halfRangeColumn = (self.axisX.labels[1].pos - self.axisX.labels[0].pos)/2;
for (n in self.nodes){
if (Math.abs(self.axisX.pos(n) - d.pos) < halfRangeColumn)
//if (self.axisX.pos(n) == d.pos){
listToSelect.push(n);
}
self.m.multiSelect(listToSelect);
delete listToSelect;
})
.attr("x", function(d) {
return self.gridSizeW * d.pos + self.marge_left;
})
......@@ -1795,7 +1807,19 @@ ScatterPlot.prototype = {
.append("text");
leg.exit()
.remove();
leg
leg.on("click", function(d){
var listToSelect = [];
var halfRangeLine = 0.5;
if (self.axisY.labels.length>1)
halfRangeLine = (self.axisY.labels[1].pos - self.axisY.labels[0].pos)/2;
for (n in self.nodes){
if (Math.abs(self.axisY.pos(n) - d.pos) < halfRangeLine)
listToSelect.push(n);
}
self.m.multiSelect(listToSelect);
delete listToSelect;
})
.attr("x", function(d) {
if (d.type == "subline") return self.sub_text_position_y;
else return self.text_position_y;
......
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