File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,10 @@ function makeSubplotLayer(gd, plotinfo) {
568
568
var yLayer = constants . layerValue2layerClass [ plotinfo . yaxis . layer ] ;
569
569
var hasOnlyLargeSploms = fullLayout . _hasOnlyLargeSploms ;
570
570
571
- if ( ! plotinfo . mainplot || fullLayout . _zindices . length > 1 ) {
571
+ var hasMultipleZ = fullLayout . _zindices . length > 1 ;
572
+ var mainplotinfo = plotinfo . mainplotinfo ;
573
+
574
+ if ( ! plotinfo . mainplot || hasMultipleZ ) {
572
575
if ( hasOnlyLargeSploms ) {
573
576
// TODO could do even better
574
577
// - we don't need plot (but we would have to mock it in lsInner
@@ -622,17 +625,14 @@ function makeSubplotLayer(gd, plotinfo) {
622
625
}
623
626
}
624
627
625
- if ( fullLayout . _zindices . length > 1 ) {
626
- var mainplotinfo = plotinfo . mainplotinfo ;
628
+ if ( hasMultipleZ ) {
627
629
if ( mainplotinfo ) {
628
630
plotinfo . minorGridlayer = mainplotinfo . minorGridlayer ;
629
631
plotinfo . gridlayer = mainplotinfo . gridlayer ;
630
632
plotinfo . zerolinelayer = mainplotinfo . zerolinelayer ;
631
633
}
632
634
}
633
-
634
635
} else {
635
- var mainplotinfo = plotinfo . mainplotinfo ;
636
636
var mainplotgroup = mainplotinfo . plotgroup ;
637
637
var xId = id + '-x' ;
638
638
var yId = id + '-y' ;
You can’t perform that action at this time.
0 commit comments