@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.
10 lines (9 loc) • 380 B
TypeScript
import { ComputedWordData, WordCloudConfig } from '../types';
export declare const computeWords: (config: WordCloudConfig, onComputeWord: (word: ComputedWordData) => void) => Promise<ComputedWordData[]>;
export declare const computeLinearGradientCoords: (angle: number) => {
x1: number;
y1: number;
x2: number;
y2: number;
};
//# sourceMappingURL=compute.d.ts.map