Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
0bba98fb
Commit
0bba98fb
authored
Sep 27, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
settings: clust_louvain 2 palettes when 2 types + better label slider factor
parent
40eca560
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
sigmaUtils.js
twmain/sigmaUtils.js
+10
-10
No files found.
twmain/sigmaUtils.js
View file @
0bba98fb
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment