Discover: cy node style done

This commit is contained in:
chiayin
2023-02-25 19:42:47 +08:00
parent 6fdeb3898f
commit c4008db665

View File

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