package.dist.diagrams.xychart.chartBuilder.textDimensionCalculator.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mermaid Show documentation
Show all versions of mermaid Show documentation
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
The newest version!
import type { SVGGroup } from '../../../diagram-api/types.js';
import type { Dimension } from './interfaces.js';
export interface TextDimensionCalculator {
getMaxDimension(texts: string[], fontSize: number): Dimension;
}
export declare class TextDimensionCalculatorWithFont implements TextDimensionCalculator {
private parentGroup;
constructor(parentGroup: SVGGroup);
getMaxDimension(texts: string[], fontSize: number): Dimension;
}