Skip to content

Commit ec5df56

Browse files
committed
Rename ticklabelrunoff → ticklabelshift
1 parent e33270b commit ec5df56

13 files changed

+22
-22
lines changed

src/components/colorbar/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ module.exports = function colorbarDefaults(containerIn, containerOut, layout) {
111111
var font = layout.font;
112112
var opts = {
113113
noAutotickangles: true,
114-
noTicklabelrunoff: true,
114+
noTicklabelshift: true,
115115
noTicklabelstandoff: true,
116116
outerTicks: false,
117117
font: font

src/plots/cartesian/axes.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,7 +2968,7 @@ axes.makeTransTickFn = function(ax) {
29682968

29692969
axes.makeTransTickLabelFn = function(ax) {
29702970
var uv = getTickLabelUV(ax);
2971-
var runoff = ax.ticklabelrunoff || 0;
2971+
var shift = ax.ticklabelshift || 0;
29722972
var standoff = ax.ticklabelstandoff || 0;
29732973

29742974
var u = uv[0];
@@ -2980,9 +2980,9 @@ axes.makeTransTickLabelFn = function(ax) {
29802980
var labelsInside = ax.ticklabelposition && ax.ticklabelposition.indexOf('inside') !== -1;
29812981
var labelsOutside = !labelsInside;
29822982

2983-
if(runoff) {
2984-
var runoffSign = isReversed ? -1 : 1;
2985-
runoff = runoff * runoffSign;
2983+
if(shift) {
2984+
var shiftSign = isReversed ? -1 : 1;
2985+
shift = shift * shiftSign;
29862986
}
29872987
if(standoff) {
29882988
var standoffSign =
@@ -2995,14 +2995,14 @@ axes.makeTransTickLabelFn = function(ax) {
29952995
return isXaxis ?
29962996
function(d) {
29972997
return strTranslate(
2998-
u + ax._offset + ax.l2p(getPosX(d)) + runoff,
2998+
u + ax._offset + ax.l2p(getPosX(d)) + shift,
29992999
v + standoff
30003000
);
30013001
} :
30023002
function(d) {
30033003
return strTranslate(
30043004
v + standoff,
3005-
u + ax._offset + ax.l2p(getPosX(d)) + runoff
3005+
u + ax._offset + ax.l2p(getPosX(d)) + shift
30063006
);
30073007
};
30083008
};

src/plots/cartesian/layout_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ module.exports = {
698698
'In other cases the default is *hide past div*.'
699699
].join(' ')
700700
},
701-
ticklabelrunoff: {
701+
ticklabelshift: {
702702
valType: 'integer',
703703
dflt: 0,
704704
editType: 'ticks',

src/plots/cartesian/tick_label_defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ module.exports = function handleTickLabelDefaults(containerIn, containerOut, coe
1616

1717
var showTickLabels = coerce('showticklabels');
1818
if(showTickLabels) {
19-
if(!options.noTicklabelrunoff) {
20-
coerce('ticklabelrunoff');
19+
if(!options.noTicklabelshift) {
20+
coerce('ticklabelshift');
2121
}
2222
if(!options.noTicklabelstandoff) {
2323
coerce('ticklabelstandoff');

src/plots/gl3d/layout/axis_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, options) {
4444
noAutotickangles: true,
4545
noTickson: true,
4646
noTicklabelmode: true,
47-
noTicklabelrunoff: true,
47+
noTicklabelshift: true,
4848
noTicklabelstandoff: true,
4949
noTicklabelstep: true,
5050
noTicklabelposition: true,

src/plots/polar/layout_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
187187
family: dfltFontFamily
188188
},
189189
noAutotickangles: axName === 'angularaxis',
190-
noTicklabelrunoff: true,
190+
noTicklabelshift: true,
191191
noTicklabelstandoff: true
192192
});
193193

src/plots/smith/layout_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
9090

9191
handleTickLabelDefaults(axIn, axOut, coerceAxis, axOut.type, {
9292
noAutotickangles: true,
93-
noTicklabelrunoff: true,
93+
noTicklabelshift: true,
9494
noTicklabelstandoff: true,
9595
noTicklabelstep: true,
9696
noAng: !isRealAxis,

src/plots/ternary/layout_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function handleAxisDefaults(containerIn, containerOut, options, ternaryLayoutOut
9393
handlePrefixSuffixDefaults(containerIn, containerOut, coerce, 'linear');
9494
handleTickLabelDefaults(containerIn, containerOut, coerce, 'linear', {
9595
noAutotickangles: true,
96-
noTicklabelrunoff: true,
96+
noTicklabelshift: true,
9797
noTicklabelstandoff: true
9898
});
9999
handleTickMarkDefaults(containerIn, containerOut, coerce,

src/traces/carpet/ab_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function mimickAxisDefaults(traceIn, traceOut, fullLayout, dfltColor) {
3131

3232
var defaultOptions = {
3333
noAutotickangles: true,
34-
noTicklabelrunoff: true,
34+
noTicklabelshift: true,
3535
noTicklabelstandoff: true,
3636
noTicklabelstep: true,
3737
tickfont: 'x',

src/traces/indicator/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function supplyDefaults(traceIn, traceOut, defaultColor, layout) {
133133
font: layout.font,
134134
noAutotickangles: true,
135135
outerTicks: true,
136-
noTicklabelrunoff: true,
136+
noTicklabelshift: true,
137137
noTicklabelstandoff: true
138138
};
139139
handleTickValueDefaults(axisIn, axisOut, coerceGaugeAxis, 'linear');

test/image/mocks/zzz_ticklabelrunoff_ticklabelstandoff.json renamed to test/image/mocks/zzz_ticklabelshift_ticklabelstandoff.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"type": "date",
2929
"ticklabelmode": "period",
3030
"ticklabelstandoff": 20,
31-
"ticklabelrunoff": 20,
31+
"ticklabelshift": 20,
3232
"side": "bottom",
3333
"ticks": "inside",
3434
"tickfont": { "size": 16 },
@@ -92,7 +92,7 @@
9292
"ticks": "inside",
9393
"ticklabelposition": "inside right",
9494
"ticklabelstandoff": 20,
95-
"ticklabelrunoff": 40,
95+
"ticklabelshift": 40,
9696
"tickfont": { "size": 20 },
9797
"ticklen": 16,
9898
"tickwidth": 8,
@@ -109,7 +109,7 @@
109109
"ticks": "inside",
110110
"ticklabelposition": "inside bottom",
111111
"ticklabelstandoff": 10,
112-
"ticklabelrunoff": -10,
112+
"ticklabelshift": -10,
113113
"tickfont": { "size": 16 },
114114
"ticklen": 8,
115115
"tickwidth": 4,
@@ -127,7 +127,7 @@
127127
"ticks": "outside",
128128
"ticklabelposition": "outside",
129129
"ticklabelstandoff": -10,
130-
"ticklabelrunoff": 15,
130+
"ticklabelshift": 15,
131131
"tickfont": { "size": 16 },
132132
"ticklen": 8,
133133
"tickwidth": 4,

test/plot-schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15154,7 +15154,7 @@
1515415154
"inside bottom"
1515515155
]
1515615156
},
15157-
"ticklabelrunoff": {
15157+
"ticklabelshift": {
1515815158
"description": "Shifts the tick labels by the specified number of pixels in parallel to the axis. Positive values move the labels in the positive direction of the axis.",
1515915159
"dflt": 0,
1516015160
"editType": "ticks",
@@ -16475,7 +16475,7 @@
1647516475
"inside bottom"
1647616476
]
1647716477
},
16478-
"ticklabelrunoff": {
16478+
"ticklabelshift": {
1647916479
"description": "Shifts the tick labels by the specified number of pixels in parallel to the axis. Positive values move the labels in the positive direction of the axis.",
1648016480
"dflt": 0,
1648116481
"editType": "ticks",

0 commit comments

Comments
 (0)