@jbrowse/plugin-linear-genome-view
Version:
JBrowse 2 linear genome view
9 lines (8 loc) • 351 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.totalHeight = totalHeight;
const util_1 = require("@jbrowse/core/util");
function totalHeight(tracks, textHeight, trackLabels) {
return (0, util_1.sum)(tracks.map(t => t.displays[0].height +
(['none', 'left'].includes(trackLabels) ? 0 : textHeight)));
}