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
e8c8c22d
Commit
e8c8c22d
authored
Oct 03, 2014
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portable on the way
parent
0d9cc033
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
105452 additions
and
96 deletions
+105452
-96
141002Syneco.gexf
data/141002Syneco.gexf
+105310
-0
enviroment.js
tinawebJS/js/enviroment.js
+3
-0
main.js
tinawebJS/js/main.js
+18
-1
methods.js
tinawebJS/js/methods.js
+13
-10
sigma.parseCustom.js
tinawebJS/js/sigma.parseCustom.js
+108
-85
No files found.
data/141002Syneco.gexf
0 → 100644
View file @
e8c8c22d
This diff is collapsed.
Click to expand it.
tinawebJS/js/enviroment.js
View file @
e8c8c22d
...
...
@@ -176,6 +176,7 @@ function EdgeWeightFilter(sliderDivID , type_attrb , type , criteria) {
// AlgorithmForSliders ( partialGraph._core.graph.edges , "label" , "nodes2" , "weight")
// AlgorithmForSliders ( partialGraph._core.graph.nodes , "type" , "Document" , "size")
// AlgorithmForSliders ( partialGraph._core.graph.nodes , "type" , "NGram" , "size")
if
(
partialGraph
.
_core
.
graph
.
edges
.
length
==
0
)
return
;
var
filterparams
=
AlgorithmForSliders
(
partialGraph
.
_core
.
graph
.
edges
,
type_attrb
,
type
,
criteria
)
var
steps
=
filterparams
[
"steps"
]
...
...
@@ -258,6 +259,8 @@ function NodeWeightFilter(sliderDivID , type_attrb , type , criteria) {
// AlgorithmForSliders ( partialGraph._core.graph.edges , "label" , "nodes2" , "weight")
// AlgorithmForSliders ( partialGraph._core.graph.nodes , "type" , "Document" , "size")
// AlgorithmForSliders ( partialGraph._core.graph.nodes , "type" , "NGram" , "size")
if
(
partialGraph
.
_core
.
graph
.
nodes
.
length
==
0
)
return
;
var
filterparams
=
AlgorithmForSliders
(
partialGraph
.
_core
.
graph
.
nodes
,
type_attrb
,
type
,
criteria
)
var
steps
=
filterparams
[
"steps"
]
var
finalarray
=
filterparams
[
"finalarray"
]
...
...
tinawebJS/js/main.js
View file @
e8c8c22d
...
...
@@ -7,6 +7,7 @@ $( window ).resize(function() {
});
// === / monitor windows resize === //
mainfile
=
(
isUndef
(
getUrlParam
.
file
))?
false
:
true
;
// === [what to do at start] === //
if
(
mainfile
)
{
// http://localhost/adasd/explorerjs.html?file=data/140907Syneco.gexf
...
...
@@ -194,11 +195,26 @@ function bringTheNoise(pathfile,type){
// < === EXTRACTING DATA === >
if
(
mainfile
)
{
pr
(
"mainfile: "
+
mainfile
)
parse
(
decodeURIComponent
(
pathfile
));
if
(
type
==
"mono"
)
{
onepartiteExtract
();
$
(
"#left"
).
hide
();
}
else
if
(
type
==
"bi"
)
fullExtract
();
}
if
(
type
==
"bi"
)
{
semanticConverged
=
true
;
pr
(
"here in fullextract"
)
fullExtract
();
$
(
"#closeloader"
).
click
();
pushSWClick
(
"social"
);
pr
(
partialGraph
.
_core
.
graph
.
nodes
.
length
)
pr
(
partialGraph
.
_core
.
graph
.
edges
.
length
)
}
partialGraph
.
zoomTo
(
partialGraph
.
_core
.
width
/
2
,
partialGraph
.
_core
.
height
/
2
,
0.8
).
draw
(
2
,
2
,
2
);
theListeners
();
...
...
@@ -700,6 +716,7 @@ function SigmaLayouting( URL, DATA, NAME) {
partialGraph
.
draw
();
EdgeWeightFilter
(
"#sliderBEdgeWeight"
,
"label"
,
"nodes2"
,
"weight"
);
NodeWeightFilter
(
"#sliderBNodeWeight"
,
"type"
,
"NGram"
,
"size"
)
$
(
"#colorGraph"
).
hide
();
}
console
.
log
(
"Parsing and FA2 complete for SemanticGraph."
);
...
...
tinawebJS/js/methods.js
View file @
e8c8c22d
...
...
@@ -198,6 +198,8 @@ function alertCheckBox(eventCheck){
// AaBb: Socio-Semantic
function
RefreshState
(
newNOW
){
pr
(
"
\
t
\
t
\
tin RefreshState newNOW:_"
+
newNOW
+
"_."
)
if
(
newNOW
!=
""
)
{
PAST
=
NOW
;
NOW
=
newNOW
;
...
...
@@ -1467,11 +1469,7 @@ function changeToMeso(iwannagraph) {
// unHide(id);
}
}
createEdgesForExistingNodes
(
iwannagraph
);
/**/
greyEverything
();
for
(
var
i
in
selections
)
markAsSelected
(
i
,
true
);
overNodes
=
true
;
createEdgesForExistingNodes
(
iwannagraph
);
/**/
}
if
(
swclickPrev
==
"semantic"
)
{
...
...
@@ -1493,7 +1491,7 @@ function changeToMeso(iwannagraph) {
}
if
(
swclickPrev
==
"sociosemantic"
)
{
hideEverything
();
//
hideEverything();
for
(
var
i
in
selections
)
{
if
(
Nodes
[
i
].
type
==
catSoc
){
...
...
@@ -1512,10 +1510,6 @@ function changeToMeso(iwannagraph) {
}
}
for
(
var
i
in
selections
)
{
markAsSelected
(
i
,
true
);
}
overNodes
=
true
;
}
}
}
...
...
@@ -1593,6 +1587,14 @@ function changeToMeso(iwannagraph) {
// // partialGraph.zoomTo(partialGraph._core.width / 2, partialGraph._core.height / 2, 0.8);
// partialGraph.refresh();
// partialGraph.startForceAtlas2();
MultipleSelection
(
Object
.
keys
(
selections
));
// greyEverything();
// for(var i in selections) markAsSelected(i,true);
// overNodes=true;
$
(
'.gradient'
).
css
({
"background-size"
:
"90px 90px"
});
}
...
...
@@ -1649,6 +1651,7 @@ function changeToMacro(iwannagraph) {
for
(
var
e
in
Edges
)
{
if
(
Edges
[
e
].
label
==
"nodes1"
||
Edges
[
e
].
label
==
"nodes2"
){
st
=
e
.
split
(
";"
);
if
(
Edges
[
st
[
0
]
+
";"
+
st
[
1
]]
&&
Edges
[
st
[
1
]
+
";"
+
st
[
0
]]
&&
Edges
[
st
[
0
]
+
";"
+
st
[
1
]].
hidden
==
true
&&
...
...
tinawebJS/js/sigma.parseCustom.js
View file @
e8c8c22d
This diff is collapsed.
Click to expand it.
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