Skip to content

Commit 3974d11

Browse files
committed
remove single-use vars
1 parent f7b2447 commit 3974d11

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/plots/ternary/ternary.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,28 +375,27 @@ proto.drawAxes = function(doTitles) {
375375
}
376376
});
377377

378-
var btitleSize = baxis.titlefont.size,
379-
bpad = (baxis.showticklabels ? baxis.tickfont.size : 0) +
380-
(baxis.ticks === 'outside' ? baxis.ticklen : 0) + 3;
378+
var bpad = (baxis.showticklabels ? baxis.tickfont.size : 0) +
379+
(baxis.ticks === 'outside' ? baxis.ticklen : 0) + 3;
380+
381381
Titles.draw(gd, 'b' + titlesuffix, {
382382
propContainer: baxis,
383383
propName: _this.id + '.baxis.title',
384384
dfltName: 'Component B',
385385
attributes: {
386386
x: _this.x0 - bpad,
387-
y: _this.y0 + _this.h + btitleSize * 0.83 + bpad,
387+
y: _this.y0 + _this.h + baxis.titlefont.size * 0.83 + bpad,
388388
'text-anchor': 'middle'
389389
}
390390
});
391391

392-
var ctitleSize = caxis.titlefont.size;
393392
Titles.draw(gd, 'c' + titlesuffix, {
394393
propContainer: caxis,
395394
propName: _this.id + '.caxis.title',
396395
dfltName: 'Component C',
397396
attributes: {
398397
x: _this.x0 + _this.w + bpad,
399-
y: _this.y0 + _this.h + ctitleSize * 0.83 + bpad,
398+
y: _this.y0 + _this.h + caxis.titlefont.size * 0.83 + bpad,
400399
'text-anchor': 'middle'
401400
}
402401
});

0 commit comments

Comments
 (0)