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/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,17 +31909,15 @@
31912
31909
 
31913
31910
  }
31914
31911
 
31915
- isZoomLevelRenderable() {
31912
+ didPresentZoomInNotice() {
31916
31913
 
31917
31914
  const a = !(undefined === this.zoomInNoticeElement);
31918
- let b;
31919
- if (true === a) {
31920
- b = 'none' === this.zoomInNoticeElement.style.display;
31921
- } else {
31922
- b = false;
31915
+
31916
+ if (false === a) {
31917
+ return a
31923
31918
  }
31924
31919
 
31925
- return a === true && b === true
31920
+ return 'flex' === this.zoomInNoticeElement.style.display
31926
31921
  }
31927
31922
 
31928
31923
  setContentHeight(contentHeight) {
@@ -32368,7 +32363,7 @@
32368
32363
 
32369
32364
  renderSVGContext(context, {deltaX, deltaY}, includeLabel = true) {
32370
32365
 
32371
- if (true === this.isZoomLevelRenderable()) {
32366
+ if (false === this.didPresentZoomInNotice()) {
32372
32367
 
32373
32368
  const {width, height} = this.viewportElement.getBoundingClientRect();
32374
32369
 
@@ -68638,13 +68633,13 @@ ${indent}columns: ${matrix.columns}
68638
68633
  element.textContent = 'Set data range';
68639
68634
 
68640
68635
  // Note -- menu item handlers must be functions, not arrow functions
68641
- function dataRangeHandler() {
68636
+ function dataRangeHandler(e) {
68642
68637
  if (this.trackView.track.selected) {
68643
68638
  this.browser.dataRangeDialog.configure(this.trackView.browser.getSelectedTrackViews());
68644
68639
  } else {
68645
68640
  this.browser.dataRangeDialog.configure(this.trackView);
68646
68641
  }
68647
- this.browser.dataRangeDialog.present(this.browser.columnContainer);
68642
+ this.browser.dataRangeDialog.present(e);
68648
68643
  }
68649
68644
 
68650
68645
  menuItems.push({element, dialog: dataRangeHandler});
@@ -69332,7 +69327,7 @@ ${indent}columns: ${matrix.columns}
69332
69327
  })
69333
69328
  }
69334
69329
 
69335
- const _version = "3.2.2";
69330
+ const _version = "3.2.3";
69336
69331
  function version() {
69337
69332
  return _version
69338
69333
  }