Commit 22e07a2d authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Add types GenericAxisData, GlobalAxisData, GenomeBrowserData

parent 819ff3ad
......@@ -19,3 +19,38 @@ export interface PositionedGeneData extends GeneData {
width: number
}
}
export interface GenericAxisData {
title: string,
interval: [number, number]
}
export interface GlobalAxisData extends GenericAxisData {
window: [number, number]
}
export interface GenomeBrowserData {
width: number,
genomeWindow: {
center: number,
size: number
},
currentMousePosition: number,
chromosome: {
size: number,
genes: GeneData[]
},
axis: {
global: GlobalAxisData,
chromosome: GenericAxisData
}
eventHandler?: {
dragstarted: (elem: SVGElement) => void,
dragged: () => void,
dragended: (elem: SVGElement) => void
}
}
Markdown is supported
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