UNPKG

mermaid

Version:

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

93 lines (92 loc) 2.13 kB
export interface ClassNode { id: string; type: string; label: string; shape: string; text: string; cssClasses: string; methods: ClassMember[]; members: ClassMember[]; annotations: string[]; domId: string; styles: string[]; parent?: string; link?: string; linkTarget?: string; haveCallback?: boolean; tooltip?: string; look?: string; } export type Visibility = '#' | '+' | '~' | '-' | ''; export declare const visibilityValues: string[]; /** * Parses and stores class diagram member variables/methods. * */ export declare class ClassMember { id: string; cssStyle: string; memberType: 'method' | 'attribute'; visibility: Visibility; text: string; /** * denote if static or to determine which css class to apply to the node * @defaultValue '' */ classifier: string; /** * parameters for method * @defaultValue '' */ parameters: string; /** * return type for method * @defaultValue '' */ returnType: string; constructor(input: string, memberType: 'method' | 'attribute'); getDisplayDetails(): { displayText: string; cssStyle: string; }; parseMember(input: string): void; parseClassifier(): "" | "font-style:italic;" | "text-decoration:underline;"; } export interface ClassNote { id: string; class: string; text: string; } export interface ClassRelation { id1: string; id2: string; relationTitle1: string; relationTitle2: string; type: string; title: string; text: string; style: string[]; relation: { type1: number; type2: number; lineType: number; }; } export interface Interface { id: string; label: string; classId: string; } export interface NamespaceNode { id: string; domId: string; classes: ClassMap; children: NamespaceMap; } export interface StyleClass { id: string; styles: string[]; textStyles: string[]; } export type ClassMap = Map<string, ClassNode>; export type NamespaceMap = Map<string, NamespaceNode>;