Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62a4792

Browse files
committed
Images: Update images on relayout
1 parent c3a0a20 commit 62a4792

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/plot_api/plot_api.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,6 +2299,12 @@ Plotly.relayout = function relayout(gd, astr, val) {
22992299
// as it is we get separate calls for x and y (or ax and ay) on move
23002300
objModule.draw(gd, objNum, p.parts.slice(2).join('.'), aobj[ai]);
23012301
delete aobj[ai];
2302+
} else if(p.parts[0] === 'images') {
2303+
var update = Lib.toObject(astr, vi);
2304+
Lib.extendDeepAll(gd.layout, update);
2305+
2306+
Images.supplyLayoutDefaults(gd.layout, gd._fullLayout);
2307+
Images.draw(gd);
23022308
}
23032309
// alter gd.layout
23042310
else {

0 commit comments

Comments
 (0)