mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-04 07:52:51 +00:00
refactor: barWidth and barMaxWidth can be string (#43946)
- adding barMinWidth to bar.d.ts
This commit is contained in:
parent
421fcadecf
commit
c1d4e2f36d
28
types/echarts/options/series/bar.d.ts
vendored
28
types/echarts/options/series/bar.d.ts
vendored
@ -1934,6 +1934,8 @@ declare namespace echarts {
|
||||
/**
|
||||
* The width of the bar. Adaptive when not specified.
|
||||
*
|
||||
* Can be an absolute value like 40 or a percent value like '60%'. The percent is based on the calculated category width.
|
||||
*
|
||||
* In a single coodinate system, this attribute is shared by multiple
|
||||
* `'bar'` series.
|
||||
* This attribute should be set on the last `'bar'` series in the
|
||||
@ -1943,11 +1945,15 @@ declare namespace echarts {
|
||||
*
|
||||
* @see https://echarts.apache.org/en/option.html#series-bar.barWidth
|
||||
*/
|
||||
barWidth?: number;
|
||||
barWidth?: number | string;
|
||||
|
||||
/**
|
||||
* The maximum width of the bar. Adaptive when not specified.
|
||||
*
|
||||
* Has higer priority than barWidth.
|
||||
*
|
||||
* Can be an absolute value like 40 or a percent value like '60%'. The percent is based on the calculated category width.
|
||||
*
|
||||
* In a single coodinate system, this attribute is shared by multiple
|
||||
* `'bar'` series.
|
||||
* This attribute should be set on the last `'bar'` series in the
|
||||
@ -1957,7 +1963,25 @@ declare namespace echarts {
|
||||
*
|
||||
* @see https://echarts.apache.org/en/option.html#series-bar.barMaxWidth
|
||||
*/
|
||||
barMaxWidth?: number;
|
||||
barMaxWidth?: number | string;
|
||||
|
||||
/**
|
||||
* The minimum width of the bar. In cartesian the default value is 1, otherwise the default value if null.
|
||||
*
|
||||
* Has higer priority than barWidth.
|
||||
*
|
||||
* Can be an absolute value like 40 or a percent value like ''60%''. The percent is based on the calculated category width.
|
||||
*
|
||||
* In a single coodinate system, this attribute is shared by multiple
|
||||
* ''bar'' series.
|
||||
* This attribute should be set on the last ''bar'' series in the
|
||||
* coodinate system, then it will be adopted by all 'bar' series
|
||||
* in the coordinate system.
|
||||
*
|
||||
* *
|
||||
* @see https://echarts.apache.org/en/option.html#series-bar.barMinWidth
|
||||
*/
|
||||
barMinWidth?: number | string;
|
||||
|
||||
/**
|
||||
* The minimum width of bar.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user