Commit a644b8eb authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Move type definitions to types.ts

parent 52743f08
...@@ -4,27 +4,8 @@ import { arrowShape } from "./gene-shapes"; ...@@ -4,27 +4,8 @@ import { arrowShape } from "./gene-shapes";
import linearGene from "../../layout/linear-gene"; import linearGene from "../../layout/linear-gene";
import { of } from "rxjs"; import { of } from "rxjs";
import { mergeMap } from "rxjs/operators"; import { mergeMap } from "rxjs/operators";
type Strand = "+" | "-";
export interface GeneData { import { GeneData, PositionedGeneData } from "../../types";
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
}
}
export default function () { export default function () {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment