separate cases for text-margin-x
This commit is contained in:
@@ -164,7 +164,9 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu
|
||||
'text-wrap': 'wrap',
|
||||
'text-max-width': 'data(width)', // 在 div 內換行
|
||||
'text-overflow-wrap': 'anywhere', // 在 div 內換行
|
||||
'text-margin-x': '-10px',
|
||||
'text-margin-x': function(node) {
|
||||
return node.data('type') === 'activity' ? -10 : 0;
|
||||
},
|
||||
'text-halign': 'center',
|
||||
'text-valign': 'center',
|
||||
'height': 'data(height)',
|
||||
|
||||
Reference in New Issue
Block a user