igv 3.2.2 → 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 +15 -20
- package/dist/igv.esm.min.js +4 -4
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +15 -20
- 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,17 +31903,15 @@ class TrackViewport extends Viewport {
|
|
|
31906
31903
|
|
|
31907
31904
|
}
|
|
31908
31905
|
|
|
31909
|
-
|
|
31906
|
+
didPresentZoomInNotice() {
|
|
31910
31907
|
|
|
31911
31908
|
const a = !(undefined === this.zoomInNoticeElement);
|
|
31912
|
-
|
|
31913
|
-
if (
|
|
31914
|
-
|
|
31915
|
-
} else {
|
|
31916
|
-
b = false;
|
|
31909
|
+
|
|
31910
|
+
if (false === a) {
|
|
31911
|
+
return a
|
|
31917
31912
|
}
|
|
31918
31913
|
|
|
31919
|
-
return
|
|
31914
|
+
return 'flex' === this.zoomInNoticeElement.style.display
|
|
31920
31915
|
}
|
|
31921
31916
|
|
|
31922
31917
|
setContentHeight(contentHeight) {
|
|
@@ -32362,7 +32357,7 @@ class TrackViewport extends Viewport {
|
|
|
32362
32357
|
|
|
32363
32358
|
renderSVGContext(context, {deltaX, deltaY}, includeLabel = true) {
|
|
32364
32359
|
|
|
32365
|
-
if (
|
|
32360
|
+
if (false === this.didPresentZoomInNotice()) {
|
|
32366
32361
|
|
|
32367
32362
|
const {width, height} = this.viewportElement.getBoundingClientRect();
|
|
32368
32363
|
|
|
@@ -68632,13 +68627,13 @@ class ShoeboxTrack extends TrackBase {
|
|
|
68632
68627
|
element.textContent = 'Set data range';
|
|
68633
68628
|
|
|
68634
68629
|
// Note -- menu item handlers must be functions, not arrow functions
|
|
68635
|
-
function dataRangeHandler() {
|
|
68630
|
+
function dataRangeHandler(e) {
|
|
68636
68631
|
if (this.trackView.track.selected) {
|
|
68637
68632
|
this.browser.dataRangeDialog.configure(this.trackView.browser.getSelectedTrackViews());
|
|
68638
68633
|
} else {
|
|
68639
68634
|
this.browser.dataRangeDialog.configure(this.trackView);
|
|
68640
68635
|
}
|
|
68641
|
-
this.browser.dataRangeDialog.present(
|
|
68636
|
+
this.browser.dataRangeDialog.present(e);
|
|
68642
68637
|
}
|
|
68643
68638
|
|
|
68644
68639
|
menuItems.push({element, dialog: dataRangeHandler});
|
|
@@ -69326,7 +69321,7 @@ function createReferenceFrameList(loci, genome, browserFlanking, minimumBases, v
|
|
|
69326
69321
|
})
|
|
69327
69322
|
}
|
|
69328
69323
|
|
|
69329
|
-
const _version = "3.2.
|
|
69324
|
+
const _version = "3.2.3";
|
|
69330
69325
|
function version() {
|
|
69331
69326
|
return _version
|
|
69332
69327
|
}
|