This commit is contained in:
parent
4b35583782
commit
e77051ccc4
1987 changed files with 1147290 additions and 5648 deletions
11
themes/blowfish/assets/lib/mermaid/rendering-util/createText.d.ts
vendored
Normal file
11
themes/blowfish/assets/lib/mermaid/rendering-util/createText.d.ts
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
import type { Group } from '../diagram-api/types.js';
|
||||
export declare function computeDimensionOfText(parentNode: Group, lineHeight: number, text: string): DOMRect | undefined;
|
||||
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;
|
||||
}) => any;
|
6
themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.d.ts
vendored
Normal file
6
themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
import type { MarkdownLine } from './types.js';
|
||||
/**
|
||||
* @param markdown - markdown to split into lines
|
||||
*/
|
||||
export declare function markdownToLines(markdown: string): MarkdownLine[];
|
||||
export declare function markdownToHTML(markdown: string): string;
|
1
themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.spec.d.ts
vendored
Normal file
1
themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.spec.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export {};
|
8
themes/blowfish/assets/lib/mermaid/rendering-util/selectSvgElement.d.ts
vendored
Normal file
8
themes/blowfish/assets/lib/mermaid/rendering-util/selectSvgElement.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
import type { SVG } from '../diagram-api/types.js';
|
||||
/**
|
||||
* Selects the SVG element using {@link id}.
|
||||
*
|
||||
* @param id - The diagram ID.
|
||||
* @returns The selected {@link SVG} element using {@link id}.
|
||||
*/
|
||||
export declare const selectSvgElement: (id: string) => SVG;
|
24
themes/blowfish/assets/lib/mermaid/rendering-util/splitText.d.ts
vendored
Normal file
24
themes/blowfish/assets/lib/mermaid/rendering-util/splitText.d.ts
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
import type { CheckFitFunction, MarkdownLine, MarkdownWord } from './types.js';
|
||||
/**
|
||||
* Splits a string into graphemes if available, otherwise characters.
|
||||
*/
|
||||
export declare function splitTextToChars(text: string): string[];
|
||||
/**
|
||||
* Splits a string into words by using `Intl.Segmenter` if available, or splitting by ' '.
|
||||
* `Intl.Segmenter` uses the default locale, which might be different across browsers.
|
||||
*/
|
||||
export declare function splitLineToWords(text: string): string[];
|
||||
/**
|
||||
* Splits a word into two parts, the first part fits the width and the remaining part.
|
||||
* @param checkFit - Function to check if word fits
|
||||
* @param word - Word to split
|
||||
* @returns [first part of word that fits, rest of word]
|
||||
*/
|
||||
export declare function splitWordToFitWidth(checkFit: CheckFitFunction, word: MarkdownWord): [MarkdownWord, MarkdownWord];
|
||||
/**
|
||||
* Splits a line into multiple lines that satisfy the checkFit function.
|
||||
* @param line - Line to split
|
||||
* @param checkFit - Function to check if line fits
|
||||
* @returns Array of lines that fit
|
||||
*/
|
||||
export declare function splitLineToFitWidth(line: MarkdownLine, checkFit: CheckFitFunction): MarkdownLine[];
|
1
themes/blowfish/assets/lib/mermaid/rendering-util/splitText.spec.d.ts
vendored
Normal file
1
themes/blowfish/assets/lib/mermaid/rendering-util/splitText.spec.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export {};
|
8
themes/blowfish/assets/lib/mermaid/rendering-util/uid.d.ts
vendored
Normal file
8
themes/blowfish/assets/lib/mermaid/rendering-util/uid.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
export declare class Uid {
|
||||
private static count;
|
||||
id: string;
|
||||
href: string;
|
||||
static next(name: string): Uid;
|
||||
constructor(id: string);
|
||||
toString(): string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue