Skip to content

Commit

Permalink
Simplify font options declarations (#5146)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaKhD committed Aug 22, 2018
1 parent 4ec9cd9 commit fa62205
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 75 deletions.
13 changes: 4 additions & 9 deletions js/viz/docs/docBaseWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ var BaseWidget = {
* @default undefined
*/

/**
* @pseudo CommonVizFontFamily
* @default "'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif" @prop family
*/

/**
* @pseudo CommonVizLightFontFamily
* @default "'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif" @prop family
Expand Down Expand Up @@ -442,9 +437,6 @@ var BaseWidget = {
* @name BaseWidgetOptions.tooltip.font
* @type Font
* @default '#232323' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
color: '#232323',
Expand Down Expand Up @@ -535,7 +527,6 @@ var BaseWidget = {
* @name BaseWidgetOptions.loadingIndicator.font
* @type Font
* @default '#767676' @prop color
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -633,16 +624,20 @@ var tickInterval = {
/**
* @name Font.family
* @type string
* @default "'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif"
*/
/**
* @name Font.opacity
* @type number
* @default 1
*/
/**
* @name Font.size
* @type string|number
* @default 12
*/
/**
* @name Font.weight
* @type number
* @default 400
*/
4 changes: 0 additions & 4 deletions js/viz/docs/docGaugeIndicators.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ var CommonIndicator = {
* @name CommonIndicator.text.font
* @propertyOf circularRangeBar,linearRangeBar,circularTextCloud,linearTextCloud
* @type Font
* @default null @prop color
* @default 1 @prop opacity
* @default 14 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
color: null,
Expand Down
3 changes: 1 addition & 2 deletions js/viz/docs/docSankey.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ var dxSankey = {
/**
* @name dxSankeyOptions.label.font
* @type Font
* @default '#ffffff' @prop color
* @extends CommonVizFontFamily
* @default '#FFFFFF' @prop color
*/
font: {
color: '#ffffff',
Expand Down
30 changes: 0 additions & 30 deletions js/viz/docs/doccharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,6 @@ var dxChart = {
* @name dxChartOptions.crosshair.label.font
* @type Font
* @default '#FFFFFF' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -569,9 +566,6 @@ var dxChart = {
* @name dxChartOptions.crosshair.verticalLine.label.font
* @type Font
* @default '#FFFFFF' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -654,9 +648,6 @@ var dxChart = {
* @name dxChartOptions.crosshair.horizontalLine.label.font
* @type Font
* @default '#FFFFFF' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -852,9 +843,6 @@ var dxChart = {
* @name dxChartOptions.commonAxisSettings.label.font
* @type Font
* @default '#767676' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -1006,8 +994,6 @@ var dxChart = {
* @type Font
* @default '#767676' @prop color
* @default 16 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -1061,9 +1047,6 @@ var dxChart = {
* @name dxChartOptions.commonAxisSettings.stripStyle.label.font
* @type Font
* @default '#767676' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -1130,9 +1113,6 @@ var dxChart = {
* @name dxChartOptions.commonAxisSettings.constantLineStyle.label.font
* @type Font
* @default '#767676' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -2327,9 +2307,6 @@ var dxPolarChart = {
* @name dxPolarChartOptions.commonAxisSettings.label.font
* @type Font
* @default '#767676' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -2485,9 +2462,6 @@ var dxPolarChart = {
* @name dxPolarChartOptions.commonAxisSettings.stripStyle.label.font
* @type Font
* @default '#767676' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -2536,9 +2510,6 @@ var dxPolarChart = {
* @name dxPolarChartOptions.commonAxisSettings.constantLineStyle.label.font
* @type Font
* @default '#767676' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -3178,7 +3149,6 @@ var BaseChart = {
* @name BaseChartOptions.legend.font
* @type Font
* @default '#767676' @prop color
* @extends CommonVizFontFamily
*/
font: {
color: '#767676',
Expand Down
2 changes: 0 additions & 2 deletions js/viz/docs/docchartseries.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,6 @@ var commonSeries = {
* @type Font
* @default '#FFFFFF' @prop color
* @default 14 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down
2 changes: 0 additions & 2 deletions js/viz/docs/docfunnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ var dxFunnel = {
* @name dxFunnelOptions.label.font
* @type Font
* @default '#767676' @prop color
* @extends CommonVizFontFamily
*/
font: {
color: '#767676',
Expand Down Expand Up @@ -429,7 +428,6 @@ var dxFunnel = {
* @name dxFunnelOptions.legend.font
* @type Font
* @default '#767676' @prop color
* @extends CommonVizFontFamily
*/
font: {
color: '#767676',
Expand Down
7 changes: 0 additions & 7 deletions js/viz/docs/docgauges.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,6 @@ var BaseGauge = {
* @name BaseGaugeOptions.scale.label.font
* @type Font
* @default '#767676' @prop color
* @default 1 @prop opacity
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
color: '#767676',
Expand Down Expand Up @@ -685,10 +681,7 @@ var dxBarGauge = {
/**
* @name dxBarGaugeOptions.label.font
* @type Font
* @extends CommonVizFontFamily
* @default 1 @prop opacity
* @default 16 @prop size
* @default 400 @prop weight
*/
font: {
color: undefined,
Expand Down
2 changes: 0 additions & 2 deletions js/viz/docs/docpiechartseries.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,6 @@ var commonPieChartSeries = {
* @type Font
* @default '#FFFFFF' @prop color
* @default 14 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down
2 changes: 0 additions & 2 deletions js/viz/docs/docpolarchartseries.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,6 @@ var CommonPolarChartSeries = {
* @type Font
* @default '#FFFFFF' @prop color
* @default 14 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down
6 changes: 1 addition & 5 deletions js/viz/docs/docrangeselector.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ var dxRangeSelector = {
* @type Font
* @default '#767676' @prop color
* @default 11 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
color: '#767676',
Expand Down Expand Up @@ -390,10 +388,8 @@ var dxRangeSelector = {
/**
* @name dxRangeSelectorOptions.sliderMarker.font
* @type Font
* @default 'white' @prop color
* @default '#FFFFFF' @prop color
* @default 14 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
color: 'white',
Expand Down
6 changes: 1 addition & 5 deletions js/viz/docs/doctreemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,8 @@ var dxTreeMap = {
/**
* @name dxTreeMapOptions.tile.label.font
* @type Font
* @default '#ffffff' @prop color
* @default 12 @prop size
* @default '#FFFFFF' @prop color
* @default 300 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -301,9 +299,7 @@ var dxTreeMap = {
* @name dxTreeMapOptions.group.label.font
* @type Font
* @default '#767676' @prop color
* @default 12 @prop size
* @default 600 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down
5 changes: 0 additions & 5 deletions js/viz/docs/docvectormap.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ var dxVectorMap = {
* @name dxVectorMapOptions.layers.label.font
* @type Font
* @default '#2b2b2b' @prop color
* @default 12 @prop size
* @default 400 @prop weight
* @extends CommonVizFontFamily
*/
font: {
family: undefined,
Expand Down Expand Up @@ -405,8 +402,6 @@ var dxVectorMap = {
* @name dxVectorMapOptions.legends.font
* @type Font
* @default '#2b2b2b' @prop color
* @default 12 @prop size
* @extends CommonVizFontFamily
*/
font: {
color: '#2b2b2b',
Expand Down

0 comments on commit fa62205

Please sign in to comment.