import type { Context } from './context/context.js'; import type { TextNode } from './nodes/text.js'; import type { Point } from './utils/geometry.js'; /** * @param {string} textAnchor * @param {number} originX * @param {number} originY * @constructor */ export declare class TextChunk { private readonly textNode; private readonly texts; private readonly textNodes; private readonly contexts; private readonly textAnchor; private originX; private originY; readonly textMeasures: { width: number; length: number; }[]; constructor(parent: TextNode, textAnchor: string, originX: number, originY: number); setX(originX: number): void; setY(originY: number): void; add(tSpan: Element, text: string, context: Context): void; rightTrimText(): boolean; measureText(context: Context): void; put(context: Context, charSpace: number): Point; /** * Resolves a positional attribute (dx, dy) on a given tSpan, possibly * inheriting it from the nearest ancestor. Positional attributes * are only inherited from a parent to its first child. */ private static resolveRelativePositionAttribute; } //# sourceMappingURL=textchunk.d.ts.map