about graphic

add echarts graphic LinearGradient
This commit is contained in:
PollionChang
2017-11-03 16:50:06 +08:00
parent b67c928904
commit ce0eb729bc

View File

@@ -12,8 +12,9 @@ declare namespace echarts {
const graphic: {
clipPointsByRect(points: number[][], rect: ERectangle): number[][];
clipRectByRect(targetRect: ERectangle, rect: ERectangle): ERectangle;
LinearGradient(x: number, y: number, x2: number, y2: number, colorStops: Array<Object>, globalCoord?: boolean): void;
}
function connect(group:string|Array<string>):void;
function disConnect(group:string):void;
@@ -74,7 +75,7 @@ declare namespace echarts {
isDisposed():boolean
dispose():void
// 转换逻辑点到像素
convertToPixel(finder: {
seriesIndex?: number,
@@ -93,7 +94,7 @@ declare namespace echarts {
gridId?: string
gridName?: string
} | string, value: string|Array<any>): string|Array<any>
convertFromPixel(finder: {
seriesIndex?: number,
seriesId?: string,