mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[echarts] fix series-bar.itemStyle.color for linear gradient & radial gradient (#37193)
* [echarts] fix series-bar.itemStyle.color for linear gradient * fix series-bar.itemStyle.color for linear gradient & radial gradient
This commit is contained in:
parent
7d08dc2b5d
commit
5ab017973c
23
types/echarts/options/series/bar.d.ts
vendored
23
types/echarts/options/series/bar.d.ts
vendored
@ -922,7 +922,28 @@ declare namespace echarts {
|
||||
* "auto"
|
||||
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-bar.itemStyle.color
|
||||
*/
|
||||
color?: string;
|
||||
color?: string | {
|
||||
type: 'linear',
|
||||
x: number,
|
||||
y: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
colorStops: {
|
||||
offset: number,
|
||||
color: string
|
||||
}[],
|
||||
global: boolean
|
||||
} | {
|
||||
type: 'radial',
|
||||
x: number,
|
||||
y: number,
|
||||
r: number,
|
||||
colorStops: {
|
||||
offset: number,
|
||||
color: string
|
||||
}[],
|
||||
global: boolean
|
||||
};
|
||||
|
||||
/**
|
||||
* The bodrder color of bar.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user