1 Star 0 Fork 0

yisshow/echarts-wordcloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.d.ts 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
Ovilia 提交于 2021-12-16 12:13 . chore: update files with prettier
import echarts from 'echarts';
interface WordCloudTextStyle {
color?: string;
fontStyle?: string;
fontWeight?: string | number;
fontFamily?: string;
fontSize?: number | string;
align?: string;
verticalAlign?: string;
// @deprecated
baseline?: string;
opacity?: number;
lineHeight?: number;
backgroundColor?:
| string
| {
image: HTMLImageElement | HTMLCanvasElement | string;
};
borderColor?: string;
borderWidth?: number;
borderType?: string;
borderDashOffset?: number;
borderRadius?: number | number[];
padding?: number | number[];
width?: number | string; // Percent
height?: number;
textBorderColor?: string;
textBorderWidth?: number;
textBorderType?: string;
textBorderDashOffset?: number;
textShadowBlur?: number;
textShadowColor?: string;
textShadowOffsetX?: number;
textShadowOffsetY?: number;
}
interface WorldCloudDataItem {
name?: string;
value?: number | number[];
textStyle?: WordCloudTextStyle;
emphasis?: {
textStyle?: WordCloudTextStyle;
};
}
declare module 'echarts/types/dist/echarts' {
export interface WordCloudSeriesOption {
mainType?: 'series';
type?: 'wordCloud';
silent?: boolean;
blendMode?: string;
/**
* Cursor when mouse on the elements
*/
cursor?: string;
width?: number | string;
height?: number | string;
top?: number | string;
right?: number | string;
bottom?: number | string;
left?: number | string;
textStyle?:
| WordCloudTextStyle
| {
color?: (params?: any) => string;
};
emphasis?: {
focus?: 'self' | 'series' | 'none';
blurScope?: 'coordinateSystem' | 'global' | 'series';
textStyle?: WordCloudTextStyle;
};
shape?: string;
maskImage?: HTMLImageElement | HTMLCanvasElement;
sizeRange?: number[];
rotationRange?: number[];
rotationStep?: number;
gridSize?: number;
drawOutOfBound?: boolean;
layoutAnimation?: boolean;
data?: WorldCloudDataItem[];
}
interface RegisteredSeriesOption {
wordCloud: WordCloudSeriesOption;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yisshow/echarts-wordcloud.git
git@gitee.com:yisshow/echarts-wordcloud.git
yisshow
echarts-wordcloud
echarts-wordcloud
master

搜索帮助