This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

View File

@@ -0,0 +1,13 @@
import { HTMLTextRenderData } from '../HTMLTextRenderData';
import type { Size } from '../../../maths/misc/Size';
import type { HTMLTextStyle } from '../HtmlTextStyle';
/**
* Measures the HTML text without actually generating an image.
* This is used to calculate the size of the text.
* @param text - The text to measure
* @param style - The style to use
* @param fontStyleCSS - The font css to use
* @param htmlTextRenderData - The HTMLTextRenderData to write the SVG to
* @returns - The size of the text
*/
export declare function measureHtmlText(text: string, style: HTMLTextStyle, fontStyleCSS?: string, htmlTextRenderData?: HTMLTextRenderData): Size;