From e77051ccc4b47951bfa4fde2be436b1bb2fb113b Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 28 Apr 2024 17:33:09 +0200 Subject: use https://github.com/nunocoracao/blowfish.git --- .../lib/mermaid/diagrams/mindmap/mindmapDb.d.ts | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts (limited to 'themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts') 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; + readonly getElementById: (id: number) => any; +}; +export default db; -- cgit v1.2.3