@alicloud/cloud-charts
Version:

23 lines (22 loc) • 790 B
TypeScript
import { Types } from '../common/types';
import normalStyle from './normal.style';
export interface Theme extends Partial<typeof normalStyle> {
name?: string;
category_12?: string[];
category_20?: string[];
linear_10?: string[];
order_10?: string[];
}
export declare function setThemeStyle(css: string): void;
export declare function convertCSS(theme: Theme): string;
/**
* 将主题包中横杠连接符变量克隆转为小驼峰写法
*
* @param {Theme} themes 主题包
*
* @return {Theme} themes
* */
export declare function convertKey(themes: Theme): Theme;
export declare function convertJsStyle(name: string, theme: Theme): Theme;
export declare function getG2theme(theme: Theme): Types.LooseObject;
export declare function setG2Theme(theme: Theme): void;