UNPKG

927 BTypeScriptView Raw
1import 'react';
2import { WordCloudOptions } from '@antv/g2plot/lib/plots/word-cloud';
3import { BasePlotOptions } from '../createPlot';
4import { TooltipAPIOptions } from './core/interface';
5import { ShapeStyle } from '@antv/g2plot/lib/types/attr';
6import { WordStyle } from '@antv/g2plot/lib/plots/word-cloud/types';
7interface WordStylePolyfill extends WordStyle {
8 active?: ShapeStyle;
9}
10export interface WordCloudCfg extends Partial<WordCloudOptions>, Omit<BasePlotOptions, 'events'> {
11 tooltip?: TooltipAPIOptions;
12 wordStyle?: WordStylePolyfill;
13 maskImage?: string;
14 shuffle?: boolean;
15 selected?: number;
16 events?: {
17 onWordCloudHover?: (item: any, dim: any, e: any) => void;
18 onWordCloudClick?: (item: any, dim: any, e: any) => void;
19 };
20}
21declare const _default: import("react").ForwardRefExoticComponent<WordCloudCfg & import("react").RefAttributes<any>>;
22export default _default;