Skip to content

Commit a3ad2e8

Browse files
committed
rename keys
1 parent c8fe2fc commit a3ad2e8

File tree

13 files changed

+18
-18
lines changed

13 files changed

+18
-18
lines changed

src/components/annotations/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function drawRaw(gd, options, index, subplotId, xa, ya) {
200200
fontStyle: hoverFont.style,
201201
fontVariant: hoverFont.variant,
202202
fontShadow: hoverFont.fontShadow,
203-
fontStriding: hoverFont.fontStriding,
203+
fontDecorline: hoverFont.fontDecorline,
204204
fontCapitalize: hoverFont.fontCapitalize,
205205
}, {
206206
container: fullLayout._hoverlayer.node(),

src/lib/coerce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ exports.coerceFont = function(coerce, attr, dfltObj, opts) {
484484
};
485485

486486
if(!opts.noFontVariant) out.variant = coerce(attr + '.variant', dfltObj.variant);
487-
if(!opts.noFontStriding) out.decorline = coerce(attr + '.decorline', dfltObj.decorline);
487+
if(!opts.noFontDecorline) out.decorline = coerce(attr + '.decorline', dfltObj.decorline);
488488
if(!opts.noFontCapitalize) out.capitalize = coerce(attr + '.capitalize', dfltObj.capitalize);
489489
if(!opts.noFontShadow) {
490490
var dfltShadow = dfltObj.shadow;

src/plots/cartesian/axes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ function tickTextObj(ax, x, text) {
17411741
fontStyle: tf.style,
17421742
fontVariant: tf.variant,
17431743
fontCapitalize: tf.capitalize,
1744-
fontStriding: tf.decorline,
1744+
fontDecorline: tf.decorline,
17451745
fontShadow: tf.shadow,
17461746
fontColor: tf.color
17471747
};
@@ -3512,7 +3512,7 @@ axes.drawLabels = function(gd, ax, opts) {
35123512
style: d.fontStyle,
35133513
variant: d.fontVariant,
35143514
capitalize: d.fontCapitalize,
3515-
decorline: d.fontStriding,
3515+
decorline: d.fontDecorline,
35163516
shadow: d.fontShadow,
35173517
})
35183518
.text(d.text)

src/plots/mapbox/layout_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var constants = require('./constants');
1313
var fontAttr = fontAttrs({
1414
noFontVariant: true,
1515
noFontShadow: true,
16-
noFontStriding: true,
16+
noFontDecorline: true,
1717
noFontCapitalize: true,
1818
description: [
1919
'Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size).',

src/plots/mapbox/layout_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function handleLayerDefaults(layerIn, layerOut) {
106106
Lib.coerceFont(coerce, 'symbol.textfont', undefined, {
107107
noFontVariant: true,
108108
noFontShadow: true,
109-
noFontStriding: true,
109+
noFontDecorline: true,
110110
noFontCapitalize: true,
111111
});
112112
coerce('symbol.textposition');

src/plots/polar/layout_defaults.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
158158
var dfltFontStyle;
159159
var dfltFontVariant;
160160
var dfltFontCapitalize;
161-
var dfltFontStriding;
161+
var dfltFontDecorline;
162162
var dfltFontShadow;
163163
var font = opts.font || {};
164164

@@ -170,7 +170,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
170170
dfltFontStyle = font.style;
171171
dfltFontVariant = font.variant;
172172
dfltFontCapitalize = font.capitalize;
173-
dfltFontStriding = font.decorline;
173+
dfltFontDecorline = font.decorline;
174174
dfltFontShadow = font.shadow;
175175

176176
handleTickValueDefaults(axIn, axOut, coerceAxis, axOut.type);
@@ -180,7 +180,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
180180
style: dfltFontStyle,
181181
variant: dfltFontVariant,
182182
capitalize: dfltFontCapitalize,
183-
decorline: dfltFontStriding,
183+
decorline: dfltFontDecorline,
184184
shadow: dfltFontShadow,
185185
color: dfltFontColor,
186186
size: dfltFontSize,
@@ -215,7 +215,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
215215
style: dfltFontStyle,
216216
variant: dfltFontVariant,
217217
capitalize: dfltFontCapitalize,
218-
decorline: dfltFontStriding,
218+
decorline: dfltFontDecorline,
219219
shadow: dfltFontShadow,
220220
color: dfltFontColor,
221221
size: Lib.bigFont(dfltFontSize),

src/traces/sankey/plot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ module.exports = function plot(gd, calcData) {
230230
fontStyle: castHoverOption(obj, 'font.style'),
231231
fontVariant: castHoverOption(obj, 'font.variant'),
232232
fontCapitalize: castHoverOption(obj, 'font.capitalize'),
233-
fontStriding: castHoverOption(obj, 'font.decorline'),
233+
fontDecorline: castHoverOption(obj, 'font.decorline'),
234234
fontShadow: castHoverOption(obj, 'font.shadow'),
235235
nameLength: castHoverOption(obj, 'namelength'),
236236
textAlign: castHoverOption(obj, 'align'),
@@ -330,7 +330,7 @@ module.exports = function plot(gd, calcData) {
330330
fontStyle: castHoverOption(obj, 'font.style'),
331331
fontVariant: castHoverOption(obj, 'font.variant'),
332332
fontCapitalize: castHoverOption(obj, 'font.capitalize'),
333-
fontStriding: castHoverOption(obj, 'font.decorline'),
333+
fontDecorline: castHoverOption(obj, 'font.decorline'),
334334
fontShadow: castHoverOption(obj, 'font.shadow'),
335335
nameLength: castHoverOption(obj, 'namelength'),
336336
textAlign: castHoverOption(obj, 'align'),

src/traces/scatter3d/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ var attrs = module.exports = overrideAll({
158158
textposition: extendFlat({}, scatterAttrs.textposition, {dflt: 'top center'}),
159159
textfont: fontAttrs({
160160
noFontShadow: true,
161-
noFontStriding: true,
161+
noFontDecorline: true,
162162
noFontCapitalize: true,
163163
editType: 'calc',
164164
colorEditType: 'style',

src/traces/scatter3d/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
4444
handleTextDefaults(traceIn, traceOut, layout, coerce, {
4545
noSelect: true,
4646
noFontShadow: true,
47-
noFontStriding: true,
47+
noFontDecorline: true,
4848
noFontCapitalize: true,
4949
});
5050
}

src/traces/scattergl/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var attrs = module.exports = overrideAll({
3939
textposition: scatterAttrs.textposition,
4040
textfont: fontAttrs({
4141
noFontShadow: true,
42-
noFontStriding: true,
42+
noFontDecorline: true,
4343
noFontCapitalize: true,
4444
editType: 'calc',
4545
colorEditType: 'style',

src/traces/scattergl/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
5454
coerce('texttemplate');
5555
handleTextDefaults(traceIn, traceOut, layout, coerce, {
5656
noFontShadow: true,
57-
noFontStriding: true,
57+
noFontDecorline: true,
5858
noFontCapitalize: true,
5959
});
6060
}

src/traces/scattermapbox/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
7474
noSelect: true,
7575
noFontVariant: true,
7676
noFontShadow: true,
77-
noFontStriding: true,
77+
noFontDecorline: true,
7878
noFontCapitalize: true,
7979
font: {
8080
family: isSupportedFont(layoutFontFamily) ? layoutFontFamily : 'Open Sans Regular',

src/traces/scatterpolargl/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
4242
coerce('texttemplate');
4343
handleTextDefaults(traceIn, traceOut, layout, coerce, {
4444
noFontShadow: true,
45-
noFontStriding: true,
45+
noFontDecorline: true,
4646
noFontCapitalize: true,
4747
});
4848
}

0 commit comments

Comments
 (0)