mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-01 01:41:53 +02:00
48 lines
1.7 KiB
TypeScript
48 lines
1.7 KiB
TypeScript
|
import * as graphlib from 'dagre-d3-es/src/graphlib/index.js';
|
||
|
import { ClassRelation, ClassNote, ClassMap } from './classTypes';
|
||
|
/**
|
||
|
* Function that adds the vertices found during parsing to the graph to be rendered.
|
||
|
*
|
||
|
* @param classes - Object containing the vertices.
|
||
|
* @param g - The graph that is to be drawn.
|
||
|
* @param _id - id of the graph
|
||
|
* @param diagObj - The diagram object
|
||
|
*/
|
||
|
export declare const addClasses: (classes: ClassMap, g: graphlib.Graph, _id: string, diagObj: any) => void;
|
||
|
/**
|
||
|
* Function that adds the additional vertices (notes) found during parsing to the graph to be rendered.
|
||
|
*
|
||
|
* @param notes - Object containing the additional vertices (notes).
|
||
|
* @param g - The graph that is to be drawn.
|
||
|
* @param startEdgeId - starting index for note edge
|
||
|
* @param classes - Classes
|
||
|
*/
|
||
|
export declare const addNotes: (notes: ClassNote[], g: graphlib.Graph, startEdgeId: number, classes: ClassMap) => void;
|
||
|
/**
|
||
|
* Add edges to graph based on parsed graph definition
|
||
|
*
|
||
|
* @param relations -
|
||
|
* @param g - The graph object
|
||
|
*/
|
||
|
export declare const addRelations: (relations: ClassRelation[], g: graphlib.Graph) => void;
|
||
|
/**
|
||
|
* Merges the value of `conf` with the passed `cnf`
|
||
|
*
|
||
|
* @param cnf - Config to merge
|
||
|
*/
|
||
|
export declare const setConf: (cnf: any) => void;
|
||
|
/**
|
||
|
* Draws a flowchart in the tag with id: id based on the graph definition in text.
|
||
|
*
|
||
|
* @param text -
|
||
|
* @param id -
|
||
|
* @param _version -
|
||
|
* @param diagObj -
|
||
|
*/
|
||
|
export declare const draw: (text: string, id: string, _version: string, diagObj: any) => void;
|
||
|
declare const _default: {
|
||
|
setConf: (cnf: any) => void;
|
||
|
draw: (text: string, id: string, _version: string, diagObj: any) => void;
|
||
|
};
|
||
|
export default _default;
|