Clean up echarts option interfaces

Details:
- remove redundant field from SeriesBar
- move Line interface one level up to be able use from other places
- make names of common interfaces more obvious
This commit is contained in:
Konch Roman 2018-11-07 17:55:34 +03:00
parent 1a9ee43d68
commit 00fd32eae1
5 changed files with 501 additions and 503 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@ declare namespace echarts {
/**
* @todo describe
*/
interface AxisPointer extends CommonProps.Axis.Pointer {
interface AxisPointer extends BasicComponents.CartesianAxis.Pointer {
/**
* Component ID, not specified by default.
* If specified, it can be used to refer the component

View File

@ -12,8 +12,6 @@ declare namespace echarts {
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-bar
*/
interface SeriesBar {
[k: string]: any;
/**
* @default
* "bar"

View File

@ -9,7 +9,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis
*/
interface XAxis extends CommonProps.Axis {
interface XAxis extends BasicComponents.CartesianAxis {
/**
* The first x axis in grid defaults to be on the bottom of the grid,
* and the second x axis is on the other side against the first x axis.
@ -33,7 +33,7 @@ declare namespace echarts {
* @default 'value'
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.type
*/
type?: CommonProps.Axis.Type;
type?: BasicComponents.CartesianAxis.Type;
}
}
}

View File

@ -8,7 +8,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis
*/
interface YAxis extends CommonProps.Axis {
interface YAxis extends BasicComponents.CartesianAxis {
/**
* The first y axis in grid defaults to be the left (`'left'`)
* of the grid, and the second y axis is on the other side
@ -31,7 +31,7 @@ declare namespace echarts {
* @default 'value'
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.type
*/
type?: CommonProps.Axis.Type;
type?: BasicComponents.CartesianAxis.Type;
}
}
}