Skip to content

Commit

Permalink
Merge pull request #4631 from nirname/refactoring/removed-unused-code…
Browse files Browse the repository at this point in the history
…-in-state-diagrams

Removed unused code in state diagrams
  • Loading branch information
nirname committed Jul 11, 2023
2 parents cd1765a + 3664ff4 commit 0a493c7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/mermaid/src/diagrams/state/stateRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,6 @@ export const draw = function (text, id, _version, diagObj) {
const diagram = root.select(`[id='${id}']`);
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();
renderDoc(rootDoc, diagram, undefined, false, root, doc, diagObj);

Expand Down

0 comments on commit 0a493c7

Please sign in to comment.