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
fc57a899
Commit
fc57a899
authored
Apr 03, 2019
by
Remi PLANEL
Browse files
Put negative strand on a different line that positive strand.
parent
f5137deb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/scripts/component/sequence/gene.ts
View file @
fc57a899
...
...
@@ -57,11 +57,11 @@ export default function () {
updateGenes
.
attr
(
"
transform
"
,
d
=>
"
translate(
"
+
d
.
position
.
x
+
"
,
"
+
d
.
position
.
y
+
"
)
"
);
updateGenes
.
select
<
SVGPathElement
>
(
"
path
"
)
.
style
(
"
fill
"
,
"
lightgrey
"
)
.
style
(
"
fill
"
,
d
=>
d
.
strand
===
"
+
"
?
"
indianred
"
:
"
steelblue
"
)
.
attr
(
"
transform
"
,
({
strand
,
position
:
{
width
}
})
=>
(
strand
===
"
-
"
)
?
"
translate(
"
+
width
+
"
,
"
+
geneHeight
+
"
) rotate(180)
"
?
"
translate(0,
"
+
(
geneHeight
+
5
)
+
"
)
translate(
"
+
width
+
"
,
"
+
geneHeight
+
"
) rotate(180)
"
:
null
)
.
attr
(
"
d
"
,
d
=>
arrowShape
(
d
,
geneHeight
))
...
...
src/scripts/index.ts
View file @
fc57a899
...
...
@@ -44,7 +44,7 @@ const genes: Array<GeneData> = [
function
draw
(
centerGenome
:
number
)
{
const
svg
=
select
<
SVGSVGElement
,
any
>
(
"
svg
"
).
attr
(
"
width
"
,
width
+
1
00
).
attr
(
"
height
"
,
900
);
const
svg
=
select
<
SVGSVGElement
,
any
>
(
"
svg
"
).
attr
(
"
width
"
,
width
+
1
).
attr
(
"
height
"
,
900
);
const
genomeAxisElem
=
svg
.
select
<
SVGElement
>
(
"
#axis
"
);
const
geneElem
=
svg
.
select
<
SVGElement
>
(
"
#genes
"
);
genomeAxisElem
...
...
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