mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
feat: expand node and bring to front when selected
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user