igv 3.2.1 → 3.2.3
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 +21 -15
- package/dist/igv.esm.min.js +4 -4
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +21 -15
- package/dist/igv.min.js +4 -4
- package/dist/igv.min.js.map +1 -1
- package/package.json +1 -1
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.2.
|
|
21
|
+
***[Alignments](https://igv.org/web/release/3.2.3/examples/cram-vcf.html)***
|
|
22
22
|
|
|
23
|
-
***[Interactions](https://igv.org/web/release/3.2.
|
|
23
|
+
***[Interactions](https://igv.org/web/release/3.2.3/examples/interact.html)***
|
|
24
24
|
|
|
25
|
-
***[Copy number](https://igv.org/web/release/3.2.
|
|
25
|
+
***[Copy number](https://igv.org/web/release/3.2.3/examples/copyNumber.html)***
|
|
26
26
|
|
|
27
|
-
***[Multiple regions](https://igv.org/web/release/3.2.
|
|
27
|
+
***[Multiple regions](https://igv.org/web/release/3.2.3/examples/multi-locus.html)***
|
|
28
28
|
|
|
29
|
-
***[Mutation Annotation Format (MAF)](https://igv.org/web/release/3.2.
|
|
29
|
+
***[Mutation Annotation Format (MAF)](https://igv.org/web/release/3.2.3/examples/maf-tcga.html)***
|
|
30
30
|
|
|
31
|
-
***[Variant color options](https://igv.org/web/release/3.2.
|
|
31
|
+
***[Variant color options](https://igv.org/web/release/3.2.3/examples/variant-colors.html)***
|
|
32
32
|
|
|
33
|
-
***[More](https://igv.org/web/release/3.2.
|
|
33
|
+
***[More](https://igv.org/web/release/3.2.3/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.2.
|
|
42
|
+
can be downloaded from [https://cdn.jsdelivr.net/npm/igv@3.2.3/dist/](https://cdn.jsdelivr.net/npm/igv@3.2.3/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.2.
|
|
47
|
+
import igv from "https://cdn.jsdelivr.net/npm/igv@3.2.3/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.2.
|
|
53
|
+
<script src="https://cdn.jsdelivr.net/npm/igv@3.2.3/dist/igv.min.js"></script>
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
Alternatively you can install with npm
|
package/dist/igv.esm.js
CHANGED
|
@@ -10972,29 +10972,26 @@ class DataRangeDialog {
|
|
|
10972
10972
|
this.maximumInput.value = dataRange.max;
|
|
10973
10973
|
}
|
|
10974
10974
|
|
|
10975
|
-
// Remove existing event listeners from minimum input
|
|
10976
10975
|
this.minimumInput.onkeyup = null;
|
|
10977
|
-
this.minimumInput.
|
|
10976
|
+
this.minimumInput.onkeyup = e => {
|
|
10978
10977
|
if (e.keyCode === 13) { // Enter key
|
|
10979
10978
|
this.processResults(trackViewOrTrackViewList);
|
|
10980
10979
|
}
|
|
10981
10980
|
e.stopImmediatePropagation();
|
|
10982
|
-
}
|
|
10981
|
+
};
|
|
10983
10982
|
|
|
10984
|
-
// Remove existing event listeners from maximum input
|
|
10985
10983
|
this.maximumInput.onkeyup = null;
|
|
10986
|
-
this.maximumInput.
|
|
10984
|
+
this.maximumInput.onkeyup = e=> {
|
|
10987
10985
|
if (e.keyCode === 13) { // Enter key
|
|
10988
10986
|
e.stopImmediatePropagation();
|
|
10989
10987
|
this.processResults(trackViewOrTrackViewList);
|
|
10990
10988
|
}
|
|
10991
|
-
}
|
|
10989
|
+
};
|
|
10992
10990
|
|
|
10993
|
-
// Remove existing event listeners from OK button
|
|
10994
10991
|
this.okButton.onclick = null;
|
|
10995
|
-
this.okButton.
|
|
10992
|
+
this.okButton.onclick = () => {
|
|
10996
10993
|
this.processResults(trackViewOrTrackViewList);
|
|
10997
|
-
}
|
|
10994
|
+
};
|
|
10998
10995
|
}
|
|
10999
10996
|
|
|
11000
10997
|
processResults(trackViewOrTrackViewList) {
|
|
@@ -31906,6 +31903,17 @@ class TrackViewport extends Viewport {
|
|
|
31906
31903
|
|
|
31907
31904
|
}
|
|
31908
31905
|
|
|
31906
|
+
didPresentZoomInNotice() {
|
|
31907
|
+
|
|
31908
|
+
const a = !(undefined === this.zoomInNoticeElement);
|
|
31909
|
+
|
|
31910
|
+
if (false === a) {
|
|
31911
|
+
return a
|
|
31912
|
+
}
|
|
31913
|
+
|
|
31914
|
+
return 'flex' === this.zoomInNoticeElement.style.display
|
|
31915
|
+
}
|
|
31916
|
+
|
|
31909
31917
|
setContentHeight(contentHeight) {
|
|
31910
31918
|
super.setContentHeight(contentHeight);
|
|
31911
31919
|
if (this.featureCache) this.featureCache.redraw = true;
|
|
@@ -32349,9 +32357,7 @@ class TrackViewport extends Viewport {
|
|
|
32349
32357
|
|
|
32350
32358
|
renderSVGContext(context, {deltaX, deltaY}, includeLabel = true) {
|
|
32351
32359
|
|
|
32352
|
-
|
|
32353
|
-
|
|
32354
|
-
if (!zoomInNotice) {
|
|
32360
|
+
if (false === this.didPresentZoomInNotice()) {
|
|
32355
32361
|
|
|
32356
32362
|
const {width, height} = this.viewportElement.getBoundingClientRect();
|
|
32357
32363
|
|
|
@@ -68621,13 +68627,13 @@ class ShoeboxTrack extends TrackBase {
|
|
|
68621
68627
|
element.textContent = 'Set data range';
|
|
68622
68628
|
|
|
68623
68629
|
// Note -- menu item handlers must be functions, not arrow functions
|
|
68624
|
-
function dataRangeHandler() {
|
|
68630
|
+
function dataRangeHandler(e) {
|
|
68625
68631
|
if (this.trackView.track.selected) {
|
|
68626
68632
|
this.browser.dataRangeDialog.configure(this.trackView.browser.getSelectedTrackViews());
|
|
68627
68633
|
} else {
|
|
68628
68634
|
this.browser.dataRangeDialog.configure(this.trackView);
|
|
68629
68635
|
}
|
|
68630
|
-
this.browser.dataRangeDialog.present(
|
|
68636
|
+
this.browser.dataRangeDialog.present(e);
|
|
68631
68637
|
}
|
|
68632
68638
|
|
|
68633
68639
|
menuItems.push({element, dialog: dataRangeHandler});
|
|
@@ -69315,7 +69321,7 @@ function createReferenceFrameList(loci, genome, browserFlanking, minimumBases, v
|
|
|
69315
69321
|
})
|
|
69316
69322
|
}
|
|
69317
69323
|
|
|
69318
|
-
const _version = "3.2.
|
|
69324
|
+
const _version = "3.2.3";
|
|
69319
69325
|
function version() {
|
|
69320
69326
|
return _version
|
|
69321
69327
|
}
|