Skip to content

Commit fcf3c36

Browse files
committed
Ensure _subplotShapeLayer is always defined.
1 parent 1495a5d commit fcf3c36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plot_api/plot_api.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2630,6 +2630,10 @@ function makePlotFramework(gd) {
26302630
// single ternary layer for the whole plot
26312631
fullLayout._ternarylayer = fullLayout._paper.append('g').classed('ternarylayer', true);
26322632

2633+
// shape layers in subplots
2634+
fullLayout._subplotShapeLayer = fullLayout._paper
2635+
.selectAll('.shapelayer-subplot');
2636+
26332637
// upper shape layer
26342638
// (only for shapes to be drawn above the whole plot, including subplots)
26352639
fullLayout._shapeUpperLayer = fullLayout._paper.append('g')
@@ -2815,10 +2819,6 @@ function makeCartesianPlotFramwork(gd, subplots) {
28152819
.style('fill', 'none')
28162820
.classed('crisp', true);
28172821
});
2818-
2819-
// shape layers in subplots
2820-
fullLayout._subplotShapeLayer = fullLayout._paper
2821-
.selectAll('.shapelayer-subplot');
28222822
}
28232823

28242824
// layoutStyles: styling for plot layout elements

0 commit comments

Comments
 (0)