Commit 0bba98fb authored by Romain Loth's avatar Romain Loth

settings: clust_louvain 2 palettes when 2 types + better label slider factor

parent 40eca560
......@@ -1007,21 +1007,21 @@ function clusterColoring(daclass, forTypes) {
}
else {
let colList = []
if (TW.conf.randomizeClusterColors) {
// shuffle on entire array is better than random sorting function on each element
colList = shuffle(TW.gui.colorList)
}
else {
colList = TW.gui.colorList
}
let nColors = TW.gui.colorList.length
for (var k in forTypes) {
let typeName = forTypes[k]
let facets = TW.Facets[typeName][daclass]
let colList = []
if (TW.conf.randomizeClusterColors) {
// shuffle on entire array is better than random sorting function on each element
colList = shuffle(TW.gui.colorList)
}
else {
colList = TW.gui.colorList
}
if (facets && facets.invIdx) {
for (var i in facets.invIdx) {
let valGroup = facets.invIdx[i]
......@@ -1121,7 +1121,7 @@ function getSizeFactor(val) {
else {
sliderFactor = Math.min.apply(null, TW.gui.sizeRatios)
}
return adjustmentFactor * sliderFactor * 1.1
return adjustmentFactor * sliderFactor * .9
}
// mobile versions should get lighter settings
......
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