Skip to content

Commit 2fdb90c

Browse files
committed
revise font options
1 parent 1c02804 commit 2fdb90c

File tree

2 files changed

+1929
-2253
lines changed

2 files changed

+1929
-2253
lines changed

src/plots/font_attributes.js

+9-13
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,17 @@ module.exports = function(opts) {
5656
extras: ['normal', 'bold'],
5757
dflt: 'normal',
5858
description: [
59-
'Sets the weight (or boldness) of the font.',
60-
'See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight',
59+
'Sets the weight (or boldness) of the font.'
6160
].join(' ')
6261
},
6362

6463
style: {
6564
editType: editType,
6665
valType: 'enumerated',
67-
values: [
68-
'normal',
69-
'italic',
70-
'oblique',
71-
],
66+
values: ['normal', 'italic'],
7267
dflt: 'normal',
7368
description: [
74-
'Sets whether a font should be styled with a normal, italic, or oblique face from its family.',
75-
'See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style',
69+
'Sets whether a font should be styled with a normal or italic face from its family.'
7670
].join(' ')
7771
},
7872

@@ -81,16 +75,18 @@ module.exports = function(opts) {
8175
valType: 'enumerated',
8276
values: [
8377
'normal',
84-
'unicase',
8578
'small-caps',
79+
// In WebGL-based traces e.g scattergl and scatter3d,
80+
// the only options are *normal* and *small-caps*.
81+
8682
'all-small-caps',
87-
'petite-caps',
8883
'all-petite-caps',
84+
'petite-caps',
85+
'unicase'
8986
],
9087
dflt: 'normal',
9188
description: [
92-
'Sets the variant of the font.',
93-
'See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-variant',
89+
'Sets the variant of the font.'
9490
].join(' ')
9591
},
9692

0 commit comments

Comments
 (0)