igv 3.7.0 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,19 +18,19 @@ Below are examples and a quickstart guide. See the [developer documentation](ht
18
18
 
19
19
  # Examples
20
20
 
21
- ***[Alignments](https://igv.org/web/release/3.7.0/examples/cram-vcf.html)***
21
+ ***[Alignments](https://igv.org/web/release/3.7.1/examples/cram-vcf.html)***
22
22
 
23
- ***[Interactions](https://igv.org/web/release/3.7.0/examples/interact.html)***
23
+ ***[Interactions](https://igv.org/web/release/3.7.1/examples/interact.html)***
24
24
 
25
- ***[Copy number](https://igv.org/web/release/3.7.0/examples/copyNumber.html)***
25
+ ***[Copy number](https://igv.org/web/release/3.7.1/examples/copyNumber.html)***
26
26
 
27
- ***[Multiple regions](https://igv.org/web/release/3.7.0/examples/multi-locus.html)***
27
+ ***[Multiple regions](https://igv.org/web/release/3.7.1/examples/multi-locus.html)***
28
28
 
29
- ***[Mutation Annotation Format (MAF)](https://igv.org/web/release/3.7.0/examples/maf-tcga.html)***
29
+ ***[Mutation Annotation Format (MAF)](https://igv.org/web/release/3.7.1/examples/maf-tcga.html)***
30
30
 
31
- ***[Variant color options](https://igv.org/web/release/3.7.0/examples/variant-colors.html)***
31
+ ***[Variant color options](https://igv.org/web/release/3.7.1/examples/variant-colors.html)***
32
32
 
33
- ***[More](https://igv.org/web/release/3.7.0/examples/)***
33
+ ***[More](https://igv.org/web/release/3.7.1/examples/)***
34
34
 
35
35
 
36
36
  # Quickstart
@@ -39,18 +39,18 @@ Below are examples and a quickstart guide. See the [developer documentation](ht
39
39
  igv.js consists of a single javascript file with no external dependencies.
40
40
 
41
41
  Pre-built files for script include, AMD, or CJS module systems (igv.min.js) and an ES6 module (igv.esm.min.js)
42
- can be downloaded from [https://cdn.jsdelivr.net/npm/igv@3.7.0/dist/](https://cdn.jsdelivr.net/npm/igv@3.7.0/dist/).
42
+ can be downloaded from [https://cdn.jsdelivr.net/npm/igv@3.7.1/dist/](https://cdn.jsdelivr.net/npm/igv@3.7.1/dist/).
43
43
 
44
44
  To import igv as an ES6 module
45
45
 
46
46
  ```javascript
47
- import igv from "https://cdn.jsdelivr.net/npm/igv@3.7.0/dist/igv.esm.min.js"
47
+ import igv from "https://cdn.jsdelivr.net/npm/igv@3.7.1/dist/igv.esm.min.js"
48
48
  ```
49
49
 
50
50
  Or as a script include (defines the "igv" global)
51
51
 
52
52
  ```html
53
- <script src="https://cdn.jsdelivr.net/npm/igv@3.7.0/dist/igv.min.js"></script>
53
+ <script src="https://cdn.jsdelivr.net/npm/igv@3.7.1/dist/igv.min.js"></script>
54
54
  ```
55
55
 
56
56
  Alternatively you can install with npm
package/dist/igv.esm.js CHANGED
@@ -44251,7 +44251,7 @@ class MergedTrack extends TrackBase {
44251
44251
  track.autoscaleGroup = name;
44252
44252
  }
44253
44253
  track.isMergedTrack = false;
44254
- browser.addTrack(track);
44254
+ await browser.addTrack(track);
44255
44255
  }
44256
44256
  await browser.updateViews();
44257
44257
  browser.reorderTracks();
@@ -44337,7 +44337,7 @@ class OverlayTrackButton extends NavbarButton {
44337
44337
 
44338
44338
  const mouseClickHandler = () => {
44339
44339
  this.setVisibility(false);
44340
- trackOverlayClickHandler.call(this);
44340
+ this.trackOverlayClickHandler();
44341
44341
  };
44342
44342
 
44343
44343
  this.boundMouseClickHandler = mouseClickHandler.bind(this);
@@ -44347,50 +44347,49 @@ class OverlayTrackButton extends NavbarButton {
44347
44347
  this.setVisibility(true);
44348
44348
 
44349
44349
  }
44350
- }
44351
44350
 
44352
- async function trackOverlayClickHandler(e) {
44351
+ async trackOverlayClickHandler() {
44353
44352
 
44354
- if (true === isOverlayTrackCriteriaMet(this.browser)) {
44353
+ if (true === isOverlayTrackCriteriaMet(this.browser)) {
44355
44354
 
44356
- const tracks = this.browser.getSelectedTrackViews().map(({track}) => track);
44357
- for (const track of tracks) {
44358
- track.selected = false;
44359
- }
44355
+ const tracks = this.browser.getSelectedTrackViews().map(({track}) => track);
44356
+ for (const track of tracks) {
44357
+ track.selected = false;
44358
+ }
44360
44359
 
44361
- // Flatten any merged tracks. Must do this before their removal
44362
- const flattenedTracks = [];
44363
- for (let t of tracks) {
44364
- if ("merged" === t.type) {
44365
- flattenedTracks.push(...t.tracks);
44366
- } else {
44367
- flattenedTracks.push(t);
44360
+ // Flatten any merged tracks. Must do this before their removal
44361
+ const flattenedTracks = [];
44362
+ for (let t of tracks) {
44363
+ if ("merged" === t.type) {
44364
+ flattenedTracks.push(...t.tracks);
44365
+ } else {
44366
+ flattenedTracks.push(t);
44367
+ }
44368
44368
  }
44369
- }
44370
44369
 
44371
- const config =
44372
- {
44373
- name: 'Overlay',
44374
- type: 'merged',
44375
- autoscale: false,
44376
- alpha: 0.5, //fudge * (1.0/tracks.length),
44377
- height: Math.max(...tracks.map(({height}) => height)),
44378
- order: Math.min(...tracks.map(({order}) => order)),
44379
- };
44370
+ const config =
44371
+ {
44372
+ name: 'Overlay',
44373
+ type: 'merged',
44374
+ autoscale: false,
44375
+ alpha: 0.5, //fudge * (1.0/tracks.length),
44376
+ height: Math.max(...tracks.map(({height}) => height)),
44377
+ order: Math.min(...tracks.map(({order}) => order))
44378
+ };
44380
44379
 
44381
- const mergedTrack = new MergedTrack(config, this.browser, flattenedTracks);
44380
+ const mergedTrack = new MergedTrack(config, this.browser, flattenedTracks);
44382
44381
 
44383
- for (const track of tracks) {
44384
- const idx = this.browser.trackViews.indexOf(track.trackView);
44385
- this.browser.trackViews.splice(idx, 1);
44386
- track.trackView.dispose();
44387
- }
44382
+ for (const track of tracks) {
44383
+ const idx = this.browser.trackViews.indexOf(track.trackView);
44384
+ this.browser.trackViews.splice(idx, 1);
44385
+ track.trackView.dispose();
44386
+ }
44388
44387
 
44389
- this.browser.addTrack(mergedTrack);
44390
- await mergedTrack.trackView.updateViews();
44391
- this.browser.reorderTracks();
44388
+ await this.browser.addTrack(mergedTrack);
44389
+ await mergedTrack.trackView.updateViews();
44390
+ this.browser.reorderTracks();
44391
+ }
44392
44392
  }
44393
-
44394
44393
  }
44395
44394
 
44396
44395
  function isOverlayTrackCriteriaMet(browser) {
@@ -76477,7 +76476,7 @@ function createReferenceFrameList(loci, genome, browserFlanking, minimumBases, v
76477
76476
  })
76478
76477
  }
76479
76478
 
76480
- const _version = "3.7.0";
76479
+ const _version = "3.7.1";
76481
76480
  function version() {
76482
76481
  return _version
76483
76482
  }