package.dist.diagrams.mindmap.mindmapDb.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mermaid Show documentation
Show all versions of mermaid Show documentation
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
import type { D3Element } from '../../types.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;