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,12 @@
import { HTMLTextStyle } from '../../text-html/HtmlTextStyle';
import { TextStyle } from '../TextStyle';
import type { HTMLTextStyleOptions } from '../../text-html/HtmlTextStyle';
import type { TextStyleOptions } from '../TextStyle';
/**
* converts the style input into the correct type of TextStyle
* either HTMLTextStyle or TextStyle based on the renderMode.
* @param renderMode - The render mode to use
* @param style - The style to use
* @returns - The style class
*/
export declare function ensureTextStyle(renderMode: string, style: TextStyle | HTMLTextStyle | TextStyleOptions | HTMLTextStyleOptions): TextStyle;