Skip to content

Commit e4d7889

Browse files
committed
fix panning for ternary lines under cliponaxis: false
1 parent 89ee533 commit e4d7889

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plots/ternary/ternary.js

+5
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
292292
_this.plotContainer.selectAll('.scatterlayer,.maplayer')
293293
.attr('transform', plotTransform);
294294

295+
_this.clipDefRelative.attr('transform', null);
296+
295297
// TODO: shift axes to accommodate linewidth*sin(30) tick mark angle
296298

297299
var bTransform = 'translate(' + x0 + ',' + (y0 + h) + ')';
@@ -616,6 +618,9 @@ proto.initInteractions = function() {
616618
_this.plotContainer.selectAll('.scatterlayer,.maplayer')
617619
.attr('transform', plotTransform);
618620

621+
var plotTransform2 = 'translate(' + -dx + ',' + -dy + ')';
622+
_this.clipDefRelative.attr('transform', plotTransform2)
623+
619624
// move the ticks
620625
_this.aaxis.range = [mins.a, _this.sum - mins.b - mins.c];
621626
_this.baxis.range = [_this.sum - mins.a - mins.c, mins.b];

0 commit comments

Comments
 (0)