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
7afdf0b3
Commit
7afdf0b3
authored
Oct 24, 2014
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodes-size remains after slider modif
parent
95de868f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
settings_explorerjs.js
settings_explorerjs.js
+4
-0
enviroment.js
tinawebJS/js/enviroment.js
+1
-0
main.js
tinawebJS/js/main.js
+3
-1
methods.js
tinawebJS/js/methods.js
+2
-1
sigma.min.js
tinawebJS/js/sigma.min.js
+2
-3
No files found.
settings_explorerjs.js
View file @
7afdf0b3
...
...
@@ -27,6 +27,10 @@ ircCHN="";
var
catSoc
=
"Document"
;
var
catSem
=
"NGram"
;
var
sizeMult
=
[];
sizeMult
[
catSoc
]
=
0.0
;
sizeMult
[
catSem
]
=
0.0
;
var
inactiveColor
=
'#666'
;
var
startingNodeId
=
"1"
;
var
minLengthAutoComplete
=
1
;
...
...
tinawebJS/js/enviroment.js
View file @
7afdf0b3
...
...
@@ -321,6 +321,7 @@ function EdgeWeightFilter(sliderDivID , type_attrb , type , criteria) {
});
// [ / Starting FA2 ]
pr
(
"
\
t
\
t
\
tfilter applied!"
)
lastvalue
=
filtervalue
;
});
...
...
tinawebJS/js/main.js
View file @
7afdf0b3
...
...
@@ -603,10 +603,11 @@ function theListeners(){
value
:
1
,
bgcolor
:
"#27c470"
,
onchange
:
function
(
value
){
$
.
doTimeout
(
100
,
function
(){
2
$
.
doTimeout
(
100
,
function
(){
partialGraph
.
iterNodes
(
function
(
n
)
{
if
(
Nodes
[
n
.
id
].
type
==
catSoc
)
{
n
.
size
=
parseFloat
(
Nodes
[
n
.
id
].
size
)
+
parseFloat
((
value
-
1
))
*
0.3
;
sizeMult
[
catSoc
]
=
parseFloat
(
value
-
1
)
*
0.3
;
}
});
partialGraph
.
draw
();
...
...
@@ -626,6 +627,7 @@ function theListeners(){
partialGraph
.
iterNodes
(
function
(
n
)
{
if
(
Nodes
[
n
.
id
].
type
==
catSem
)
{
n
.
size
=
parseFloat
(
Nodes
[
n
.
id
].
size
)
+
parseFloat
((
value
-
1
))
*
0.3
;
sizeMult
[
catSem
]
=
parseFloat
(
value
-
1
)
*
0.3
;
}
});
partialGraph
.
draw
();
...
...
tinawebJS/js/methods.js
View file @
7afdf0b3
...
...
@@ -1279,10 +1279,11 @@ function unHide(id){
// i've received a NODE
if
(
!
isUndef
(
getn
(
id
)))
return
;
if
(
Nodes
[
id
])
{
var
tt
=
Nodes
[
id
].
type
var
anode
=
({
id
:
id
,
label
:
Nodes
[
id
].
label
,
size
:
Nodes
[
id
].
size
,
size
:
(
parseFloat
(
Nodes
[
id
].
size
)
+
sizeMult
[
tt
])
+
""
,
x
:
Nodes
[
id
].
x
,
y
:
Nodes
[
id
].
y
,
hidden
:
(
Nodes
[
id
].
lock
)?
true
:
false
,
...
...
tinawebJS/js/sigma.min.js
View file @
7afdf0b3
...
...
@@ -501,7 +501,7 @@ sigma.classes.Cascade = function() {
if
(
!
swMacro
)
self
.
draw
(
2
,
2
,
2
);
else
self
.
draw
(
self
.
p
.
auto
?
2
:
self
.
p
.
drawNodes
,
self
.
p
.
auto
?
0
:
self
.
p
.
drawEdges
,
self
.
p
.
auto
?
2
:
self
.
p
.
drawLabels
);
self
.
draw
(
self
.
p
.
auto
?
2
:
self
.
p
.
drawNodes
,
self
.
p
.
auto
?
0
:
self
.
p
.
drawEdges
,
0
);
}
}).
bind
(
'stopgenerators'
,
function
()
{
self
.
draw
();
...
...
@@ -2202,7 +2202,6 @@ sigma.classes.Cascade = function() {
drawLabel
(
graph
.
nodes
[
self
.
currentLabelIndex
++
]);
}
}
return
self
.
currentLabelIndex
<
c
;
};
...
...
@@ -2392,7 +2391,7 @@ sigma.classes.Cascade = function() {
function
drawLabel
(
node
)
{
var
ctx
=
labelsCtx
;
if
(
node
[
'displaySize'
]
>=
self
.
p
.
labelThreshold
||
node
[
'forceLabel'
])
{
if
(
node
[
'displaySize'
]
>=
self
.
p
.
labelThreshold
*
2
||
node
[
'forceLabel'
])
{
var
fontSize
;
/* = self.p.labelSize == 'fixed' ?
self.p.defaultLabelSize :
self.p.labelSizeRatio * node['displaySize'];*/
...
...
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