Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Remi PLANEL
bioviz-js
Commits
b78b1eff
Commit
b78b1eff
authored
Apr 03, 2019
by
Remi PLANEL
Browse files
By default draw gene as "+" strand.
parent
650de17e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripts/component/sequence/gene-shapes.ts
View file @
b78b1eff
...
@@ -8,17 +8,17 @@ export function arrowShape(
...
@@ -8,17 +8,17 @@ export function arrowShape(
const
{
position
:
{
x
,
y
,
width
}
}
=
data
;
const
{
position
:
{
x
,
y
,
width
}
}
=
data
;
const
genePath
=
path
();
const
genePath
=
path
();
if
(
width
<
arrowWidth
)
{
if
(
width
<
arrowWidth
)
{
genePath
.
moveTo
(
0
,
geneHeight
/
2
);
genePath
.
moveTo
(
0
,
0
)
genePath
.
lin
eTo
(
width
,
geneHeight
)
;
genePath
.
mov
eTo
(
0
,
geneHeight
)
genePath
.
lin
eTo
(
width
,
0
);
genePath
.
mov
eTo
(
width
,
geneHeight
/
2
)
genePath
.
closePath
();
genePath
.
closePath
();
}
}
else
{
else
{
genePath
.
moveTo
(
0
,
geneHeight
/
2
);
genePath
.
moveTo
(
0
,
0
);
genePath
.
lineTo
(
arrowWidth
,
geneHeight
);
genePath
.
lineTo
(
0
,
geneHeight
);
genePath
.
lineTo
(
width
,
geneHeight
);
genePath
.
lineTo
(
width
-
arrowWidth
,
geneHeight
);
genePath
.
lineTo
(
width
,
0
);
genePath
.
lineTo
(
width
,
geneHeight
/
2
);
genePath
.
lineTo
(
arrowWidth
,
0
);
genePath
.
lineTo
(
width
-
arrowWidth
,
0
);
genePath
.
closePath
();
genePath
.
closePath
();
}
}
return
genePath
.
toString
();
return
genePath
.
toString
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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