@@ -2300,7 +2300,7 @@ Plotly.relayout = function relayout(gd, astr, val) {
23002300 objModule . draw ( gd , objNum , p . parts . slice ( 2 ) . join ( '.' ) , aobj [ ai ] ) ;
23012301 delete aobj [ ai ] ;
23022302 } else if ( p . parts [ 0 ] === 'images' ) {
2303- var update = Lib . toObject ( astr , vi ) ;
2303+ var update = Lib . objectFromPath ( astr , vi ) ;
23042304 Lib . extendDeepAll ( gd . layout , update ) ;
23052305
23062306 Images . supplyLayoutDefaults ( gd . layout , gd . _fullLayout ) ;
@@ -2652,10 +2652,10 @@ function makePlotFramework(gd) {
26522652 // (only for shapes to be drawn below the whole plot)
26532653 var layerBelow = fullLayout . _paper . append ( 'g' )
26542654 . classed ( 'layer-below' , true ) ;
2655- fullLayout . _shapeLowerLayer = layerBelow . append ( 'g' )
2656- . classed ( 'shapelayer' , true ) ;
26572655 fullLayout . _imageLowerLayer = layerBelow . append ( 'g' )
26582656 . classed ( 'imagelayer' , true ) ;
2657+ fullLayout . _shapeLowerLayer = layerBelow . append ( 'g' )
2658+ . classed ( 'shapelayer' , true ) ;
26592659
26602660 var subplots = Plotly . Axes . getSubplots ( gd ) ;
26612661 if ( subplots . join ( '' ) !== Object . keys ( gd . _fullLayout . _plots || { } ) . join ( '' ) ) {
@@ -2669,17 +2669,17 @@ function makePlotFramework(gd) {
26692669
26702670 // shape layers in subplots
26712671 var layerSubplot = fullLayout . _paper . selectAll ( '.layer-subplot' ) ;
2672- fullLayout . _shapeSubplotLayer = layerSubplot . selectAll ( '.shapelayer' ) ;
26732672 fullLayout . _imageSubplotLayer = layerSubplot . selectAll ( '.imagelayer' ) ;
2673+ fullLayout . _shapeSubplotLayer = layerSubplot . selectAll ( '.shapelayer' ) ;
26742674
26752675 // upper shape layer
26762676 // (only for shapes to be drawn above the whole plot, including subplots)
26772677 var layerAbove = fullLayout . _paper . append ( 'g' )
26782678 . classed ( 'layer-above' , true ) ;
2679- fullLayout . _shapeUpperLayer = layerAbove . append ( 'g' )
2680- . classed ( 'shapelayer' , true ) ;
26812679 fullLayout . _imageUpperLayer = layerAbove . append ( 'g' )
26822680 . classed ( 'imagelayer' , true ) ;
2681+ fullLayout . _shapeUpperLayer = layerAbove . append ( 'g' )
2682+ . classed ( 'shapelayer' , true ) ;
26832683
26842684 // single pie layer for the whole plot
26852685 fullLayout . _pielayer = fullLayout . _paper . append ( 'g' ) . classed ( 'pielayer' , true ) ;
0 commit comments