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
4d5fba0b
Commit
4d5fba0b
authored
Oct 10, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
just remove trailing spaces
parent
e013a462
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
559 additions
and
539 deletions
+559
-539
README.md
README.md
+2
-2
README.md
crowdsourcingModule/README.md
+0
-1
init.js
crowdsourcingModule/init.js
+1
-1
suggest.js
crowdsourcingModule/suggest.js
+10
-10
explorerjs.html
explorerjs.html
+46
-46
extras_explorerjs.js
extras_explorerjs.js
+62
-62
dygraph.combined.js
histogramModule/dygraph/dygraph.combined.js
+1
-1
gallery.css
histogramModule/dygraph/gallery.css
+2
-2
histogram.css
histogramModule/histogram.css
+1
-1
init.js
histogramModule/init.js
+1
-1
wosHistogram.js
histogramModule/wosHistogram.js
+17
-19
settings_explorerjs.js
settings_explorerjs.js
+6
-7
Tinaweb.js
tinawebJS/Tinaweb.js
+93
-89
asyncFA2.js
tinawebJS/asyncFA2.js
+12
-12
enviroment.js
tinawebJS/enviroment.js
+57
-57
globalUtils.js
tinawebJS/globalUtils.js
+20
-20
jLouvain.js
tinawebJS/jLouvain.js
+19
-19
main.js
tinawebJS/main.js
+15
-18
methods.js
tinawebJS/methods.js
+41
-41
sigma.forceatlas2.js
tinawebJS/sigma.forceatlas2.js
+16
-16
sigma.min.js
tinawebJS/sigma.min.js
+40
-41
sigma.parseCustom.js
tinawebJS/sigma.parseCustom.js
+70
-70
sigmaUtils.js
tinawebJS/sigmaUtils.js
+27
-3
No files found.
README.md
View file @
4d5fba0b
crowdsourcingModule/README.md
View file @
4d5fba0b
...
...
@@ -9,4 +9,3 @@ sqlite> CREATE TABLE terms (source CHAR(250),suggestion CHAR(250),time CHAR(30))
sqlite> .exit
> chmod -v 775 crowdsourcing.db
```
crowdsourcingModule/init.js
View file @
4d5fba0b
crowdsourcingModule/suggest.js
View file @
4d5fba0b
explorerjs.html
View file @
4d5fba0b
extras_explorerjs.js
View file @
4d5fba0b
histogramModule/dygraph/dygraph.combined.js
View file @
4d5fba0b
histogramModule/dygraph/gallery.css
View file @
4d5fba0b
histogramModule/histogram.css
View file @
4d5fba0b
histogramModule/init.js
View file @
4d5fba0b
histogramModule/wosHistogram.js
View file @
4d5fba0b
...
...
@@ -138,5 +138,3 @@ function draw_histogram(counts_by_year_array, div_id) {
function
clean_histogram
()
{
$
(
"#search_histogram"
).
html
(
""
)
;
}
settings_explorerjs.js
View file @
4d5fba0b
...
...
@@ -232,4 +232,3 @@ var RVUniformC = function(seed){
};
}
//unifCont = new RVUniformC(100000000)
tinawebJS/Tinaweb.js
View file @
4d5fba0b
...
...
@@ -862,12 +862,17 @@ TinaWebJS = function ( sigmacanvas ) {
// sigma permet qu'on lui passe une fonction
// à effectuer sur l'itérateur
partialGraph
.
iterNodes
(
function
(
n
)
{
// TODO fonction un peu lourde dans le profilage
// TODO debounce fonction un peu lourde dans le profilage
var
originalSize
=
TW
.
Nodes
[
n
.
id
].
size
//debug: no size adjustments at all :)
if
(
TW
.
Nodes
[
n
.
id
].
type
==
TW
.
catSoc
)
{
var
newval
=
parseFloat
(
TW
.
Nodes
[
n
.
id
].
s
ize
)
+
parseFloat
((
value
-
1
))
*
0.3
var
newval
=
parseFloat
(
originalS
ize
)
+
parseFloat
((
value
-
1
))
*
0.3
n
.
size
=
(
newval
<
1.0
)?
1
:
newval
;
sizeMult
[
TW
.
catSoc
]
=
parseFloat
(
value
-
1
)
*
0.3
;
}
});
partialGraph
.
draw
();
});
...
...
@@ -911,4 +916,3 @@ TinaWebJS = function ( sigmacanvas ) {
}
};
tinawebJS/asyncFA2.js
View file @
4d5fba0b
tinawebJS/enviroment.js
View file @
4d5fba0b
tinawebJS/globalUtils.js
View file @
4d5fba0b
tinawebJS/jLouvain.js
View file @
4d5fba0b
tinawebJS/main.js
View file @
4d5fba0b
...
...
@@ -370,6 +370,3 @@ ProcessDivsFlags() ;
$
(
"#searchinput"
).
attr
(
'placeholder'
,
TW
.
strSearchBar
)
;
console
.
log
(
"finish"
)
tinawebJS/methods.js
View file @
4d5fba0b
tinawebJS/sigma.forceatlas2.js
View file @
4d5fba0b
tinawebJS/sigma.min.js
View file @
4d5fba0b
...
...
@@ -3803,4 +3803,3 @@ sigma.classes.Cascade = function() {
sigma
.
publicPrototype
=
SigmaPublic
.
prototype
;
})();
tinawebJS/sigma.parseCustom.js
View file @
4d5fba0b
tinawebJS/sigmaUtils.js
View file @
4d5fba0b
...
...
@@ -251,6 +251,8 @@ function getArrSubkeys(arr,id) {
return
result
;
}
// color & size scale using an attribute in the nodes' data
function
clustersBy
(
daclass
)
{
cancelSelection
(
false
);
...
...
@@ -259,6 +261,7 @@ function clustersBy(daclass) {
for
(
var
i
in
v_nodes
)
{
var
the_node
=
TW
.
Nodes
[
v_nodes
[
i
].
id
]
var
attval
=
(
isUndef
(
the_node
.
attributes
)
||
isUndef
(
the_node
.
attributes
[
daclass
])
)?
v_nodes
[
i
][
daclass
]:
the_node
.
attributes
[
daclass
];
console
.
log
(
"clustersBy begin trace"
,
v_nodes
[
i
].
id
,
attval
)
if
(
!
isNaN
(
parseFloat
(
attval
))
)
{
//is float
while
(
true
)
{
var
themult
=
Math
.
pow
(
10
,
min_pow
);
...
...
@@ -276,14 +279,24 @@ function clustersBy(daclass) {
var
themult
=
Math
.
pow
(
10
,
min_pow
);
for
(
var
i
in
v_nodes
)
{
var
the_node
=
TW
.
Nodes
[
v_nodes
[
i
].
id
]
// debug
// console.log(the_node.label)
var
attval
=
(
isUndef
(
the_node
.
attributes
)
||
isUndef
(
the_node
.
attributes
[
daclass
])
)?
v_nodes
[
i
][
daclass
]:
the_node
.
attributes
[
daclass
];
var
attnumber
=
Number
(
attval
);
var
round_number
=
Math
.
round
(
attnumber
*
themult
)
;
console
.
log
({
the_node
,
"round"
:
round_number
,
"real"
:
attnumber
})
// order per ascii val of label's first letter
// round_number = Math.round(the_node.label.charAt(0).charCodeAt())
// console.log({ "round":round_number , "real":attnumber })
NodeID_Val
[
v_nodes
[
i
].
id
]
=
{
"round"
:
round_number
,
"real"
:
attnumber
};
if
(
round_number
<
real_min
)
real_min
=
round_number
;
if
(
round_number
>
real_max
)
real_max
=
round_number
;
//
if (round_number<real_min) real_min = round_number;
//
if (round_number>real_max) real_max = round_number;
}
...
...
@@ -300,14 +313,22 @@ function clustersBy(daclass) {
var
Min_color
=
0
;
var
Max_color
=
255
;
var
Min_size
=
2
;
var
Max_size
=
6
;
var
Max_size
=
5
;
for
(
var
i
in
NodeID_Val
)
{
var
newval_color
=
Math
.
round
(
(
Min_color
+
(
NodeID_Val
[
i
][
"round"
]
-
real_min
)
*
((
Max_color
-
Min_color
)
/
(
real_max
-
real_min
))
)
);
var
hex_color
=
rgbToHex
(
255
,
(
255
-
newval_color
)
,
0
)
console
.
log
({
'round in'
:
NodeID_Val
[
i
][
"round"
],
'label'
:
TW
.
partialGraph
.
_core
.
graph
.
nodesIndex
[
i
][
"label"
],
'newval col'
:
newval_color
,
'hex_color'
:
hex_color
})
// paint the sigma node
TW
.
partialGraph
.
_core
.
graph
.
nodesIndex
[
i
].
color
=
hex_color
var
newval_size
=
Math
.
round
(
(
Min_size
+
(
NodeID_Val
[
i
][
"round"
]
-
real_min
)
*
((
Max_size
-
Min_size
)
/
(
real_max
-
real_min
))
)
);
// size it too
TW
.
partialGraph
.
_core
.
graph
.
nodesIndex
[
i
].
size
=
newval_size
;
// pr("real:"+ NodeID_Val[i]["real"] + " | newvalue: "+newval_size)
...
...
@@ -324,10 +345,13 @@ function clustersBy(daclass) {
var
v_edges
=
getVisibleEdges
();
for
(
var
e
in
v_edges
)
{
var
e_id
=
v_edges
[
e
].
id
;
// from a
var
a
=
v_edges
[
e
].
source
.
color
;
// to b
var
b
=
v_edges
[
e
].
target
.
color
;
a
=
hex2rga
(
a
);
b
=
hex2rga
(
b
);
// 3x bitwise right shifts
var
r
=
(
a
[
0
]
+
b
[
0
])
>>
1
;
var
g
=
(
a
[
1
]
+
b
[
1
])
>>
1
;
var
b
=
(
a
[
2
]
+
b
[
2
])
>>
1
;
...
...
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