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
302d8a3d
Commit
302d8a3d
authored
Oct 05, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fa2 autorun duration adapts to nEdges
parent
5d716e4b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
5 deletions
+18
-5
settings_explorerjs.js
settings_explorerjs.js
+2
-1
sigmaUtils.js
twmain/sigmaUtils.js
+12
-2
settings_explorerjs.comex.js
twpresets/settings_explorerjs.comex.js
+2
-1
settings_explorerjs.devdefault.js
twpresets/settings_explorerjs.devdefault.js
+2
-1
No files found.
settings_explorerjs.js
View file @
302d8a3d
...
@@ -175,13 +175,14 @@ TW.conf = (function(TW){
...
@@ -175,13 +175,14 @@ TW.conf = (function(TW){
// Layout options
// Layout options
// --------------
// --------------
TWConf
.
fa2Available
=
true
;
// show/hide fa2Button
TWConf
.
disperseAvailable
=
true
;
// show/hide disperseButton
TWConf
.
disperseAvailable
=
true
;
// show/hide disperseButton
TWConf
.
fa2Available
=
true
;
// show/hide fa2Button
// if fa2Available, the auto-run config:
// if fa2Available, the auto-run config:
TWConf
.
fa2Enabled
=
true
;
// fa2 auto-run at start and after graph modified ?
TWConf
.
fa2Enabled
=
true
;
// fa2 auto-run at start and after graph modified ?
TWConf
.
fa2Milliseconds
=
4000
;
// duration of auto-run
TWConf
.
fa2Milliseconds
=
4000
;
// duration of auto-run
TWConf
.
fa2AdaptDuration
=
true
;
// duration of auto-run proportional log(nEdges)
TWConf
.
minNodesForAutoFA2
=
5
// graph size threshold to auto-run
TWConf
.
minNodesForAutoFA2
=
5
// graph size threshold to auto-run
...
...
twmain/sigmaUtils.js
View file @
302d8a3d
...
@@ -546,6 +546,7 @@ var SigmaUtils = function () {
...
@@ -546,6 +546,7 @@ var SigmaUtils = function () {
if
(
!
args
)
args
=
{}
if
(
!
args
)
args
=
{}
if
(
!
args
.
manual
)
args
.
manual
=
false
if
(
!
args
.
manual
)
args
.
manual
=
false
if
(
!
args
.
duration
)
args
.
duration
=
parseInt
(
TW
.
conf
.
fa2Milliseconds
)
||
4000
if
(
!
args
.
duration
)
args
.
duration
=
parseInt
(
TW
.
conf
.
fa2Milliseconds
)
||
4000
if
(
!
args
.
propDuration
)
args
.
propDuration
=
TW
.
conf
.
fa2AdaptDuration
// togglability case
// togglability case
if
(
TW
.
partialGraph
.
isForceAtlas2Running
())
{
if
(
TW
.
partialGraph
.
isForceAtlas2Running
())
{
...
@@ -559,8 +560,17 @@ var SigmaUtils = function () {
...
@@ -559,8 +560,17 @@ var SigmaUtils = function () {
if
(
!
args
.
manual
)
{
if
(
!
args
.
manual
)
{
if
(
TW
.
partialGraph
.
graph
.
nNodes
()
<
TW
.
conf
.
minNodesForAutoFA2
)
if
(
TW
.
partialGraph
.
graph
.
nNodes
()
<
TW
.
conf
.
minNodesForAutoFA2
)
return
return
else
else
{
setTimeout
(
function
(){
sigma_utils
.
ourStopFA2
()},
args
.
duration
)
if
(
!
args
.
propDuration
)
{
setTimeout
(
function
(){
sigma_utils
.
ourStopFA2
()},
args
.
duration
)
}
else
{
let
nEds
=
getVisibleEdges
().
length
let
newDur
=
parseInt
(
args
.
duration
*
Math
.
log
(
nEds
)
/
3
)
setTimeout
(
function
(){
sigma_utils
.
ourStopFA2
()},
newDur
)
console
.
debug
(
"fa2 adapted duration"
,
newDur
)
}
}
}
}
// hide edges during work for smaller cpu load
// hide edges during work for smaller cpu load
...
...
twpresets/settings_explorerjs.comex.js
View file @
302d8a3d
...
@@ -183,13 +183,14 @@ TW.conf = (function(TW){
...
@@ -183,13 +183,14 @@ TW.conf = (function(TW){
// Layout options
// Layout options
// --------------
// --------------
TWConf
.
fa2Available
=
true
;
// show/hide fa2Button
TWConf
.
disperseAvailable
=
true
;
// show/hide disperseButton
TWConf
.
disperseAvailable
=
true
;
// show/hide disperseButton
TWConf
.
fa2Available
=
true
;
// show/hide fa2Button
// if fa2Available, the auto-run config:
// if fa2Available, the auto-run config:
TWConf
.
fa2Enabled
=
true
;
// fa2 auto-run at start and after graph modified ?
TWConf
.
fa2Enabled
=
true
;
// fa2 auto-run at start and after graph modified ?
TWConf
.
fa2Milliseconds
=
4000
;
// duration of auto-run
TWConf
.
fa2Milliseconds
=
4000
;
// duration of auto-run
TWConf
.
fa2AdaptDuration
=
true
;
// duration of auto-run proportional log(nEdges)
TWConf
.
minNodesForAutoFA2
=
5
// graph size threshold to auto-run
TWConf
.
minNodesForAutoFA2
=
5
// graph size threshold to auto-run
...
...
twpresets/settings_explorerjs.devdefault.js
View file @
302d8a3d
...
@@ -175,13 +175,14 @@ TW.conf = (function(TW){
...
@@ -175,13 +175,14 @@ TW.conf = (function(TW){
// Layout options
// Layout options
// --------------
// --------------
TWConf
.
fa2Available
=
true
;
// show/hide fa2Button
TWConf
.
disperseAvailable
=
true
;
// show/hide disperseButton
TWConf
.
disperseAvailable
=
true
;
// show/hide disperseButton
TWConf
.
fa2Available
=
true
;
// show/hide fa2Button
// if fa2Available, the auto-run config:
// if fa2Available, the auto-run config:
TWConf
.
fa2Enabled
=
true
;
// fa2 auto-run at start and after graph modified ?
TWConf
.
fa2Enabled
=
true
;
// fa2 auto-run at start and after graph modified ?
TWConf
.
fa2Milliseconds
=
4000
;
// duration of auto-run
TWConf
.
fa2Milliseconds
=
4000
;
// duration of auto-run
TWConf
.
fa2AdaptDuration
=
true
;
// duration of auto-run proportional log(nEdges)
TWConf
.
minNodesForAutoFA2
=
5
// graph size threshold to auto-run
TWConf
.
minNodesForAutoFA2
=
5
// graph size threshold to auto-run
...
...
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