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