igv 3.2.1 → 3.2.2

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 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.1/examples/cram-vcf.html)***
21
+ ***[Alignments](https://igv.org/web/release/3.2.2/examples/cram-vcf.html)***
22
22
 
23
- ***[Interactions](https://igv.org/web/release/3.2.1/examples/interact.html)***
23
+ ***[Interactions](https://igv.org/web/release/3.2.2/examples/interact.html)***
24
24
 
25
- ***[Copy number](https://igv.org/web/release/3.2.1/examples/copyNumber.html)***
25
+ ***[Copy number](https://igv.org/web/release/3.2.2/examples/copyNumber.html)***
26
26
 
27
- ***[Multiple regions](https://igv.org/web/release/3.2.1/examples/multi-locus.html)***
27
+ ***[Multiple regions](https://igv.org/web/release/3.2.2/examples/multi-locus.html)***
28
28
 
29
- ***[Mutation Annotation Format (MAF)](https://igv.org/web/release/3.2.1/examples/maf-tcga.html)***
29
+ ***[Mutation Annotation Format (MAF)](https://igv.org/web/release/3.2.2/examples/maf-tcga.html)***
30
30
 
31
- ***[Variant color options](https://igv.org/web/release/3.2.1/examples/variant-colors.html)***
31
+ ***[Variant color options](https://igv.org/web/release/3.2.2/examples/variant-colors.html)***
32
32
 
33
- ***[More](https://igv.org/web/release/3.2.1/examples/)***
33
+ ***[More](https://igv.org/web/release/3.2.2/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.1/dist/](https://cdn.jsdelivr.net/npm/igv@3.2.1/dist/).
42
+ can be downloaded from [https://cdn.jsdelivr.net/npm/igv@3.2.2/dist/](https://cdn.jsdelivr.net/npm/igv@3.2.2/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.1/dist/igv.esm.min.js"
47
+ import igv from "https://cdn.jsdelivr.net/npm/igv@3.2.2/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.1/dist/igv.min.js"></script>
53
+ <script src="https://cdn.jsdelivr.net/npm/igv@3.2.2/dist/igv.min.js"></script>
54
54
  ```
55
55
 
56
56
  Alternatively you can install with npm
package/dist/igv.esm.js CHANGED
@@ -31906,6 +31906,19 @@ class TrackViewport extends Viewport {
31906
31906
 
31907
31907
  }
31908
31908
 
31909
+ isZoomLevelRenderable() {
31910
+
31911
+ const a = !(undefined === this.zoomInNoticeElement);
31912
+ let b;
31913
+ if (true === a) {
31914
+ b = 'none' === this.zoomInNoticeElement.style.display;
31915
+ } else {
31916
+ b = false;
31917
+ }
31918
+
31919
+ return a === true && b === true
31920
+ }
31921
+
31909
31922
  setContentHeight(contentHeight) {
31910
31923
  super.setContentHeight(contentHeight);
31911
31924
  if (this.featureCache) this.featureCache.redraw = true;
@@ -32349,9 +32362,7 @@ class TrackViewport extends Viewport {
32349
32362
 
32350
32363
  renderSVGContext(context, {deltaX, deltaY}, includeLabel = true) {
32351
32364
 
32352
- const zoomInNotice = this.zoomInNoticeElement && this.zoomInNoticeElement.style.display !== 'flex';
32353
-
32354
- if (!zoomInNotice) {
32365
+ if (true === this.isZoomLevelRenderable()) {
32355
32366
 
32356
32367
  const {width, height} = this.viewportElement.getBoundingClientRect();
32357
32368
 
@@ -69315,7 +69326,7 @@ function createReferenceFrameList(loci, genome, browserFlanking, minimumBases, v
69315
69326
  })
69316
69327
  }
69317
69328
 
69318
- const _version = "3.2.1";
69329
+ const _version = "3.2.2";
69319
69330
  function version() {
69320
69331
  return _version
69321
69332
  }