diff options
author | Christoph Cullmann <cullmann@kde.org> | 2024-04-28 17:33:09 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2024-04-28 17:33:09 +0200 |
commit | e77051ccc4b47951bfa4fde2be436b1bb2fb113b (patch) | |
tree | f0b75ee3521da9c8cd39dac4359212348f70e4e8 /themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts | |
parent | 4b355837824ac2422d371acef790f0f4249255c7 (diff) |
use https://github.com/nunocoracao/blowfish.git
Diffstat (limited to 'themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts')
-rw-r--r-- | themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts b/themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts new file mode 100644 index 0000000..9496af5 --- /dev/null +++ b/themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts @@ -0,0 +1,30 @@ +import type { D3Element } from '../../mermaidAPI.js'; +import type { MindmapNode } from './mindmapTypes.js'; +declare const db: { + readonly clear: () => void; + readonly addNode: (level: number, id: string, descr: string, type: number) => void; + readonly getMindmap: () => MindmapNode | null; + readonly nodeType: { + DEFAULT: number; + NO_BORDER: number; + ROUNDED_RECT: number; + RECT: number; + CIRCLE: number; + CLOUD: number; + BANG: number; + HEXAGON: number; + }; + readonly getType: (startStr: string, endStr: string) => number; + readonly setElementForId: (id: number, element: D3Element) => void; + readonly decorateNode: (decoration?: { + class?: string; + icon?: string; + }) => void; + readonly type2Str: (type: number) => "rect" | "circle" | "no-border" | "rounded-rect" | "cloud" | "bang" | "hexgon"; + readonly getLogger: () => Record<import("../../logger.js").LogLevel, { + (...data: any[]): void; + (message?: any, ...optionalParams: any[]): void; + }>; + readonly getElementById: (id: number) => any; +}; +export default db; |