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
6a15ff56
Commit
6a15ff56
authored
Sep 30, 2014
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spatialization corrected
parent
d2d169a6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
34 deletions
+31
-34
explorerjs.html
explorerjs.html
+0
-3
main.js
tinawebJS/js/main.js
+18
-21
methods.js
tinawebJS/js/methods.js
+11
-8
sigma.parseCustom.js
tinawebJS/js/sigma.parseCustom.js
+2
-2
No files found.
explorerjs.html
View file @
6a15ff56
...
...
@@ -184,11 +184,8 @@
<div
style=
"visibility: hidden;"
id=
"sigma-othergraph"
></div>
<img
id=
"semLoader"
style=
"position:absolute; top:50%; left:40%; width:80px;"
src=
"img2/loading-bar.gif"
></img>
<ul
id=
"ctlzoom"
>
<!-- <div class="content-header">
...
...
tinawebJS/js/main.js
View file @
6a15ff56
...
...
@@ -211,11 +211,12 @@ function bringTheNoise(pathfile,type){
contentType
:
"application/json"
,
dataType
:
'jsonp'
,
async
:
true
,
success
:
function
(
data
){
success
:
function
(
data
)
{
if
(
!
isUndef
(
getUrlParam
.
seed
))
seed
=
getUrlParam
.
seed
;
extractFromJson
(
data
,
seed
);
changeToMacro
(
"social"
);
pr
(
getClientTime
()
+
" : DataExt Fin"
);
// < === DATA EXTRACTED!! === >
// < === DATA EXTRACTED!! === >
if
(
fa2enabled
===
"off"
)
$
(
"#edgesButton"
).
hide
();
pushSWClick
(
"social"
);
...
...
@@ -234,14 +235,14 @@ function bringTheNoise(pathfile,type){
pr
(
"iterationsFA2: "
+
iterationsFA2
)
var
netname
=
pathfile
.
replace
(
/
\_
/g
,
' '
).
toUpperCase
();
$
(
"#network"
).
html
(
netname
);
// < === ASYNCHRONOUS FA2.JS === >
// < === ASYNCHRONOUS FA2.JS === >
pr
(
"prev first node:"
)
pr
(
partialGraph
.
_core
.
graph
.
nodes
[
0
])
pr
(
getClientTime
()
+
" : Ini FA2"
);
var
ForceAtlas2
=
new
Worker
(
"FA2.js"
);
ForceAtlas2
.
postMessage
({
ForceAtlas2
.
postMessage
({
"nodes"
:
partialGraph
.
_core
.
graph
.
nodes
,
"edges"
:
partialGraph
.
_core
.
graph
.
edges
,
"it"
:
iterationsFA2
...
...
@@ -264,9 +265,12 @@ function bringTheNoise(pathfile,type){
pr
(
getClientTime
()
+
" : Fin FA2"
);
console
.
log
(
"Parsing and FA2 complete."
);
pr
(
"
\n
=================
\n
"
)
// < === ASYNCHRONOUS FA2.JS DONE!! === >
// < === ASYNCHRONOUS FA2.JS DONE!! === >
pr
(
"aft first node:"
)
pr
(
partialGraph
.
_core
.
graph
.
nodes
[
0
])
// [ calculate iterations for semanticgraph ]
pr
(
getClientTime
()
+
" : Ini FA2 for SemanticGraph"
);
var
cut1_
,
cut2_
,
iterationsFA2_
=
iterationsFA2
;
pr
(
otherGraph
.
_core
.
graph
.
nodes
.
length
)
...
...
@@ -282,8 +286,10 @@ function bringTheNoise(pathfile,type){
}
if
(
nbnodes
>=
1000
)
iterationsFA2_
=
150
;
pr
(
"iterationsFA2 sem: "
+
iterationsFA2_
)
// [ / calculate iterations for semanticgraph ]
// [ semantic layouting ]
var
ForceAtlas2_
=
new
Worker
(
"FA2.js"
);
ForceAtlas2_
.
postMessage
({
"nodes"
:
otherGraph
.
_core
.
graph
.
nodes
,
...
...
@@ -312,11 +318,14 @@ function bringTheNoise(pathfile,type){
semanticConverged
=
true
;
$
(
"#semLoader"
).
hide
();
if
(
NOW
==
"B"
)
changeToMacro
(
"semantic"
);
if
(
NOW
==
"B"
)
{
changeToMacro
(
"semantic"
);
partialGraph
.
draw
();
}
console
.
log
(
"Parsing and FA2 complete for SemanticGraph."
);
});
// [ / semantic layouting ]
...
...
@@ -405,18 +414,6 @@ function bringTheNoise(pathfile,type){
}
});
}
}
}
...
...
tinawebJS/js/methods.js
View file @
6a15ff56
...
...
@@ -273,6 +273,8 @@ function RefreshState(newNOW){
$
(
"#colorGraph"
).
hide
();
}
partialGraph
.
draw
();
}
function
pushSWClick
(
arg
){
...
...
@@ -1405,6 +1407,7 @@ function unHideElem(id){
function
changeToMeso
(
iwannagraph
)
{
labels
=
[]
partialGraph
.
emptyGraph
();
pr
(
"changing to Meso-"
+
iwannagraph
);
if
(
iwannagraph
==
"social"
)
{
if
(
!
is_empty
(
selections
)){
...
...
@@ -1574,10 +1577,10 @@ function changeToMeso(iwannagraph) {
}
}
// highlightSelectedNodes(true);
partialGraph
.
draw
();
// partialGraph.zoomTo(partialGraph._core.width / 2, partialGraph._core.height / 2, 0.8);
partialGraph
.
refresh
();
partialGraph
.
startForceAtlas2
();
//
partialGraph.draw();
//
//
partialGraph.zoomTo(partialGraph._core.width / 2, partialGraph._core.height / 2, 0.8);
//
partialGraph.refresh();
//
partialGraph.startForceAtlas2();
$
(
'.gradient'
).
css
({
"background-size"
:
"90px 90px"
});
}
...
...
@@ -1659,10 +1662,10 @@ function changeToMacro(iwannagraph) {
}
// highlightSelectedNodes(true);
// // partialGraph.stopForceAtlas2();
partialGraph
.
draw
();
// partialGraph.zoomTo(partialGraph._core.width / 2, partialGraph._core.height / 2, 0.8);
partialGraph
.
refresh
();
partialGraph
.
startForceAtlas2
();
//
partialGraph.draw();
//
//
partialGraph.zoomTo(partialGraph._core.width / 2, partialGraph._core.height / 2, 0.8);
//
partialGraph.refresh();
//
partialGraph.startForceAtlas2();
$
(
'.gradient'
).
css
({
"background-size"
:
"40px 40px"
});
}
...
...
tinawebJS/js/sigma.parseCustom.js
View file @
6a15ff56
...
...
@@ -612,8 +612,8 @@ function extractFromJson(data,seed){
size
:
1
,
x
:
rand
.
getRandom
(),
y
:
rand
.
getRandom
(),
//x:Math.random(),
//y:Math.random(),
//
x:Math.random(),
//
y:Math.random(),
type
:
""
,
htmlCont
:
""
,
color
:
color
...
...
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