Put the points-clip mask in the defs section on the scatter

master-patched
Bob Monteverde 12 years ago
parent d9505e32f9
commit e0b0cc7b0c

@ -1229,6 +1229,7 @@ nv.models.line = function() {
clearTimeout(timeoutID);
timeoutID = setTimeout(updateInteractiveLayer, 750);
//store old scales for use in transitions on update, to animate from old to new positions
x0 = x.copy();
y0 = y.copy();
@ -2490,7 +2491,7 @@ nv.models.scatter = function() {
return false;
}
gEnter.append('g').attr('class', 'point-clips').append('clipPath').attr('id', 'points-clip-' + id);
defsEnter.append('clipPath').attr('id', 'points-clip-' + id);
gEnter.append('g').attr('class', 'point-paths');
var vertices = d3.merge(data.map(function(group, groupIndex) {
@ -2654,7 +2655,7 @@ nv.models.scatter = function() {
clearTimeout(timeoutID);
timeoutID = setTimeout(updateInteractiveLayer, 750);
//store old scales for use in transitions on update
//store old scales for use in transitions on update, to animate from old to new positions, and sizes
x0 = x.copy();
y0 = y.copy();
z0 = z.copy();

2
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -220,6 +220,7 @@ nv.models.line = function() {
clearTimeout(timeoutID);
timeoutID = setTimeout(updateInteractiveLayer, 750);
//store old scales for use in transitions on update, to animate from old to new positions
x0 = x.copy();
y0 = y.copy();

@ -93,7 +93,7 @@ nv.models.scatter = function() {
return false;
}
gEnter.append('g').attr('class', 'point-clips').append('clipPath').attr('id', 'points-clip-' + id);
defsEnter.append('clipPath').attr('id', 'points-clip-' + id);
gEnter.append('g').attr('class', 'point-paths');
var vertices = d3.merge(data.map(function(group, groupIndex) {
@ -257,7 +257,7 @@ nv.models.scatter = function() {
clearTimeout(timeoutID);
timeoutID = setTimeout(updateInteractiveLayer, 750);
//store old scales for use in transitions on update
//store old scales for use in transitions on update, to animate from old to new positions, and sizes
x0 = x.copy();
y0 = y.copy();
z0 = z.copy();

Loading…
Cancel
Save