Skip to content

Commit baabafe

Browse files
committed
don't draw cartesian framework on top of gl2d subplots in staticPlot
- there's no need
1 parent 33dda89 commit baabafe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plots/gl2d/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
8282
Cartesian.clean.apply(this, arguments);
8383
};
8484

85-
exports.drawFramework = Cartesian.drawFramework;
85+
exports.drawFramework = function(gd) {
86+
if(!gd._context.staticPlot) {
87+
Cartesian.drawFramework(gd);
88+
}
89+
};
8690

8791
exports.toSVG = function(gd) {
8892
var fullLayout = gd._fullLayout,

0 commit comments

Comments
 (0)