Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,712
Issues
1,712
List
Boards
Labels
Service Desk
Milestones
Merge Requests
87
Merge Requests
87
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
8e87d0a1
Commit
8e87d0a1
authored
Mar 25, 2015
by
Mathieu Giraud
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
graph.js, scatterPlot.js, css: toggle visibility of this bar depending on the choosen axis
.setOtherVisibility()
parent
03af760c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
2 deletions
+18
-2
browser/css/dark.css
browser/css/dark.css
+1
-0
browser/css/light.css
browser/css/light.css
+1
-0
browser/css/vidjil.less
browser/css/vidjil.less
+1
-0
browser/js/graph.js
browser/js/graph.js
+10
-2
browser/js/scatterPlot.js
browser/js/scatterPlot.js
+5
-0
No files found.
browser/css/dark.css
View file @
8e87d0a1
...
...
@@ -184,6 +184,7 @@ line {
stroke
:
#839496
;
opacity
:
0.25
;
stroke-width
:
10px
;
display
:
none
;
}
.axis_h
{
stroke
:
#839496
;
...
...
browser/css/light.css
View file @
8e87d0a1
...
...
@@ -184,6 +184,7 @@ line {
stroke
:
#657b83
;
opacity
:
0.25
;
stroke-width
:
10px
;
display
:
none
;
}
.axis_h
{
stroke
:
#657b83
;
...
...
browser/css/vidjil.less
View file @
8e87d0a1
...
...
@@ -232,6 +232,7 @@ line {
stroke: @default ;
opacity: 0.25 ;
stroke-width: 10px;
display: none;
}
.axis_h{
...
...
browser/js/graph.js
View file @
8e87d0a1
...
...
@@ -102,6 +102,7 @@ function Graph(id, model) {
this
.
text_position_x
=
60
;
this
.
m
.
view
.
push
(
this
)
this
.
m
.
graph
=
this
// TODO: find a better way to do this
}
Graph
.
prototype
=
{
...
...
@@ -1070,7 +1071,7 @@ Graph.prototype = {
//other selected time_point
if
(
this
.
m
.
samples
.
order
.
indexOf
(
this
.
m
.
tOther
)
!=
-
1
){
this
.
mobilOther
=
{};
this
.
mobilOther
.
type
=
"
axis_m_
previous
"
;
this
.
mobilOther
.
type
=
"
axis_m_
other
"
;
this
.
mobilOther
.
text
=
""
;
this
.
mobilOther
[
'
class
'
]
=
"
graph_text
"
;
this
.
mobilOther
.
orientation
=
"
vert
"
;
...
...
@@ -1080,7 +1081,14 @@ Graph.prototype = {
return
this
},
setOtherVisibility
:
function
(
visible
)
{
if
(
visible
)
{
$
(
"
.axis_m_other
"
).
show
(
"
fast
"
)
}
else
{
$
(
"
.axis_m_other
"
).
hide
(
"
fast
"
)
}
},
/* ************************************************ *
* RENDERER FUNCTIONS
...
...
browser/js/scatterPlot.js
View file @
8e87d0a1
...
...
@@ -1964,6 +1964,11 @@ ScatterPlot.prototype = {
}
else
{
this
.
update
();
}
if
(
typeof
m
.
graph
!=
"
undefined
"
)
{
m
.
graph
.
setOtherVisibility
(
this
.
splitX
==
"
otherSize
"
||
this
.
splitY
==
"
otherSize
"
)
}
},
...
...
Mathieu Giraud
@magiraud
mentioned in commit
5fa14ff1
·
Feb 28, 2017
mentioned in commit
5fa14ff1
mentioned in commit 5fa14ff1fa7083a63e1eabc88dbff2458340821d
Toggle commit list
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