1 | import * as graphlib from 'dagre-d3-es/src/graphlib/index.js';
|
2 | import type { ClassRelation, ClassNote, ClassMap, NamespaceMap } from './classTypes.js';
|
3 | /**
|
4 | * Function that adds the vertices found during parsing to the graph to be rendered.
|
5 | *
|
6 | * @param namespaces - Object containing the vertices.
|
7 | * @param g - The graph that is to be drawn.
|
8 | * @param _id - id of the graph
|
9 | * @param diagObj - The diagram object
|
10 | */
|
11 | export declare const addNamespaces: (namespaces: NamespaceMap, g: graphlib.Graph, _id: string, diagObj: any) => void;
|
12 | /**
|
13 | * Function that adds the vertices found during parsing to the graph to be rendered.
|
14 | *
|
15 | * @param classes - Object containing the vertices.
|
16 | * @param g - The graph that is to be drawn.
|
17 | * @param _id - id of the graph
|
18 | * @param diagObj - The diagram object
|
19 | * @param parent - id of the parent namespace, if it exists
|
20 | */
|
21 | export declare const addClasses: (classes: ClassMap, g: graphlib.Graph, _id: string, diagObj: any, parent?: string) => void;
|
22 | /**
|
23 | * Function that adds the additional vertices (notes) found during parsing to the graph to be rendered.
|
24 | *
|
25 | * @param notes - Object containing the additional vertices (notes).
|
26 | * @param g - The graph that is to be drawn.
|
27 | * @param startEdgeId - starting index for note edge
|
28 | * @param classes - Classes
|
29 | */
|
30 | export declare const addNotes: (notes: ClassNote[], g: graphlib.Graph, startEdgeId: number, classes: ClassMap) => void;
|
31 | /**
|
32 | * Add edges to graph based on parsed graph definition
|
33 | *
|
34 | * @param relations -
|
35 | * @param g - The graph object
|
36 | */
|
37 | export declare const addRelations: (relations: ClassRelation[], g: graphlib.Graph) => void;
|
38 | /**
|
39 | * Merges the value of `conf` with the passed `cnf`
|
40 | *
|
41 | * @param cnf - Config to merge
|
42 | */
|
43 | export declare const setConf: (cnf: any) => void;
|
44 | /**
|
45 | * Draws a class diagram in the tag with id: id based on the definition in text.
|
46 | *
|
47 | * @param text -
|
48 | * @param id -
|
49 | * @param _version -
|
50 | * @param diagObj -
|
51 | */
|
52 | export declare const draw: (text: string, id: string, _version: string, diagObj: any) => Promise<void>;
|
53 | declare const _default: {
|
54 | setConf: (cnf: any) => void;
|
55 | draw: (text: string, id: string, _version: string, diagObj: any) => Promise<void>;
|
56 | };
|
57 | export default _default;
|