Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pbarth
Genome-viewer
Commits
ecdf165d
Commit
ecdf165d
authored
Oct 28, 2018
by
Raphael Müller
Browse files
added new default lane color property to genome vuer
parent
c88a9dd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
genome-vuer/src/js/genome_viewer.js
View file @
ecdf165d
...
...
@@ -13,7 +13,7 @@ Vue.component("genome-viewer",{
<axis :x="to_w(0)" :y="to_h(0)" :xOffset="10" :vOffset="10" :height="one_height" :width="width" :start="axisStart" :stop="axisStop" :genomeSize="length*100">
</axis>
<!-- -->
<lane v-for="lane in lanes" :key="lane.id" :x="to_w(0)" :y="to_h(lane)" :height="2*one_height" :width="to_w(100)" color="
#FF00BF
">
<lane v-for="lane in lanes" :key="lane.id" :x="to_w(0)" :y="to_h(lane)" :height="2*one_height" :width="to_w(100)"
:
color="
defaultLaneColor
">
</lane>
<feature v-for="(feature, index) in featureData" :key="feature.name" :feature-id="feature.name" :svg-width="genomeToPixel(feature.end)-genomeToPixel(feature.start)" :svg-height="one_height" :svg-x="genomeToPixel(feature.start)" :svg-y="to_h(lane(feature.strand))+ one_height/2" :color="getColor(feature)" :border-color="(feature.color_border)?feature.color_border : defaultBorderColor" @click="featureClick">
</feature>
...
...
@@ -61,6 +61,9 @@ Vue.component("genome-viewer",{
}
}
},
defaultLaneColor
:
{
default
:
"
#FF00BF
"
},
},
computed
:{
stops
(){
...
...
Write
Preview
Supports
Markdown
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