import { Size } from "../common/vline"; import { HorizontalAnchor } from "../common/enums"; export declare function getRepresentativeFontSize(text: SVGTSpanElement | SVGTextElement | SVGTextPathElement): number; /** * SVGTextElementにテキストをセットします。 * @param svgText テキストをセットされるSVG要素 * @param text SVG要素に適用するテキスト * @param isLatexMode Latex表記を使用するかどうか */ export declare function setTextToSVGText(svgText: SVGTextElement, text: string, isLatexMode: boolean): void; /** * SVGTextPathElementにテキストをセットします。 * @param path テキストをセットされるパス * @param text パスに適用するテキスト * @param isLatexMode Latex表記を使用するかどうか */ export declare function setTextToTextPath(path: SVGTextPathElement, text: string, isLatexMode: boolean): void; /** * SVGTextElement * @param svgText * @param hAnchor */ export declare function sortText(svgText: SVGTextElement, hAnchor: HorizontalAnchor, showChecked: boolean): void; export declare function constructSVGTextByHTMLElements(svgText: SVGTextElement | SVGTextPathElement, text: HTMLElement[], isLatexMode: boolean): void; export declare function getComputedTextLengthsOfTSpans(svgText: SVGTextElement, showChecked: boolean): Size[];