Skip to content

Commit d0c583c

Browse files
committed
revise new attributes
1 parent 1a6fc90 commit d0c583c

File tree

2 files changed

+3853
-1296
lines changed

2 files changed

+3853
-1296
lines changed

src/plots/font_attributes.js

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = function(opts) {
5757
dflt: 'normal',
5858
description: [
5959
'Sets the weight (or boldness) of the font.',
60-
'See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight',
60+
'See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight',
6161
].join(' ')
6262
},
6363

@@ -72,28 +72,25 @@ module.exports = function(opts) {
7272
dflt: 'normal',
7373
description: [
7474
'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/CSS/font-style',
75+
'See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style',
7676
].join(' ')
7777
},
7878

7979
variant: {
8080
editType: editType,
81-
valType: 'string',
81+
valType: 'enumerated',
82+
values: [
83+
'normal',
84+
'unicase',
85+
'small-caps',
86+
'all-small-caps',
87+
'petite-caps',
88+
'all-petite-caps',
89+
],
8290
dflt: 'normal',
8391
description: [
84-
'Set all the font variants for a font including but not limited to',
85-
'*normal*',
86-
'*sub*, *super*, *text*, *emoji*, *unicode*',
87-
'*unicase*, *titling-caps*,',
88-
'*small-caps*, *all-small-caps*,',
89-
'*petite-caps*, *all-petite-caps*,',
90-
'*ordinal*, *slashed-zero*, *ruby*',
91-
'*contextual*, *no-contextual*,',
92-
'*common-ligatures*, *no-common-ligatures*,',
93-
'*discretionary-ligatures*, *no-discretionary-ligatures*,',
94-
'*historical-ligatures*, *no-historical-ligatures*,',
95-
'*historical-forms*.',
96-
'See https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant',
92+
'Sets the variant of the font.',
93+
'See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-variant',
9794
].join(' ')
9895
},
9996

0 commit comments

Comments
 (0)