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
db2024fb
Commit
db2024fb
authored
Jul 07, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update general settings and presets for comex
parent
0b85c6f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
16 deletions
+19
-16
settings_explorerjs.js
settings_explorerjs.js
+2
-2
settings_explorerjs.comex.js
twpresets/settings_explorerjs.comex.js
+17
-14
No files found.
settings_explorerjs.js
View file @
db2024fb
...
@@ -41,7 +41,7 @@ TW.conf = (function(TW){
...
@@ -41,7 +41,7 @@ TW.conf = (function(TW){
}
}
// fallback topPapers API if none found by type
// fallback topPapers API if none found by type
TWConf
.
relatedDocsAPI
=
"
http://127.0.0.1:5000/twitter_search
"
TWConf
.
relatedDocsAPI
=
"
twbackends/phpAPI
"
// =======================
// =======================
// DATA FACETS AND LEGENDS
// DATA FACETS AND LEGENDS
...
@@ -108,7 +108,7 @@ TW.conf = (function(TW){
...
@@ -108,7 +108,7 @@ TW.conf = (function(TW){
'weight'
:
{
'col'
:
"heatmap"
,
'n'
:
5
,
'binmode'
:
'samerange'
},
'weight'
:
{
'col'
:
"heatmap"
,
'n'
:
5
,
'binmode'
:
'samerange'
},
'Weighted Degree'
:
{
'col'
:
"heatmap"
,
'n'
:
8
,
'binmode'
:
'samerange'
},
'Weighted Degree'
:
{
'col'
:
"heatmap"
,
'n'
:
8
,
'binmode'
:
'samerange'
},
'out-degree'
:
{
'col'
:
"heatmap"
,
'n'
:
3
,
'binmode'
:
'samepop'
},
'out-degree'
:
{
'col'
:
"heatmap"
,
'n'
:
3
,
'binmode'
:
'samepop'
},
'
CC'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'
country'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'ACR'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'ACR'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'cluster_universal_index'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'cluster_universal_index'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'community_orphan'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
}
'community_orphan'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
}
...
...
twpresets/settings_explorerjs.comex.js
View file @
db2024fb
...
@@ -41,7 +41,7 @@ TW.conf = (function(TW){
...
@@ -41,7 +41,7 @@ TW.conf = (function(TW){
}
}
// fallback topPapers API if none found by type
// fallback topPapers API if none found by type
TWConf
.
relatedDocsAPI
=
"
twbackends/phpAPI
"
TWConf
.
relatedDocsAPI
=
"
http://127.0.0.1:5000/twitter_search
"
// =======================
// =======================
// DATA FACETS AND LEGENDS
// DATA FACETS AND LEGENDS
...
@@ -108,7 +108,7 @@ TW.conf = (function(TW){
...
@@ -108,7 +108,7 @@ TW.conf = (function(TW){
'weight'
:
{
'col'
:
"heatmap"
,
'n'
:
5
,
'binmode'
:
'samerange'
},
'weight'
:
{
'col'
:
"heatmap"
,
'n'
:
5
,
'binmode'
:
'samerange'
},
'Weighted Degree'
:
{
'col'
:
"heatmap"
,
'n'
:
8
,
'binmode'
:
'samerange'
},
'Weighted Degree'
:
{
'col'
:
"heatmap"
,
'n'
:
8
,
'binmode'
:
'samerange'
},
'out-degree'
:
{
'col'
:
"heatmap"
,
'n'
:
3
,
'binmode'
:
'samepop'
},
'out-degree'
:
{
'col'
:
"heatmap"
,
'n'
:
3
,
'binmode'
:
'samepop'
},
'
CC'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'
country'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'ACR'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'ACR'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'cluster_universal_index'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'cluster_universal_index'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
},
'community_orphan'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
}
'community_orphan'
:
{
'col'
:
"cluster"
,
'binmode'
:
'off'
}
...
@@ -139,9 +139,9 @@ TW.conf = (function(TW){
...
@@ -139,9 +139,9 @@ TW.conf = (function(TW){
TWConf
.
maxDiscreteValues
=
15
TWConf
.
maxDiscreteValues
=
15
TWConf
.
legendsBins
=
7
TWConf
.
legendsBins
=
7
// to normalize node sizes
: (NB not very useful because tina normalizes them at display
)
// to normalize node sizes
(larger range does increase visual size difference
)
TWConf
.
desirableNodeSizeMin
=
1
;
TWConf
.
desirableNodeSizeMin
=
1
;
TWConf
.
desirableNodeSizeMax
=
1
2
;
TWConf
.
desirableNodeSizeMax
=
1
0
;
// =============
// =============
...
@@ -149,16 +149,19 @@ TW.conf = (function(TW){
...
@@ -149,16 +149,19 @@ TW.conf = (function(TW){
// =============
// =============
// Node typology: categories (resp. 0 and 1) will get these default labels
// Node typology: categories (resp. 0 and 1) will get these default labels
TWConf
.
catSem
=
"
Terms
"
;
TWConf
.
catSem
=
"
NGram
"
;
TWConf
.
catSoc
=
"Document"
;
TWConf
.
catSoc
=
"Document"
;
// NB: these labels may be superseded by the input data's node types values
// NB: these labels may be superseded by:
// cf. sortNodeTypes()
// - the input data's node types values cf. sortNodeTypes()
// - in servermenu mode, by the node0 & node1 properties
// Modules path
// Modules path
// ------------
// ------------
TWConf
.
paths
=
{
TWConf
.
paths
=
{
'ourlibs'
:
'twlibs'
,
'ourlibs'
:
'twlibs'
,
'templates'
:
"twlibs/hit_templates"
,
'modules'
:
'twmodules'
,
'modules'
:
'twmodules'
,
'sourceFile'
:
""
,
// server-side .gexf|.json default source
'sourceFile'
:
""
,
// server-side .gexf|.json default source
'sourceMenu'
:
"db.json"
// ...or server-side gexf default source list
'sourceMenu'
:
"db.json"
// ...or server-side gexf default source list
}
}
...
@@ -251,8 +254,8 @@ TW.conf = (function(TW){
...
@@ -251,8 +254,8 @@ TW.conf = (function(TW){
font
:
"Droid Sans"
,
// font params
font
:
"Droid Sans"
,
// font params
fontStyle
:
"bold"
,
fontStyle
:
"bold"
,
defaultLabelColor
:
'#000'
,
// labels text color
defaultLabelColor
:
'#000'
,
// labels text color
labelSizeRatio
:
1
,
//
initial label size (on the slider)
labelSizeRatio
:
1
,
//
label size in ratio of node size
labelThreshold
:
5
,
// min node cam size to start showing label
labelThreshold
:
4
,
// min node cam size to start showing label
// (old tina: showLabelsIfZoom)
// (old tina: showLabelsIfZoom)
// hovered nodes
// hovered nodes
...
@@ -267,10 +270,10 @@ TW.conf = (function(TW){
...
@@ -267,10 +270,10 @@ TW.conf = (function(TW){
twSelectedColor
:
"default"
,
// "node" for a label bg like the node color,
twSelectedColor
:
"default"
,
// "node" for a label bg like the node color,
// "default" for note-like yellow
// "default" for note-like yellow
// not selected <=>
grey
// not selected <=>
(1-greyness)
twNodesGreyOpacity
:
.
3
5
,
// smaller value: more grey
twNodesGreyOpacity
:
.
5
,
// smaller value: more grey
twBorderGreyColor
:
"rgba(100, 100, 100, 0.5)"
,
twBorderGreyColor
:
"rgba(100, 100, 100, 0.5)"
,
twEdgeGreyColor
:
"rgba(1
50, 150, 150, 0.5
)"
,
twEdgeGreyColor
:
"rgba(1
00, 100, 100, 0.3
)"
,
};
};
// NB: sigmaJsDrawingProperties are available as 'settings' in all renderers
// NB: sigmaJsDrawingProperties are available as 'settings' in all renderers
// cf. https://github.com/jacomyal/sigma.js/wiki/Settings#renderers-settings
// cf. https://github.com/jacomyal/sigma.js/wiki/Settings#renderers-settings
...
@@ -280,7 +283,7 @@ TW.conf = (function(TW){
...
@@ -280,7 +283,7 @@ TW.conf = (function(TW){
// -----------------------------------
// -----------------------------------
// mouse captor zoom limits
// mouse captor zoom limits
TWConf
.
zoomMin
=
.
015625
// for zoom IN (ex: 1/64 to allow zoom x64)
TWConf
.
zoomMin
=
.
015625
// for zoom IN (ex: 1/64 to allow zoom x64)
TWConf
.
zoomMax
=
2
// for zoom OUT
TWConf
.
zoomMax
=
8
// for zoom OUT
// circle selection cursor
// circle selection cursor
TWConf
.
circleSizeMin
=
0
;
TWConf
.
circleSizeMin
=
0
;
...
@@ -297,7 +300,7 @@ TW.conf = (function(TW){
...
@@ -297,7 +300,7 @@ TW.conf = (function(TW){
// relative sizes (iff ChangeType == both nodetypes)
// relative sizes (iff ChangeType == both nodetypes)
TWConf
.
sizeMult
=
[];
TWConf
.
sizeMult
=
[];
TWConf
.
sizeMult
[
0
]
=
1.0
;
// ie for node type 0 (<=> sem)
TWConf
.
sizeMult
[
0
]
=
1.0
;
// ie for node type 0 (<=> sem)
TWConf
.
sizeMult
[
1
]
=
2.0
;
// ie for node type 1 (<=> soc)
TWConf
.
sizeMult
[
1
]
=
10.0
;
// ie for node type 1 (<=> soc)
// ===========
// ===========
...
...
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