@@ -2300,7 +2300,7 @@ Plotly.relayout = function relayout(gd, astr, val) {
2300
2300
objModule . draw ( gd , objNum , p . parts . slice ( 2 ) . join ( '.' ) , aobj [ ai ] ) ;
2301
2301
delete aobj [ ai ] ;
2302
2302
} else if ( p . parts [ 0 ] === 'images' ) {
2303
- var update = Lib . toObject ( astr , vi ) ;
2303
+ var update = Lib . objectFromPath ( astr , vi ) ;
2304
2304
Lib . extendDeepAll ( gd . layout , update ) ;
2305
2305
2306
2306
Images . supplyLayoutDefaults ( gd . layout , gd . _fullLayout ) ;
@@ -2652,10 +2652,10 @@ function makePlotFramework(gd) {
2652
2652
// (only for shapes to be drawn below the whole plot)
2653
2653
var layerBelow = fullLayout . _paper . append ( 'g' )
2654
2654
. classed ( 'layer-below' , true ) ;
2655
- fullLayout . _shapeLowerLayer = layerBelow . append ( 'g' )
2656
- . classed ( 'shapelayer' , true ) ;
2657
2655
fullLayout . _imageLowerLayer = layerBelow . append ( 'g' )
2658
2656
. classed ( 'imagelayer' , true ) ;
2657
+ fullLayout . _shapeLowerLayer = layerBelow . append ( 'g' )
2658
+ . classed ( 'shapelayer' , true ) ;
2659
2659
2660
2660
var subplots = Plotly . Axes . getSubplots ( gd ) ;
2661
2661
if ( subplots . join ( '' ) !== Object . keys ( gd . _fullLayout . _plots || { } ) . join ( '' ) ) {
@@ -2669,17 +2669,17 @@ function makePlotFramework(gd) {
2669
2669
2670
2670
// shape layers in subplots
2671
2671
var layerSubplot = fullLayout . _paper . selectAll ( '.layer-subplot' ) ;
2672
- fullLayout . _shapeSubplotLayer = layerSubplot . selectAll ( '.shapelayer' ) ;
2673
2672
fullLayout . _imageSubplotLayer = layerSubplot . selectAll ( '.imagelayer' ) ;
2673
+ fullLayout . _shapeSubplotLayer = layerSubplot . selectAll ( '.shapelayer' ) ;
2674
2674
2675
2675
// upper shape layer
2676
2676
// (only for shapes to be drawn above the whole plot, including subplots)
2677
2677
var layerAbove = fullLayout . _paper . append ( 'g' )
2678
2678
. classed ( 'layer-above' , true ) ;
2679
- fullLayout . _shapeUpperLayer = layerAbove . append ( 'g' )
2680
- . classed ( 'shapelayer' , true ) ;
2681
2679
fullLayout . _imageUpperLayer = layerAbove . append ( 'g' )
2682
2680
. classed ( 'imagelayer' , true ) ;
2681
+ fullLayout . _shapeUpperLayer = layerAbove . append ( 'g' )
2682
+ . classed ( 'shapelayer' , true ) ;
2683
2683
2684
2684
// single pie layer for the whole plot
2685
2685
fullLayout . _pielayer = fullLayout . _paper . append ( 'g' ) . classed ( 'pielayer' , true ) ;
0 commit comments