Commit db2024fb authored by Romain Loth's avatar Romain Loth

update general settings and presets for comex

parent 0b85c6f9
......@@ -41,7 +41,7 @@ TW.conf = (function(TW){
}
// 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
......@@ -108,7 +108,7 @@ TW.conf = (function(TW){
'weight' : {'col': "heatmap" , 'n': 5, 'binmode': 'samerange' },
'Weighted Degree' : {'col': "heatmap", 'n': 8, 'binmode': 'samerange' },
'out-degree' : {'col': "heatmap" , 'n': 3, 'binmode': 'samepop' },
'CC' : {'col': "cluster" , 'binmode': 'off'},
'country' : {'col': "cluster" , 'binmode': 'off'},
'ACR' : {'col': "cluster" , 'binmode': 'off'},
'cluster_universal_index': {'col': "cluster" , 'binmode': 'off' },
'community_orphan' : {'col': "cluster" , 'binmode': 'off' }
......
......@@ -41,7 +41,7 @@ TW.conf = (function(TW){
}
// 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
......@@ -108,7 +108,7 @@ TW.conf = (function(TW){
'weight' : {'col': "heatmap" , 'n': 5, 'binmode': 'samerange' },
'Weighted Degree' : {'col': "heatmap", 'n': 8, 'binmode': 'samerange' },
'out-degree' : {'col': "heatmap" , 'n': 3, 'binmode': 'samepop' },
'CC' : {'col': "cluster" , 'binmode': 'off'},
'country' : {'col': "cluster" , 'binmode': 'off'},
'ACR' : {'col': "cluster" , 'binmode': 'off'},
'cluster_universal_index': {'col': "cluster" , 'binmode': 'off' },
'community_orphan' : {'col': "cluster" , 'binmode': 'off' }
......@@ -139,9 +139,9 @@ TW.conf = (function(TW){
TWConf.maxDiscreteValues = 15
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.desirableNodeSizeMax=12;
TWConf.desirableNodeSizeMax=10;
// =============
......@@ -149,16 +149,19 @@ TW.conf = (function(TW){
// =============
// Node typology: categories (resp. 0 and 1) will get these default labels
TWConf.catSem = "Terms";
TWConf.catSem = "NGram";
TWConf.catSoc = "Document";
// NB: these labels may be superseded by the input data's node types values
// cf. sortNodeTypes()
// NB: these labels may be superseded by:
// - the input data's node types values cf. sortNodeTypes()
// - in servermenu mode, by the node0 & node1 properties
// Modules path
// ------------
TWConf.paths = {
'ourlibs': 'twlibs',
'templates': "twlibs/hit_templates",
'modules': 'twmodules',
'sourceFile': "", // server-side .gexf|.json default source
'sourceMenu': "db.json" // ...or server-side gexf default source list
}
......@@ -251,8 +254,8 @@ TW.conf = (function(TW){
font: "Droid Sans", // font params
fontStyle: "bold",
defaultLabelColor: '#000', // labels text color
labelSizeRatio: 1, // initial label size (on the slider)
labelThreshold: 5, // min node cam size to start showing label
labelSizeRatio: 1, // label size in ratio of node size
labelThreshold: 4, // min node cam size to start showing label
// (old tina: showLabelsIfZoom)
// hovered nodes
......@@ -267,10 +270,10 @@ TW.conf = (function(TW){
twSelectedColor: "default", // "node" for a label bg like the node color,
// "default" for note-like yellow
// not selected <=> grey
twNodesGreyOpacity: .35, // smaller value: more grey
// not selected <=> (1-greyness)
twNodesGreyOpacity: .5, // smaller value: more grey
twBorderGreyColor: "rgba(100, 100, 100, 0.5)",
twEdgeGreyColor: "rgba(150, 150, 150, 0.5)",
twEdgeGreyColor: "rgba(100, 100, 100, 0.3)",
};
// NB: sigmaJsDrawingProperties are available as 'settings' in all renderers
// cf. https://github.com/jacomyal/sigma.js/wiki/Settings#renderers-settings
......@@ -280,7 +283,7 @@ TW.conf = (function(TW){
// -----------------------------------
// mouse captor zoom limits
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
TWConf.circleSizeMin = 0;
......@@ -297,7 +300,7 @@ TW.conf = (function(TW){
// relative sizes (iff ChangeType == both nodetypes)
TWConf.sizeMult = [];
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)
// ===========
......
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