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

Skip to content

Commit 7565d0b

Browse files
committed
allow plotGlPixelRatio to be overrode by user config
- 🔪 config assignments to we already get for free via staticPlot: true
1 parent 43a6150 commit 7565d0b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/plot_api/to_image.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,7 @@ function toImage(gd, opts) {
128128
// extend config for static plot
129129
var configImage = Lib.extendFlat({}, config, {
130130
staticPlot: true,
131-
plotGlPixelRatio: 2,
132-
displaylogo: false,
133-
showLink: false,
134-
showTips: false,
131+
plotGlPixelRatio: config.plotGlPixelRatio || 2,
135132
setBackground: setBackground
136133
});
137134

0 commit comments

Comments
 (0)