feat: expand node and bring to front when selected

This commit is contained in:
James Graham
2021-05-10 12:21:20 +01:00
parent 9ead2ab05f
commit 4f1dfe16cd

View File

@@ -13,11 +13,19 @@ var network_style = [
'text-valign': 'center', 'text-valign': 'center',
'text-wrap': 'wrap', 'text-wrap': 'wrap',
'text-max-width': '90px', 'text-max-width': '90px',
'font-size': 12, 'font-size': '12rem',
'background-color': 'data(nodeColor)', 'background-color': 'data(nodeColor)',
'shape': 'data(nodeShape)' 'shape': 'data(nodeShape)'
} }
}, },
{
selector: 'node:selected',
style: {
'text-max-width': '300px',
'font-size': '40rem',
'z-index': 100,
}
},
{ {
selector: 'edge', selector: 'edge',
style: { style: {