@joint/react
Version:
React bindings and hooks for JointJS to build interactive diagrams and graphs.
19 lines (18 loc) • 983 B
TypeScript
import { util, type Vectorizer } from '@joint/core';
import { type SVGTextElementAttributes } from 'react';
export interface TextNodeProps extends SVGTextElementAttributes<SVGTextElement>, Vectorizer.TextOptions {
readonly eol?: string;
readonly width?: number;
readonly height?: number;
readonly textWrap?: boolean | util.BreakTextOptions;
}
/**
* TextNode component is a wrapper around the SVG text element that provides additional functionality for rendering text.
* It uses the Vectorizer library to handle text rendering and annotations.
* It allows you to specify various text options such as end-of-line characters, vertical alignment, line height, and more.
* @see Vectorizer
* @see Vectorizer.TextOptions
* @group Components
* @returns The rendered SVG text element with the specified properties.
*/
export declare const TextNode: import("react").ForwardRefExoticComponent<Omit<TextNodeProps, "ref"> & import("react").RefAttributes<SVGTextElement>>;