代码拉取完成,页面将自动刷新
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;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。