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
Remi PLANEL
bioviz-js
Commits
934f7721
Commit
934f7721
authored
May 29, 2019
by
Remi PLANEL
Browse files
Change type genomeAxis. Expect a SVGGElement
parent
49cb2080
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/scripts/component/rules/brushable-chromosome-rule.ts
View file @
934f7721
...
@@ -105,7 +105,7 @@ export default function () {
...
@@ -105,7 +105,7 @@ export default function () {
.
call
(
brush
.
move
,
[
genomicToPx
(
_data
.
window
[
0
]),
genomicToPx
(
_data
.
window
[
1
])]);
.
call
(
brush
.
move
,
[
genomicToPx
(
_data
.
window
[
0
]),
genomicToPx
(
_data
.
window
[
1
])]);
globalAxisUpdate
globalAxisUpdate
.
select
<
SVGElement
>
(
"
.
"
+
htmlClassName
.
genericRule
)
.
select
<
SVG
G
Element
>
(
"
.
"
+
htmlClassName
.
genericRule
)
.
datum
((
d
:
BrushableAxisData
):
GenericAxisData
=>
({
title
:
d
.
title
,
interval
:
[
d
.
interval
[
0
],
d
.
interval
[
1
]]
}))
.
datum
((
d
:
BrushableAxisData
):
GenericAxisData
=>
({
title
:
d
.
title
,
interval
:
[
d
.
interval
[
0
],
d
.
interval
[
1
]]
}))
.
call
(
genomeAxisComponent
,
width
,
yPosition
);
.
call
(
genomeAxisComponent
,
width
,
yPosition
);
...
...
src/scripts/component/rules/chromosome-rule.ts
View file @
934f7721
...
@@ -11,7 +11,7 @@ export default function () {
...
@@ -11,7 +11,7 @@ export default function () {
.
range
([
0
,
0
])
.
range
([
0
,
0
])
function
genomeAxis
(
function
genomeAxis
(
_selection
:
Selection
<
SVGElement
,
GenericAxisData
,
SVGElement
,
any
>
,
_selection
:
Selection
<
SVG
G
Element
,
GenericAxisData
,
SVGElement
,
any
>
,
width
:
number
,
width
:
number
,
yPosition
:
number
=
0
yPosition
:
number
=
0
)
{
)
{
...
...
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