Commit d7ead62c authored by Romain Loth's avatar Romain Loth

update projectexplorer settings

more edges shown in new spec: make them more transparent to preserve readability
parent 62ac2f01
...@@ -36,9 +36,8 @@ TW.conf = (function(TW){ ...@@ -36,9 +36,8 @@ TW.conf = (function(TW){
TWConf.getRelatedDocs = false TWConf.getRelatedDocs = false
TWConf.relatedDocsMax = 10 TWConf.relatedDocsMax = 10
TWConf.relatedDocsAPI = "http://127.0.0.1:5000/twitter_search"
TWConf.relatedDocsType = "LocalDB" // accepted: "twitter" | "LocalDB" TWConf.relatedDocsType = "twitter" // accepted: "twitter" | "LocalDB"
// POSSible: "elastic" // POSSible: "elastic"
TWConf.relatedDocsAPIS = { TWConf.relatedDocsAPIS = {
...@@ -184,7 +183,7 @@ TW.conf = (function(TW){ ...@@ -184,7 +183,7 @@ TW.conf = (function(TW){
// Other GUI options // Other GUI options
// ------------------ // ------------------
TWConf.sidePanelSize = "400px" // width of the side panel (def: 400px) TWConf.sidePanelSize = "300px" // width of the side panel (def: 400px)
TWConf.filterSliders = true // show sliders for nodes/edges subsets TWConf.filterSliders = true // show sliders for nodes/edges subsets
...@@ -216,7 +215,7 @@ TW.conf = (function(TW){ ...@@ -216,7 +215,7 @@ TW.conf = (function(TW){
// 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=5000; // duration of auto-run TWConf.fa2Milliseconds=10000; // duration of auto-run
TWConf.minNodesForAutoFA2 = 5 // graph size threshold to auto-run TWConf.minNodesForAutoFA2 = 5 // graph size threshold to auto-run
...@@ -249,7 +248,7 @@ TW.conf = (function(TW){ ...@@ -249,7 +248,7 @@ TW.conf = (function(TW){
twNodeRendBorderColor: "#222", twNodeRendBorderColor: "#222",
// edges // edges
minEdgeSize: 2, // in fact used in tina as edge size minEdgeSize: 1, // in fact used in tina as edge size
defaultEdgeType: 'curve', // 'curve' or 'line' (curve only iff ourRendering) defaultEdgeType: 'curve', // 'curve' or 'line' (curve only iff ourRendering)
twEdgeDefaultOpacity: 0.4, // initial opacity added to src/tgt colors twEdgeDefaultOpacity: 0.4, // initial opacity added to src/tgt colors
...@@ -273,10 +272,10 @@ TW.conf = (function(TW){ ...@@ -273,10 +272,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 <=> (1-greyness) // not selected <=> grey
twNodesGreyOpacity: .7, // smaller value: more grey twNodesGreyOpacity: .35, // smaller value: more grey
twBorderGreyColor: "rgba(100, 100, 100, 0.5)", twBorderGreyColor: "rgba(100, 100, 100, 0.5)",
twEdgeGreyColor: "rgba(100, 100, 100, 0.3)", twEdgeGreyColor: "rgba(100, 100, 100, 0.2)",
}; };
// 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
...@@ -286,7 +285,7 @@ TW.conf = (function(TW){ ...@@ -286,7 +285,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 = 8 // for zoom OUT TWConf.zoomMax = 2 // for zoom OUT
// circle selection cursor // circle selection cursor
TWConf.circleSizeMin = 0; TWConf.circleSizeMin = 0;
......
...@@ -147,7 +147,7 @@ TW.conf = (function(TW){ ...@@ -147,7 +147,7 @@ TW.conf = (function(TW){
// to normalize node sizes: (NB not very useful because tina normalizes them at display) // to normalize node sizes: (NB not very useful because tina normalizes them at display)
TWConf.desirableNodeSizeMin=1; TWConf.desirableNodeSizeMin=1;
TWConf.desirableNodeSizeMax=12; TWConf.desirableNodeSizeMax=2;
// ============= // =============
...@@ -155,10 +155,11 @@ TW.conf = (function(TW){ ...@@ -155,10 +155,11 @@ 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
// ------------ // ------------
...@@ -186,7 +187,7 @@ TW.conf = (function(TW){ ...@@ -186,7 +187,7 @@ TW.conf = (function(TW){
TWConf.filterSliders = true // show sliders for nodes/edges subsets TWConf.filterSliders = true // show sliders for nodes/edges subsets
TWConf.clusterColorsAtt = true; // show "Set colors" menu TWConf.colorByAtt = true; // show "Set colors" menu
TWConf.dragNodesAvailable = true; // allow dragging nodes with CTRL+click TWConf.dragNodesAvailable = true; // allow dragging nodes with CTRL+click
...@@ -274,7 +275,7 @@ TW.conf = (function(TW){ ...@@ -274,7 +275,7 @@ TW.conf = (function(TW){
// not selected <=> grey // not selected <=> grey
twNodesGreyOpacity: .35, // smaller value: more grey twNodesGreyOpacity: .35, // smaller value: more grey
twBorderGreyColor: "rgba(100, 100, 100, 0.5)", twBorderGreyColor: "rgba(100, 100, 100, 0.5)",
twEdgeGreyColor: "rgba(150, 150, 150, 0.5)", twEdgeGreyColor: "rgba(100, 100, 100, 0.2)",
}; };
// 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
...@@ -301,7 +302,7 @@ TW.conf = (function(TW){ ...@@ -301,7 +302,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] = 5.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