Skip to content

Commit a9d9140

Browse files
committed
rename axes.makeTransFn to makeTransTickFn
1 parent c7a23b4 commit a9d9140

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/components/colorbar/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ function drawColorBar(g, opts, gd) {
462462
(opts.outlinewidth || 0) / 2 - (opts.ticks === 'outside' ? 1 : 0);
463463

464464
var vals = Axes.calcTicks(ax);
465-
var transFn = Axes.makeTransFn(ax);
465+
var transFn = Axes.makeTransTickFn(ax);
466466
var tickSign = Axes.getTickSigns(ax)[2];
467467

468468
Axes.drawTicks(gd, ax, {

src/plots/cartesian/axes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,10 +2042,10 @@ axes.drawOne = function(gd, ax, opts) {
20422042

20432043
if(!ax.visible) return;
20442044

2045-
var transFn = axes.makeTransFn(ax);
2045+
var transFn = axes.makeTransTickFn(ax);
20462046
var transTickLabelFn = ax.ticklabelmode === 'period' ?
20472047
axes.makeTransPeriodFn(ax) :
2048-
axes.makeTransFn(ax);
2048+
axes.makeTransTickFn(ax);
20492049

20502050
var tickVals;
20512051
// We remove zero lines, grid lines, and inside ticks if they're within 1px of the end
@@ -2470,7 +2470,7 @@ axes.getTickSigns = function(ax) {
24702470
* - {fn} l2p
24712471
* @return {fn} function of calcTicks items
24722472
*/
2473-
axes.makeTransFn = function(ax) {
2473+
axes.makeTransTickFn = function(ax) {
24742474
var axLetter = ax._id.charAt(0);
24752475
var offset = ax._offset;
24762476
return axLetter === 'x' ?

src/plots/ternary/ternary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ proto.drawAx = function(ax) {
428428

429429
var vals = Axes.calcTicks(ax);
430430
var valsClipped = Axes.clipEnds(ax, vals);
431-
var transFn = Axes.makeTransFn(ax);
431+
var transFn = Axes.makeTransTickFn(ax);
432432
var tickSign = Axes.getTickSigns(ax)[2];
433433

434434
var caRad = Lib.deg2rad(counterAngle);

src/traces/indicator/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function drawBulletGauge(gd, plotGroup, cd, opts) {
264264
ax.setScale();
265265

266266
vals = Axes.calcTicks(ax);
267-
transFn = Axes.makeTransFn(ax);
267+
transFn = Axes.makeTransTickFn(ax);
268268
tickSign = Axes.getTickSigns(ax)[2];
269269

270270
shift = size.t + size.h;

0 commit comments

Comments
 (0)