Skip to content

Commit 4ac68aa

Browse files
authored
Merge pull request #5093 from plotly/fix3246-redo
Keep the size of gl2d markers constant when using different plotGlPixelRatio values
2 parents 979596e + e849912 commit 4ac68aa

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"regl": "^1.6.1",
109109
"regl-error2d": "^2.0.11",
110110
"regl-line2d": "^3.0.18",
111-
"regl-scatter2d": "3.1.9",
111+
"regl-scatter2d": "3.2.0",
112112
"regl-splom": "^1.0.12",
113113
"right-now": "^1.0.0",
114114
"robust-orientation": "^1.1.3",

src/traces/scattergl/plot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = function plot(gd, subplot, cdata) {
6767
scene.line2d = createLine(regl);
6868
}
6969
if(scene.scatter2d === true) {
70-
scene.scatter2d = createScatter(regl);
70+
scene.scatter2d = createScatter(regl, { constPointSize: true });
7171
}
7272
if(scene.fill2d === true) {
7373
scene.fill2d = createLine(regl);

test/image/mocks/gl2d_marker_size.json

+3
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,8 @@
7171
"height": 400,
7272
"width": 480,
7373
"showlegend": false
74+
},
75+
"config": {
76+
"plotGlPixelRatio": 4
7477
}
7578
}

0 commit comments

Comments
 (0)