Skip to content

Commit 3d67177

Browse files
committed
use ax._length from setScale in gl2d
- instead of 'old' mesure that uses glplot.viewBox - this makes gl2d ticks 'more on-par' with SVG
1 parent 7e79eb1 commit 3d67177

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/plots/gl2d/scene2d.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,6 @@ proto.computeTickMarks = function() {
243243
this.xaxis.setScale();
244244
this.yaxis.setScale();
245245

246-
// override _length from backward compatibility
247-
// even though setScale 'should' give the correct result
248-
this.xaxis._length =
249-
this.glplot.viewBox[2] - this.glplot.viewBox[0];
250-
this.yaxis._length =
251-
this.glplot.viewBox[3] - this.glplot.viewBox[1];
252-
253246
var nextTicks = [
254247
Axes.calcTicks(this.xaxis),
255248
Axes.calcTicks(this.yaxis)

0 commit comments

Comments
 (0)