@teselagen/ove 0.3.21 → 0.3.22

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;
@@ -30429,12 +30452,20 @@ var _cof = function (it) {
30429
30452
  return toString$6.call(it).slice(8, -1);
30430
30453
  };
30431
30454
 
30432
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30433
- var cof$2 = _cof;
30434
- // eslint-disable-next-line no-prototype-builtins
30435
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30436
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30437
- };
30455
+ var _iobject;
30456
+ var hasRequired_iobject;
30457
+
30458
+ function require_iobject () {
30459
+ if (hasRequired_iobject) return _iobject;
30460
+ hasRequired_iobject = 1;
30461
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30462
+ var cof = _cof;
30463
+ // eslint-disable-next-line no-prototype-builtins
30464
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30465
+ return cof(it) == 'String' ? it.split('') : Object(it);
30466
+ };
30467
+ return _iobject;
30468
+ }
30438
30469
 
30439
30470
  // 7.2.1 RequireObjectCoercible(argument)
30440
30471
  var _defined = function (it) {
@@ -30443,7 +30474,7 @@ var _defined = function (it) {
30443
30474
  };
30444
30475
 
30445
30476
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30446
- var IObject = _iobject;
30477
+ var IObject = require_iobject();
30447
30478
  var defined$2 = _defined;
30448
30479
  var _toIobject = function (it) {
30449
30480
  return IObject(defined$2(it));
@@ -30563,7 +30594,14 @@ _objectGops.f = Object.getOwnPropertySymbols;
30563
30594
 
30564
30595
  var _objectPie = {};
30565
30596
 
30566
- _objectPie.f = {}.propertyIsEnumerable;
30597
+ var hasRequired_objectPie;
30598
+
30599
+ function require_objectPie () {
30600
+ if (hasRequired_objectPie) return _objectPie;
30601
+ hasRequired_objectPie = 1;
30602
+ _objectPie.f = {}.propertyIsEnumerable;
30603
+ return _objectPie;
30604
+ }
30567
30605
 
30568
30606
  // 7.1.13 ToObject(argument)
30569
30607
  var defined$1 = _defined;
@@ -30578,12 +30616,12 @@ function require_objectAssign () {
30578
30616
  if (hasRequired_objectAssign) return _objectAssign;
30579
30617
  hasRequired_objectAssign = 1;
30580
30618
  // 19.1.2.1 Object.assign(target, source, ...)
30581
- var DESCRIPTORS = _descriptors;
30619
+ var DESCRIPTORS = require_descriptors();
30582
30620
  var getKeys = _objectKeys;
30583
30621
  var gOPS = _objectGops;
30584
- var pIE = _objectPie;
30622
+ var pIE = require_objectPie();
30585
30623
  var toObject = _toObject;
30586
- var IObject = _iobject;
30624
+ var IObject = require_iobject();
30587
30625
  var $assign = Object.assign;
30588
30626
 
30589
30627
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -30654,11 +30692,11 @@ var _iterators = {};
30654
30692
 
30655
30693
  var _redefine = _hide;
30656
30694
 
30657
- var dP$1 = _objectDp;
30695
+ var dP$1 = require_objectDp();
30658
30696
  var anObject$4 = _anObject;
30659
30697
  var getKeys$1 = _objectKeys;
30660
30698
 
30661
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30699
+ var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30662
30700
  anObject$4(O);
30663
30701
  var keys = getKeys$1(Properties);
30664
30702
  var length = keys.length;
@@ -30737,7 +30775,7 @@ $exports.store = store$2;
30737
30775
 
30738
30776
  var _wksExports = _wks.exports;
30739
30777
 
30740
- var def = _objectDp.f;
30778
+ var def = require_objectDp().f;
30741
30779
  var has$c = _has;
30742
30780
  var TAG$1 = _wksExports('toStringTag');
30743
30781
 
@@ -31051,7 +31089,7 @@ var _isArrayIter = function (it) {
31051
31089
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
31052
31090
  };
31053
31091
 
31054
- var $defineProperty$2 = _objectDp;
31092
+ var $defineProperty$2 = require_objectDp();
31055
31093
  var createDesc$2 = _propertyDesc;
31056
31094
 
31057
31095
  var _createProperty = function (object, index, value) {
@@ -31184,7 +31222,7 @@ var _default$9 = function (instance, Constructor) {
31184
31222
 
31185
31223
  var $export$3 = _export;
31186
31224
  // 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 });
31225
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
31188
31226
 
31189
31227
  var $Object$2 = _coreExports.Object;
31190
31228
  var defineProperty$c = function defineProperty(it, key, desc) {
@@ -31232,7 +31270,7 @@ var _meta = {exports: {}};
31232
31270
  var META$1 = _uid('meta');
31233
31271
  var isObject$c = _isObject;
31234
31272
  var has$a = _has;
31235
- var setDesc = _objectDp.f;
31273
+ var setDesc = require_objectDp().f;
31236
31274
  var id$1 = 0;
31237
31275
  var isExtensible = Object.isExtensible || function () {
31238
31276
  return true;
@@ -31287,7 +31325,7 @@ var _metaExports = _meta.exports;
31287
31325
 
31288
31326
  var core = _coreExports;
31289
31327
  var wksExt$1 = _wksExt;
31290
- var defineProperty$a = _objectDp.f;
31328
+ var defineProperty$a = require_objectDp().f;
31291
31329
  var _wksDefine = function (name) {
31292
31330
  var $Symbol = core.Symbol || (core.Symbol = {} );
31293
31331
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$a($Symbol, name, { value: wksExt$1.f(name) });
@@ -31296,7 +31334,7 @@ var _wksDefine = function (name) {
31296
31334
  // all enumerable object keys, includes symbols
31297
31335
  var getKeys = _objectKeys;
31298
31336
  var gOPS$1 = _objectGops;
31299
- var pIE$1 = _objectPie;
31337
+ var pIE$1 = require_objectPie();
31300
31338
  var _enumKeys = function (it) {
31301
31339
  var result = getKeys(it);
31302
31340
  var getSymbols = gOPS$1.f;
@@ -31349,15 +31387,15 @@ _objectGopnExt.f = function getOwnPropertyNames(it) {
31349
31387
 
31350
31388
  var _objectGopd = {};
31351
31389
 
31352
- var pIE = _objectPie;
31390
+ var pIE = require_objectPie();
31353
31391
  var createDesc$1 = _propertyDesc;
31354
31392
  var toIObject$1 = _toIobject;
31355
31393
  var toPrimitive$1 = _toPrimitive$1;
31356
31394
  var has$9 = _has;
31357
- var IE8_DOM_DEFINE = _ie8DomDefine;
31395
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
31358
31396
  var gOPD$5 = Object.getOwnPropertyDescriptor;
31359
31397
 
31360
- _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31398
+ _objectGopd.f = require_descriptors() ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31361
31399
  O = toIObject$1(O);
31362
31400
  P = toPrimitive$1(P, true);
31363
31401
  if (IE8_DOM_DEFINE) try {
@@ -31369,7 +31407,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P)
31369
31407
  // ECMAScript 6 symbols shim
31370
31408
  var global$2 = _globalExports;
31371
31409
  var has$8 = _has;
31372
- var DESCRIPTORS = _descriptors;
31410
+ var DESCRIPTORS = require_descriptors();
31373
31411
  var $export$2 = _export;
31374
31412
  var redefine = _redefine;
31375
31413
  var META = _metaExports.KEY;
@@ -31392,7 +31430,7 @@ var _create$1 = _objectCreate;
31392
31430
  var gOPNExt = _objectGopnExt;
31393
31431
  var $GOPD = _objectGopd;
31394
31432
  var $GOPS = _objectGops;
31395
- var $DP = _objectDp;
31433
+ var $DP = require_objectDp();
31396
31434
  var $keys$1 = _objectKeys;
31397
31435
  var gOPD$4 = $GOPD.f;
31398
31436
  var dP = $DP.f;
@@ -31517,7 +31555,7 @@ if (!USE_NATIVE) {
31517
31555
  $GOPD.f = $getOwnPropertyDescriptor;
31518
31556
  $DP.f = $defineProperty$1;
31519
31557
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
31520
- _objectPie.f = $propertyIsEnumerable;
31558
+ require_objectPie().f = $propertyIsEnumerable;
31521
31559
  $GOPS.f = $getOwnPropertySymbols;
31522
31560
 
31523
31561
  if (DESCRIPTORS && !_library) {
@@ -155902,7 +155940,7 @@ class Sequence extends React$3.Component {
155902
155940
  key: i,
155903
155941
  ...{
155904
155942
  ...shared,
155905
- textLength: textLength - fudge - fudge2,
155943
+ textLength: Math.max(0, textLength - fudge - fudge2),
155906
155944
  x: x + fudge / 2,
155907
155945
  lengthAdjust: "spacing"
155908
155946
  }
@@ -155917,7 +155955,7 @@ class Sequence extends React$3.Component {
155917
155955
  ...{
155918
155956
  ...shared,
155919
155957
  x: 0 + fudge / 2,
155920
- textLength: (alignmentData ? seqReadWidth : width) - fudge - fudge2
155958
+ textLength: Math.max(0, (alignmentData ? seqReadWidth : width) - fudge - fudge2)
155921
155959
  }
155922
155960
  },
155923
155961
  getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength })
@@ -157599,7 +157637,7 @@ function getBasesToShow({
157599
157637
  insertStart
157600
157638
  });
157601
157639
  }
157602
- const textLength2 = charWidth * i.bases.length - fudge - fudge2;
157640
+ const textLength2 = Math.max(0, charWidth * i.bases.length - fudge - fudge2);
157603
157641
  insertText.push(
157604
157642
  /* @__PURE__ */ React$3.createElement(
157605
157643
  "text",
@@ -161170,7 +161208,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161170
161208
  }
161171
161209
 
161172
161210
  const name = "@teselagen/ove";
161173
- const version = "0.3.20";
161211
+ const version = "0.3.21";
161174
161212
  const main = "./src/index.js";
161175
161213
  const exports$1 = {
161176
161214
  ".": {
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;
@@ -30408,12 +30431,20 @@ var _cof = function (it) {
30408
30431
  return toString$6.call(it).slice(8, -1);
30409
30432
  };
30410
30433
 
30411
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30412
- var cof$2 = _cof;
30413
- // eslint-disable-next-line no-prototype-builtins
30414
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30415
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30416
- };
30434
+ var _iobject;
30435
+ var hasRequired_iobject;
30436
+
30437
+ function require_iobject () {
30438
+ if (hasRequired_iobject) return _iobject;
30439
+ hasRequired_iobject = 1;
30440
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30441
+ var cof = _cof;
30442
+ // eslint-disable-next-line no-prototype-builtins
30443
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30444
+ return cof(it) == 'String' ? it.split('') : Object(it);
30445
+ };
30446
+ return _iobject;
30447
+ }
30417
30448
 
30418
30449
  // 7.2.1 RequireObjectCoercible(argument)
30419
30450
  var _defined = function (it) {
@@ -30422,7 +30453,7 @@ var _defined = function (it) {
30422
30453
  };
30423
30454
 
30424
30455
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30425
- var IObject = _iobject;
30456
+ var IObject = require_iobject();
30426
30457
  var defined$2 = _defined;
30427
30458
  var _toIobject = function (it) {
30428
30459
  return IObject(defined$2(it));
@@ -30542,7 +30573,14 @@ _objectGops.f = Object.getOwnPropertySymbols;
30542
30573
 
30543
30574
  var _objectPie = {};
30544
30575
 
30545
- _objectPie.f = {}.propertyIsEnumerable;
30576
+ var hasRequired_objectPie;
30577
+
30578
+ function require_objectPie () {
30579
+ if (hasRequired_objectPie) return _objectPie;
30580
+ hasRequired_objectPie = 1;
30581
+ _objectPie.f = {}.propertyIsEnumerable;
30582
+ return _objectPie;
30583
+ }
30546
30584
 
30547
30585
  // 7.1.13 ToObject(argument)
30548
30586
  var defined$1 = _defined;
@@ -30557,12 +30595,12 @@ function require_objectAssign () {
30557
30595
  if (hasRequired_objectAssign) return _objectAssign;
30558
30596
  hasRequired_objectAssign = 1;
30559
30597
  // 19.1.2.1 Object.assign(target, source, ...)
30560
- var DESCRIPTORS = _descriptors;
30598
+ var DESCRIPTORS = require_descriptors();
30561
30599
  var getKeys = _objectKeys;
30562
30600
  var gOPS = _objectGops;
30563
- var pIE = _objectPie;
30601
+ var pIE = require_objectPie();
30564
30602
  var toObject = _toObject;
30565
- var IObject = _iobject;
30603
+ var IObject = require_iobject();
30566
30604
  var $assign = Object.assign;
30567
30605
 
30568
30606
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -30633,11 +30671,11 @@ var _iterators = {};
30633
30671
 
30634
30672
  var _redefine = _hide;
30635
30673
 
30636
- var dP$1 = _objectDp;
30674
+ var dP$1 = require_objectDp();
30637
30675
  var anObject$4 = _anObject;
30638
30676
  var getKeys$1 = _objectKeys;
30639
30677
 
30640
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30678
+ var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30641
30679
  anObject$4(O);
30642
30680
  var keys = getKeys$1(Properties);
30643
30681
  var length = keys.length;
@@ -30716,7 +30754,7 @@ $exports.store = store$2;
30716
30754
 
30717
30755
  var _wksExports = _wks.exports;
30718
30756
 
30719
- var def = _objectDp.f;
30757
+ var def = require_objectDp().f;
30720
30758
  var has$c = _has;
30721
30759
  var TAG$1 = _wksExports('toStringTag');
30722
30760
 
@@ -31030,7 +31068,7 @@ var _isArrayIter = function (it) {
31030
31068
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
31031
31069
  };
31032
31070
 
31033
- var $defineProperty$2 = _objectDp;
31071
+ var $defineProperty$2 = require_objectDp();
31034
31072
  var createDesc$2 = _propertyDesc;
31035
31073
 
31036
31074
  var _createProperty = function (object, index, value) {
@@ -31163,7 +31201,7 @@ var _default$9 = function (instance, Constructor) {
31163
31201
 
31164
31202
  var $export$3 = _export;
31165
31203
  // 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 });
31204
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
31167
31205
 
31168
31206
  var $Object$2 = _coreExports.Object;
31169
31207
  var defineProperty$c = function defineProperty(it, key, desc) {
@@ -31211,7 +31249,7 @@ var _meta = {exports: {}};
31211
31249
  var META$1 = _uid('meta');
31212
31250
  var isObject$c = _isObject;
31213
31251
  var has$a = _has;
31214
- var setDesc = _objectDp.f;
31252
+ var setDesc = require_objectDp().f;
31215
31253
  var id$1 = 0;
31216
31254
  var isExtensible = Object.isExtensible || function () {
31217
31255
  return true;
@@ -31266,7 +31304,7 @@ var _metaExports = _meta.exports;
31266
31304
 
31267
31305
  var core = _coreExports;
31268
31306
  var wksExt$1 = _wksExt;
31269
- var defineProperty$a = _objectDp.f;
31307
+ var defineProperty$a = require_objectDp().f;
31270
31308
  var _wksDefine = function (name) {
31271
31309
  var $Symbol = core.Symbol || (core.Symbol = {} );
31272
31310
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$a($Symbol, name, { value: wksExt$1.f(name) });
@@ -31275,7 +31313,7 @@ var _wksDefine = function (name) {
31275
31313
  // all enumerable object keys, includes symbols
31276
31314
  var getKeys = _objectKeys;
31277
31315
  var gOPS$1 = _objectGops;
31278
- var pIE$1 = _objectPie;
31316
+ var pIE$1 = require_objectPie();
31279
31317
  var _enumKeys = function (it) {
31280
31318
  var result = getKeys(it);
31281
31319
  var getSymbols = gOPS$1.f;
@@ -31328,15 +31366,15 @@ _objectGopnExt.f = function getOwnPropertyNames(it) {
31328
31366
 
31329
31367
  var _objectGopd = {};
31330
31368
 
31331
- var pIE = _objectPie;
31369
+ var pIE = require_objectPie();
31332
31370
  var createDesc$1 = _propertyDesc;
31333
31371
  var toIObject$1 = _toIobject;
31334
31372
  var toPrimitive$1 = _toPrimitive$1;
31335
31373
  var has$9 = _has;
31336
- var IE8_DOM_DEFINE = _ie8DomDefine;
31374
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
31337
31375
  var gOPD$5 = Object.getOwnPropertyDescriptor;
31338
31376
 
31339
- _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31377
+ _objectGopd.f = require_descriptors() ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31340
31378
  O = toIObject$1(O);
31341
31379
  P = toPrimitive$1(P, true);
31342
31380
  if (IE8_DOM_DEFINE) try {
@@ -31348,7 +31386,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P)
31348
31386
  // ECMAScript 6 symbols shim
31349
31387
  var global$2 = _globalExports;
31350
31388
  var has$8 = _has;
31351
- var DESCRIPTORS = _descriptors;
31389
+ var DESCRIPTORS = require_descriptors();
31352
31390
  var $export$2 = _export;
31353
31391
  var redefine = _redefine;
31354
31392
  var META = _metaExports.KEY;
@@ -31371,7 +31409,7 @@ var _create$1 = _objectCreate;
31371
31409
  var gOPNExt = _objectGopnExt;
31372
31410
  var $GOPD = _objectGopd;
31373
31411
  var $GOPS = _objectGops;
31374
- var $DP = _objectDp;
31412
+ var $DP = require_objectDp();
31375
31413
  var $keys$1 = _objectKeys;
31376
31414
  var gOPD$4 = $GOPD.f;
31377
31415
  var dP = $DP.f;
@@ -31496,7 +31534,7 @@ if (!USE_NATIVE) {
31496
31534
  $GOPD.f = $getOwnPropertyDescriptor;
31497
31535
  $DP.f = $defineProperty$1;
31498
31536
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
31499
- _objectPie.f = $propertyIsEnumerable;
31537
+ require_objectPie().f = $propertyIsEnumerable;
31500
31538
  $GOPS.f = $getOwnPropertySymbols;
31501
31539
 
31502
31540
  if (DESCRIPTORS && !_library) {
@@ -155881,7 +155919,7 @@ class Sequence extends React__default$1.Component {
155881
155919
  key: i,
155882
155920
  ...{
155883
155921
  ...shared,
155884
- textLength: textLength - fudge - fudge2,
155922
+ textLength: Math.max(0, textLength - fudge - fudge2),
155885
155923
  x: x + fudge / 2,
155886
155924
  lengthAdjust: "spacing"
155887
155925
  }
@@ -155896,7 +155934,7 @@ class Sequence extends React__default$1.Component {
155896
155934
  ...{
155897
155935
  ...shared,
155898
155936
  x: 0 + fudge / 2,
155899
- textLength: (alignmentData ? seqReadWidth : width) - fudge - fudge2
155937
+ textLength: Math.max(0, (alignmentData ? seqReadWidth : width) - fudge - fudge2)
155900
155938
  }
155901
155939
  },
155902
155940
  getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength })
@@ -157578,7 +157616,7 @@ function getBasesToShow({
157578
157616
  insertStart
157579
157617
  });
157580
157618
  }
157581
- const textLength2 = charWidth * i.bases.length - fudge - fudge2;
157619
+ const textLength2 = Math.max(0, charWidth * i.bases.length - fudge - fudge2);
157582
157620
  insertText.push(
157583
157621
  /* @__PURE__ */ React__default$1.createElement(
157584
157622
  "text",
@@ -161149,7 +161187,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161149
161187
  }
161150
161188
 
161151
161189
  const name = "@teselagen/ove";
161152
- const version = "0.3.20";
161190
+ const version = "0.3.21";
161153
161191
  const main = "./src/index.js";
161154
161192
  const exports$1 = {
161155
161193
  ".": {
package/index.umd.js CHANGED
@@ -57113,10 +57113,10 @@
57113
57113
  };
57114
57114
  };
57115
57115
 
57116
- var dP$2 = require_objectDp();
57116
+ var dP$1 = require_objectDp();
57117
57117
  var createDesc$3 = _propertyDesc;
57118
57118
  var _hide = require_descriptors() ? function (object, key, value) {
57119
- return dP$2.f(object, key, createDesc$3(1, value));
57119
+ return dP$1.f(object, key, createDesc$3(1, value));
57120
57120
  } : function (object, key, value) {
57121
57121
  object[key] = value;
57122
57122
  return object;
@@ -57132,7 +57132,7 @@
57132
57132
  var ctx$1 = _ctx;
57133
57133
  var hide$2 = _hide;
57134
57134
  var has$d = _has;
57135
- var PROTOTYPE$2 = 'prototype';
57135
+ var PROTOTYPE$1 = 'prototype';
57136
57136
 
57137
57137
  var $export$8 = function (type, name, source) {
57138
57138
  var IS_FORCED = type & $export$8.F;
@@ -57142,8 +57142,8 @@
57142
57142
  var IS_BIND = type & $export$8.B;
57143
57143
  var IS_WRAP = type & $export$8.W;
57144
57144
  var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
57145
- var expProto = exports[PROTOTYPE$2];
57146
- var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$2];
57145
+ var expProto = exports[PROTOTYPE$1];
57146
+ var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$1];
57147
57147
  var key, own, out;
57148
57148
  if (IS_GLOBAL) source = name;
57149
57149
  for (key in source) {
@@ -57167,7 +57167,7 @@
57167
57167
  } return new C(a, b, c);
57168
57168
  } return C.apply(this, arguments);
57169
57169
  };
57170
- F[PROTOTYPE$2] = C[PROTOTYPE$2];
57170
+ F[PROTOTYPE$1] = C[PROTOTYPE$1];
57171
57171
  return F;
57172
57172
  // make static versions for prototype methods
57173
57173
  })(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
@@ -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));
@@ -57296,14 +57304,14 @@
57296
57304
  var has$c = _has;
57297
57305
  var toIObject$4 = _toIobject;
57298
57306
  var arrayIndexOf = _arrayIncludes$1(false);
57299
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
57307
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
57300
57308
 
57301
57309
  var _objectKeysInternal = function (object, names) {
57302
57310
  var O = toIObject$4(object);
57303
57311
  var i = 0;
57304
57312
  var result = [];
57305
57313
  var key;
57306
- for (key in O) if (key != IE_PROTO$2) has$c(O, key) && result.push(key);
57314
+ for (key in O) if (key != IE_PROTO$1) has$c(O, key) && result.push(key);
57307
57315
  // Don't enum bug & hidden keys
57308
57316
  while (names.length > i) if (has$c(O, key = names[i++])) {
57309
57317
  ~arrayIndexOf(result, key) || result.push(key);
@@ -57318,10 +57326,10 @@
57318
57326
 
57319
57327
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
57320
57328
  var $keys$3 = _objectKeysInternal;
57321
- var enumBugKeys$1 = _enumBugKeys;
57329
+ var enumBugKeys = _enumBugKeys;
57322
57330
 
57323
57331
  var _objectKeys = Object.keys || function keys(O) {
57324
- return $keys$3(O, enumBugKeys$1);
57332
+ return $keys$3(O, enumBugKeys);
57325
57333
  };
57326
57334
 
57327
57335
  var _objectGops = {};
@@ -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)
@@ -57421,19 +57436,27 @@
57421
57436
 
57422
57437
  var _redefine = _hide;
57423
57438
 
57424
- var dP$1 = require_objectDp();
57425
- var anObject$4 = _anObject;
57426
- var getKeys$1 = _objectKeys;
57439
+ var _objectDps;
57440
+ var hasRequired_objectDps;
57427
57441
 
57428
- var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
57429
- anObject$4(O);
57430
- var keys = getKeys$1(Properties);
57431
- var length = keys.length;
57432
- var i = 0;
57433
- var P;
57434
- while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
57435
- return O;
57436
- };
57442
+ function require_objectDps () {
57443
+ if (hasRequired_objectDps) return _objectDps;
57444
+ hasRequired_objectDps = 1;
57445
+ var dP = require_objectDp();
57446
+ var anObject = _anObject;
57447
+ var getKeys = _objectKeys;
57448
+
57449
+ _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
57450
+ anObject(O);
57451
+ var keys = getKeys(Properties);
57452
+ var length = keys.length;
57453
+ var i = 0;
57454
+ var P;
57455
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
57456
+ return O;
57457
+ };
57458
+ return _objectDps;
57459
+ }
57437
57460
 
57438
57461
  var _html;
57439
57462
  var hasRequired_html;
@@ -57446,47 +57469,55 @@
57446
57469
  return _html;
57447
57470
  }
57448
57471
 
57449
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57450
- var anObject$3 = _anObject;
57451
- var dPs = _objectDps;
57452
- var enumBugKeys = _enumBugKeys;
57453
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
57454
- var Empty = function () { /* empty */ };
57455
- var PROTOTYPE$1 = 'prototype';
57472
+ var _objectCreate;
57473
+ var hasRequired_objectCreate;
57456
57474
 
57457
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
57458
- var createDict = function () {
57459
- // Thrash, waste and sodomy: IE GC bug
57460
- var iframe = require_domCreate()('iframe');
57461
- var i = enumBugKeys.length;
57462
- var lt = '<';
57463
- var gt = '>';
57464
- var iframeDocument;
57465
- iframe.style.display = 'none';
57466
- require_html().appendChild(iframe);
57467
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57468
- // createDict = iframe.contentWindow.Object;
57469
- // html.removeChild(iframe);
57470
- iframeDocument = iframe.contentWindow.document;
57471
- iframeDocument.open();
57472
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57473
- iframeDocument.close();
57474
- createDict = iframeDocument.F;
57475
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
57476
- return createDict();
57477
- };
57478
-
57479
- var _objectCreate = Object.create || function create(O, Properties) {
57480
- var result;
57481
- if (O !== null) {
57482
- Empty[PROTOTYPE$1] = anObject$3(O);
57483
- result = new Empty();
57484
- Empty[PROTOTYPE$1] = null;
57485
- // add "__proto__" for Object.getPrototypeOf polyfill
57486
- result[IE_PROTO$1] = O;
57487
- } else result = createDict();
57488
- return Properties === undefined ? result : dPs(result, Properties);
57489
- };
57475
+ function require_objectCreate () {
57476
+ if (hasRequired_objectCreate) return _objectCreate;
57477
+ hasRequired_objectCreate = 1;
57478
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57479
+ var anObject = _anObject;
57480
+ var dPs = require_objectDps();
57481
+ var enumBugKeys = _enumBugKeys;
57482
+ var IE_PROTO = _sharedKey('IE_PROTO');
57483
+ var Empty = function () { /* empty */ };
57484
+ var PROTOTYPE = 'prototype';
57485
+
57486
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
57487
+ var createDict = function () {
57488
+ // Thrash, waste and sodomy: IE GC bug
57489
+ var iframe = require_domCreate()('iframe');
57490
+ var i = enumBugKeys.length;
57491
+ var lt = '<';
57492
+ var gt = '>';
57493
+ var iframeDocument;
57494
+ iframe.style.display = 'none';
57495
+ require_html().appendChild(iframe);
57496
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57497
+ // createDict = iframe.contentWindow.Object;
57498
+ // html.removeChild(iframe);
57499
+ iframeDocument = iframe.contentWindow.document;
57500
+ iframeDocument.open();
57501
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57502
+ iframeDocument.close();
57503
+ createDict = iframeDocument.F;
57504
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
57505
+ return createDict();
57506
+ };
57507
+
57508
+ _objectCreate = Object.create || function create(O, Properties) {
57509
+ var result;
57510
+ if (O !== null) {
57511
+ Empty[PROTOTYPE] = anObject(O);
57512
+ result = new Empty();
57513
+ Empty[PROTOTYPE] = null;
57514
+ // add "__proto__" for Object.getPrototypeOf polyfill
57515
+ result[IE_PROTO] = O;
57516
+ } else result = createDict();
57517
+ return Properties === undefined ? result : dPs(result, Properties);
57518
+ };
57519
+ return _objectCreate;
57520
+ }
57490
57521
 
57491
57522
  var _wks = {exports: {}};
57492
57523
 
@@ -57512,7 +57543,7 @@
57512
57543
  if (it && !has$b(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
57513
57544
  };
57514
57545
 
57515
- var create$4 = _objectCreate;
57546
+ var create$4 = require_objectCreate();
57516
57547
  var descriptor = _propertyDesc;
57517
57548
  var setToStringTag$2 = _setToStringTag;
57518
57549
  var IteratorPrototype = {};
@@ -58063,7 +58094,7 @@
58063
58094
  // all enumerable object keys, includes symbols
58064
58095
  var getKeys = _objectKeys;
58065
58096
  var gOPS$1 = _objectGops;
58066
- var pIE$1 = _objectPie;
58097
+ var pIE$1 = require_objectPie();
58067
58098
  var _enumKeys = function (it) {
58068
58099
  var result = getKeys(it);
58069
58100
  var getSymbols = gOPS$1.f;
@@ -58116,7 +58147,7 @@
58116
58147
 
58117
58148
  var _objectGopd = {};
58118
58149
 
58119
- var pIE = _objectPie;
58150
+ var pIE = require_objectPie();
58120
58151
  var createDesc$1 = _propertyDesc;
58121
58152
  var toIObject$1 = _toIobject;
58122
58153
  var toPrimitive$1 = _toPrimitive$1;
@@ -58155,7 +58186,7 @@
58155
58186
  var toIObject = _toIobject;
58156
58187
  var toPrimitive = _toPrimitive$1;
58157
58188
  var createDesc = _propertyDesc;
58158
- var _create$1 = _objectCreate;
58189
+ var _create$1 = require_objectCreate();
58159
58190
  var gOPNExt = _objectGopnExt;
58160
58191
  var $GOPD = _objectGopd;
58161
58192
  var $GOPS = _objectGops;
@@ -58284,7 +58315,7 @@
58284
58315
  $GOPD.f = $getOwnPropertyDescriptor;
58285
58316
  $DP.f = $defineProperty;
58286
58317
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
58287
- _objectPie.f = $propertyIsEnumerable;
58318
+ require_objectPie().f = $propertyIsEnumerable;
58288
58319
  $GOPS.f = $getOwnPropertySymbols;
58289
58320
 
58290
58321
  if (DESCRIPTORS && !_library) {
@@ -58465,7 +58496,7 @@
58465
58496
 
58466
58497
  var $export = _export;
58467
58498
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
58468
- $export($export.S, 'Object', { create: _objectCreate });
58499
+ $export($export.S, 'Object', { create: require_objectCreate() });
58469
58500
 
58470
58501
  var $Object = _coreExports.Object;
58471
58502
  var create$3 = function create(P, D) {
@@ -183547,7 +183578,7 @@
183547
183578
  key: i,
183548
183579
  ...{
183549
183580
  ...shared,
183550
- textLength: textLength - fudge - fudge2,
183581
+ textLength: Math.max(0, textLength - fudge - fudge2),
183551
183582
  x: x + fudge / 2,
183552
183583
  lengthAdjust: "spacing"
183553
183584
  }
@@ -183562,7 +183593,7 @@
183562
183593
  ...{
183563
183594
  ...shared,
183564
183595
  x: 0 + fudge / 2,
183565
- textLength: (alignmentData ? seqReadWidth : width) - fudge - fudge2
183596
+ textLength: Math.max(0, (alignmentData ? seqReadWidth : width) - fudge - fudge2)
183566
183597
  }
183567
183598
  },
183568
183599
  getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength })
@@ -185244,7 +185275,7 @@ double click --> edit`}`;
185244
185275
  insertStart
185245
185276
  });
185246
185277
  }
185247
- const textLength2 = charWidth * i.bases.length - fudge - fudge2;
185278
+ const textLength2 = Math.max(0, charWidth * i.bases.length - fudge - fudge2);
185248
185279
  insertText.push(
185249
185280
  /* @__PURE__ */ React$3.createElement(
185250
185281
  "text",
@@ -188777,7 +188808,7 @@ double click --> edit`}`;
188777
188808
  }
188778
188809
 
188779
188810
  const name = "@teselagen/ove";
188780
- const version = "0.3.20";
188811
+ const version = "0.3.21";
188781
188812
  const main = "./src/index.js";
188782
188813
  const exports$1 = {
188783
188814
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -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" }}