igv 2.15.4 → 2.15.6

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 [Wiki](https://github.com/ig
18
18
 
19
19
  # Examples
20
20
 
21
- ***[Alignments](https://igv.org/web/release/2.15.4/examples/cram-vcf.html)***
21
+ ***[Alignments](https://igv.org/web/release/2.15.5/examples/cram-vcf.html)***
22
22
 
23
- ***[Interactions](https://igv.org/web/release/2.15.4/examples/interact.html)***
23
+ ***[Interactions](https://igv.org/web/release/2.15.5/examples/interact.html)***
24
24
 
25
- ***[Copy number](https://igv.org/web/release/2.15.4/examples/copyNumber.html)***
25
+ ***[Copy number](https://igv.org/web/release/2.15.5/examples/copyNumber.html)***
26
26
 
27
- ***[Multiple regions](https://igv.org/web/release/2.15.4/examples/multi-locus.html)***
27
+ ***[Multiple regions](https://igv.org/web/release/2.15.5/examples/multi-locus.html)***
28
28
 
29
- ***[Mutation Annotation Format (MAF)](https://igv.org/web/release/2.15.4/examples/maf-tcga.html)***
29
+ ***[Mutation Annotation Format (MAF)](https://igv.org/web/release/2.15.5/examples/maf-tcga.html)***
30
30
 
31
- ***[Variant color options](https://igv.org/web/release/2.15.4/examples/variant-colors.html)***
31
+ ***[Variant color options](https://igv.org/web/release/2.15.5/examples/variant-colors.html)***
32
32
 
33
- ***[More](https://igv.org/web/release/2.15.4/examples/)***
33
+ ***[More](https://igv.org/web/release/2.15.5/examples/)***
34
34
 
35
35
 
36
36
  # Quickstart
@@ -39,18 +39,18 @@ Below are examples and a quickstart guide. See the [Wiki](https://github.com/ig
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@2.15.4/dist/](https://cdn.jsdelivr.net/npm/igv@2.15.4/dist/).
42
+ can be downloaded from [https://cdn.jsdelivr.net/npm/igv@2.15.5/dist/](https://cdn.jsdelivr.net/npm/igv@2.15.5/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@2.15.4/dist/igv.esm.min.js"
47
+ import igv from "https://cdn.jsdelivr.net/npm/igv@2.15.5/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@2.15.4/dist/igv.min.js"></script>
53
+ <script src="https://cdn.jsdelivr.net/npm/igv@2.15.5/dist/igv.min.js"></script>
54
54
  ```
55
55
 
56
56
  Alternatively you can install with npm
package/dist/igv.esm.js CHANGED
@@ -18694,13 +18694,6 @@ class IGVXhr {
18694
18694
  }
18695
18695
  const range = options.range;
18696
18696
 
18697
- // const isChrome = navigator.userAgent.indexOf('Chrome') > -1
18698
- // const isSafari = navigator.vendor.indexOf("Apple") === 0 && /\sSafari\//.test(navigator.userAgent)
18699
- // if (range && isChrome && !isAmazonV4Signed(url) && !isGoogleStorageSigned(url)) {
18700
- // // Hack to prevent caching for byte-ranges. Attempt to fix net:err-cache errors in Chrome
18701
- // url += url.includes("?") ? "&" : "?"
18702
- // url += "someRandomSeed=" + Math.random().toString(36)
18703
- // }
18704
18697
 
18705
18698
  const xhr = new XMLHttpRequest();
18706
18699
  const sendData = options.sendData || options.body;
@@ -18774,6 +18767,7 @@ class IGVXhr {
18774
18767
  }
18775
18768
  };
18776
18769
 
18770
+
18777
18771
  xhr.onerror = function (event) {
18778
18772
  if (isGoogleURL(url) && !options.retries) {
18779
18773
  tryGoogleAuth();
@@ -18905,7 +18899,6 @@ function isGoogleStorageSigned(url) {
18905
18899
  }
18906
18900
 
18907
18901
 
18908
-
18909
18902
  /**
18910
18903
  * Return a Google oAuth token, triggering a sign in if required. This method should not be called until we know
18911
18904
  * a token is required, that is until we've tried the url and received a 401, 403, or 404.
@@ -19064,6 +19057,7 @@ function getGlobalObject() {
19064
19057
  }
19065
19058
  }
19066
19059
 
19060
+
19067
19061
  const igvxhr = new IGVXhr();
19068
19062
 
19069
19063
  /*
@@ -23944,7 +23938,7 @@ const Cytoband = function (start, end, name, typestain) {
23944
23938
  }
23945
23939
  };
23946
23940
 
23947
- const _version = "2.15.4";
23941
+ const _version = "2.15.6";
23948
23942
  function version() {
23949
23943
  return _version
23950
23944
  }
@@ -30279,7 +30273,8 @@ class FeatureFileReader {
30279
30273
  this.config = config || {};
30280
30274
  this.genome = genome;
30281
30275
  this.indexURL = config.indexURL;
30282
- this.indexed = config.indexed;
30276
+ this.indexed = config.indexed || this.indexURL !== undefined;
30277
+ this.queryable = this.indexed;
30283
30278
 
30284
30279
  if (isFile(this.config.url)) {
30285
30280
  this.filename = this.config.url.name;
@@ -31939,7 +31934,7 @@ class TextFeatureSource {
31939
31934
 
31940
31935
  const queryableFormats = new Set(["bigwig", "bw", "bigbed", "bb", "biginteract", "biggenepred", "bignarrowpeak", "tdf"]);
31941
31936
 
31942
- this.queryable = config.queryable === true; // False by default, unless explicitly set
31937
+ this.queryable = config.indexURL || config.queryable === true; // False by default, unless explicitly set
31943
31938
  if (config.reader) {
31944
31939
  // Explicit reader implementation
31945
31940
  this.reader = config.reader;
@@ -32037,6 +32032,7 @@ class TextFeatureSource {
32037
32032
  // * view is "whole genome" but no features are loaded
32038
32033
  // * cache is disabled
32039
32034
  // * cache does not contain requested range
32035
+ // const containsRange = this.featureCache.containsRange(new GenomicInterval(queryChr, start, end))
32040
32036
  if ((isWholeGenome && !this.wgFeatures && this.supportsWholeGenome()) ||
32041
32037
  this.config.disableCache ||
32042
32038
  !this.featureCache ||
@@ -40877,7 +40873,7 @@ function monitorTrackDrag(track) {
40877
40873
 
40878
40874
  function onDragEnd() {
40879
40875
  if (track.trackView && track.displayMode !== "SQUISHED") {
40880
- track.trackView.repaintViews(); // TODO -- refine this to the viewport that was dragged after DOM refactor
40876
+ track.trackView.updateViews(); // TODO -- refine this to the viewport that was dragged after DOM refactor
40881
40877
  }
40882
40878
  }
40883
40879