Skip to content

Commit 50b8ccd

Browse files
committed
remove stretch from src
1 parent 3829ca9 commit 50b8ccd

38 files changed

+2
-100
lines changed

src/components/annotations/common_defaults.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ module.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayo
6262
family: globalHoverLabel.font.family,
6363
weight: globalHoverLabel.font.weight,
6464
style: globalHoverLabel.font.style,
65-
stretch: globalHoverLabel.font.stretch,
6665
variant: globalHoverLabel.font.variant,
6766
size: globalHoverLabel.font.size,
6867
color: globalHoverLabel.font.color || hoverBorder

src/components/annotations/draw.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ function drawRaw(gd, options, index, subplotId, xa, ya) {
198198
fontColor: hoverFont.color,
199199
fontWeight: hoverFont.weight,
200200
fontStyle: hoverFont.style,
201-
fontStretch: hoverFont.stretch,
202201
fontVariant: hoverFont.variant
203202
}, {
204203
container: fullLayout._hoverlayer.node(),

src/components/colorbar/defaults.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ module.exports = function colorbarDefaults(containerIn, containerOut, layout) {
127127
var dfltTitleFont = Lib.extendFlat({}, tickFont, {
128128
weight: font.weight,
129129
style: font.style,
130-
stretch: font.stretch,
131130
variant: font.variant,
132131
color: font.color,
133132
size: Lib.bigFont(tickFont.size)

src/components/drawing/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ var drawing = module.exports = {};
2727
// styling functions for plot elements
2828
// -----------------------------------------------------
2929

30-
drawing.font = function(s, family, size, color, weight, style, stretch, variant) {
31-
// also allow the form font(s, {family, size, color, weight, style, stretch, variant})
30+
drawing.font = function(s, family, size, color, weight, style, variant) {
31+
// also allow the form font(s, {family, size, color, weight, style, variant})
3232
if(Lib.isPlainObject(family)) {
3333
variant = family.variant;
34-
stretch = family.stretch;
3534
style = family.style;
3635
weight = family.weight;
3736
color = family.color;
@@ -44,7 +43,6 @@ drawing.font = function(s, family, size, color, weight, style, stretch, variant)
4443

4544
if(weight) s.style('font-weight', weight);
4645
if(style) s.style('font-style', style);
47-
if(stretch) s.style('font-stretch', stretch);
4846
if(variant) s.style('font-variant', variant);
4947
};
5048

@@ -1139,7 +1137,6 @@ drawing.textPointStyle = function(s, trace, gd) {
11391137
family: d.tf || trace.textfont.family,
11401138
weight: d.tw || trace.textfont.weight,
11411139
style: d.ty || trace.textfont.style,
1142-
stretch: d.th || trace.textfont.stretch,
11431140
variant: d.tv || trace.textfont.variant,
11441141
size: fontSize,
11451142
color: fontColor

src/components/fx/calc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ module.exports = function calc(gd) {
3737
fillFn(trace.hoverlabel.font.family, cd, 'htf');
3838
fillFn(trace.hoverlabel.font.weight, cd, 'htw');
3939
fillFn(trace.hoverlabel.font.style, cd, 'hty');
40-
fillFn(trace.hoverlabel.font.stretch, cd, 'hth');
4140
fillFn(trace.hoverlabel.font.variant, cd, 'htv');
4241
fillFn(trace.hoverlabel.namelength, cd, 'hnl');
4342
fillFn(trace.hoverlabel.align, cd, 'hta');

src/components/fx/hover.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ exports.loneHover = function loneHover(hoverItems, opts) {
191191
fontColor: hoverItem.fontColor,
192192
fontWeight: hoverItem.fontWeight,
193193
fontStyle: hoverItem.fontStyle,
194-
fontStretch: hoverItem.fontStretch,
195194
fontVariant: hoverItem.fontVariant,
196195
nameLength: hoverItem.nameLength,
197196
textAlign: hoverItem.textAlign,
@@ -931,7 +930,6 @@ function createHoverText(hoverData, opts) {
931930
var fontSize = opts.fontSize || constants.HOVERFONTSIZE;
932931
var fontWeight = opts.fontWeight || 'normal';
933932
var fontStyle = opts.fontStyle || 'normal';
934-
var fontStretch = opts.fontStretch || 'normal';
935933
var fontVariant = opts.fontVariant || 'normal';
936934

937935
var c0 = hoverData[0];
@@ -1016,7 +1014,6 @@ function createHoverText(hoverData, opts) {
10161014
var commonLabelFont = {
10171015
weight: commonLabelOpts.font.weight || fontWeight,
10181016
style: commonLabelOpts.font.style || fontStyle,
1019-
stretch: commonLabelOpts.font.stretch || fontStretch,
10201017
variant: commonLabelOpts.font.variant || fontVariant,
10211018
family: commonLabelOpts.font.family || fontFamily,
10221019
size: commonLabelOpts.font.size || fontSize,
@@ -1342,7 +1339,6 @@ function createHoverText(hoverData, opts) {
13421339
.call(Drawing.font, {
13431340
weight: fontWeight,
13441341
style: fontStyle,
1345-
stretch: fontStretch,
13461342
variant: fontVariant,
13471343
family: fontFamily,
13481344
size: fontSize
@@ -1387,7 +1383,6 @@ function createHoverText(hoverData, opts) {
13871383
color: d.fontColor || contrastColor,
13881384
weight: d.fontWeight || fontWeight,
13891385
style: d.fontStyle || fontStyle,
1390-
stretch: d.fontStretch || fontStretch,
13911386
variant: d.fontVariant || fontVariant
13921387
})
13931388
.text(text)
@@ -1950,7 +1945,6 @@ function cleanPoint(d, hovermode) {
19501945
fill('fontColor', 'htc', 'hoverlabel.font.color');
19511946
fill('fontWeight', 'htw', 'hoverlabel.font.weight');
19521947
fill('fontStyle', 'hty', 'hoverlabel.font.style');
1953-
fill('fontStretch', 'hth', 'hoverlabel.font.stretch');
19541948
fill('fontVariant', 'htv', 'hoverlabel.font.variant');
19551949
fill('nameLength', 'hnl', 'hoverlabel.namelength');
19561950
fill('textAlign', 'hta', 'hoverlabel.align');

src/components/fx/hoverlabel_defaults.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ module.exports = function handleHoverLabelDefaults(contIn, contOut, coerce, opts
2323
inheritFontAttr('color');
2424
inheritFontAttr('weight');
2525
inheritFontAttr('style');
26-
inheritFontAttr('stretch');
2726
inheritFontAttr('variant');
2827

2928
if(hasLegend) {

src/components/legend/style.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ module.exports = function style(s, gd, legend) {
246246
dEdit.tf = boundVal('textfont.family', pickFirst);
247247
dEdit.tw = boundVal('textfont.weight', pickFirst);
248248
dEdit.ty = boundVal('textfont.style', pickFirst);
249-
dEdit.th = boundVal('textfont.stretch', pickFirst);
250249
dEdit.tv = boundVal('textfont.variant', pickFirst);
251250
}
252251

src/components/titles/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ function draw(gd, titleClass, options) {
7070
var fontColor = font.color;
7171
var fontWeight = font.weight;
7272
var fontStyle = font.style;
73-
var fontStretch = font.stretch;
7473
var fontVariant = font.variant;
7574

7675
// only make this title editable if we positively identify its property
@@ -152,7 +151,6 @@ function draw(gd, titleClass, options) {
152151
opacity: opacity * Color.opacity(fontColor),
153152
'font-weight': fontWeight,
154153
'font-style': fontStyle,
155-
'font-stretch': fontStretch,
156154
'font-variant': fontVariant
157155
})
158156
.attr(attributes)

src/lib/coerce.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,6 @@ exports.coerceFont = function(coerce, attr, dfltObj, opts) {
473473

474474
if(!opts.noWeight) out.weight = coerce(attr + '.weight', dfltObj.weight);
475475
if(!opts.noStyle) out.style = coerce(attr + '.style', dfltObj.style);
476-
if(!opts.noStretch) out.stretch = coerce(attr + '.stretch', dfltObj.stretch);
477476
if(!opts.noVariant) out.variant = coerce(attr + '.variant', dfltObj.variant);
478477

479478
return out;

0 commit comments

Comments
 (0)