diff --git a/js/igv.d.ts b/js/igv.d.ts index cfc5412fc..f527b25c2 100644 --- a/js/igv.d.ts +++ b/js/igv.d.ts @@ -582,6 +582,15 @@ interface ReferenceFrag { } interface CreateOptExtras { + /** + * + * An igv.js instance can be initialized on page load with query parameters. + * + * @type {boolean=} + * + */ + supportQueryParameters?: boolean; + /** * * Initial genomic location(s). Either a string or an array of strings. If an array a viewport is created for each location. @@ -597,6 +606,15 @@ interface CreateOptExtras { */ nucleotideColors?: Partial>; + /** + * + * A Region of Interest (ROI) is a specified genomic extent that can be configured to highlight a region + * + * @type {DefineROI[]} + * + */ + roi: DefineROI[]; + /** * * Array of configuration objects defining tracks initially displayed when app launches. @@ -639,12 +657,18 @@ declare class ROISet { isvisible: boolean; } -interface DefineROI { - url: string; +type DefineROI = { name: string; - format: string; color: string; -} +} & ({ + url: string; + indexed?: boolean; + format?: string; +} | { + chr: string; + start: number; + end: number; +}); declare class _Browser {