@@ -404,8 +404,7 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
404
404
var trace = d [ 0 ] . trace ,
405
405
s = d3 . select ( this ) ,
406
406
showMarkers = subTypes . hasMarkers ( trace ) ,
407
- showText = subTypes . hasText ( trace ) ,
408
- hasClipOnAxisFalse = trace . cliponaxis === false ;
407
+ showText = subTypes . hasText ( trace ) ;
409
408
410
409
var keyFunc = getKeyFunc ( trace ) ,
411
410
markerFilter = hideFilter ,
@@ -450,7 +449,7 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
450
449
if ( hasNode ) {
451
450
Drawing . singlePointStyle ( d , sel , trace , markerScale , lineScale , gd ) ;
452
451
453
- if ( hasClipOnAxisFalse ) {
452
+ if ( plotinfo . layerClipId ) {
454
453
Drawing . hideOutsideRangePoint ( d , sel , xa , ya ) ;
455
454
}
456
455
@@ -486,7 +485,7 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
486
485
hasNode = Drawing . translatePoint ( d , sel , xa , ya ) ;
487
486
488
487
if ( hasNode ) {
489
- if ( hasClipOnAxisFalse ) {
488
+ if ( plotinfo . layerClipId ) {
490
489
Drawing . hideOutsideRangePoint ( d , g , xa , ya ) ;
491
490
}
492
491
} else {
@@ -525,6 +524,13 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
525
524
. each ( makePoints ) ;
526
525
527
526
join . exit ( ) . remove ( ) ;
527
+
528
+ // lastly, clip points groups of `cliponaxis !== false` traces
529
+ // on `plotinfo._hasClipOnAxisFalse === true` subplots
530
+ join . each ( function ( d ) {
531
+ var hasClipOnAxisFalse = d [ 0 ] . trace . cliponaxis === false ;
532
+ Drawing . setClipUrl ( d3 . select ( this ) , hasClipOnAxisFalse ? null : plotinfo . layerClipId ) ;
533
+ } ) ;
528
534
}
529
535
530
536
function selectMarkers ( gd , idx , plotinfo , cdscatter , cdscatterAll ) {
0 commit comments