API REFERENCE

WordCloudTooltipSpec

The WordCloudTooltipSpec type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export interface WordCloudTooltipSpec {
  show: boolean;
  openMode: WordCloudTooltipOpenMode;
  trigger: WordCloudTooltipTrigger;
  side?: WordCloudTooltipSide;
  offset: number;
  format?: (word: WordCloudResolvedWord, context?: WordCloudTooltipFormatContext) => string;
  html?: (word: WordCloudResolvedWord, context?: WordCloudTooltipFormatContext) => string;
  className?: string;
  style?: WordCloudTooltipStyle;
  width?: number | string;
  minWidth?: number | string;
  maxWidth?: number | string;
  padding?: number | string;
  interactive: boolean;
  hideOnLeave: boolean;
  connector: WordCloudTooltipConnectorSpec;
  draggable: boolean;
}