UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering.

28 lines (27 loc) 884 B
import { Size } from '../../types'; import { Text } from '../text'; export interface TextOptions { /** Should we allow the text to be selected? */ displayEmpty?: boolean; /** End of Line character */ eol?: string; textPath?: string | { d?: string; 'xlink:href'?: string; }; textVerticalAnchor?: 'middle' | 'bottom' | 'top' | number; x?: number | string; /** auto, 1.25em */ lineHeight?: string; includeAnnotationIndices?: boolean; annotations?: Text.Annotation | Text.Annotation[]; } export declare function text(elem: SVGElement, content: string, options?: TextOptions): void; export declare function breakText(text: string, size: Size, styles?: any, options?: { ellipsis?: string; separator?: string; eol?: string; hyphen?: string; breakWord?: boolean; svgDocument?: SVGSVGElement; }): string;