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/dist/igv.js CHANGED
@@ -10978,29 +10978,26 @@
10978
10978
  this.maximumInput.value = dataRange.max;
10979
10979
  }
10980
10980
 
10981
- // Remove existing event listeners from minimum input
10982
10981
  this.minimumInput.onkeyup = null;
10983
- this.minimumInput.addEventListener('keyup', (e) => {
10982
+ this.minimumInput.onkeyup = e => {
10984
10983
  if (e.keyCode === 13) { // Enter key
10985
10984
  this.processResults(trackViewOrTrackViewList);
10986
10985
  }
10987
10986
  e.stopImmediatePropagation();
10988
- });
10987
+ };
10989
10988
 
10990
- // Remove existing event listeners from maximum input
10991
10989
  this.maximumInput.onkeyup = null;
10992
- this.maximumInput.addEventListener('keyup', (e) => {
10990
+ this.maximumInput.onkeyup = e=> {
10993
10991
  if (e.keyCode === 13) { // Enter key
10994
10992
  e.stopImmediatePropagation();
10995
10993
  this.processResults(trackViewOrTrackViewList);
10996
10994
  }
10997
- });
10995
+ };
10998
10996
 
10999
- // Remove existing event listeners from OK button
11000
10997
  this.okButton.onclick = null;
11001
- this.okButton.addEventListener('click', () => {
10998
+ this.okButton.onclick = () => {
11002
10999
  this.processResults(trackViewOrTrackViewList);
11003
- });
11000
+ };
11004
11001
  }
11005
11002
 
11006
11003
  processResults(trackViewOrTrackViewList) {
@@ -31912,6 +31909,17 @@
31912
31909
 
31913
31910
  }
31914
31911
 
31912
+ didPresentZoomInNotice() {
31913
+
31914
+ const a = !(undefined === this.zoomInNoticeElement);
31915
+
31916
+ if (false === a) {
31917
+ return a
31918
+ }
31919
+
31920
+ return 'flex' === this.zoomInNoticeElement.style.display
31921
+ }
31922
+
31915
31923
  setContentHeight(contentHeight) {
31916
31924
  super.setContentHeight(contentHeight);
31917
31925
  if (this.featureCache) this.featureCache.redraw = true;
@@ -32355,9 +32363,7 @@
32355
32363
 
32356
32364
  renderSVGContext(context, {deltaX, deltaY}, includeLabel = true) {
32357
32365
 
32358
- const zoomInNotice = this.zoomInNoticeElement && this.zoomInNoticeElement.style.display !== 'flex';
32359
-
32360
- if (!zoomInNotice) {
32366
+ if (false === this.didPresentZoomInNotice()) {
32361
32367
 
32362
32368
  const {width, height} = this.viewportElement.getBoundingClientRect();
32363
32369
 
@@ -68627,13 +68633,13 @@ ${indent}columns: ${matrix.columns}
68627
68633
  element.textContent = 'Set data range';
68628
68634
 
68629
68635
  // Note -- menu item handlers must be functions, not arrow functions
68630
- function dataRangeHandler() {
68636
+ function dataRangeHandler(e) {
68631
68637
  if (this.trackView.track.selected) {
68632
68638
  this.browser.dataRangeDialog.configure(this.trackView.browser.getSelectedTrackViews());
68633
68639
  } else {
68634
68640
  this.browser.dataRangeDialog.configure(this.trackView);
68635
68641
  }
68636
- this.browser.dataRangeDialog.present(this.browser.columnContainer);
68642
+ this.browser.dataRangeDialog.present(e);
68637
68643
  }
68638
68644
 
68639
68645
  menuItems.push({element, dialog: dataRangeHandler});
@@ -69321,7 +69327,7 @@ ${indent}columns: ${matrix.columns}
69321
69327
  })
69322
69328
  }
69323
69329
 
69324
- const _version = "3.2.1";
69330
+ const _version = "3.2.3";
69325
69331
  function version() {
69326
69332
  return _version
69327
69333
  }