higlass
Version:
HiGlass Hi-C / genomic / large data viewer
28 lines (27 loc) • 725 B
TypeScript
export default totalTrackPixelHeight;
export type Tracks = {
top?: {
height: number;
}[] | undefined;
center?: {
height: number;
}[] | undefined;
bottom?: {
height: number;
}[] | undefined;
};
/**
* @typedef Tracks
* @prop {{ height: number }[]=} top
* @prop {{ height: number }[]=} center
* @prop {{ height: number }[]=} bottom
*/
/**
* Calculate the total height of the horizontal and center tracks in pixels
*
* @param {{ tracks?: Tracks }} view - A typical view configuration containing a list of tracks
* @returns {number} - The total height of the top, center and bottom tracks
*/
declare function totalTrackPixelHeight(view: {
tracks?: Tracks;
}): number;