mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-08 18:16:44 +02:00
Fix for issue #128 - flowchart - styling of edges via css overrides specific styles set in the graph definition
This commit is contained in:
@@ -112,6 +112,7 @@ exports.addEdges = function (edges, g) {
|
||||
var defaultStyle;
|
||||
if(typeof edges.defaultStyle !== 'undefined'){
|
||||
defaultStyle = edges.defaultStyle.toString().replace(/,/g , ';');
|
||||
|
||||
}
|
||||
|
||||
edges.forEach(function (edge) {
|
||||
@@ -136,7 +137,7 @@ exports.addEdges = function (edges, g) {
|
||||
else{
|
||||
switch(edge.stroke){
|
||||
case 'normal':
|
||||
style = 'stroke: #333; stroke-width: 1.5px;fill:none';
|
||||
style = 'fill:none';
|
||||
if(typeof defaultStyle !== 'undefined'){
|
||||
style = defaultStyle;
|
||||
}
|
||||
|
Reference in New Issue
Block a user