Skip to content

Commit b7a67ce

Browse files
committed
Fix eslint mistakes.
1 parent 3adcdc9 commit b7a67ce

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/plots/cartesian/axes.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,18 +2040,18 @@ axes.doTicks = function(gd, axid, skipTitle) {
20402040
// How much to shift a multi-line label to center it vertically.
20412041
function getAnchorHeight(lineCount, lineHeight, angle) {
20422042
var h = (lineCount - 1) * lineHeight;
2043-
if (axLetter === 'x') {
2044-
if (angle < -20 || 20 < angle) {
2043+
if(axLetter === 'x') {
2044+
if(angle < -20 || 20 < angle) {
20452045
return -0.5 * h;
2046-
} else if (axside === 'top') {
2046+
} else if(axside === 'top') {
20472047
return -h;
20482048
}
20492049
} else {
20502050
angle *= axside === 'left' ? 1 : -1;
2051-
if (angle < -20) {
2051+
if(angle < -20) {
20522052
return -h;
2053-
} else if (angle < 20) {
2054-
return -0.5 * h;
2053+
} else if(angle < 20) {
2054+
return -0.5 * h;
20552055
}
20562056
}
20572057
return 0;
@@ -2071,8 +2071,8 @@ axes.doTicks = function(gd, axid, skipTitle) {
20712071
svgTextUtils.lineCount(thisLabel),
20722072
LINE_SPACING * d.fontSize,
20732073
isNumeric(angle) ? +angle : 0);
2074-
if (anchorHeight) {
2075-
transform += ' translate(0, ' + anchorHeight + ')';
2074+
if(anchorHeight) {
2075+
transform += ' translate(0, ' + anchorHeight + ')';
20762076
}
20772077
if(mathjaxGroup.empty()) {
20782078
thisLabel.select('text').attr({

0 commit comments

Comments
 (0)