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
235d5d8c
Commit
235d5d8c
authored
Apr 08, 2016
by
joshua-gould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed heatmap.$el
parent
0b887b66
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
60 deletions
+59
-60
js/morpheus-latest.min.js
js/morpheus-latest.min.js
+8
-8
src/ui/heat_map.js
src/ui/heat_map.js
+6
-7
src/ui/heat_map_key_listener.js
src/ui/heat_map_key_listener.js
+1
-1
src/ui/heat_map_toolbar.js
src/ui/heat_map_toolbar.js
+1
-1
src/ui/vector_track.js
src/ui/vector_track.js
+43
-43
No files found.
js/morpheus-latest.min.js
View file @
235d5d8c
This diff is collapsed.
Click to expand it.
src/ui/heat_map.js
View file @
235d5d8c
...
...
@@ -270,8 +270,8 @@ morpheus.HeatMap = function(options) {
}
this
.
tabManager
=
this
.
options
.
parent
.
tabManager
;
}
this
.
$
el
=
$
(
'
<div></div>
'
);
this
.
$
el
.
css
({
this
.
$
content
=
$
(
'
<div></div>
'
);
this
.
$
content
.
css
({
'
width
'
:
'
100%
'
,
'
user-select
'
:
'
none
'
,
...
...
@@ -297,7 +297,7 @@ morpheus.HeatMap = function(options) {
});
var
tab
=
this
.
tabManager
.
add
({
$el
:
this
.
$
el
,
$el
:
this
.
$
content
,
closeable
:
true
,
rename
:
true
,
title
:
this
.
options
.
name
,
...
...
@@ -305,7 +305,7 @@ morpheus.HeatMap = function(options) {
focus
:
true
});
if
(
options
.
$loadingImage
)
{
options
.
$loadingImage
.
appendTo
(
this
.
$
el
);
options
.
$loadingImage
.
appendTo
(
this
.
$
content
);
}
this
.
tabId
=
tab
.
id
;
...
...
@@ -314,7 +314,6 @@ morpheus.HeatMap = function(options) {
:
(
options
.
dataset
.
file
?
options
.
dataset
.
file
:
options
.
dataset
);
this
.
_togglingInfoWindow
=
false
;
this
.
tooltipMode
=
0
;
// 0=docked, 1=dialog, 2=follow
this
.
el
=
this
.
$el
[
0
];
var
promises
=
[];
if
(
options
.
promises
)
{
...
...
@@ -373,7 +372,7 @@ morpheus.HeatMap = function(options) {
};
$
(
window
).
on
(
'
orientationchange resize
'
,
resize
);
_this
.
$
el
.
on
(
'
remove
'
,
function
()
{
_this
.
$
content
.
on
(
'
remove
'
,
function
()
{
$
(
window
).
off
(
'
orientationchange resize
'
,
resize
);
});
}
...
...
@@ -1097,7 +1096,7 @@ morpheus.HeatMap.prototype = {
this
.
whenLoaded
=
null
;
this
.
$parent
=
$
(
'
<div></div>
'
).
css
(
'
position
'
,
'
relative
'
);
this
.
$parent
.
appendTo
(
this
.
$
el
);
this
.
$parent
.
appendTo
(
this
.
$
content
);
this
.
toolbar
=
new
morpheus
.
HeatMapToolBar
(
this
);
if
(
this
.
options
.
customUrls
)
{
this
.
setCustomUrls
(
this
.
options
.
customUrls
);
...
...
src/ui/heat_map_key_listener.js
View file @
235d5d8c
...
...
@@ -134,7 +134,7 @@ morpheus.HeatMapKeyListener = function(controller) {
return
false
;
}
};
var
$keyelement
=
controller
.
$
el
;
var
$keyelement
=
controller
.
$
content
;
$keyelement
.
on
(
'
keydown
'
,
keydown
);
$keyelement
.
on
(
'
dragover.morpheus dragenter.morpheus
'
,
function
(
e
)
{
e
.
preventDefault
();
...
...
src/ui/heat_map_toolbar.js
View file @
235d5d8c
...
...
@@ -271,7 +271,7 @@ morpheus.HeatMapToolBar = function(controller) {
$search
.
appendTo
(
$el
.
find
(
'
[name=toolbarSearch]
'
));
$
(
toolbarHtml
.
join
(
''
)).
appendTo
(
$toolbarForm
);
$toolbarForm
.
appendTo
(
$el
.
find
(
'
[name=toolbarButtons]
'
));
$el
.
prependTo
(
controller
.
$
el
);
$el
.
prependTo
(
controller
.
$
content
);
// gapi.hangout.render('hangout-div', {
// 'widget_size' : '72',
// 'render' : 'createhangout'
...
...
src/ui/vector_track.js
View file @
235d5d8c
...
...
@@ -352,9 +352,9 @@ morpheus.VectorTrack.prototype = {
.
isRenderAs
(
morpheus
.
VectorTrack
.
RENDER
.
BAR
)))
{
if
(
this
.
getFullVector
().
getProperties
().
has
(
morpheus
.
VectorKeys
.
FIELDS
)
||
_
.
isNumber
(
morpheus
.
VectorUtil
.
getFirstNonNull
(
this
.
getFullVector
())))
{
||
morpheus
.
VectorUtil
.
getDataType
(
this
.
getFullVector
())
===
'
number
'
)
{
this
.
settings
.
discrete
=
false
;
this
.
settings
.
highlightMatchingValues
=
false
;
}
this
.
settings
.
discreteAutoDetermined
=
true
;
}
...
...
@@ -398,24 +398,24 @@ morpheus.VectorTrack.prototype = {
var
doRequest
=
function
(
smile
)
{
$
.
ajax
(
{
contentType
:
'
text/plain
'
,
context
:
{
smile
:
smile
},
data
:
{
'
string
'
:
smile
,
'
representation
'
:
'
sdf
'
},
url
:
'
http://cactus.nci.nih.gov/chemical/structure
'
,
}).
done
(
function
(
text
)
{
_this
.
moleculeCache
[
this
.
smile
]
=
text
;
if
(
values
.
length
>
0
)
{
doRequest
(
values
.
pop
());
}
_this
.
invalid
=
true
;
_this
.
repaint
();
});
{
contentType
:
'
text/plain
'
,
context
:
{
smile
:
smile
},
data
:
{
'
string
'
:
smile
,
'
representation
'
:
'
sdf
'
},
url
:
'
http://cactus.nci.nih.gov/chemical/structure
'
,
}).
done
(
function
(
text
)
{
_this
.
moleculeCache
[
this
.
smile
]
=
text
;
if
(
values
.
length
>
0
)
{
doRequest
(
values
.
pop
());
}
_this
.
invalid
=
true
;
_this
.
repaint
();
});
};
for
(
var
i
=
0
;
i
<
6
;
i
++
)
{
doRequest
(
values
.
pop
());
...
...
@@ -1075,10 +1075,10 @@ morpheus.VectorTrack.prototype = {
morpheus
.
Popup
.
showPopup
(
items
,
{
x
:
e
.
pageX
,
y
:
e
.
pageY
},
{
x
:
e
.
pageX
,
y
:
e
.
pageY
},
e
.
target
,
function
(
event
,
item
)
{
var
customItem
;
...
...
@@ -1278,12 +1278,12 @@ morpheus.VectorTrack.prototype = {
project
.
trigger
(
'
trackChanged
'
,
{
vectors
:
[
v
],
render
:
existingVector
!=
null
?
[]
{
vectors
:
[
v
],
render
:
existingVector
!=
null
?
[]
:
[
morpheus
.
VectorTrack
.
RENDER
.
TEXT
],
columns
:
isColumns
});
columns
:
isColumns
});
}
});
}
else
if
(
item
===
DELETE
)
{
...
...
@@ -1358,18 +1358,18 @@ morpheus.VectorTrack.prototype = {
project
.
trigger
(
'
rowTrackRemoved
'
,
{
vector
:
_this
{
vector
:
_this
.
getFullVector
()
});
});
}
else
{
project
.
trigger
(
'
columnTrackRemoved
'
,
{
vector
:
_this
{
vector
:
_this
.
getFullVector
()
});
});
}
}
});
...
...
@@ -1589,13 +1589,13 @@ morpheus.VectorTrack.prototype = {
.
getRowColorModel
();
if
(
_this
.
settings
.
discrete
)
{
colorSchemeChooser
=
new
morpheus
.
DiscreteColorSchemeChooser
(
{
colorScheme
:
{
scale
:
colorModel
{
colorScheme
:
{
scale
:
colorModel
.
getDiscreteColorScheme
(
_this
.
getFullVector
())
}
});
}
});
colorSchemeChooser
.
on
(
'
change
'
,
function
(
event
)
{
colorModel
.
setMappedValue
(
_this
...
...
@@ -1606,9 +1606,9 @@ morpheus.VectorTrack.prototype = {
});
}
else
{
colorSchemeChooser
=
new
morpheus
.
HeatMapColorSchemeChooser
(
{
showRelative
:
false
,
});
{
showRelative
:
false
,
});
colorSchemeChooser
.
setColorScheme
(
colorModel
.
getContinuousColorScheme
(
_this
...
...
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