WIP: depthFirstSearchMatchTwoPaths can have one true

This commit is contained in:
Cindy Chang
2024-08-21 12:22:33 +08:00
parent fbed897d52
commit 4ab0d4765b
2 changed files with 53 additions and 15 deletions

View File

@@ -165,14 +165,14 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu
'text-max-width': 'data(width)', // 在 div 內換行
'text-overflow-wrap': 'anywhere', // 在 div 內換行
'text-margin-x': function(node) {
return node.data('type') === 'activity' ? -10 : 0;
return node.data('type') === 'activity' ? -5 : 0;
},
'text-halign': 'center',
'text-valign': 'center',
'height': 'data(height)',
'width': 'data(width)',
'color': '#001933',
'line-height': '0.8rem',
'line-height': '0.7rem',
'font-size':
function(node) {
return node.data('type') === 'activity' ? 14 : 22;