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
ab85f4a2
Commit
ab85f4a2
authored
Apr 12, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor settings update
parent
6c5c9234
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
71 deletions
+75
-71
explorerjs.html
explorerjs.html
+9
-2
extras_explorerjs.js
extras_explorerjs.js
+61
-64
settings_explorerjs.js
settings_explorerjs.js
+5
-5
No files found.
explorerjs.html
View file @
ab85f4a2
...
...
@@ -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>
...
...
extras_explorerjs.js
View file @
ab85f4a2
...
...
@@ -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
// });
}
}
...
...
settings_explorerjs.js
View file @
ab85f4a2
...
...
@@ -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
=
5
000
;
// for initial auto-run if fa2enabled and any
var
fa2milliseconds
=
7
000
;
// 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
=
tru
e
// costly hi-def rendering (true => pixelRatio x 2)
TW
.
overSampling
=
fals
e
// 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
,
...
...
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