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 +10 -10
- package/dist/igv.esm.js +8 -12
- package/dist/igv.esm.min.js +4 -4
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +8 -12
- package/dist/igv.min.js +4 -4
- package/dist/igv.min.js.map +1 -1
- package/package.json +3 -3
package/dist/igv.js
CHANGED
|
@@ -18700,13 +18700,6 @@
|
|
|
18700
18700
|
}
|
|
18701
18701
|
const range = options.range;
|
|
18702
18702
|
|
|
18703
|
-
// const isChrome = navigator.userAgent.indexOf('Chrome') > -1
|
|
18704
|
-
// const isSafari = navigator.vendor.indexOf("Apple") === 0 && /\sSafari\//.test(navigator.userAgent)
|
|
18705
|
-
// if (range && isChrome && !isAmazonV4Signed(url) && !isGoogleStorageSigned(url)) {
|
|
18706
|
-
// // Hack to prevent caching for byte-ranges. Attempt to fix net:err-cache errors in Chrome
|
|
18707
|
-
// url += url.includes("?") ? "&" : "?"
|
|
18708
|
-
// url += "someRandomSeed=" + Math.random().toString(36)
|
|
18709
|
-
// }
|
|
18710
18703
|
|
|
18711
18704
|
const xhr = new XMLHttpRequest();
|
|
18712
18705
|
const sendData = options.sendData || options.body;
|
|
@@ -18780,6 +18773,7 @@
|
|
|
18780
18773
|
}
|
|
18781
18774
|
};
|
|
18782
18775
|
|
|
18776
|
+
|
|
18783
18777
|
xhr.onerror = function (event) {
|
|
18784
18778
|
if (isGoogleURL(url) && !options.retries) {
|
|
18785
18779
|
tryGoogleAuth();
|
|
@@ -18911,7 +18905,6 @@
|
|
|
18911
18905
|
}
|
|
18912
18906
|
|
|
18913
18907
|
|
|
18914
|
-
|
|
18915
18908
|
/**
|
|
18916
18909
|
* Return a Google oAuth token, triggering a sign in if required. This method should not be called until we know
|
|
18917
18910
|
* a token is required, that is until we've tried the url and received a 401, 403, or 404.
|
|
@@ -19070,6 +19063,7 @@
|
|
|
19070
19063
|
}
|
|
19071
19064
|
}
|
|
19072
19065
|
|
|
19066
|
+
|
|
19073
19067
|
const igvxhr = new IGVXhr();
|
|
19074
19068
|
|
|
19075
19069
|
/*
|
|
@@ -23950,7 +23944,7 @@
|
|
|
23950
23944
|
}
|
|
23951
23945
|
};
|
|
23952
23946
|
|
|
23953
|
-
const _version = "2.15.
|
|
23947
|
+
const _version = "2.15.6";
|
|
23954
23948
|
function version() {
|
|
23955
23949
|
return _version
|
|
23956
23950
|
}
|
|
@@ -30285,7 +30279,8 @@
|
|
|
30285
30279
|
this.config = config || {};
|
|
30286
30280
|
this.genome = genome;
|
|
30287
30281
|
this.indexURL = config.indexURL;
|
|
30288
|
-
this.indexed = config.indexed;
|
|
30282
|
+
this.indexed = config.indexed || this.indexURL !== undefined;
|
|
30283
|
+
this.queryable = this.indexed;
|
|
30289
30284
|
|
|
30290
30285
|
if (isFile(this.config.url)) {
|
|
30291
30286
|
this.filename = this.config.url.name;
|
|
@@ -31945,7 +31940,7 @@
|
|
|
31945
31940
|
|
|
31946
31941
|
const queryableFormats = new Set(["bigwig", "bw", "bigbed", "bb", "biginteract", "biggenepred", "bignarrowpeak", "tdf"]);
|
|
31947
31942
|
|
|
31948
|
-
this.queryable = config.queryable === true; // False by default, unless explicitly set
|
|
31943
|
+
this.queryable = config.indexURL || config.queryable === true; // False by default, unless explicitly set
|
|
31949
31944
|
if (config.reader) {
|
|
31950
31945
|
// Explicit reader implementation
|
|
31951
31946
|
this.reader = config.reader;
|
|
@@ -32043,6 +32038,7 @@
|
|
|
32043
32038
|
// * view is "whole genome" but no features are loaded
|
|
32044
32039
|
// * cache is disabled
|
|
32045
32040
|
// * cache does not contain requested range
|
|
32041
|
+
// const containsRange = this.featureCache.containsRange(new GenomicInterval(queryChr, start, end))
|
|
32046
32042
|
if ((isWholeGenome && !this.wgFeatures && this.supportsWholeGenome()) ||
|
|
32047
32043
|
this.config.disableCache ||
|
|
32048
32044
|
!this.featureCache ||
|
|
@@ -40883,7 +40879,7 @@
|
|
|
40883
40879
|
|
|
40884
40880
|
function onDragEnd() {
|
|
40885
40881
|
if (track.trackView && track.displayMode !== "SQUISHED") {
|
|
40886
|
-
track.trackView.
|
|
40882
|
+
track.trackView.updateViews(); // TODO -- refine this to the viewport that was dragged after DOM refactor
|
|
40887
40883
|
}
|
|
40888
40884
|
}
|
|
40889
40885
|
|