UNPKG

@rdkmaster/jigsaw-labs

Version:

Jigsaw, the next generation component set for RDK

72 lines (71 loc) 1.92 kB
export declare class ChartIconPie { delimiter?: string; fill?: string[] | ((...any) => string); height?: number; radius?: number; width?: number; } export declare class ChartIconDonut { delimiter?: string; fill?: string[]; height?: number; innerRadius?: number; radius?: number; width?: number; } export declare class ChartIconLine { delimiter?: string; fill?: string; height?: number; max?: number; min?: number; stroke?: string; strokeWidth?: number; width?: number; } export declare class ChartIconBar { delimiter?: string; fill?: string[]; height?: number; max?: number; min?: number; padding?: number; width?: number; } export declare class ChartIconCustomPieLegend { /** * orient只有'top'和'right'两个值 * - 如果是'right',图例的默认宽度是100,用户也可以自定义 * - 如果是'top',图例的高度是自动算出来的,所以height属性不需要配置,width也不用配置 */ orient: string; data: string[]; width: number; height: number; marginLeft: number; } export declare class ChartIconCustomPie { delimiter?: string; fill?: string[] | ((...any) => string); height?: number; radius?: number; width?: number; legend?: ChartIconCustomPieLegend; series?: any; after?: Function; link?: Function | string; title: string[]; context?: object; } export declare enum ChartType { pie = 0, donut = 1, line = 2, bar = 3, customPie = 4, } export declare class ChartIconFactory { static create(selector: string, chartType: ChartType, options: ChartIconPie | ChartIconDonut | ChartIconLine | ChartIconBar | ChartIconCustomPie): void; private static _chartTypeMap; static registerCustomPie(): void; }