import { ChartStyle } from '@shujujiang/schemas/widget/style'; import { ColorMode } from '@shujujiang/schemas/widget/style/color'; import { HTMLWidgetTitle } from '@shujujiang/schemas/widget/style/html'; export declare class WordCloudSpacing { /** * 边距距离外部容器的左内边距。 * @title 左边距 */ left?: number | string; /** * 边距距离外部容器的上内边距。 * @title 上边距 */ top?: number | string; /** * 词云的宽度。 * @title 宽度 */ width?: number | string; /** * 词云的高度。 * @title 高度 */ height?: number | string; } export declare class WordCloud { /** * 设置绘制的形状。 * @title 形状 */ shape: 'circle' | 'cardioid' | 'diamond' | 'triangle-forward' | 'triangle' | 'pentagon' | 'star'; /** * 设置剪裁图片。绘图文本时排除白色区域的轮廓图像。 * @title 剪裁图片 * @renderer image */ maskImage: string; /** * 设置最小字号。 * @title 最小字号 * @minimum 1 */ minSize: number; /** * 设置最大字号。 * @title 最大字号 * @minimum 1 */ maxSize: number; /** * 设置最小旋转角度。 * @title 最小角度 * @minimum -360 * @maximum 360 */ minRotation: number; /** * 设置最大旋转角度。 * @title 最大角度 * @minimum -360 * @maximum 360 */ maxRotation: number; /** * 设置旋转步长。 * @title 旋转步长 * @minimum 0 * @maximum 360 */ rotationStep: number; /** * 设置词与词之间的距离。 * @title 词间距 * @minimum 0 */ gridSize: number; /** * 设置是否绘制溢出边界的词汇 * @title 绘制所有 */ drawOutOfBound: boolean; } export declare class WordText { /** * 设置词颜色 * @title 颜色 * @order 0 * @renderer color */ color?: string; /** * 字体 * @title 字体 * @order 10 * @renderer fonts */ fontFamily?: 'roboto' | 'Microsoft YaHei' | 'SimHei' | 'SimSun' | 'YouYuan' | 'helsinki' | 'morganite' | 'orbitron' | 'arial' | 'sans-serif' | 'monospace' | 'Courier New'; /** * 字体粗细 * @title 加粗 * @order 20 */ fontWeight?: 'normal' | 'bold'; } export declare class WordCloudTitle extends HTMLWidgetTitle { /** * 是否显示标题 * @title 是否显示 * @order 0 */ enabled?: boolean; } /** * 样式设置 * @title 样式设置 */ export declare class Style extends ChartStyle { /** * 颜色设置 * @title 颜色 * @order 10 */ colorMode: ColorMode; /** * 标题设置 * @title 标题 * @order 21 */ title?: WordCloudTitle; /** * 组件实际绘制空间 * @title 边距 * @order 25 */ spacing?: WordCloudSpacing; /** * 词云设置 * @title 词云 * @order 70 */ wordCloud?: WordCloud; /** * 关键词样式设置 * @title 样式 * @order 80 * @iconAlias text */ wordText?: WordText; }