Commit ab85f4a2 authored by Romain Loth's avatar Romain Loth

minor settings update

parent 6c5c9234
......@@ -37,7 +37,8 @@
<!-- Sahitya & Gurajada
"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
cursive (refined and very readable but a bit too wide for us) + thai support -->
......@@ -155,7 +156,13 @@
</a>
</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>
<div id="unranged-value" class="settingslider"></div>
</a></li>
......
......@@ -8,6 +8,7 @@ function newPopup(url) {
}
// = = = = = = = = = = = [ Clusters Plugin ] = = = = = = = = = = = //
// Execution: ChangeGraphAppearanceByAtt( true )
// 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.
......@@ -250,6 +251,7 @@ function set_ClustersLegend ( daclass ) {
$("#legend_for_clusters").html( LegendDiv )
}
// = = = = = = = = = = = [ / Clusters Plugin ] = = = = = = = = = = = //
//For CNRS
function getTopPapers(type){
......@@ -414,8 +416,6 @@ function draw1Circle(ctx , x , y , color) {
// new sigma.js: could be replaced by default _moveHandler with bindings ?
// => atm rewrote entire function with new values
function circleTrackMouse(e) {
if(!shift_key) {
// $.doTimeout(300,function (){
// new sigma.js 2D mouse context
var ctx = TW.partialGraph.renderers[0].contexts.mouse;
ctx.globalCompositeOperation = "source-over";
......@@ -471,13 +471,10 @@ function circleTrackMouse(e) {
// }
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.fill();
ctx.stroke();
ctx.globalAlpha = 1
// });
}
}
......
......@@ -92,7 +92,7 @@ var desirableScholarSize=6; //Remember that all scholars have the same size!
* - "off": button doesn't exist, fa2 stopped forever
**/ var fa2enabled=false;//"off";
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
// deprecated ?
......@@ -108,7 +108,7 @@ TW.nodesGreyBorderColor = "rgba(100, 100, 100, 0.5)";
TW.selectedColor = "node" // "node" for a background like the node's color,
// "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 > ============
......@@ -118,7 +118,7 @@ TW.overSampling = true // costly hi-def rendering (true => pixelRatio x 2)
var sigmaJsDrawingProperties = {
defaultLabelColor: 'black',
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,
defaultEdgeType: 'curve', // 'curve' or 'line'
......@@ -140,8 +140,8 @@ var sigmaJsDrawingProperties = {
// twNodeRendBorderColor: "#eee",
// font: "Crete Round",
// font: "Sahitya",
// fontStyle: "bold",
font: "Ubuntu Condensed",
fontStyle: "bold",
};
var sigmaJsGraphProperties = {
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