Skip to content

Commit ef92fe6

Browse files
committed
Scale parcoords line width with plotGlPixelRatio
1 parent f03bce0 commit ef92fe6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/traces/parcoords/lines.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ module.exports = function(canvasGL, d) {
241241
var isPick = d.pick;
242242

243243
var regl = d.regl;
244+
var plotGlPixelRatio = d.viewModel.plotGlPixelRatio;
244245

245246
var renderState = {
246247
currentRafs: {},
@@ -317,7 +318,7 @@ module.exports = function(canvasGL, d) {
317318
frag: fragmentShaderSource,
318319

319320
primitive: 'lines',
320-
lineWidth: 1,
321+
lineWidth: plotGlPixelRatio,
321322
attributes: attributes,
322323
uniforms: {
323324
resolution: regl.prop('resolution'),

src/traces/parcoords/parcoords.js

+1
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ module.exports = function parcoords(gd, cdModule, layout, callbacks) {
453453
.each(function(d) {
454454
// FIXME: figure out how to handle multiple instances
455455
d.viewModel = vm[0];
456+
d.viewModel.plotGlPixelRatio = plotGlPixelRatio;
456457
d.model = d.viewModel ? d.viewModel.model : null;
457458
});
458459

0 commit comments

Comments
 (0)