@teselagen/ove 0.3.21 → 0.3.23

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/index.cjs.js CHANGED
@@ -7425,7 +7425,7 @@ function getPlainObjectKeys(object) {
7425
7425
  var ownKeys$8 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
7426
7426
  return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
7427
7427
  } : /* istanbul ignore next */Object.getOwnPropertyNames;
7428
- function toPrimitive$3(value) {
7428
+ function toPrimitive$2(value) {
7429
7429
  return value === null ? null : typeof value === "object" ? "" + value : value;
7430
7430
  }
7431
7431
  function hasProp(target, prop) {
@@ -8354,7 +8354,7 @@ var ObservableValue = /*#__PURE__*/function (_Atom) {
8354
8354
  return this.name_ + "[" + this.value_ + "]";
8355
8355
  };
8356
8356
  _proto.valueOf = function valueOf() {
8357
- return toPrimitive$3(this.get());
8357
+ return toPrimitive$2(this.get());
8358
8358
  };
8359
8359
  _proto[_Symbol$toPrimitive] = function () {
8360
8360
  return this.valueOf();
@@ -8582,7 +8582,7 @@ var ComputedValue = /*#__PURE__*/function () {
8582
8582
  return this.name_ + "[" + this.derivation.toString() + "]";
8583
8583
  };
8584
8584
  _proto.valueOf = function valueOf() {
8585
- return toPrimitive$3(this.get());
8585
+ return toPrimitive$2(this.get());
8586
8586
  };
8587
8587
  _proto[_Symbol$toPrimitive$1] = function () {
8588
8588
  return this.valueOf();
@@ -30282,10 +30282,18 @@ var _fails = function (exec) {
30282
30282
  }
30283
30283
  };
30284
30284
 
30285
- // Thank's IE8 for his funny defineProperty
30286
- var _descriptors = !_fails(function () {
30287
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30288
- });
30285
+ var _descriptors;
30286
+ var hasRequired_descriptors;
30287
+
30288
+ function require_descriptors () {
30289
+ if (hasRequired_descriptors) return _descriptors;
30290
+ hasRequired_descriptors = 1;
30291
+ // Thank's IE8 for his funny defineProperty
30292
+ _descriptors = !_fails(function () {
30293
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30294
+ });
30295
+ return _descriptors;
30296
+ }
30289
30297
 
30290
30298
  var _domCreate;
30291
30299
  var hasRequired_domCreate;
@@ -30303,9 +30311,17 @@ function require_domCreate () {
30303
30311
  return _domCreate;
30304
30312
  }
30305
30313
 
30306
- var _ie8DomDefine = !_descriptors && !_fails(function () {
30307
- return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30308
- });
30314
+ var _ie8DomDefine;
30315
+ var hasRequired_ie8DomDefine;
30316
+
30317
+ function require_ie8DomDefine () {
30318
+ if (hasRequired_ie8DomDefine) return _ie8DomDefine;
30319
+ hasRequired_ie8DomDefine = 1;
30320
+ _ie8DomDefine = !require_descriptors() && !_fails(function () {
30321
+ return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30322
+ });
30323
+ return _ie8DomDefine;
30324
+ }
30309
30325
 
30310
30326
  // 7.1.1 ToPrimitive(input [, PreferredType])
30311
30327
  var isObject$d = _isObject;
@@ -30320,22 +30336,29 @@ var _toPrimitive$1 = function (it, S) {
30320
30336
  throw TypeError("Can't convert object to primitive value");
30321
30337
  };
30322
30338
 
30323
- var anObject$5 = _anObject;
30324
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
30325
- var toPrimitive$2 = _toPrimitive$1;
30326
- var dP$3 = Object.defineProperty;
30339
+ var hasRequired_objectDp;
30327
30340
 
30328
- _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30329
- anObject$5(O);
30330
- P = toPrimitive$2(P, true);
30331
- anObject$5(Attributes);
30332
- if (IE8_DOM_DEFINE$1) try {
30333
- return dP$3(O, P, Attributes);
30334
- } catch (e) { /* empty */ }
30335
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30336
- if ('value' in Attributes) O[P] = Attributes.value;
30337
- return O;
30338
- };
30341
+ function require_objectDp () {
30342
+ if (hasRequired_objectDp) return _objectDp;
30343
+ hasRequired_objectDp = 1;
30344
+ var anObject = _anObject;
30345
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
30346
+ var toPrimitive = _toPrimitive$1;
30347
+ var dP = Object.defineProperty;
30348
+
30349
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30350
+ anObject(O);
30351
+ P = toPrimitive(P, true);
30352
+ anObject(Attributes);
30353
+ if (IE8_DOM_DEFINE) try {
30354
+ return dP(O, P, Attributes);
30355
+ } catch (e) { /* empty */ }
30356
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30357
+ if ('value' in Attributes) O[P] = Attributes.value;
30358
+ return O;
30359
+ };
30360
+ return _objectDp;
30361
+ }
30339
30362
 
30340
30363
  var _propertyDesc = function (bitmap, value) {
30341
30364
  return {
@@ -30346,9 +30369,9 @@ var _propertyDesc = function (bitmap, value) {
30346
30369
  };
30347
30370
  };
30348
30371
 
30349
- var dP$2 = _objectDp;
30372
+ var dP$2 = require_objectDp();
30350
30373
  var createDesc$3 = _propertyDesc;
30351
- var _hide = _descriptors ? function (object, key, value) {
30374
+ var _hide = require_descriptors() ? function (object, key, value) {
30352
30375
  return dP$2.f(object, key, createDesc$3(1, value));
30353
30376
  } : function (object, key, value) {
30354
30377
  object[key] = value;
@@ -30578,7 +30601,7 @@ function require_objectAssign () {
30578
30601
  if (hasRequired_objectAssign) return _objectAssign;
30579
30602
  hasRequired_objectAssign = 1;
30580
30603
  // 19.1.2.1 Object.assign(target, source, ...)
30581
- var DESCRIPTORS = _descriptors;
30604
+ var DESCRIPTORS = require_descriptors();
30582
30605
  var getKeys = _objectKeys;
30583
30606
  var gOPS = _objectGops;
30584
30607
  var pIE = _objectPie;
@@ -30654,11 +30677,11 @@ var _iterators = {};
30654
30677
 
30655
30678
  var _redefine = _hide;
30656
30679
 
30657
- var dP$1 = _objectDp;
30680
+ var dP$1 = require_objectDp();
30658
30681
  var anObject$4 = _anObject;
30659
30682
  var getKeys$1 = _objectKeys;
30660
30683
 
30661
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30684
+ var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30662
30685
  anObject$4(O);
30663
30686
  var keys = getKeys$1(Properties);
30664
30687
  var length = keys.length;
@@ -30737,7 +30760,7 @@ $exports.store = store$2;
30737
30760
 
30738
30761
  var _wksExports = _wks.exports;
30739
30762
 
30740
- var def = _objectDp.f;
30763
+ var def = require_objectDp().f;
30741
30764
  var has$c = _has;
30742
30765
  var TAG$1 = _wksExports('toStringTag');
30743
30766
 
@@ -31051,7 +31074,7 @@ var _isArrayIter = function (it) {
31051
31074
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
31052
31075
  };
31053
31076
 
31054
- var $defineProperty$2 = _objectDp;
31077
+ var $defineProperty$2 = require_objectDp();
31055
31078
  var createDesc$2 = _propertyDesc;
31056
31079
 
31057
31080
  var _createProperty = function (object, index, value) {
@@ -31184,7 +31207,7 @@ var _default$9 = function (instance, Constructor) {
31184
31207
 
31185
31208
  var $export$3 = _export;
31186
31209
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
31187
- $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
31210
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
31188
31211
 
31189
31212
  var $Object$2 = _coreExports.Object;
31190
31213
  var defineProperty$c = function defineProperty(it, key, desc) {
@@ -31232,7 +31255,7 @@ var _meta = {exports: {}};
31232
31255
  var META$1 = _uid('meta');
31233
31256
  var isObject$c = _isObject;
31234
31257
  var has$a = _has;
31235
- var setDesc = _objectDp.f;
31258
+ var setDesc = require_objectDp().f;
31236
31259
  var id$1 = 0;
31237
31260
  var isExtensible = Object.isExtensible || function () {
31238
31261
  return true;
@@ -31287,7 +31310,7 @@ var _metaExports = _meta.exports;
31287
31310
 
31288
31311
  var core = _coreExports;
31289
31312
  var wksExt$1 = _wksExt;
31290
- var defineProperty$a = _objectDp.f;
31313
+ var defineProperty$a = require_objectDp().f;
31291
31314
  var _wksDefine = function (name) {
31292
31315
  var $Symbol = core.Symbol || (core.Symbol = {} );
31293
31316
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$a($Symbol, name, { value: wksExt$1.f(name) });
@@ -31354,10 +31377,10 @@ var createDesc$1 = _propertyDesc;
31354
31377
  var toIObject$1 = _toIobject;
31355
31378
  var toPrimitive$1 = _toPrimitive$1;
31356
31379
  var has$9 = _has;
31357
- var IE8_DOM_DEFINE = _ie8DomDefine;
31380
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
31358
31381
  var gOPD$5 = Object.getOwnPropertyDescriptor;
31359
31382
 
31360
- _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31383
+ _objectGopd.f = require_descriptors() ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31361
31384
  O = toIObject$1(O);
31362
31385
  P = toPrimitive$1(P, true);
31363
31386
  if (IE8_DOM_DEFINE) try {
@@ -31369,7 +31392,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P)
31369
31392
  // ECMAScript 6 symbols shim
31370
31393
  var global$2 = _globalExports;
31371
31394
  var has$8 = _has;
31372
- var DESCRIPTORS = _descriptors;
31395
+ var DESCRIPTORS = require_descriptors();
31373
31396
  var $export$2 = _export;
31374
31397
  var redefine = _redefine;
31375
31398
  var META = _metaExports.KEY;
@@ -31392,7 +31415,7 @@ var _create$1 = _objectCreate;
31392
31415
  var gOPNExt = _objectGopnExt;
31393
31416
  var $GOPD = _objectGopd;
31394
31417
  var $GOPS = _objectGops;
31395
- var $DP = _objectDp;
31418
+ var $DP = require_objectDp();
31396
31419
  var $keys$1 = _objectKeys;
31397
31420
  var gOPD$4 = $GOPD.f;
31398
31421
  var dP = $DP.f;
@@ -155902,7 +155925,7 @@ class Sequence extends React$3.Component {
155902
155925
  key: i,
155903
155926
  ...{
155904
155927
  ...shared,
155905
- textLength: textLength - fudge - fudge2,
155928
+ textLength: Math.max(0, textLength - fudge - fudge2),
155906
155929
  x: x + fudge / 2,
155907
155930
  lengthAdjust: "spacing"
155908
155931
  }
@@ -155917,7 +155940,7 @@ class Sequence extends React$3.Component {
155917
155940
  ...{
155918
155941
  ...shared,
155919
155942
  x: 0 + fudge / 2,
155920
- textLength: (alignmentData ? seqReadWidth : width) - fudge - fudge2
155943
+ textLength: Math.max(0, (alignmentData ? seqReadWidth : width) - fudge - fudge2)
155921
155944
  }
155922
155945
  },
155923
155946
  getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength })
@@ -157599,7 +157622,7 @@ function getBasesToShow({
157599
157622
  insertStart
157600
157623
  });
157601
157624
  }
157602
- const textLength2 = charWidth * i.bases.length - fudge - fudge2;
157625
+ const textLength2 = Math.max(0, charWidth * i.bases.length - fudge - fudge2);
157603
157626
  insertText.push(
157604
157627
  /* @__PURE__ */ React$3.createElement(
157605
157628
  "text",
@@ -161170,7 +161193,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161170
161193
  }
161171
161194
 
161172
161195
  const name = "@teselagen/ove";
161173
- const version = "0.3.20";
161196
+ const version = "0.3.22";
161174
161197
  const main = "./src/index.js";
161175
161198
  const exports$1 = {
161176
161199
  ".": {
@@ -178949,8 +178972,6 @@ class AlignmentView extends React$3.Component {
178949
178972
  delete window.updateAlignmentSelection;
178950
178973
  delete window.Cypress.updateAlignmentSelection;
178951
178974
  }
178952
- const { removeAlignmentFromRedux, id } = this.props;
178953
- removeAlignmentFromRedux({ id });
178954
178975
  this.onShortcutCopy && document.removeEventListener("keydown", this.handleAlignmentCopy);
178955
178976
  }
178956
178977
  handleAlignmentCopy = (event) => {
@@ -179515,6 +179536,7 @@ ${seqDataToCopy}\r
179515
179536
  vectorInteractionWrapperStyle: {
179516
179537
  overflowY: "hidden"
179517
179538
  },
179539
+ withZoomLinearView: false,
179518
179540
  marginWidth: 0,
179519
179541
  linearViewCharWidth: charWidthInLinearView,
179520
179542
  ignoreGapsOnHighlight: true,
@@ -180367,6 +180389,7 @@ const AlignmentView$1 = compose(
180367
180389
  scrollPercentageToJumpTo,
180368
180390
  pairwiseOverviewAlignmentTracks,
180369
180391
  loading,
180392
+ name,
180370
180393
  alignmentAnnotationVisibility,
180371
180394
  alignmentAnnotationLabelVisibility,
180372
180395
  caretPosition = -1,
@@ -180440,6 +180463,7 @@ const AlignmentView$1 = compose(
180440
180463
  unmappedSeqs,
180441
180464
  caretPosition,
180442
180465
  alignmentId,
180466
+ ...name && { alignmentName: name },
180443
180467
  stateTrackingId,
180444
180468
  sequenceData: {
180445
180469
  //pass fake seq data in so editor interactions work
@@ -180468,12 +180492,12 @@ const AlignmentView$1 = compose(
180468
180492
  }
180469
180493
  });
180470
180494
  },
180471
- alignmentAnnotationLabelVisibilityToggle: (name) => {
180495
+ alignmentAnnotationLabelVisibilityToggle: (name2) => {
180472
180496
  updateAlignmentViewVisibility({
180473
180497
  ...alignment,
180474
180498
  alignmentAnnotationLabelVisibility: {
180475
180499
  ...alignment.alignmentAnnotationLabelVisibility,
180476
- [name]: !alignment.alignmentAnnotationLabelVisibility[name]
180500
+ [name2]: !alignment.alignmentAnnotationLabelVisibility[name2]
180477
180501
  }
180478
180502
  });
180479
180503
  },
@@ -194605,7 +194629,7 @@ class Editor extends React$3.Component {
194605
194629
  style: {
194606
194630
  zIndex: 15002,
194607
194631
  position: "fixed",
194608
- top: 15,
194632
+ top: 3,
194609
194633
  right: 25
194610
194634
  }
194611
194635
  },
package/index.es.js CHANGED
@@ -7404,7 +7404,7 @@ function getPlainObjectKeys(object) {
7404
7404
  var ownKeys$8 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
7405
7405
  return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
7406
7406
  } : /* istanbul ignore next */Object.getOwnPropertyNames;
7407
- function toPrimitive$3(value) {
7407
+ function toPrimitive$2(value) {
7408
7408
  return value === null ? null : typeof value === "object" ? "" + value : value;
7409
7409
  }
7410
7410
  function hasProp(target, prop) {
@@ -8333,7 +8333,7 @@ var ObservableValue = /*#__PURE__*/function (_Atom) {
8333
8333
  return this.name_ + "[" + this.value_ + "]";
8334
8334
  };
8335
8335
  _proto.valueOf = function valueOf() {
8336
- return toPrimitive$3(this.get());
8336
+ return toPrimitive$2(this.get());
8337
8337
  };
8338
8338
  _proto[_Symbol$toPrimitive] = function () {
8339
8339
  return this.valueOf();
@@ -8561,7 +8561,7 @@ var ComputedValue = /*#__PURE__*/function () {
8561
8561
  return this.name_ + "[" + this.derivation.toString() + "]";
8562
8562
  };
8563
8563
  _proto.valueOf = function valueOf() {
8564
- return toPrimitive$3(this.get());
8564
+ return toPrimitive$2(this.get());
8565
8565
  };
8566
8566
  _proto[_Symbol$toPrimitive$1] = function () {
8567
8567
  return this.valueOf();
@@ -30261,10 +30261,18 @@ var _fails = function (exec) {
30261
30261
  }
30262
30262
  };
30263
30263
 
30264
- // Thank's IE8 for his funny defineProperty
30265
- var _descriptors = !_fails(function () {
30266
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30267
- });
30264
+ var _descriptors;
30265
+ var hasRequired_descriptors;
30266
+
30267
+ function require_descriptors () {
30268
+ if (hasRequired_descriptors) return _descriptors;
30269
+ hasRequired_descriptors = 1;
30270
+ // Thank's IE8 for his funny defineProperty
30271
+ _descriptors = !_fails(function () {
30272
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30273
+ });
30274
+ return _descriptors;
30275
+ }
30268
30276
 
30269
30277
  var _domCreate;
30270
30278
  var hasRequired_domCreate;
@@ -30282,9 +30290,17 @@ function require_domCreate () {
30282
30290
  return _domCreate;
30283
30291
  }
30284
30292
 
30285
- var _ie8DomDefine = !_descriptors && !_fails(function () {
30286
- return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30287
- });
30293
+ var _ie8DomDefine;
30294
+ var hasRequired_ie8DomDefine;
30295
+
30296
+ function require_ie8DomDefine () {
30297
+ if (hasRequired_ie8DomDefine) return _ie8DomDefine;
30298
+ hasRequired_ie8DomDefine = 1;
30299
+ _ie8DomDefine = !require_descriptors() && !_fails(function () {
30300
+ return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30301
+ });
30302
+ return _ie8DomDefine;
30303
+ }
30288
30304
 
30289
30305
  // 7.1.1 ToPrimitive(input [, PreferredType])
30290
30306
  var isObject$d = _isObject;
@@ -30299,22 +30315,29 @@ var _toPrimitive$1 = function (it, S) {
30299
30315
  throw TypeError("Can't convert object to primitive value");
30300
30316
  };
30301
30317
 
30302
- var anObject$5 = _anObject;
30303
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
30304
- var toPrimitive$2 = _toPrimitive$1;
30305
- var dP$3 = Object.defineProperty;
30318
+ var hasRequired_objectDp;
30306
30319
 
30307
- _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30308
- anObject$5(O);
30309
- P = toPrimitive$2(P, true);
30310
- anObject$5(Attributes);
30311
- if (IE8_DOM_DEFINE$1) try {
30312
- return dP$3(O, P, Attributes);
30313
- } catch (e) { /* empty */ }
30314
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30315
- if ('value' in Attributes) O[P] = Attributes.value;
30316
- return O;
30317
- };
30320
+ function require_objectDp () {
30321
+ if (hasRequired_objectDp) return _objectDp;
30322
+ hasRequired_objectDp = 1;
30323
+ var anObject = _anObject;
30324
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
30325
+ var toPrimitive = _toPrimitive$1;
30326
+ var dP = Object.defineProperty;
30327
+
30328
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30329
+ anObject(O);
30330
+ P = toPrimitive(P, true);
30331
+ anObject(Attributes);
30332
+ if (IE8_DOM_DEFINE) try {
30333
+ return dP(O, P, Attributes);
30334
+ } catch (e) { /* empty */ }
30335
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30336
+ if ('value' in Attributes) O[P] = Attributes.value;
30337
+ return O;
30338
+ };
30339
+ return _objectDp;
30340
+ }
30318
30341
 
30319
30342
  var _propertyDesc = function (bitmap, value) {
30320
30343
  return {
@@ -30325,9 +30348,9 @@ var _propertyDesc = function (bitmap, value) {
30325
30348
  };
30326
30349
  };
30327
30350
 
30328
- var dP$2 = _objectDp;
30351
+ var dP$2 = require_objectDp();
30329
30352
  var createDesc$3 = _propertyDesc;
30330
- var _hide = _descriptors ? function (object, key, value) {
30353
+ var _hide = require_descriptors() ? function (object, key, value) {
30331
30354
  return dP$2.f(object, key, createDesc$3(1, value));
30332
30355
  } : function (object, key, value) {
30333
30356
  object[key] = value;
@@ -30557,7 +30580,7 @@ function require_objectAssign () {
30557
30580
  if (hasRequired_objectAssign) return _objectAssign;
30558
30581
  hasRequired_objectAssign = 1;
30559
30582
  // 19.1.2.1 Object.assign(target, source, ...)
30560
- var DESCRIPTORS = _descriptors;
30583
+ var DESCRIPTORS = require_descriptors();
30561
30584
  var getKeys = _objectKeys;
30562
30585
  var gOPS = _objectGops;
30563
30586
  var pIE = _objectPie;
@@ -30633,11 +30656,11 @@ var _iterators = {};
30633
30656
 
30634
30657
  var _redefine = _hide;
30635
30658
 
30636
- var dP$1 = _objectDp;
30659
+ var dP$1 = require_objectDp();
30637
30660
  var anObject$4 = _anObject;
30638
30661
  var getKeys$1 = _objectKeys;
30639
30662
 
30640
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30663
+ var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30641
30664
  anObject$4(O);
30642
30665
  var keys = getKeys$1(Properties);
30643
30666
  var length = keys.length;
@@ -30716,7 +30739,7 @@ $exports.store = store$2;
30716
30739
 
30717
30740
  var _wksExports = _wks.exports;
30718
30741
 
30719
- var def = _objectDp.f;
30742
+ var def = require_objectDp().f;
30720
30743
  var has$c = _has;
30721
30744
  var TAG$1 = _wksExports('toStringTag');
30722
30745
 
@@ -31030,7 +31053,7 @@ var _isArrayIter = function (it) {
31030
31053
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
31031
31054
  };
31032
31055
 
31033
- var $defineProperty$2 = _objectDp;
31056
+ var $defineProperty$2 = require_objectDp();
31034
31057
  var createDesc$2 = _propertyDesc;
31035
31058
 
31036
31059
  var _createProperty = function (object, index, value) {
@@ -31163,7 +31186,7 @@ var _default$9 = function (instance, Constructor) {
31163
31186
 
31164
31187
  var $export$3 = _export;
31165
31188
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
31166
- $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
31189
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
31167
31190
 
31168
31191
  var $Object$2 = _coreExports.Object;
31169
31192
  var defineProperty$c = function defineProperty(it, key, desc) {
@@ -31211,7 +31234,7 @@ var _meta = {exports: {}};
31211
31234
  var META$1 = _uid('meta');
31212
31235
  var isObject$c = _isObject;
31213
31236
  var has$a = _has;
31214
- var setDesc = _objectDp.f;
31237
+ var setDesc = require_objectDp().f;
31215
31238
  var id$1 = 0;
31216
31239
  var isExtensible = Object.isExtensible || function () {
31217
31240
  return true;
@@ -31266,7 +31289,7 @@ var _metaExports = _meta.exports;
31266
31289
 
31267
31290
  var core = _coreExports;
31268
31291
  var wksExt$1 = _wksExt;
31269
- var defineProperty$a = _objectDp.f;
31292
+ var defineProperty$a = require_objectDp().f;
31270
31293
  var _wksDefine = function (name) {
31271
31294
  var $Symbol = core.Symbol || (core.Symbol = {} );
31272
31295
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$a($Symbol, name, { value: wksExt$1.f(name) });
@@ -31333,10 +31356,10 @@ var createDesc$1 = _propertyDesc;
31333
31356
  var toIObject$1 = _toIobject;
31334
31357
  var toPrimitive$1 = _toPrimitive$1;
31335
31358
  var has$9 = _has;
31336
- var IE8_DOM_DEFINE = _ie8DomDefine;
31359
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
31337
31360
  var gOPD$5 = Object.getOwnPropertyDescriptor;
31338
31361
 
31339
- _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31362
+ _objectGopd.f = require_descriptors() ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31340
31363
  O = toIObject$1(O);
31341
31364
  P = toPrimitive$1(P, true);
31342
31365
  if (IE8_DOM_DEFINE) try {
@@ -31348,7 +31371,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P)
31348
31371
  // ECMAScript 6 symbols shim
31349
31372
  var global$2 = _globalExports;
31350
31373
  var has$8 = _has;
31351
- var DESCRIPTORS = _descriptors;
31374
+ var DESCRIPTORS = require_descriptors();
31352
31375
  var $export$2 = _export;
31353
31376
  var redefine = _redefine;
31354
31377
  var META = _metaExports.KEY;
@@ -31371,7 +31394,7 @@ var _create$1 = _objectCreate;
31371
31394
  var gOPNExt = _objectGopnExt;
31372
31395
  var $GOPD = _objectGopd;
31373
31396
  var $GOPS = _objectGops;
31374
- var $DP = _objectDp;
31397
+ var $DP = require_objectDp();
31375
31398
  var $keys$1 = _objectKeys;
31376
31399
  var gOPD$4 = $GOPD.f;
31377
31400
  var dP = $DP.f;
@@ -155881,7 +155904,7 @@ class Sequence extends React__default$1.Component {
155881
155904
  key: i,
155882
155905
  ...{
155883
155906
  ...shared,
155884
- textLength: textLength - fudge - fudge2,
155907
+ textLength: Math.max(0, textLength - fudge - fudge2),
155885
155908
  x: x + fudge / 2,
155886
155909
  lengthAdjust: "spacing"
155887
155910
  }
@@ -155896,7 +155919,7 @@ class Sequence extends React__default$1.Component {
155896
155919
  ...{
155897
155920
  ...shared,
155898
155921
  x: 0 + fudge / 2,
155899
- textLength: (alignmentData ? seqReadWidth : width) - fudge - fudge2
155922
+ textLength: Math.max(0, (alignmentData ? seqReadWidth : width) - fudge - fudge2)
155900
155923
  }
155901
155924
  },
155902
155925
  getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength })
@@ -157578,7 +157601,7 @@ function getBasesToShow({
157578
157601
  insertStart
157579
157602
  });
157580
157603
  }
157581
- const textLength2 = charWidth * i.bases.length - fudge - fudge2;
157604
+ const textLength2 = Math.max(0, charWidth * i.bases.length - fudge - fudge2);
157582
157605
  insertText.push(
157583
157606
  /* @__PURE__ */ React__default$1.createElement(
157584
157607
  "text",
@@ -161149,7 +161172,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161149
161172
  }
161150
161173
 
161151
161174
  const name = "@teselagen/ove";
161152
- const version = "0.3.20";
161175
+ const version = "0.3.22";
161153
161176
  const main = "./src/index.js";
161154
161177
  const exports$1 = {
161155
161178
  ".": {
@@ -178928,8 +178951,6 @@ class AlignmentView extends React__default$1.Component {
178928
178951
  delete window.updateAlignmentSelection;
178929
178952
  delete window.Cypress.updateAlignmentSelection;
178930
178953
  }
178931
- const { removeAlignmentFromRedux, id } = this.props;
178932
- removeAlignmentFromRedux({ id });
178933
178954
  this.onShortcutCopy && document.removeEventListener("keydown", this.handleAlignmentCopy);
178934
178955
  }
178935
178956
  handleAlignmentCopy = (event) => {
@@ -179494,6 +179515,7 @@ ${seqDataToCopy}\r
179494
179515
  vectorInteractionWrapperStyle: {
179495
179516
  overflowY: "hidden"
179496
179517
  },
179518
+ withZoomLinearView: false,
179497
179519
  marginWidth: 0,
179498
179520
  linearViewCharWidth: charWidthInLinearView,
179499
179521
  ignoreGapsOnHighlight: true,
@@ -180346,6 +180368,7 @@ const AlignmentView$1 = compose(
180346
180368
  scrollPercentageToJumpTo,
180347
180369
  pairwiseOverviewAlignmentTracks,
180348
180370
  loading,
180371
+ name,
180349
180372
  alignmentAnnotationVisibility,
180350
180373
  alignmentAnnotationLabelVisibility,
180351
180374
  caretPosition = -1,
@@ -180419,6 +180442,7 @@ const AlignmentView$1 = compose(
180419
180442
  unmappedSeqs,
180420
180443
  caretPosition,
180421
180444
  alignmentId,
180445
+ ...name && { alignmentName: name },
180422
180446
  stateTrackingId,
180423
180447
  sequenceData: {
180424
180448
  //pass fake seq data in so editor interactions work
@@ -180447,12 +180471,12 @@ const AlignmentView$1 = compose(
180447
180471
  }
180448
180472
  });
180449
180473
  },
180450
- alignmentAnnotationLabelVisibilityToggle: (name) => {
180474
+ alignmentAnnotationLabelVisibilityToggle: (name2) => {
180451
180475
  updateAlignmentViewVisibility({
180452
180476
  ...alignment,
180453
180477
  alignmentAnnotationLabelVisibility: {
180454
180478
  ...alignment.alignmentAnnotationLabelVisibility,
180455
- [name]: !alignment.alignmentAnnotationLabelVisibility[name]
180479
+ [name2]: !alignment.alignmentAnnotationLabelVisibility[name2]
180456
180480
  }
180457
180481
  });
180458
180482
  },
@@ -194584,7 +194608,7 @@ class Editor extends React__default$1.Component {
194584
194608
  style: {
194585
194609
  zIndex: 15002,
194586
194610
  position: "fixed",
194587
- top: 15,
194611
+ top: 3,
194588
194612
  right: 25
194589
194613
  }
194590
194614
  },
package/index.umd.js CHANGED
@@ -57196,12 +57196,20 @@
57196
57196
  return toString$4.call(it).slice(8, -1);
57197
57197
  };
57198
57198
 
57199
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
57200
- var cof$2 = _cof;
57201
- // eslint-disable-next-line no-prototype-builtins
57202
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
57203
- return cof$2(it) == 'String' ? it.split('') : Object(it);
57204
- };
57199
+ var _iobject;
57200
+ var hasRequired_iobject;
57201
+
57202
+ function require_iobject () {
57203
+ if (hasRequired_iobject) return _iobject;
57204
+ hasRequired_iobject = 1;
57205
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
57206
+ var cof = _cof;
57207
+ // eslint-disable-next-line no-prototype-builtins
57208
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
57209
+ return cof(it) == 'String' ? it.split('') : Object(it);
57210
+ };
57211
+ return _iobject;
57212
+ }
57205
57213
 
57206
57214
  // 7.2.1 RequireObjectCoercible(argument)
57207
57215
  var _defined = function (it) {
@@ -57210,7 +57218,7 @@
57210
57218
  };
57211
57219
 
57212
57220
  // to indexed object, toObject with fallback for non-array-like ES3 strings
57213
- var IObject = _iobject;
57221
+ var IObject = require_iobject();
57214
57222
  var defined$2 = _defined;
57215
57223
  var _toIobject = function (it) {
57216
57224
  return IObject(defined$2(it));
@@ -57330,7 +57338,14 @@
57330
57338
 
57331
57339
  var _objectPie = {};
57332
57340
 
57333
- _objectPie.f = {}.propertyIsEnumerable;
57341
+ var hasRequired_objectPie;
57342
+
57343
+ function require_objectPie () {
57344
+ if (hasRequired_objectPie) return _objectPie;
57345
+ hasRequired_objectPie = 1;
57346
+ _objectPie.f = {}.propertyIsEnumerable;
57347
+ return _objectPie;
57348
+ }
57334
57349
 
57335
57350
  // 7.1.13 ToObject(argument)
57336
57351
  var defined$1 = _defined;
@@ -57348,9 +57363,9 @@
57348
57363
  var DESCRIPTORS = require_descriptors();
57349
57364
  var getKeys = _objectKeys;
57350
57365
  var gOPS = _objectGops;
57351
- var pIE = _objectPie;
57366
+ var pIE = require_objectPie();
57352
57367
  var toObject = _toObject;
57353
- var IObject = _iobject;
57368
+ var IObject = require_iobject();
57354
57369
  var $assign = Object.assign;
57355
57370
 
57356
57371
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -58063,7 +58078,7 @@
58063
58078
  // all enumerable object keys, includes symbols
58064
58079
  var getKeys = _objectKeys;
58065
58080
  var gOPS$1 = _objectGops;
58066
- var pIE$1 = _objectPie;
58081
+ var pIE$1 = require_objectPie();
58067
58082
  var _enumKeys = function (it) {
58068
58083
  var result = getKeys(it);
58069
58084
  var getSymbols = gOPS$1.f;
@@ -58116,7 +58131,7 @@
58116
58131
 
58117
58132
  var _objectGopd = {};
58118
58133
 
58119
- var pIE = _objectPie;
58134
+ var pIE = require_objectPie();
58120
58135
  var createDesc$1 = _propertyDesc;
58121
58136
  var toIObject$1 = _toIobject;
58122
58137
  var toPrimitive$1 = _toPrimitive$1;
@@ -58284,7 +58299,7 @@
58284
58299
  $GOPD.f = $getOwnPropertyDescriptor;
58285
58300
  $DP.f = $defineProperty;
58286
58301
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
58287
- _objectPie.f = $propertyIsEnumerable;
58302
+ require_objectPie().f = $propertyIsEnumerable;
58288
58303
  $GOPS.f = $getOwnPropertySymbols;
58289
58304
 
58290
58305
  if (DESCRIPTORS && !_library) {
@@ -183547,7 +183562,7 @@
183547
183562
  key: i,
183548
183563
  ...{
183549
183564
  ...shared,
183550
- textLength: textLength - fudge - fudge2,
183565
+ textLength: Math.max(0, textLength - fudge - fudge2),
183551
183566
  x: x + fudge / 2,
183552
183567
  lengthAdjust: "spacing"
183553
183568
  }
@@ -183562,7 +183577,7 @@
183562
183577
  ...{
183563
183578
  ...shared,
183564
183579
  x: 0 + fudge / 2,
183565
- textLength: (alignmentData ? seqReadWidth : width) - fudge - fudge2
183580
+ textLength: Math.max(0, (alignmentData ? seqReadWidth : width) - fudge - fudge2)
183566
183581
  }
183567
183582
  },
183568
183583
  getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength })
@@ -185244,7 +185259,7 @@ double click --> edit`}`;
185244
185259
  insertStart
185245
185260
  });
185246
185261
  }
185247
- const textLength2 = charWidth * i.bases.length - fudge - fudge2;
185262
+ const textLength2 = Math.max(0, charWidth * i.bases.length - fudge - fudge2);
185248
185263
  insertText.push(
185249
185264
  /* @__PURE__ */ React$3.createElement(
185250
185265
  "text",
@@ -188777,7 +188792,7 @@ double click --> edit`}`;
188777
188792
  }
188778
188793
 
188779
188794
  const name = "@teselagen/ove";
188780
- const version = "0.3.20";
188795
+ const version = "0.3.22";
188781
188796
  const main = "./src/index.js";
188782
188797
  const exports$1 = {
188783
188798
  ".": {
@@ -203940,8 +203955,6 @@ double click --> edit`}`;
203940
203955
  delete window.updateAlignmentSelection;
203941
203956
  delete window.Cypress.updateAlignmentSelection;
203942
203957
  }
203943
- const { removeAlignmentFromRedux, id } = this.props;
203944
- removeAlignmentFromRedux({ id });
203945
203958
  this.onShortcutCopy && document.removeEventListener("keydown", this.handleAlignmentCopy);
203946
203959
  }
203947
203960
  handleAlignmentCopy = (event) => {
@@ -204506,6 +204519,7 @@ ${seqDataToCopy}\r
204506
204519
  vectorInteractionWrapperStyle: {
204507
204520
  overflowY: "hidden"
204508
204521
  },
204522
+ withZoomLinearView: false,
204509
204523
  marginWidth: 0,
204510
204524
  linearViewCharWidth: charWidthInLinearView,
204511
204525
  ignoreGapsOnHighlight: true,
@@ -205358,6 +205372,7 @@ ${seqDataToCopy}\r
205358
205372
  scrollPercentageToJumpTo,
205359
205373
  pairwiseOverviewAlignmentTracks,
205360
205374
  loading,
205375
+ name,
205361
205376
  alignmentAnnotationVisibility,
205362
205377
  alignmentAnnotationLabelVisibility,
205363
205378
  caretPosition = -1,
@@ -205431,6 +205446,7 @@ ${seqDataToCopy}\r
205431
205446
  unmappedSeqs,
205432
205447
  caretPosition,
205433
205448
  alignmentId,
205449
+ ...name && { alignmentName: name },
205434
205450
  stateTrackingId,
205435
205451
  sequenceData: {
205436
205452
  //pass fake seq data in so editor interactions work
@@ -205459,12 +205475,12 @@ ${seqDataToCopy}\r
205459
205475
  }
205460
205476
  });
205461
205477
  },
205462
- alignmentAnnotationLabelVisibilityToggle: (name) => {
205478
+ alignmentAnnotationLabelVisibilityToggle: (name2) => {
205463
205479
  updateAlignmentViewVisibility({
205464
205480
  ...alignment,
205465
205481
  alignmentAnnotationLabelVisibility: {
205466
205482
  ...alignment.alignmentAnnotationLabelVisibility,
205467
- [name]: !alignment.alignmentAnnotationLabelVisibility[name]
205483
+ [name2]: !alignment.alignmentAnnotationLabelVisibility[name2]
205468
205484
  }
205469
205485
  });
205470
205486
  },
@@ -218669,7 +218685,7 @@ ${seqDataToCopy}\r
218669
218685
  style: {
218670
218686
  zIndex: 15002,
218671
218687
  position: "fixed",
218672
- top: 15,
218688
+ top: 3,
218673
218689
  right: 25
218674
218690
  }
218675
218691
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.21",
3
+ "version": "0.3.23",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -170,8 +170,8 @@ export class AlignmentView extends React.Component {
170
170
  delete window.updateAlignmentSelection;
171
171
  delete window.Cypress.updateAlignmentSelection;
172
172
  }
173
- const { removeAlignmentFromRedux, id } = this.props;
174
- removeAlignmentFromRedux({ id });
173
+ // const { removeAlignmentFromRedux, id } = this.props;
174
+ // removeAlignmentFromRedux({ id });
175
175
  this.onShortcutCopy &&
176
176
  document.removeEventListener("keydown", this.handleAlignmentCopy);
177
177
  }
@@ -922,6 +922,7 @@ export class AlignmentView extends React.Component {
922
922
  vectorInteractionWrapperStyle: {
923
923
  overflowY: "hidden"
924
924
  },
925
+ withZoomLinearView: false,
925
926
  marginWidth: 0,
926
927
  linearViewCharWidth: charWidthInLinearView,
927
928
  ignoreGapsOnHighlight: true,
@@ -1888,6 +1889,7 @@ export default compose(
1888
1889
  scrollPercentageToJumpTo,
1889
1890
  pairwiseOverviewAlignmentTracks,
1890
1891
  loading,
1892
+ name,
1891
1893
  alignmentAnnotationVisibility,
1892
1894
  alignmentAnnotationLabelVisibility,
1893
1895
  caretPosition = -1,
@@ -1967,6 +1969,7 @@ export default compose(
1967
1969
  unmappedSeqs,
1968
1970
  caretPosition,
1969
1971
  alignmentId,
1972
+ ...(name && { alignmentName: name }),
1970
1973
  stateTrackingId,
1971
1974
  sequenceData: {
1972
1975
  //pass fake seq data in so editor interactions work
@@ -17,6 +17,7 @@
17
17
 
18
18
  .alignmentViewTrackContainer .veLinearView .veRowItemWrapper {
19
19
  display: block;
20
+ overflow-x: hidden;
20
21
  }
21
22
 
22
23
  .alignmentHolder::-webkit-scrollbar {
@@ -67,6 +68,9 @@
67
68
  top: 0;
68
69
  }
69
70
 
71
+ .tg-reflex-element-inner .alignmentView {
72
+ height: unset !important;
73
+ }
70
74
  .veTracksAndAlignmentHolder {
71
75
  position: relative;
72
76
  width: fit-content;
@@ -732,7 +732,7 @@ export class Editor extends React.Component {
732
732
  style={{
733
733
  zIndex: 15002,
734
734
  position: "fixed",
735
- top: 15,
735
+ top: 3,
736
736
  right: 25
737
737
  }}
738
738
  >
@@ -111,7 +111,7 @@ class Sequence extends React.Component {
111
111
  key={i}
112
112
  {...{
113
113
  ...shared,
114
- textLength: textLength - fudge - fudge2,
114
+ textLength: Math.max(0,textLength - fudge - fudge2),
115
115
  x: x + fudge / 2,
116
116
  lengthAdjust: "spacing"
117
117
  }}
@@ -126,7 +126,7 @@ class Sequence extends React.Component {
126
126
  {...{
127
127
  ...shared,
128
128
  x: 0 + fudge / 2,
129
- textLength: (alignmentData ? seqReadWidth : width) - fudge - fudge2
129
+ textLength: Math.max(0,(alignmentData ? seqReadWidth : width) - fudge - fudge2)
130
130
  }}
131
131
  >
132
132
  {getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength })}
@@ -106,7 +106,7 @@ export function getBasesToShow({
106
106
  insertStart
107
107
  });
108
108
  }
109
- const textLength = charWidth * i.bases.length - fudge - fudge2;
109
+ const textLength = Math.max(0,charWidth * i.bases.length - fudge - fudge2);
110
110
  insertText.push(
111
111
  <text
112
112
  style={{ pointerEvents: "none" }}
@@ -213,7 +213,7 @@ const CloseFullscreenButton = props => {
213
213
  );
214
214
  };
215
215
 
216
- const defaultToolList = [
216
+ export const defaultToolList = [
217
217
  "saveTool",
218
218
  "downloadTool",
219
219
  "importTool",
package/style.css CHANGED
@@ -11016,6 +11016,7 @@ li.bp3-menu-divider:last-child {
11016
11016
 
11017
11017
  .alignmentViewTrackContainer .veLinearView .veRowItemWrapper {
11018
11018
  display: block;
11019
+ overflow-x: hidden;
11019
11020
  }
11020
11021
 
11021
11022
  .alignmentHolder::-webkit-scrollbar {
@@ -11066,6 +11067,9 @@ li.bp3-menu-divider:last-child {
11066
11067
  top: 0;
11067
11068
  }
11068
11069
 
11070
+ .tg-reflex-element-inner .alignmentView {
11071
+ height: unset !important;
11072
+ }
11069
11073
  .veTracksAndAlignmentHolder {
11070
11074
  position: relative;
11071
11075
  width: fit-content;