1 | import 'react';
|
2 | import { WordCloudOptions } from '@antv/g2plot/lib/plots/word-cloud';
|
3 | import { BasePlotOptions } from '../createPlot';
|
4 | import { TooltipAPIOptions } from './core/interface';
|
5 | import { ShapeStyle } from '@antv/g2plot/lib/types/attr';
|
6 | import { WordStyle } from '@antv/g2plot/lib/plots/word-cloud/types';
|
7 | interface WordStylePolyfill extends WordStyle {
|
8 | active?: ShapeStyle;
|
9 | }
|
10 | export 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 | }
|
21 | declare const _default: import("react").ForwardRefExoticComponent<WordCloudCfg & import("react").RefAttributes<any>>;
|
22 | export default _default;
|