Skip to content

Commit a883b2c

Browse files
committed
rm constrain in linear to pixel axis convert routine:
- so that line paths in extreme zoomed in axis ranges are computed correctly. - this patch may: make far-off-edge pts have coords that svg doesn’t understand - this patch may slow down the line decimation algorithm (as far-off-edge pts used to be consisdered the same previously)
1 parent 165a1aa commit a883b2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/set_convert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ module.exports = function setConvert(ax) {
123123

124124
ax.l2p = function(v) {
125125
if(!isNumeric(v)) return constants.BADNUM;
126+
126127
// include 2 fractional digits on pixel, for PDF zooming etc
127-
return d3.round(Lib.constrain(ax._b + ax._m*v,
128-
-clipMult*ax._length, (1+clipMult)*ax._length), 2);
128+
return d3.round(ax._b + ax._m * v, 2);
129129
};
130130

131131
ax.p2l = function(px) { return (px-ax._b)/ax._m; };

0 commit comments

Comments
 (0)