thsc-datav-standard-chart
Version:
标准范式组件
45 lines (44 loc) • 1.19 kB
TypeScript
export declare const FONT_SIZE_LIST: {
axisName: number;
axisLabel: number;
legendLabel: number;
tooltipLabel: number;
axisPointerLabel: number;
seriesLabel: number;
titleLabel: number;
};
export declare const FONT_WEIGHT_LIST: {
bold: string;
normal: string;
bolder: string;
lighter: string;
axisLabel: number;
axisName: number;
barLabel: number;
};
export declare const LINE_HEIGHT_LIST: {
tooltipLabel: number;
};
export declare const FONT_FAMILY_LIST: {
axisLabel: string;
axisPointerLabel: string;
tooltipLabel: string;
axisName: string;
seriesLabel: string;
};
export declare const THS_FONTFAMILY = "THSJinRongTi-Regular";
export declare const THS_FONTFAMILY_MEDIUM = "THSJinRongTi-Medium";
export declare const PINGFANGSC_REGULAR = "PingFangSC-Regular";
/**
* 坐标轴标签 1级
* 图例标签 2级
* 数据浮层(tooltip) 1级
* 待补充
*/
type FontLevel = 1 | 2 | 3 | 4;
export declare const FONT_LEVEL_LIST: Record<string, FontLevel>;
/**
* 返回不同等级的文字的颜色
*/
export declare function fontColor(level: FontLevel, colorMode?: 'light' | 'dark'): string;
export {};