UNPKG

@isoterik/react-word-cloud

Version:

A lightweight, interactable and customizable React word cloud library powered by d3-cloud, featuring built-in animations, tooltips, and flexible word rendering.

12 lines (11 loc) 616 B
import { ComputedWordData, WordCloudConfig } from '../../types'; export type UseWordCloudArgs = WordCloudConfig & { onStartComputation?: () => void; onWordComputed?: (word: ComputedWordData, index: number) => void; onCompleteComputation?: (words: ComputedWordData[]) => void; }; export declare const useWordCloud: ({ font, fontStyle, fontWeight, fontSize, rotate, spiral, padding, width, height, timeInterval, words, onStartComputation, onWordComputed, onCompleteComputation, }: UseWordCloudArgs) => { computedWords: ComputedWordData[]; isLoading: boolean; }; //# sourceMappingURL=index.d.ts.map