From 4f1dfe16cd4315965c69b12fc5e13089419f0fc4 Mon Sep 17 00:00:00 2001 From: James Graham Date: Mon, 10 May 2021 12:21:20 +0100 Subject: [PATCH] feat: expand node and bring to front when selected --- people/static/js/network.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/people/static/js/network.js b/people/static/js/network.js index 62c82fd..46642df 100644 --- a/people/static/js/network.js +++ b/people/static/js/network.js @@ -13,11 +13,19 @@ var network_style = [ 'text-valign': 'center', 'text-wrap': 'wrap', 'text-max-width': '90px', - 'font-size': 12, + 'font-size': '12rem', 'background-color': 'data(nodeColor)', 'shape': 'data(nodeShape)' } }, + { + selector: 'node:selected', + style: { + 'text-max-width': '300px', + 'font-size': '40rem', + 'z-index': 100, + } + }, { selector: 'edge', style: {