Commit 4b95280b authored by Romain Loth's avatar Romain Loth

don't cancelSelection when changing colors

parent d5ebd7ae
...@@ -22,7 +22,7 @@ function changeGraphAppearanceByFacets(actypes) { ...@@ -22,7 +22,7 @@ function changeGraphAppearanceByFacets(actypes) {
let currentNbNodes = TW.partialGraph.graph.nNodes() let currentNbNodes = TW.partialGraph.graph.nNodes()
// create colormenu and 1st default entry // create colormenu and 1st default entry
var color_menu_info = '<li><a href="#" onclick="TW.gui.handpickedcolor = false ; graphResetLabelsAndSizes()">By Default</a></li>'; var color_menu_info = '<li><a href="#" onclick="TW.gui.handpickedcolor = false ; graphResetLabelsAndSizes() ; TW.partialGraph.refresh()">By Default</a></li>';
if( $( "#colorgraph-menu" ).length>0 ) { if( $( "#colorgraph-menu" ).length>0 ) {
for (var tid in actypes) { for (var tid in actypes) {
......
...@@ -665,7 +665,6 @@ function edgeInfos(anEdge) { ...@@ -665,7 +665,6 @@ function edgeInfos(anEdge) {
function gradientColoring(daclass) { function gradientColoring(daclass) {
cancelSelection(false); // loops only on selected
graphResetLabelsAndSizes() // full loop graphResetLabelsAndSizes() // full loop
TW.gui.handpickedcolor = true TW.gui.handpickedcolor = true
...@@ -853,7 +852,6 @@ function heatmapColoring(daclass) { ...@@ -853,7 +852,6 @@ function heatmapColoring(daclass) {
binColors = getHeatmapColors(nColors) binColors = getHeatmapColors(nColors)
// let's go // let's go
cancelSelection(false); // loops only on selected
graphResetLabelsAndSizes() // full loop graphResetLabelsAndSizes() // full loop
// global flag // global flag
...@@ -909,9 +907,6 @@ function heatmapColoring(daclass) { ...@@ -909,9 +907,6 @@ function heatmapColoring(daclass) {
function clusterColoring(daclass) { function clusterColoring(daclass) {
console.log("clusterColoring ( "+daclass+" )")
cancelSelection(false); // now loops only on selected
graphResetLabelsAndSizes() // full loop graphResetLabelsAndSizes() // full loop
// louvain needs preparation // louvain needs preparation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment