Skip to content

Commit c15fd07

Browse files
authored
Merge pull request #7231 from plotly/drop-plot3dPixelRatio
Drop deprecated `plot3dPixelRatio` from config
2 parents 3055546 + f4e8056 commit c15fd07

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

draftlogs/7231_remove.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Drop deprecated plot3dPixelRatio from config [[#7231](https://github.com/plotly/plotly.js/pull/7231)]

src/plot_api/plot_api.js

-5
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,6 @@ function setPlotContext(gd, config) {
452452
}
453453
}
454454

455-
// map plot3dPixelRatio to plotGlPixelRatio for backward compatibility
456-
if(config.plot3dPixelRatio && !context.plotGlPixelRatio) {
457-
context.plotGlPixelRatio = context.plot3dPixelRatio;
458-
}
459-
460455
// now deal with editable and edits - first editable overrides
461456
// everything, then edits refines
462457
var editable = config.editable;

src/plot_api/plot_config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,7 @@ var configAttributes = {
350350
min: 1,
351351
max: 4,
352352
description: [
353-
'Set the pixel ratio during WebGL image export.',
354-
'This config option was formerly named `plot3dPixelRatio`',
355-
'which is now deprecated.'
353+
'Set the pixel ratio during WebGL image export.'
356354
].join(' ')
357355
},
358356

test/plot-schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
"valType": "integer"
273273
},
274274
"plotGlPixelRatio": {
275-
"description": "Set the pixel ratio during WebGL image export. This config option was formerly named `plot3dPixelRatio` which is now deprecated.",
275+
"description": "Set the pixel ratio during WebGL image export.",
276276
"dflt": 2,
277277
"max": 4,
278278
"min": 1,

0 commit comments

Comments
 (0)