Commit ab85f4a2 authored by Romain Loth's avatar Romain Loth

minor settings update

parent 6c5c9234
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
<!-- Sahitya & Gurajada <!-- Sahitya & Gurajada
"book" (beautiful quality roman) + devanagari support + telugu --> "book" (beautiful quality roman) + devanagari support + telugu -->
<link href="https://fonts.googleapis.com/css?family=Gurajada|Sahitya" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Gurajada" rel="stylesheet">
<!-- <link href="https://fonts.googleapis.com/css?family=Sahitya" rel="stylesheet"> -->
<!-- Itim <!-- Itim
cursive (refined and very readable but a bit too wide for us) + thai support --> cursive (refined and very readable but a bit too wide for us) + thai support -->
...@@ -155,7 +156,13 @@ ...@@ -155,7 +156,13 @@
</a> </a>
</li> </li>
<li><a> <!-- <li>
<a>
<button type="button" id="doTest" class="btn btn-sm">Run Test</button>
</a>
</li> -->
<li id="areacircle-size"><a>
Selector size<br> Selector size<br>
<div id="unranged-value" class="settingslider"></div> <div id="unranged-value" class="settingslider"></div>
</a></li> </a></li>
......
...@@ -8,6 +8,7 @@ function newPopup(url) { ...@@ -8,6 +8,7 @@ function newPopup(url) {
} }
// = = = = = = = = = = = [ Clusters Plugin ] = = = = = = = = = = = //
// Execution: ChangeGraphAppearanceByAtt( true ) // Execution: ChangeGraphAppearanceByAtt( true )
// It scans the existing node-attributes and t keeps only those which are Numeric. // It scans the existing node-attributes and t keeps only those which are Numeric.
// then, add the button in the html with the sigmaUtils.clustersBy(x) listener. // then, add the button in the html with the sigmaUtils.clustersBy(x) listener.
...@@ -250,6 +251,7 @@ function set_ClustersLegend ( daclass ) { ...@@ -250,6 +251,7 @@ function set_ClustersLegend ( daclass ) {
$("#legend_for_clusters").html( LegendDiv ) $("#legend_for_clusters").html( LegendDiv )
} }
// = = = = = = = = = = = [ / Clusters Plugin ] = = = = = = = = = = = //
//For CNRS //For CNRS
function getTopPapers(type){ function getTopPapers(type){
...@@ -414,8 +416,6 @@ function draw1Circle(ctx , x , y , color) { ...@@ -414,8 +416,6 @@ function draw1Circle(ctx , x , y , color) {
// new sigma.js: could be replaced by default _moveHandler with bindings ? // new sigma.js: could be replaced by default _moveHandler with bindings ?
// => atm rewrote entire function with new values // => atm rewrote entire function with new values
function circleTrackMouse(e) { function circleTrackMouse(e) {
if(!shift_key) {
// $.doTimeout(300,function (){
// new sigma.js 2D mouse context // new sigma.js 2D mouse context
var ctx = TW.partialGraph.renderers[0].contexts.mouse; var ctx = TW.partialGraph.renderers[0].contexts.mouse;
ctx.globalCompositeOperation = "source-over"; ctx.globalCompositeOperation = "source-over";
...@@ -471,13 +471,10 @@ function circleTrackMouse(e) { ...@@ -471,13 +471,10 @@ function circleTrackMouse(e) {
// } // }
ctx.arc(x, y, cursor_size, 0, Math.PI * 2, true); ctx.arc(x, y, cursor_size, 0, Math.PI * 2, true);
//ctx.arc(TW.partialGraph._core.width/2, TW.partialGraph._core.height/2, 4, 0, 2 * Math.PI, true);/*todel*/
ctx.closePath(); ctx.closePath();
ctx.fill(); ctx.fill();
ctx.stroke(); ctx.stroke();
ctx.globalAlpha = 1 ctx.globalAlpha = 1
// });
}
} }
......
...@@ -92,7 +92,7 @@ var desirableScholarSize=6; //Remember that all scholars have the same size! ...@@ -92,7 +92,7 @@ var desirableScholarSize=6; //Remember that all scholars have the same size!
* - "off": button doesn't exist, fa2 stopped forever * - "off": button doesn't exist, fa2 stopped forever
**/ var fa2enabled=false;//"off"; **/ var fa2enabled=false;//"off";
var stopcriteria = false; var stopcriteria = false;
var fa2milliseconds=5000; // for initial auto-run if fa2enabled and any var fa2milliseconds=7000; // for initial auto-run if fa2enabled and any
// subsequent auto-runs if graph modified // subsequent auto-runs if graph modified
// deprecated ? // deprecated ?
...@@ -108,7 +108,7 @@ TW.nodesGreyBorderColor = "rgba(100, 100, 100, 0.5)"; ...@@ -108,7 +108,7 @@ TW.nodesGreyBorderColor = "rgba(100, 100, 100, 0.5)";
TW.selectedColor = "node" // "node" for a background like the node's color, TW.selectedColor = "node" // "node" for a background like the node's color,
// "default" for note-like yellow // "default" for note-like yellow
TW.overSampling = true // costly hi-def rendering (true => pixelRatio x 2) TW.overSampling = false // costly hi-def rendering (true => pixelRatio x 2)
// ============ < / DEVELOPER OPTIONS > ============ // ============ < / DEVELOPER OPTIONS > ============
...@@ -118,7 +118,7 @@ TW.overSampling = true // costly hi-def rendering (true => pixelRatio x 2) ...@@ -118,7 +118,7 @@ TW.overSampling = true // costly hi-def rendering (true => pixelRatio x 2)
var sigmaJsDrawingProperties = { var sigmaJsDrawingProperties = {
defaultLabelColor: 'black', defaultLabelColor: 'black',
defaultLabelSize: 30, // in fact usually overridden by node data... defaultLabelSize: 30, // in fact usually overridden by node data...
labelSizeRatio: 2, // ...but this ratio allows truly adjusting the sizes labelSizeRatio: 1.5, // ...but this ratio allows truly adjusting the sizes
labelThreshold: 5, labelThreshold: 5,
defaultEdgeType: 'curve', // 'curve' or 'line' defaultEdgeType: 'curve', // 'curve' or 'line'
...@@ -140,8 +140,8 @@ var sigmaJsDrawingProperties = { ...@@ -140,8 +140,8 @@ var sigmaJsDrawingProperties = {
// twNodeRendBorderColor: "#eee", // twNodeRendBorderColor: "#eee",
// font: "Crete Round", // font: "Crete Round",
// font: "Sahitya", font: "Ubuntu Condensed",
// fontStyle: "bold", fontStyle: "bold",
}; };
var sigmaJsGraphProperties = { var sigmaJsGraphProperties = {
minEdgeSize: 2, minEdgeSize: 2,
......
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