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
a644b8eb
Commit
a644b8eb
authored
Apr 09, 2019
by
Remi PLANEL
Browse files
Move type definitions to types.ts
parent
52743f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripts/component/sequence/gene.ts
View file @
a644b8eb
...
...
@@ -4,27 +4,8 @@ import { arrowShape } from "./gene-shapes";
import
linearGene
from
"
../../layout/linear-gene
"
;
import
{
of
}
from
"
rxjs
"
;
import
{
mergeMap
}
from
"
rxjs/operators
"
;
type
Strand
=
"
+
"
|
"
-
"
;
export
interface
GeneData
{
eventHandler
?:
{
click
:
([
begin
,
end
]:
[
number
,
number
])
=>
void
},
name
:
string
,
strand
:
Strand
,
begin
:
number
,
end
:
number
,
gene
:
string
,
fill
?:
string
,
stroke
?:
string
}
export
interface
PositionedGeneData
extends
GeneData
{
position
:
{
x
:
number
,
y
:
number
,
width
:
number
}
}
import
{
GeneData
,
PositionedGeneData
}
from
"
../../types
"
;
export
default
function
()
{
...
...
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