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

Set a max window size of brush

parent 432eb0e9
...@@ -159,6 +159,7 @@ function getGenomeBrowserData(state: State) { ...@@ -159,6 +159,7 @@ function getGenomeBrowserData(state: State) {
title: chromosomeTitle + " (" + chromosomeSize + " bp)", title: chromosomeTitle + " (" + chromosomeSize + " bp)",
interval: chromInterval, interval: chromInterval,
window, window,
maxWindowSize: chromosomeSize,
eventHandler: { eventHandler: {
brushed: brushedCallback brushed: brushedCallback
} }
......
...@@ -29,6 +29,7 @@ export interface GenericAxisData { ...@@ -29,6 +29,7 @@ export interface GenericAxisData {
export interface BrushableAxisData extends GenericAxisData { export interface BrushableAxisData extends GenericAxisData {
window: [number, number], window: [number, number],
maxWindowSize: number,
eventHandler?: { eventHandler?: {
brushed: (scale: ScaleLinear<number, number>) => void brushed: (scale: ScaleLinear<number, number>) => void
} }
......
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