state sync
This commit is contained in:
19
app/basepak/static/js/mermaid/rendering-util/createText.d.ts
vendored
Normal file
19
app/basepak/static/js/mermaid/rendering-util/createText.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import type { MermaidConfig } from '../config.type.js';
|
||||
import type { SVGGroup } from '../diagram-api/types.js';
|
||||
export declare function computeDimensionOfText(parentNode: SVGGroup, lineHeight: number, text: string): DOMRect | undefined;
|
||||
/**
|
||||
* Convert fontawesome labels into fontawesome icons by using a regex pattern
|
||||
* @param text - The raw string to convert
|
||||
* @param config - Mermaid config
|
||||
* @returns string with fontawesome icons as svg if the icon is registered otherwise as i tags
|
||||
*/
|
||||
export declare function replaceIconSubstring(text: string, config?: MermaidConfig): Promise<string>;
|
||||
export declare const createText: (el: any, text?: string, { style, isTitle, classes, useHtmlLabels, isNode, width, addSvgBackground, }?: {
|
||||
style?: string | undefined;
|
||||
isTitle?: boolean | undefined;
|
||||
classes?: string | undefined;
|
||||
useHtmlLabels?: boolean | undefined;
|
||||
isNode?: boolean | undefined;
|
||||
width?: number | undefined;
|
||||
addSvgBackground?: boolean | undefined;
|
||||
}, config?: MermaidConfig) => Promise<any>;
|
||||
Reference in New Issue
Block a user