UNPKG

higlass

Version:

HiGlass Hi-C / genomic / large data viewer

27 lines (26 loc) 869 B
export default positionedTracksToAllTracks; /** * Convert the position indexed list of tracks. * * If `includeCombinedContents` is `true`, tracks inside * `combined.contents` will also be included in the output. * * @template {{ type: string } | { type: 'combined', contents: Array<T> }} T * * @param {PositionedTracks<T>} positionedTracks * @param {{ includeCombinedContents?: boolean }} options * @returns {Array<T & { position: TrackPosition }>} * */ declare function positionedTracksToAllTracks<T extends { type: string; } | { type: "combined"; contents: Array<T>; }>(positionedTracks: PositionedTracks<T>, { includeCombinedContents }?: { includeCombinedContents?: boolean; }): Array<T & { position: TrackPosition; }>; import type { PositionedTracks } from './visit-positioned-tracks'; import type { TrackPosition } from '../types';