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
c8e679b7
Commit
c8e679b7
authored
Mar 29, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix edge greying out and expose opacity params
parent
31aeb826
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
settings_explorerjs.js
settings_explorerjs.js
+5
-3
main.js
tinawebJS/main.js
+3
-3
methods.js
tinawebJS/methods.js
+1
-2
sigma_tools.js
tinawebJS/sigma_tools.js
+1
-1
No files found.
settings_explorerjs.js
View file @
c8e679b7
...
...
@@ -93,8 +93,12 @@ var seed=999999999;//defaultseed
var
semanticConverged
=
false
;
// ============ < / DEVELOPER OPTIONS > ============
var
showLabelsIfZoom
=
1.0
;
var
greyColor
=
"#9b9e9e"
;
TW
.
edgeDefaultOpacity
=
0.3
// opacity when true_color
TW
.
edgeGreyColor
=
"rgba(200, 200, 200, 0.5)"
;
// ============ < / DEVELOPER OPTIONS > ============
// ============ < SIGMA.JS PROPERTIES > ============
...
...
@@ -133,8 +137,6 @@ var sigmaJsMouseProperties = {
// ============ < / SIGMA.JS PROPERTIES > ============
// ============ < / DEVELOPER OPTIONS > ============
// ============ < VARIABLES.JS > ============
...
...
tinawebJS/main.js
View file @
c8e679b7
...
...
@@ -219,7 +219,7 @@ if(RES["OK"]) {
var
customSettings
=
Object
.
assign
(
{
drawEdges
:
fals
e
,
// fixme edgetype curve
drawEdges
:
tru
e
,
// fixme edgetype curve
drawNodes
:
true
,
drawLabels
:
true
,
// nodesPowRatio: .5,
...
...
@@ -249,10 +249,10 @@ if(RES["OK"]) {
TW
.
partialGraph
=
new
sigma
({
graph
:
TW
.
graphData
,
container
:
'sigma-example'
,
renderer
s
:
[
{
renderer
:
{
container
:
document
.
getElementById
(
'sigma-example'
),
type
:
sigma
.
renderers
.
canvas
}
]
,
},
settings
:
customSettings
});
...
...
tinawebJS/methods.js
View file @
c8e679b7
...
...
@@ -20,7 +20,6 @@ function cancelSelection (fromTagCloud) {
// console.log("cancelSelection: edge", e[i])
if
(
e
[
i
])
{
e
[
i
].
color
=
e
[
i
].
customAttrs
[
'grey'
]
?
e
[
i
].
customAttrs
[
'true_color'
]
:
e
[
i
].
color
;
// e[i].color = e[i].customAttrs['true_color'];
e
[
i
].
customAttrs
[
'grey'
]
=
0
;
}
...
...
@@ -541,7 +540,7 @@ function greyEverything(){
for
(
var
i
in
eds
){
if
(
!
eds
[
i
].
customAttrs
[
'grey'
]){
eds
[
i
].
customAttrs
[
'true_color'
]
=
eds
[
i
].
color
;
eds
[
i
].
color
=
greyColor
;
eds
[
i
].
color
=
TW
.
edgeGreyColor
;
}
eds
[
i
].
customAttrs
[
'grey'
]
=
1
;
}
...
...
tinawebJS/sigma_tools.js
View file @
c8e679b7
...
...
@@ -44,7 +44,7 @@ sigmaTools = (function(stools) {
var
g
=
(
a
[
1
]
+
b
[
1
])
>>
1
;
var
b
=
(
a
[
2
]
+
b
[
2
])
>>
1
;
// var color = '#'+sigma.tools.rgbToHex(parseFloat(r),parseFloat(g),parseFloat(b))
var
color
=
"rgba( "
+
r
+
", "
+
g
+
" , "
+
b
+
" ,
0.5
)"
;
var
color
=
"rgba( "
+
r
+
", "
+
g
+
" , "
+
b
+
" ,
"
+
TW
.
edgeDefaultOpacity
+
"
)"
;
return
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