File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ function draw(gd) {
42
42
// Remove previous shapes before drawing new in shapes in fullLayout.shapes
43
43
fullLayout . _shapeUpperLayer . selectAll ( 'path' ) . remove ( ) ;
44
44
fullLayout . _shapeLowerLayer . selectAll ( 'path' ) . remove ( ) ;
45
- fullLayout . _shapeSubplotLayers . selectAll ( 'path' ) . remove ( ) ;
45
+
46
+ for ( var k in fullLayout . _plots ) {
47
+ var shapelayer = fullLayout . _plots [ k ] . shapelayer ;
48
+ if ( shapelayer ) shapelayer . selectAll ( 'path' ) . remove ( ) ;
49
+ }
46
50
47
51
for ( var i = 0 ; i < fullLayout . shapes . length ; i ++ ) {
48
52
if ( fullLayout . shapes [ i ] . visible ) {
Original file line number Diff line number Diff line change @@ -529,10 +529,6 @@ exports.drawData = function(gd) {
529
529
basePlotModules [ i ] . plot ( gd ) ;
530
530
}
531
531
532
- // keep reference to shape layers in subplots
533
- var layerSubplot = fullLayout . _paper . selectAll ( '.layer-subplot' ) ;
534
- fullLayout . _shapeSubplotLayers = layerSubplot . selectAll ( '.shapelayer' ) ;
535
-
536
532
// styling separate from drawing
537
533
Plots . style ( gd ) ;
538
534
You can’t perform that action at this time.
0 commit comments