Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf79c11

Browse files
committed
Ensure that width / height are integers
1 parent 4e4f15d commit cf79c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/parcoords/parcoords.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ function model(layout, d, i) {
127127
canvasOverdrag: c.overdrag * c.canvasPixelRatio
128128
});
129129

130-
var groupWidth = width * (domain.x[1] - domain.x[0]);
131-
var groupHeight = layout.height * (domain.y[1] - domain.y[0]);
130+
var groupWidth = Math.floor(width * (domain.x[1] - domain.x[0]));
131+
var groupHeight = Math.floor(layout.height * (domain.y[1] - domain.y[0]));
132132

133133
var pad = layout.margin || {l: 80, r: 80, t: 100, b: 80};
134134
var rowContentWidth = groupWidth;

0 commit comments

Comments
 (0)