Skip to content

Commit 8ca0955

Browse files
committed
remove fill classes when redrawing
1 parent 22e88c1 commit 8ca0955

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/drawing/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,13 +586,17 @@ drawing.initGradients = function(gd) {
586586

587587
var gradientsGroup = Lib.ensureSingle(fullLayout._defs, 'g', 'gradients');
588588
gradientsGroup.selectAll('linearGradient,radialGradient').remove();
589+
590+
d3.select(gd).selectAll('.gradient_filled').classed('gradient_filled', false);
589591
};
590592

591593
drawing.initPatterns = function(gd) {
592594
var fullLayout = gd._fullLayout;
593595

594596
var patternsGroup = Lib.ensureSingle(fullLayout._defs, 'g', 'patterns');
595597
patternsGroup.selectAll('pattern').remove();
598+
599+
d3.select(gd).selectAll('.pattern_filled').classed('pattern_filled', false);
596600
};
597601

598602
drawing.getPatternAttr = function(mp, i, dflt) {

0 commit comments

Comments
 (0)