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
0c101924
Commit
0c101924
authored
May 17, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use the new index by sizes for node subset slider
parent
9553fc05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
settings_explorerjs.js
settings_explorerjs.js
+1
-1
enviroment.js
tinawebJS/enviroment.js
+9
-7
No files found.
settings_explorerjs.js
View file @
0c101924
...
...
@@ -105,7 +105,7 @@ var semanticConverged=false;
TW
.
branding
=
'test bipart'
TW
.
nodeClusAtt
=
"modularity_class"
TW
.
filterSliders
=
fals
e
TW
.
filterSliders
=
tru
e
TW
.
histogramStartThreshold
=
10
;
...
...
tinawebJS/enviroment.js
View file @
0c101924
...
...
@@ -748,7 +748,7 @@ function NodeWeightFilter( categories , sliderDivID , type_attrb , type , crit
// type_attrb = "type"
// criteria = "size"
if
(
TW
.
nNodes
<
3
)
{
if
(
TW
.
partialGraph
.
graph
.
nNodes
()
<
3
)
{
$
(
sliderDivID
).
freshslider
({
range
:
true
,
...
...
@@ -764,13 +764,15 @@ function NodeWeightFilter( categories , sliderDivID , type_attrb , type , crit
}
// ids per weight level
// £TODO should now use live index TW.partialGraph.graph.getNodesBySize()
var
filterparams
=
AlgorithmForSliders
(
TW
.
Nodes
,
type
,
type_attrb
,
criteria
)
// console.log("NodeWeightFilter: "+type)
// console.log(filterparams)
// we use live index from prepareSigmaCustomIndices
let
nodesBySize
=
TW
.
partialGraph
.
graph
.
getNodesBySize
()
var
sortedSizes
=
Object
.
keys
(
nodesBySize
).
sort
(
function
(
a
,
b
){
return
a
-
b
})
var
steps
=
filterparams
[
"steps"
]
var
finalarray
=
filterparams
[
"finalarray"
]
var
steps
=
sortedSizes
.
length
var
finalarray
=
[]
for
(
let
l
in
sortedSizes
)
{
finalarray
.
push
(
TW
.
partialGraph
.
graph
.
getNodesBySize
(
sortedSizes
[
l
]))
}
// console.warn('NodeWeightFilter: steps', steps)
...
...
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