Skip to content

Commit

Permalink
Merge pull request #5093 from plotly/fix3246-redo
Browse files Browse the repository at this point in the history
Keep the size of gl2d markers constant when using different plotGlPixelRatio values
  • Loading branch information
archmoj authored Aug 21, 2020
2 parents 979596e + e849912 commit 4ac68aa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"regl": "^1.6.1",
"regl-error2d": "^2.0.11",
"regl-line2d": "^3.0.18",
"regl-scatter2d": "3.1.9",
"regl-scatter2d": "3.2.0",
"regl-splom": "^1.0.12",
"right-now": "^1.0.0",
"robust-orientation": "^1.1.3",
Expand Down
2 changes: 1 addition & 1 deletion src/traces/scattergl/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = function plot(gd, subplot, cdata) {
scene.line2d = createLine(regl);
}
if(scene.scatter2d === true) {
scene.scatter2d = createScatter(regl);
scene.scatter2d = createScatter(regl, { constPointSize: true });
}
if(scene.fill2d === true) {
scene.fill2d = createLine(regl);
Expand Down
3 changes: 3 additions & 0 deletions test/image/mocks/gl2d_marker_size.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,8 @@
"height": 400,
"width": 480,
"showlegend": false
},
"config": {
"plotGlPixelRatio": 4
}
}

0 comments on commit 4ac68aa

Please sign in to comment.