igv 2.15.8 → 2.15.9
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 +24 -3
- package/dist/igv.esm.min.js +3 -3
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +24 -3
- package/dist/igv.min.js +3 -3
- package/dist/igv.min.js.map +1 -1
- package/package.json +1 -1
package/dist/igv.js
CHANGED
|
@@ -23995,7 +23995,7 @@
|
|
|
23995
23995
|
}
|
|
23996
23996
|
};
|
|
23997
23997
|
|
|
23998
|
-
const _version = "2.15.
|
|
23998
|
+
const _version = "2.15.9";
|
|
23999
23999
|
function version() {
|
|
24000
24000
|
return _version
|
|
24001
24001
|
}
|
|
@@ -44036,7 +44036,7 @@
|
|
|
44036
44036
|
const {width} = viewport.$viewport.get(0).getBoundingClientRect();
|
|
44037
44037
|
delta.deltaX += width;
|
|
44038
44038
|
}
|
|
44039
|
-
|
|
44039
|
+
|
|
44040
44040
|
if (true === this.browser.showSampleNames) {
|
|
44041
44041
|
this.sampleNameViewport.renderSVGContext(context, delta);
|
|
44042
44042
|
}
|
|
@@ -59285,6 +59285,23 @@
|
|
|
59285
59285
|
return regionElement
|
|
59286
59286
|
}
|
|
59287
59287
|
|
|
59288
|
+
renderSVGContext(context, {deltaX, deltaY}) {
|
|
59289
|
+
|
|
59290
|
+
for (const regionElement of document.querySelectorAll('.igv-roi-region')) {
|
|
59291
|
+
|
|
59292
|
+
// body
|
|
59293
|
+
const { x, y, width, height } = regionElement.getBoundingClientRect();
|
|
59294
|
+
context.fillStyle = regionElement.style.backgroundColor;
|
|
59295
|
+
context.fillRect(x+deltaX, y+deltaY, width, height);
|
|
59296
|
+
|
|
59297
|
+
// header
|
|
59298
|
+
const header = regionElement.querySelector('div');
|
|
59299
|
+
const { x:xx, y:yy, width:ww, height:hh } = header.getBoundingClientRect();
|
|
59300
|
+
context.fillStyle = header.style.backgroundColor;
|
|
59301
|
+
context.fillRect(xx+deltaX, yy+deltaY, ww, hh);
|
|
59302
|
+
}
|
|
59303
|
+
}
|
|
59304
|
+
|
|
59288
59305
|
async getUserDefinedROISet() {
|
|
59289
59306
|
return this.roiSets.find(roiSet => true === roiSet.isUserDefined)
|
|
59290
59307
|
}
|
|
@@ -60107,9 +60124,13 @@
|
|
|
60107
60124
|
const context = new ctx(config);
|
|
60108
60125
|
|
|
60109
60126
|
// tracks -> SVG
|
|
60127
|
+
const delta = {deltaX: 0, deltaY: -y};
|
|
60110
60128
|
for (let trackView of this.trackViews) {
|
|
60111
|
-
trackView.renderSVGContext(context,
|
|
60129
|
+
trackView.renderSVGContext(context, delta);
|
|
60112
60130
|
}
|
|
60131
|
+
|
|
60132
|
+
this.roiManager.renderSVGContext(context, delta);
|
|
60133
|
+
|
|
60113
60134
|
// reset height to trim away unneeded svg canvas real estate. Yes, a bit of a hack.
|
|
60114
60135
|
context.setHeight(height);
|
|
60115
60136
|
|