@harryjwang/simplewordcloud
Version:
A simple word cloud generator supporting English and Chinese text
18 lines • 720 B
TypeScript
import { Language } from './tokenizers';
/**
* Simple SVG generator for Node.js environment that doesn't rely on d3-cloud
* This is a simplified version that arranges words in a grid layout
*/
export declare class NodeSVGGenerator {
/**
* Generate a simple word cloud SVG string for Node.js environment
* @param text The input text
* @param language The language of the text
* @param width SVG width
* @param height SVG height
* @param maxWords Maximum number of words to include
* @returns SVG string
*/
static generateSVG(text: string, language: Language, width?: number, height?: number, maxWords?: number): string;
}
//# sourceMappingURL=node-svg-generator.d.ts.map