Skip to content

Commit 29fdf45

Browse files
committed
rename exportedPlot -> _exportedPlot
... as it is not part of the user-facing config options.
1 parent e362bc9 commit 29fdf45

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/components/drawing/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ drawing.setClipUrl = function(s, localId, gd) {
10121012
}
10131013

10141014
var context = gd._context;
1015-
var baseUrl = context.exportedPlot ? '' : (context.baseUrl || '');
1015+
var baseUrl = context._exportedPlot ? '' : (context.baseUrl || '');
10161016

10171017
s.attr('clip-path', 'url(' + baseUrl + '#' + localId + ')');
10181018
};

src/plot_api/plot_api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,9 @@ function setPlotContext(gd, config) {
471471
}
472472
}
473473
}
474+
475+
// not part of the user-facing config options
476+
context._exportedPlot = config._exportedPlot;
474477
}
475478

476479
// staticPlot forces a bunch of others:

src/plot_api/to_image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ function toImage(gd, opts) {
137137

138138
// extend config for static plot
139139
var configImage = Lib.extendFlat({}, config, {
140+
_exportedPlot: true,
140141
staticPlot: true,
141-
exportedPlot: true,
142142
setBackground: setBackground
143143
});
144144

0 commit comments

Comments
 (0)