Fix for issue #128 - flowchart - styling of edges via css overrides specific styles set in the graph definition

This commit is contained in:
knsv
2015-03-07 13:51:47 +01:00
parent 3fedc1263c
commit cbebf126ce
11 changed files with 58 additions and 52 deletions

View File

@@ -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;
}

View File

@@ -7,7 +7,7 @@
}
.edgePath .path {
stroke: @lineColor !important;
stroke: @lineColor;
}
.cluster rect{

View File

@@ -7,7 +7,8 @@
}
.edgePath .path {
stroke: @lineColor !important;
stroke: @lineColor;
stroke-width: 1.5px;
}
.cluster rect{

View File

@@ -1,6 +1,7 @@
@mainBkg: #cde498;
@secondBkg: #cdffb2;
@lineColor: #1a3318;
@lineColor: green;
@border1: #13540c;
@border2: #6eaa49;