import { BoundedObject, BoundedObjectConfig } from "./BoundedObject"; import { RenderingContext } from "../ui/RenderingContext"; import { Instance } from "../ui/Instance"; import { Prop, StringProp } from "../ui/Prop"; export interface TextConfig extends BoundedObjectConfig { /** Text to be displayed. */ value?: StringProp; bind?: string; tpl?: string; expr?: string; /** Offset along the x-axis. */ dx?: Prop; /** * Offset along the y-axis. This property is commonly used for vertical text alignment. * Set dy="0.8em" to align the text with the top and dy="0.4em" to center it vertically. */ dy?: Prop; /** Used for horizontal text alignment. */ textAnchor?: Prop<"start" | "middle" | "end">; /** Shorthand for textAnchor. */ ta?: Prop<"start" | "middle" | "end">; /** Used for vertical text alignment. */ dominantBaseline?: Prop<"auto" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging" | "text-top">; /** Shorthand for dominantBaseline. */ db?: Prop<"auto" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging" | "text-top">; /** Sets text-body color. */ fill?: StringProp; /** Sets text-outline color. */ stroke?: StringProp; /** Base CSS class to be applied to the element. Defaults to `text`. */ baseClass?: string; /** Set to true for the text to set the text anchor based on the direction of the parent element. See PieLabels example. */ autoTextAnchor?: boolean; } export declare class Text extends BoundedObject { constructor(config?: TextConfig); value?: StringProp; bind?: string; tpl?: string; expr?: string; dx?: Prop; dy?: Prop; textAnchor?: Prop<"start" | "middle" | "end">; ta?: Prop<"start" | "middle" | "end">; dominantBaseline?: Prop<"auto" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging" | "text-top">; db?: Prop<"auto" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging" | "text-top">; fill?: StringProp; stroke?: StringProp; autoTextAnchor?: boolean; declareData(...args: any[]): void; init(): void; prepare(context: RenderingContext, instance: Instance): void; render(context: RenderingContext, instance: Instance, key: string): import("react/jsx-runtime").JSX.Element; } //# sourceMappingURL=Text.d.ts.map