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
b218927e
Commit
b218927e
authored
Oct 15, 2018
by
Raphael Müller
Browse files
merged origin/lanes into grid
parents
65d84b01
334b3be6
Changes
1
Hide whitespace changes
Inline
Side-by-side
genome-vuer/src/js/lane.js
View file @
b218927e
Vue
.
component
(
"
lane
"
,{
template
:
`
<svg :
x="x" :y="y" :width="width" :
height="height">
<line :x1="0" :y1="height/2" :x2="width" :y2="height/2" st
yle="stroke:rgb(255,0,0);stroke-width:2
" />
<svg :height="height
" :x="x" :y="y
">
<line :x1="
x+1
0" :y1="height/2" :x2="width" :y2="height/2" st
roke="#39FF14" stroke-width="2" stroke-dasharray="20, 5
" />
</svg>
`
,
props
:
{
width
:
{},
height
:
{},
x
:
{},
y
:
{},
x
:
{
validator
(
value
)
{
return
true
}
},
y
:
{
validator
(
value
)
{
return
true
}
},
height
:
{
validator
(
value
)
{
return
true
}
},
width
:
{
validator
(
value
)
{
return
true
}
},
},
methods
:
{
my_method
(){
...
...
@@ -18,9 +34,18 @@ Vue.component("lane",{
},
},
computed
:
{
Todo
(){
return
this
.
todo
.
charAt
(
0
).
toUpperCase
()
+
this
.
todo
.
substr
(
1
);
},
// y() {
// return y;
// },
// x() {
// return lib.map(0, this.o.xMin, this.o.xMax, 0, this.svg.w);
// },
// tickXs() {
// const ticks = lib.range(this.o.xMin, this.o.xMax, 10)
// return ticks.map(tick =>
// lib.map(tick, this.o.xMin, this.o.xMax, 0, this.svg.w)
// );
// },
},
data
:
function
(){
return
{
...
...
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