Skip to content

Commit

Permalink
#5237 pass useRough to edges
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishjain0512 committed May 3, 2024
1 parent 5e53d6c commit 024bffd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/mermaid/src/diagrams/state/stateDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ const setupDoc = (parentParsedItem, doc, diagramStates, nodes, edges, altFlag, u
labelType: G_EDGE_LABELTYPE,
thickness: G_EDGE_THICKNESS,
classes: CSS_EDGE,
useRough,
};
edges.push(edgeData);
//g.setEdge(item.state1.id, item.state2.id, edgeData, graphItemCount);
Expand Down
1 change: 1 addition & 0 deletions packages/mermaid/src/rendering-util/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ interface Edge {
minlen?: number;
pattern?: string;
thickness?: number;
useRough?: boolean;
}

// Extending the Node interface for specific types if needed
Expand Down

0 comments on commit 024bffd

Please sign in to comment.