mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-09 17:19:45 +02:00
Removed unused code in state diagrams
This commit is contained in:
@@ -63,20 +63,6 @@ export const draw = function (text, id, _version, diagObj) {
|
|||||||
const diagram = root.select(`[id='${id}']`);
|
const diagram = root.select(`[id='${id}']`);
|
||||||
insertMarkers(diagram);
|
insertMarkers(diagram);
|
||||||
|
|
||||||
// Layout graph, Create a new directed graph
|
|
||||||
const graph = new graphlib.Graph({
|
|
||||||
multigraph: true,
|
|
||||||
compound: true,
|
|
||||||
// acyclicer: 'greedy',
|
|
||||||
rankdir: 'RL',
|
|
||||||
// ranksep: '20'
|
|
||||||
});
|
|
||||||
|
|
||||||
// Default to assigning a new object as a label for each new edge.
|
|
||||||
graph.setDefaultEdgeLabel(function () {
|
|
||||||
return {};
|
|
||||||
});
|
|
||||||
|
|
||||||
const rootDoc = diagObj.db.getRootDoc();
|
const rootDoc = diagObj.db.getRootDoc();
|
||||||
renderDoc(rootDoc, diagram, undefined, false, root, doc, diagObj);
|
renderDoc(rootDoc, diagram, undefined, false, root, doc, diagObj);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user