igv 2.15.8 → 2.15.10
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 +27 -5
- package/dist/igv.esm.min.js +5 -5
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +27 -5
- package/dist/igv.min.js +5 -5
- package/dist/igv.min.js.map +1 -1
- package/package.json +2 -2
package/dist/igv.js
CHANGED
|
@@ -18679,6 +18679,7 @@
|
|
|
18679
18679
|
async _loadURL(url, options) {
|
|
18680
18680
|
|
|
18681
18681
|
const self = this;
|
|
18682
|
+
const _url = url; // The unmodified URL, needed in case of an oAuth retry
|
|
18682
18683
|
|
|
18683
18684
|
url = mapUrl$1(url);
|
|
18684
18685
|
|
|
@@ -18840,10 +18841,10 @@
|
|
|
18840
18841
|
|
|
18841
18842
|
async function tryGoogleAuth() {
|
|
18842
18843
|
try {
|
|
18843
|
-
const accessToken = await fetchGoogleAccessToken(
|
|
18844
|
+
const accessToken = await fetchGoogleAccessToken(_url);
|
|
18844
18845
|
options.retries = 1;
|
|
18845
18846
|
options.oauthToken = accessToken;
|
|
18846
|
-
const response = await self.load(
|
|
18847
|
+
const response = await self.load(_url, options);
|
|
18847
18848
|
resolve(response);
|
|
18848
18849
|
} catch (e) {
|
|
18849
18850
|
if (e.error) {
|
|
@@ -23995,7 +23996,7 @@
|
|
|
23995
23996
|
}
|
|
23996
23997
|
};
|
|
23997
23998
|
|
|
23998
|
-
const _version = "2.15.
|
|
23999
|
+
const _version = "2.15.10";
|
|
23999
24000
|
function version() {
|
|
24000
24001
|
return _version
|
|
24001
24002
|
}
|
|
@@ -44036,7 +44037,7 @@
|
|
|
44036
44037
|
const {width} = viewport.$viewport.get(0).getBoundingClientRect();
|
|
44037
44038
|
delta.deltaX += width;
|
|
44038
44039
|
}
|
|
44039
|
-
|
|
44040
|
+
|
|
44040
44041
|
if (true === this.browser.showSampleNames) {
|
|
44041
44042
|
this.sampleNameViewport.renderSVGContext(context, delta);
|
|
44042
44043
|
}
|
|
@@ -59285,6 +59286,23 @@
|
|
|
59285
59286
|
return regionElement
|
|
59286
59287
|
}
|
|
59287
59288
|
|
|
59289
|
+
renderSVGContext(context, {deltaX, deltaY}) {
|
|
59290
|
+
|
|
59291
|
+
for (const regionElement of document.querySelectorAll('.igv-roi-region')) {
|
|
59292
|
+
|
|
59293
|
+
// body
|
|
59294
|
+
const { x, y, width, height } = regionElement.getBoundingClientRect();
|
|
59295
|
+
context.fillStyle = regionElement.style.backgroundColor;
|
|
59296
|
+
context.fillRect(x+deltaX, y+deltaY, width, height);
|
|
59297
|
+
|
|
59298
|
+
// header
|
|
59299
|
+
const header = regionElement.querySelector('div');
|
|
59300
|
+
const { x:xx, y:yy, width:ww, height:hh } = header.getBoundingClientRect();
|
|
59301
|
+
context.fillStyle = header.style.backgroundColor;
|
|
59302
|
+
context.fillRect(xx+deltaX, yy+deltaY, ww, hh);
|
|
59303
|
+
}
|
|
59304
|
+
}
|
|
59305
|
+
|
|
59288
59306
|
async getUserDefinedROISet() {
|
|
59289
59307
|
return this.roiSets.find(roiSet => true === roiSet.isUserDefined)
|
|
59290
59308
|
}
|
|
@@ -60107,9 +60125,13 @@
|
|
|
60107
60125
|
const context = new ctx(config);
|
|
60108
60126
|
|
|
60109
60127
|
// tracks -> SVG
|
|
60128
|
+
const delta = {deltaX: 0, deltaY: -y};
|
|
60110
60129
|
for (let trackView of this.trackViews) {
|
|
60111
|
-
trackView.renderSVGContext(context,
|
|
60130
|
+
trackView.renderSVGContext(context, delta);
|
|
60112
60131
|
}
|
|
60132
|
+
|
|
60133
|
+
this.roiManager.renderSVGContext(context, delta);
|
|
60134
|
+
|
|
60113
60135
|
// reset height to trim away unneeded svg canvas real estate. Yes, a bit of a hack.
|
|
60114
60136
|
context.setHeight(height);
|
|
60115
60137
|
|