summaryrefslogtreecommitdiff
path: root/themes/blowfish/assets/lib/mermaid/rendering-util
diff options
context:
space:
mode:
authorChristoph Cullmann <christoph@cullmann.io>2024-07-15 22:27:55 +0200
committerChristoph Cullmann <christoph@cullmann.io>2024-07-15 22:27:55 +0200
commit3be5285488090ab70254b3080e33e64e6c702d2c (patch)
tree1e54462f560fd759b5be13d5ecfe1fa5c2c832ed /themes/blowfish/assets/lib/mermaid/rendering-util
parent69075c6fb15ae660fc3d78eb2a4dfcde1c5fba1c (diff)
sync theme
Diffstat (limited to 'themes/blowfish/assets/lib/mermaid/rendering-util')
-rw-r--r--themes/blowfish/assets/lib/mermaid/rendering-util/createText.d.ts11
-rw-r--r--themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.d.ts6
-rw-r--r--themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.spec.d.ts1
-rw-r--r--themes/blowfish/assets/lib/mermaid/rendering-util/selectSvgElement.d.ts8
-rw-r--r--themes/blowfish/assets/lib/mermaid/rendering-util/splitText.d.ts24
-rw-r--r--themes/blowfish/assets/lib/mermaid/rendering-util/splitText.spec.d.ts1
-rw-r--r--themes/blowfish/assets/lib/mermaid/rendering-util/uid.d.ts8
7 files changed, 0 insertions, 59 deletions
diff --git a/themes/blowfish/assets/lib/mermaid/rendering-util/createText.d.ts b/themes/blowfish/assets/lib/mermaid/rendering-util/createText.d.ts
deleted file mode 100644
index 11f2c43..0000000
--- a/themes/blowfish/assets/lib/mermaid/rendering-util/createText.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-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;
diff --git a/themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.d.ts b/themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.d.ts
deleted file mode 100644
index d8d2773..0000000
--- a/themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-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;
diff --git a/themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.spec.d.ts b/themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.spec.d.ts
deleted file mode 100644
index cb0ff5c..0000000
--- a/themes/blowfish/assets/lib/mermaid/rendering-util/handle-markdown-text.spec.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/themes/blowfish/assets/lib/mermaid/rendering-util/selectSvgElement.d.ts b/themes/blowfish/assets/lib/mermaid/rendering-util/selectSvgElement.d.ts
deleted file mode 100644
index c32ece1..0000000
--- a/themes/blowfish/assets/lib/mermaid/rendering-util/selectSvgElement.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-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;
diff --git a/themes/blowfish/assets/lib/mermaid/rendering-util/splitText.d.ts b/themes/blowfish/assets/lib/mermaid/rendering-util/splitText.d.ts
deleted file mode 100644
index 289ab65..0000000
--- a/themes/blowfish/assets/lib/mermaid/rendering-util/splitText.d.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-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[];
diff --git a/themes/blowfish/assets/lib/mermaid/rendering-util/splitText.spec.d.ts b/themes/blowfish/assets/lib/mermaid/rendering-util/splitText.spec.d.ts
deleted file mode 100644
index cb0ff5c..0000000
--- a/themes/blowfish/assets/lib/mermaid/rendering-util/splitText.spec.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/themes/blowfish/assets/lib/mermaid/rendering-util/uid.d.ts b/themes/blowfish/assets/lib/mermaid/rendering-util/uid.d.ts
deleted file mode 100644
index c7dbf65..0000000
--- a/themes/blowfish/assets/lib/mermaid/rendering-util/uid.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export declare class Uid {
- private static count;
- id: string;
- href: string;
- static next(name: string): Uid;
- constructor(id: string);
- toString(): string;
-}