reaviz
Version:
Data Visualization using React
19 lines (18 loc) • 540 B
TypeScript
import { ReactElement } from 'react';
export interface WrapTextInputs {
key: string;
x?: any;
paddingY?: number;
paddingX?: number;
width: number;
height?: number;
fontFamily: string;
fontSize: number;
wrap?: boolean;
size?: {
width: number;
height: number;
};
visibility?: 'auto' | 'always';
}
export declare function wrapText({ key, x, size, paddingY, wrap, paddingX, width, height, fontFamily, fontSize, visibility }: WrapTextInputs): ReactElement | ReactElement[] | null;