Skip to content

Commit e8f88ba

Browse files
committed
correct var name. it's not ticks inside/outside, but labels inside/outside
1 parent e7a980a commit e8f88ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/plots/cartesian/axes.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2977,19 +2977,19 @@ axes.makeTransTickLabelFn = function(ax) {
29772977
var isXaxis = ax._id.charAt(0) === 'x';
29782978
var isYaxis = !isXaxis;
29792979
var isReversed = ax.range[0] > ax.range[1];
2980-
var ticksInside = ax.ticklabelposition && ax.ticklabelposition.indexOf('inside') !== -1;
2981-
var ticksOutside = !ticksInside;
2980+
var labelsInside = ax.ticklabelposition && ax.ticklabelposition.indexOf('inside') !== -1;
2981+
var labelsOutside = !labelsInside;
29822982

29832983
if(runoff) {
29842984
var runoffSign = isReversed ? -1 : 1;
29852985
runoff = runoff * runoffSign;
29862986
}
29872987
if(standoff) {
29882988
var standoffSign =
2989-
isXaxis && ax.side === 'bottom' && ticksOutside ||
2990-
isXaxis && ax.side === 'top' && ticksInside ||
2991-
isYaxis && ax.side === 'right' && ticksOutside ||
2992-
isYaxis && ax.side === 'left' && ticksInside ? 1 : -1;
2989+
isXaxis && ax.side === 'bottom' && labelsOutside ||
2990+
isXaxis && ax.side === 'top' && labelsInside ||
2991+
isYaxis && ax.side === 'right' && labelsOutside ||
2992+
isYaxis && ax.side === 'left' && labelsInside ? 1 : -1;
29932993
standoff = standoff * standoffSign;
29942994
}
29952995
return isXaxis ?

0 commit comments

Comments
 (0)