WIP: map with transparent default bg
This commit is contained in:
1 parent
fb335f996d
commit
9a7442b4ef
7 files changed
+63
-16
No files matched your search
@@ -157,7 +157,9 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu
|
||||
function(node) {
|
||||
return node.data('type') === 'activity' ? '1' : '2';
|
||||
},
|
||||
'background-image': 'url(capsule.svg)',
|
||||
'background-image': 'data(nodeImageUrl)',
|
||||
'background-opacity': 'data(backgroundOpacity)', // 透明背景
|
||||
'border-opacity': 'data(borderOpacity)', // 透明邊框
|
||||
'shape':'data(shape)',
|
||||
'text-wrap': 'wrap',
|
||||
'text-max-width': 'data(width)', // 在 div 內換行
|
||||
|
||||
Reference in new issue
Block a user