Instead of setting the font-size as 0 pt, graphs_page.js file created original_opacity hashmap for text-opacity for each node and save the 'text-opacity' into hashmap. When #toggleNodeLabels is clicked, hideGraphInformation save 'text-opacity' style for each node into original_opacity{} and set 'text-opacity' to 0. When #toggleNodeLabels is unchecked, showGraphInformation sets 'text-opacity' back to the original 'text-opacity' of each node by calling the value from the original_opacity hashmap.
By using this method, each node can use font-size and text-opacity from json file independently and the script updates each node.
Instead of setting the font-size as 0 pt, graphs_page.js file created original_opacity hashmap for text-opacity for each node and save the 'text-opacity' into hashmap. When #toggleNodeLabels is clicked, hideGraphInformation save 'text-opacity' style for each node into original_opacity{} and set 'text-opacity' to 0. When #toggleNodeLabels is unchecked, showGraphInformation sets 'text-opacity' back to the original 'text-opacity' of each node by calling the value from the original_opacity hashmap.
By using this method, each node can use font-size and text-opacity from json file independently and the script updates each node.