Discover: cy node style done
This commit is contained in:
@@ -368,10 +368,7 @@ export default {
|
||||
'background-color': 'data(backgroundColor)',
|
||||
'border-color':'data(bordercolor)',
|
||||
'border-width': function(node) {
|
||||
if(node.data("type") == "activity"){
|
||||
return "1"
|
||||
}
|
||||
return "2"
|
||||
node.data('type') === 'activity' ? '1' : '2';
|
||||
},
|
||||
//'border-radius': '5',
|
||||
'shape':'data(shape)',
|
||||
@@ -383,10 +380,7 @@ export default {
|
||||
'width': 'data(width)',
|
||||
'color': '#001933',
|
||||
'font-size':function(node) {
|
||||
if(node.data("type") == "activity"){
|
||||
return 14
|
||||
}
|
||||
return 22
|
||||
node.data('type') === 'activity' ? 14 : 22;
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user