Skip to content

Commit

Permalink
Merge remote-tracking branch 'jmgelman/brushextents'
Browse files Browse the repository at this point in the history
  • Loading branch information
BroHammie committed May 15, 2016
2 parents 69baa72 + 8ec94a8 commit 1c85c8d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions d3.parcoords.js
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,6 @@ pc.brushMode = function(mode) {
.y(__.dimensions[axis].yscale)
.on("brushstart", function() {
if(d3.event.sourceEvent !== null) {
events.brushstart.call(pc, __.brushed);
d3.event.sourceEvent.stopPropagation();
}
})
Expand Down Expand Up @@ -1704,14 +1703,25 @@ pc.brushMode = function(mode) {
}
}

//function brushExtents() {
// var extents = {};
// d3.keys(__.dimensions).forEach(function(d) {
// var brush = brushes[d];
// if (brush !== undefined && !brush.empty()) {
// var extent = brush.extent();
// extents[d] = extent;
// }
// });
// return extents;
//}

function brushFor(axis) {
var brush = d3.svg.multibrush();

brush
.y(__.dimensions[axis].yscale)
.on("brushstart", function() {
if(d3.event.sourceEvent !== null) {
events.brushstart.call(pc, __.brushed);
d3.event.sourceEvent.stopPropagation();
}
})
Expand Down

0 comments on commit 1c85c8d

Please sign in to comment.