Skip to content

Commit d048236

Browse files
committed
revise opt name
1 parent f963280 commit d048236

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/lib/coerce.js

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

469469
out.weight = coerce(attr + '.weight', dfltObj.weight);
470470
out.style = coerce(attr + '.style', dfltObj.style);
471-
if(!opts.noVariant) out.variant = coerce(attr + '.variant', dfltObj.variant);
471+
if(!opts.noFontVariant) out.variant = coerce(attr + '.variant', dfltObj.variant);
472472

473473
return out;
474474
};

src/plots/font_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = function(opts) {
6969
].join(' ')
7070
},
7171

72-
variant: opts.noVariant ? undefined : {
72+
variant: opts.noFontVariant ? undefined : {
7373
editType: editType,
7474
valType: 'enumerated',
7575
values: variantValues || [

src/plots/mapbox/layout_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var templatedArray = require('../../plot_api/plot_template').templatedArray;
1111
var constants = require('./constants');
1212

1313
var fontAttr = fontAttrs({
14-
noVariant: true,
14+
noFontVariant: true,
1515
description: [
1616
'Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size).',
1717
'Has an effect only when `type` is set to *symbol*.'

src/plots/mapbox/layout_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function handleLayerDefaults(layerIn, layerOut) {
104104

105105
coerce('symbol.text');
106106
Lib.coerceFont(coerce, 'symbol.textfont', undefined, {
107-
noVariant: true
107+
noFontVariant: true
108108
});
109109
coerce('symbol.textposition');
110110
coerce('symbol.placement');

src/traces/scattermapbox/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
107107
handleTextDefaults(traceIn, traceOut, layout, coerce,
108108
{
109109
noSelect: true,
110-
noVariant: true,
110+
noFontVariant: true,
111111
font: {
112112
family: supportedFonts.indexOf(layout.font.family) !== -1 ? layout.font.family : 'Open Sans Regular',
113113
weight: layout.font.weight,

0 commit comments

Comments
 (0)