8000 Reuse font_attributes in `table` by monfera · Pull Request #2070 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Reuse font_attributes in table #2070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 6, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
other use of font - thanks Étienne for the catch!
  • Loading branch information
monfera committed Oct 6, 2017
commit 61bc258190a916b4693abb3a7faee661b1fd511f
32 changes: 1 addition & 31 deletions src/traces/table/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,36 +214,6 @@ module.exports = overrideAll({
}
},

font: {
family: {
valType: 'string',
arrayOk: true,
role: 'style',
noBlank: true,
strict: true,
description: [
'HTML font family - the typeface that will be applied by the web browser.',
'The web browser will only be able to apply a font if it is available on the system',
'which it operates. Provide multiple font families, separated by commas, to indicate',
'the preference in which to apply fonts if they aren\'t available on the system.',
'The plotly service (at https://plot.ly or on-premise) generates images on a server,',
'where only a select number of',
'fonts are installed and supported.',
'These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,',
'*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,',
'*PT Sans Narrow*, *Raleway*, *Times New Roman*.'
].join(' ')
},
size: {
valType: 'number',
arrayOk: true,
role: 'style'
},
color: {
valType: 'color',
arrayOk: true,
role: 'style'
}
}
font: extendFlat({}, fontAttrs({arrayOk: true}))
}
}, 'calc', 'from-root');
0