summaryrefslogtreecommitdiff
path: root/themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2024-04-28 17:33:09 +0200
committerChristoph Cullmann <cullmann@kde.org>2024-04-28 17:33:09 +0200
commite77051ccc4b47951bfa4fde2be436b1bb2fb113b (patch)
treef0b75ee3521da9c8cd39dac4359212348f70e4e8 /themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts
parent4b355837824ac2422d371acef790f0f4249255c7 (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.ts30
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;