Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
morpheus.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daria Zenkova
morpheus.js
Commits
b2792ab4
Commit
b2792ab4
authored
May 03, 2016
by
Joshua Gould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide others
parent
ff0ef5a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
js/morpheus-latest.min.js
js/morpheus-latest.min.js
+3
-3
src/ui/vector_track.js
src/ui/vector_track.js
+18
-1
No files found.
js/morpheus-latest.min.js
View file @
b2792ab4
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/ui/vector_track.js
View file @
b2792ab4
...
...
@@ -826,6 +826,7 @@ morpheus.VectorTrack.prototype = {
var
DELETE
=
'
Delete...
'
;
var
TOOLTIP
=
'
Show In Tooltip
'
;
var
HIDE
=
'
Hide
'
;
var
HIDE_OTHERS
=
'
Hide Others
'
;
var
REMOVE_SHOW_SELECTION_ONLY
=
'
Show All
'
;
var
SORT_ASC
=
'
Sort Ascending
'
;
var
SORT_DESC
=
'
Sort Descending
'
;
...
...
@@ -1077,6 +1078,11 @@ morpheus.VectorTrack.prototype = {
sectionToItems
.
Display
.
push
({
name
:
HIDE
});
sectionToItems
.
Display
.
push
({
name
:
HIDE_OTHERS
,
disabled
:
heatmap
.
getVisibleTrackNames
(
this
.
isColumns
).
length
<=
1
});
sectionToItems
.
Display
.
push
({
separator
:
true
});
...
...
@@ -1703,6 +1709,17 @@ morpheus.VectorTrack.prototype = {
heatmap
.
setTrackVisible
(
_this
.
name
,
false
,
_this
.
isColumns
);
heatmap
.
revalidate
();
}
else
if
(
item
===
HIDE_OTHERS
)
{
var
names
=
heatmap
.
getVisibleTrackNames
(
_this
.
isColumns
);
for
(
var
i
=
0
;
i
<
names
.
length
;
i
++
)
{
if
(
names
[
i
]
!==
_this
.
name
)
{
heatmap
.
setTrackVisible
(
names
[
i
],
false
,
_this
.
isColumns
);
}
}
heatmap
.
revalidate
();
}
else
if
(
item
===
DISPLAY_STACKED_BAR
)
{
_this
.
settings
.
stackedBar
=
!
_this
.
settings
.
stackedBar
;
_this
.
_update
();
...
...
@@ -2306,4 +2323,4 @@ morpheus.VectorTrack.prototype = {
}
}
};
morpheus
.
Util
.
extend
(
morpheus
.
VectorTrack
,
morpheus
.
AbstractCanvas
);
\ No newline at end of file
morpheus
.
Util
.
extend
(
morpheus
.
VectorTrack
,
morpheus
.
AbstractCanvas
);
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