refactor create paths method and highlight path method
This commit is contained in:
@@ -174,7 +174,7 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu
|
||||
return node.data('type') === 'activity' ? -5 : 0;
|
||||
},
|
||||
'text-margin-y': function(node) {
|
||||
return node.data('type') === 'activity' ? 0 : 0;
|
||||
return node.data('type') === 'activity' ? 2 : 0;
|
||||
},
|
||||
'padding': function(node) {
|
||||
return node.data('type') === 'activity' ? 0 : 0;
|
||||
@@ -185,10 +185,10 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu
|
||||
'height': 'data(height)',
|
||||
'width': 'data(width)',
|
||||
'color': 'data(textColor)',
|
||||
'line-height': '0.8rem',
|
||||
'line-height': '0.7rem',
|
||||
'font-size':
|
||||
function(node) {
|
||||
return node.data('type') === 'activity' ? 16 : 14;
|
||||
return node.data('type') === 'activity' ? 14 : 14;
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user