We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e65600 commit 0147edcCopy full SHA for 0147edc
src/traces/parcoords/lines.js
@@ -241,7 +241,16 @@ module.exports = function(canvasGL, d) {
241
var isPick = d.pick;
242
243
var regl = d.regl;
244
- var plotGlPixelRatio = 1; // d.viewModel.plotGlPixelRatio;
+ var gl = regl._gl;
245
+ var supportedLineWidth = gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE);
246
+ // ensure here that plotGlPixelRatio is within supported range; otherwise regl throws error
247
+ var plotGlPixelRatio = Math.max(
248
+ supportedLineWidth[0],
249
+ Math.min(
250
+ supportedLineWidth[1],
251
+ d.viewModel.plotGlPixelRatio
252
+ )
253
+ );
254
255
var renderState = {
256
currentRafs: {},
0 commit comments