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
cee405ad
Commit
cee405ad
authored
May 29, 2019
by
Remi PLANEL
Browse files
Change type Gene. Expect SVGGElement
parent
934f7721
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/scripts/component/selected-chromosome.ts
View file @
cee405ad
...
@@ -78,12 +78,12 @@ export default function () {
...
@@ -78,12 +78,12 @@ export default function () {
);
);
selectedChromosomeUpdate
selectedChromosomeUpdate
.
select
<
SVGElement
>
(
"
.
"
+
classes
.
rule
)
.
select
<
SVG
G
Element
>
(
"
.
"
+
classes
.
rule
)
.
datum
<
GenericAxisData
>
(
d
=>
d
.
rule
)
.
datum
<
GenericAxisData
>
(
d
=>
d
.
rule
)
.
call
(
ruleComponent
,
width
,
0
)
.
call
(
ruleComponent
,
width
,
0
)
selectedChromosomeUpdate
selectedChromosomeUpdate
.
select
<
SVGElement
>
(
"
.
"
+
classes
.
genes
)
.
select
<
SVG
G
Element
>
(
"
.
"
+
classes
.
genes
)
.
datum
<
GeneData
[]
>
(
d
=>
d
.
genes
)
.
datum
<
GeneData
[]
>
(
d
=>
d
.
genes
)
.
call
(
geneComponent
,
ruleComponent
.
scale
(),
20
,
70
);
.
call
(
geneComponent
,
ruleComponent
.
scale
(),
20
,
70
);
...
...
src/scripts/component/sequence/gene.ts
View file @
cee405ad
...
@@ -11,7 +11,7 @@ import { GeneData, PositionedGeneData } from "../../types";
...
@@ -11,7 +11,7 @@ import { GeneData, PositionedGeneData } from "../../types";
export
default
function
()
{
export
default
function
()
{
function
gene
(
function
gene
(
_selection
:
Selection
<
SVGElement
,
Array
<
GeneData
>
,
SVGElement
,
any
>
,
_selection
:
Selection
<
SVG
G
Element
,
Array
<
GeneData
>
,
any
,
any
>
,
xScale
:
ScaleLinear
<
number
,
number
>
,
xScale
:
ScaleLinear
<
number
,
number
>
,
geneHeight
:
number
=
30
,
geneHeight
:
number
=
30
,
yPosition
:
number
=
60
yPosition
:
number
=
60
...
...
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