@teselagen/ove 0.3.20 → 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;
@@ -30593,7 +30616,7 @@ function require_objectAssign () {
30593
30616
  if (hasRequired_objectAssign) return _objectAssign;
30594
30617
  hasRequired_objectAssign = 1;
30595
30618
  // 19.1.2.1 Object.assign(target, source, ...)
30596
- var DESCRIPTORS = _descriptors;
30619
+ var DESCRIPTORS = require_descriptors();
30597
30620
  var getKeys = _objectKeys;
30598
30621
  var gOPS = _objectGops;
30599
30622
  var pIE = require_objectPie();
@@ -30669,11 +30692,11 @@ var _iterators = {};
30669
30692
 
30670
30693
  var _redefine = _hide;
30671
30694
 
30672
- var dP$1 = _objectDp;
30695
+ var dP$1 = require_objectDp();
30673
30696
  var anObject$4 = _anObject;
30674
30697
  var getKeys$1 = _objectKeys;
30675
30698
 
30676
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30699
+ var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30677
30700
  anObject$4(O);
30678
30701
  var keys = getKeys$1(Properties);
30679
30702
  var length = keys.length;
@@ -30752,7 +30775,7 @@ $exports.store = store$2;
30752
30775
 
30753
30776
  var _wksExports = _wks.exports;
30754
30777
 
30755
- var def = _objectDp.f;
30778
+ var def = require_objectDp().f;
30756
30779
  var has$c = _has;
30757
30780
  var TAG$1 = _wksExports('toStringTag');
30758
30781
 
@@ -31066,7 +31089,7 @@ var _isArrayIter = function (it) {
31066
31089
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
31067
31090
  };
31068
31091
 
31069
- var $defineProperty$2 = _objectDp;
31092
+ var $defineProperty$2 = require_objectDp();
31070
31093
  var createDesc$2 = _propertyDesc;
31071
31094
 
31072
31095
  var _createProperty = function (object, index, value) {
@@ -31199,7 +31222,7 @@ var _default$9 = function (instance, Constructor) {
31199
31222
 
31200
31223
  var $export$3 = _export;
31201
31224
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
31202
- $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 });
31203
31226
 
31204
31227
  var $Object$2 = _coreExports.Object;
31205
31228
  var defineProperty$c = function defineProperty(it, key, desc) {
@@ -31247,7 +31270,7 @@ var _meta = {exports: {}};
31247
31270
  var META$1 = _uid('meta');
31248
31271
  var isObject$c = _isObject;
31249
31272
  var has$a = _has;
31250
- var setDesc = _objectDp.f;
31273
+ var setDesc = require_objectDp().f;
31251
31274
  var id$1 = 0;
31252
31275
  var isExtensible = Object.isExtensible || function () {
31253
31276
  return true;
@@ -31302,7 +31325,7 @@ var _metaExports = _meta.exports;
31302
31325
 
31303
31326
  var core = _coreExports;
31304
31327
  var wksExt$1 = _wksExt;
31305
- var defineProperty$a = _objectDp.f;
31328
+ var defineProperty$a = require_objectDp().f;
31306
31329
  var _wksDefine = function (name) {
31307
31330
  var $Symbol = core.Symbol || (core.Symbol = {} );
31308
31331
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$a($Symbol, name, { value: wksExt$1.f(name) });
@@ -31369,10 +31392,10 @@ var createDesc$1 = _propertyDesc;
31369
31392
  var toIObject$1 = _toIobject;
31370
31393
  var toPrimitive$1 = _toPrimitive$1;
31371
31394
  var has$9 = _has;
31372
- var IE8_DOM_DEFINE = _ie8DomDefine;
31395
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
31373
31396
  var gOPD$5 = Object.getOwnPropertyDescriptor;
31374
31397
 
31375
- _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31398
+ _objectGopd.f = require_descriptors() ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31376
31399
  O = toIObject$1(O);
31377
31400
  P = toPrimitive$1(P, true);
31378
31401
  if (IE8_DOM_DEFINE) try {
@@ -31384,7 +31407,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P)
31384
31407
  // ECMAScript 6 symbols shim
31385
31408
  var global$2 = _globalExports;
31386
31409
  var has$8 = _has;
31387
- var DESCRIPTORS = _descriptors;
31410
+ var DESCRIPTORS = require_descriptors();
31388
31411
  var $export$2 = _export;
31389
31412
  var redefine = _redefine;
31390
31413
  var META = _metaExports.KEY;
@@ -31407,7 +31430,7 @@ var _create$1 = _objectCreate;
31407
31430
  var gOPNExt = _objectGopnExt;
31408
31431
  var $GOPD = _objectGopd;
31409
31432
  var $GOPS = _objectGops;
31410
- var $DP = _objectDp;
31433
+ var $DP = require_objectDp();
31411
31434
  var $keys$1 = _objectKeys;
31412
31435
  var gOPD$4 = $GOPD.f;
31413
31436
  var dP = $DP.f;
@@ -155917,7 +155940,7 @@ class Sequence extends React$3.Component {
155917
155940
  key: i,
155918
155941
  ...{
155919
155942
  ...shared,
155920
- textLength: textLength - fudge - fudge2,
155943
+ textLength: Math.max(0, textLength - fudge - fudge2),
155921
155944
  x: x + fudge / 2,
155922
155945
  lengthAdjust: "spacing"
155923
155946
  }
@@ -155932,7 +155955,7 @@ class Sequence extends React$3.Component {
155932
155955
  ...{
155933
155956
  ...shared,
155934
155957
  x: 0 + fudge / 2,
155935
- textLength: (alignmentData ? seqReadWidth : width) - fudge - fudge2
155958
+ textLength: Math.max(0, (alignmentData ? seqReadWidth : width) - fudge - fudge2)
155936
155959
  }
155937
155960
  },
155938
155961
  getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength })
@@ -157614,7 +157637,7 @@ function getBasesToShow({
157614
157637
  insertStart
157615
157638
  });
157616
157639
  }
157617
- const textLength2 = charWidth * i.bases.length - fudge - fudge2;
157640
+ const textLength2 = Math.max(0, charWidth * i.bases.length - fudge - fudge2);
157618
157641
  insertText.push(
157619
157642
  /* @__PURE__ */ React$3.createElement(
157620
157643
  "text",
@@ -161185,7 +161208,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161185
161208
  }
161186
161209
 
161187
161210
  const name = "@teselagen/ove";
161188
- const version = "0.3.19";
161211
+ const version = "0.3.21";
161189
161212
  const main = "./src/index.js";
161190
161213
  const exports$1 = {
161191
161214
  ".": {
@@ -162653,7 +162676,7 @@ const editCommandDefs = {
162653
162676
  },
162654
162677
  useGtgAndCtgAsStartCodons: {
162655
162678
  isHidden: isProtein,
162656
- name: "Use GTG And CTG As Start Codons",
162679
+ name: (props) => isRna(props) ? "Use GUG And CUG As Start Codons" : "Use GTG And CTG As Start Codons",
162657
162680
  isActive: (props) => props.useAdditionalOrfStartCodons,
162658
162681
  handler: (props) => props.useAdditionalOrfStartCodonsToggle()
162659
162682
  },
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;
@@ -30572,7 +30595,7 @@ function require_objectAssign () {
30572
30595
  if (hasRequired_objectAssign) return _objectAssign;
30573
30596
  hasRequired_objectAssign = 1;
30574
30597
  // 19.1.2.1 Object.assign(target, source, ...)
30575
- var DESCRIPTORS = _descriptors;
30598
+ var DESCRIPTORS = require_descriptors();
30576
30599
  var getKeys = _objectKeys;
30577
30600
  var gOPS = _objectGops;
30578
30601
  var pIE = require_objectPie();
@@ -30648,11 +30671,11 @@ var _iterators = {};
30648
30671
 
30649
30672
  var _redefine = _hide;
30650
30673
 
30651
- var dP$1 = _objectDp;
30674
+ var dP$1 = require_objectDp();
30652
30675
  var anObject$4 = _anObject;
30653
30676
  var getKeys$1 = _objectKeys;
30654
30677
 
30655
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30678
+ var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30656
30679
  anObject$4(O);
30657
30680
  var keys = getKeys$1(Properties);
30658
30681
  var length = keys.length;
@@ -30731,7 +30754,7 @@ $exports.store = store$2;
30731
30754
 
30732
30755
  var _wksExports = _wks.exports;
30733
30756
 
30734
- var def = _objectDp.f;
30757
+ var def = require_objectDp().f;
30735
30758
  var has$c = _has;
30736
30759
  var TAG$1 = _wksExports('toStringTag');
30737
30760
 
@@ -31045,7 +31068,7 @@ var _isArrayIter = function (it) {
31045
31068
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
31046
31069
  };
31047
31070
 
31048
- var $defineProperty$2 = _objectDp;
31071
+ var $defineProperty$2 = require_objectDp();
31049
31072
  var createDesc$2 = _propertyDesc;
31050
31073
 
31051
31074
  var _createProperty = function (object, index, value) {
@@ -31178,7 +31201,7 @@ var _default$9 = function (instance, Constructor) {
31178
31201
 
31179
31202
  var $export$3 = _export;
31180
31203
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
31181
- $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 });
31182
31205
 
31183
31206
  var $Object$2 = _coreExports.Object;
31184
31207
  var defineProperty$c = function defineProperty(it, key, desc) {
@@ -31226,7 +31249,7 @@ var _meta = {exports: {}};
31226
31249
  var META$1 = _uid('meta');
31227
31250
  var isObject$c = _isObject;
31228
31251
  var has$a = _has;
31229
- var setDesc = _objectDp.f;
31252
+ var setDesc = require_objectDp().f;
31230
31253
  var id$1 = 0;
31231
31254
  var isExtensible = Object.isExtensible || function () {
31232
31255
  return true;
@@ -31281,7 +31304,7 @@ var _metaExports = _meta.exports;
31281
31304
 
31282
31305
  var core = _coreExports;
31283
31306
  var wksExt$1 = _wksExt;
31284
- var defineProperty$a = _objectDp.f;
31307
+ var defineProperty$a = require_objectDp().f;
31285
31308
  var _wksDefine = function (name) {
31286
31309
  var $Symbol = core.Symbol || (core.Symbol = {} );
31287
31310
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$a($Symbol, name, { value: wksExt$1.f(name) });
@@ -31348,10 +31371,10 @@ var createDesc$1 = _propertyDesc;
31348
31371
  var toIObject$1 = _toIobject;
31349
31372
  var toPrimitive$1 = _toPrimitive$1;
31350
31373
  var has$9 = _has;
31351
- var IE8_DOM_DEFINE = _ie8DomDefine;
31374
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
31352
31375
  var gOPD$5 = Object.getOwnPropertyDescriptor;
31353
31376
 
31354
- _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31377
+ _objectGopd.f = require_descriptors() ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31355
31378
  O = toIObject$1(O);
31356
31379
  P = toPrimitive$1(P, true);
31357
31380
  if (IE8_DOM_DEFINE) try {
@@ -31363,7 +31386,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P)
31363
31386
  // ECMAScript 6 symbols shim
31364
31387
  var global$2 = _globalExports;
31365
31388
  var has$8 = _has;
31366
- var DESCRIPTORS = _descriptors;
31389
+ var DESCRIPTORS = require_descriptors();
31367
31390
  var $export$2 = _export;
31368
31391
  var redefine = _redefine;
31369
31392
  var META = _metaExports.KEY;
@@ -31386,7 +31409,7 @@ var _create$1 = _objectCreate;
31386
31409
  var gOPNExt = _objectGopnExt;
31387
31410
  var $GOPD = _objectGopd;
31388
31411
  var $GOPS = _objectGops;
31389
- var $DP = _objectDp;
31412
+ var $DP = require_objectDp();
31390
31413
  var $keys$1 = _objectKeys;
31391
31414
  var gOPD$4 = $GOPD.f;
31392
31415
  var dP = $DP.f;
@@ -155896,7 +155919,7 @@ class Sequence extends React__default$1.Component {
155896
155919
  key: i,
155897
155920
  ...{
155898
155921
  ...shared,
155899
- textLength: textLength - fudge - fudge2,
155922
+ textLength: Math.max(0, textLength - fudge - fudge2),
155900
155923
  x: x + fudge / 2,
155901
155924
  lengthAdjust: "spacing"
155902
155925
  }
@@ -155911,7 +155934,7 @@ class Sequence extends React__default$1.Component {
155911
155934
  ...{
155912
155935
  ...shared,
155913
155936
  x: 0 + fudge / 2,
155914
- textLength: (alignmentData ? seqReadWidth : width) - fudge - fudge2
155937
+ textLength: Math.max(0, (alignmentData ? seqReadWidth : width) - fudge - fudge2)
155915
155938
  }
155916
155939
  },
155917
155940
  getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength })
@@ -157593,7 +157616,7 @@ function getBasesToShow({
157593
157616
  insertStart
157594
157617
  });
157595
157618
  }
157596
- const textLength2 = charWidth * i.bases.length - fudge - fudge2;
157619
+ const textLength2 = Math.max(0, charWidth * i.bases.length - fudge - fudge2);
157597
157620
  insertText.push(
157598
157621
  /* @__PURE__ */ React__default$1.createElement(
157599
157622
  "text",
@@ -161164,7 +161187,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161164
161187
  }
161165
161188
 
161166
161189
  const name = "@teselagen/ove";
161167
- const version = "0.3.19";
161190
+ const version = "0.3.21";
161168
161191
  const main = "./src/index.js";
161169
161192
  const exports$1 = {
161170
161193
  ".": {
@@ -162632,7 +162655,7 @@ const editCommandDefs = {
162632
162655
  },
162633
162656
  useGtgAndCtgAsStartCodons: {
162634
162657
  isHidden: isProtein,
162635
- name: "Use GTG And CTG As Start Codons",
162658
+ name: (props) => isRna(props) ? "Use GUG And CUG As Start Codons" : "Use GTG And CTG As Start Codons",
162636
162659
  isActive: (props) => props.useAdditionalOrfStartCodons,
162637
162660
  handler: (props) => props.useAdditionalOrfStartCodonsToggle()
162638
162661
  },
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;
@@ -57304,14 +57304,14 @@
57304
57304
  var has$c = _has;
57305
57305
  var toIObject$4 = _toIobject;
57306
57306
  var arrayIndexOf = _arrayIncludes$1(false);
57307
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
57307
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
57308
57308
 
57309
57309
  var _objectKeysInternal = function (object, names) {
57310
57310
  var O = toIObject$4(object);
57311
57311
  var i = 0;
57312
57312
  var result = [];
57313
57313
  var key;
57314
- 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);
57315
57315
  // Don't enum bug & hidden keys
57316
57316
  while (names.length > i) if (has$c(O, key = names[i++])) {
57317
57317
  ~arrayIndexOf(result, key) || result.push(key);
@@ -57326,10 +57326,10 @@
57326
57326
 
57327
57327
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
57328
57328
  var $keys$3 = _objectKeysInternal;
57329
- var enumBugKeys$1 = _enumBugKeys;
57329
+ var enumBugKeys = _enumBugKeys;
57330
57330
 
57331
57331
  var _objectKeys = Object.keys || function keys(O) {
57332
- return $keys$3(O, enumBugKeys$1);
57332
+ return $keys$3(O, enumBugKeys);
57333
57333
  };
57334
57334
 
57335
57335
  var _objectGops = {};
@@ -57436,19 +57436,27 @@
57436
57436
 
57437
57437
  var _redefine = _hide;
57438
57438
 
57439
- var dP$1 = require_objectDp();
57440
- var anObject$4 = _anObject;
57441
- var getKeys$1 = _objectKeys;
57439
+ var _objectDps;
57440
+ var hasRequired_objectDps;
57442
57441
 
57443
- var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
57444
- anObject$4(O);
57445
- var keys = getKeys$1(Properties);
57446
- var length = keys.length;
57447
- var i = 0;
57448
- var P;
57449
- while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
57450
- return O;
57451
- };
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
+ }
57452
57460
 
57453
57461
  var _html;
57454
57462
  var hasRequired_html;
@@ -57461,47 +57469,55 @@
57461
57469
  return _html;
57462
57470
  }
57463
57471
 
57464
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57465
- var anObject$3 = _anObject;
57466
- var dPs = _objectDps;
57467
- var enumBugKeys = _enumBugKeys;
57468
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
57469
- var Empty = function () { /* empty */ };
57470
- var PROTOTYPE$1 = 'prototype';
57472
+ var _objectCreate;
57473
+ var hasRequired_objectCreate;
57471
57474
 
57472
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
57473
- var createDict = function () {
57474
- // Thrash, waste and sodomy: IE GC bug
57475
- var iframe = require_domCreate()('iframe');
57476
- var i = enumBugKeys.length;
57477
- var lt = '<';
57478
- var gt = '>';
57479
- var iframeDocument;
57480
- iframe.style.display = 'none';
57481
- require_html().appendChild(iframe);
57482
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57483
- // createDict = iframe.contentWindow.Object;
57484
- // html.removeChild(iframe);
57485
- iframeDocument = iframe.contentWindow.document;
57486
- iframeDocument.open();
57487
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57488
- iframeDocument.close();
57489
- createDict = iframeDocument.F;
57490
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
57491
- return createDict();
57492
- };
57493
-
57494
- var _objectCreate = Object.create || function create(O, Properties) {
57495
- var result;
57496
- if (O !== null) {
57497
- Empty[PROTOTYPE$1] = anObject$3(O);
57498
- result = new Empty();
57499
- Empty[PROTOTYPE$1] = null;
57500
- // add "__proto__" for Object.getPrototypeOf polyfill
57501
- result[IE_PROTO$1] = O;
57502
- } else result = createDict();
57503
- return Properties === undefined ? result : dPs(result, Properties);
57504
- };
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
+ }
57505
57521
 
57506
57522
  var _wks = {exports: {}};
57507
57523
 
@@ -57527,7 +57543,7 @@
57527
57543
  if (it && !has$b(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
57528
57544
  };
57529
57545
 
57530
- var create$4 = _objectCreate;
57546
+ var create$4 = require_objectCreate();
57531
57547
  var descriptor = _propertyDesc;
57532
57548
  var setToStringTag$2 = _setToStringTag;
57533
57549
  var IteratorPrototype = {};
@@ -58170,7 +58186,7 @@
58170
58186
  var toIObject = _toIobject;
58171
58187
  var toPrimitive = _toPrimitive$1;
58172
58188
  var createDesc = _propertyDesc;
58173
- var _create$1 = _objectCreate;
58189
+ var _create$1 = require_objectCreate();
58174
58190
  var gOPNExt = _objectGopnExt;
58175
58191
  var $GOPD = _objectGopd;
58176
58192
  var $GOPS = _objectGops;
@@ -58480,7 +58496,7 @@
58480
58496
 
58481
58497
  var $export = _export;
58482
58498
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
58483
- $export($export.S, 'Object', { create: _objectCreate });
58499
+ $export($export.S, 'Object', { create: require_objectCreate() });
58484
58500
 
58485
58501
  var $Object = _coreExports.Object;
58486
58502
  var create$3 = function create(P, D) {
@@ -183562,7 +183578,7 @@
183562
183578
  key: i,
183563
183579
  ...{
183564
183580
  ...shared,
183565
- textLength: textLength - fudge - fudge2,
183581
+ textLength: Math.max(0, textLength - fudge - fudge2),
183566
183582
  x: x + fudge / 2,
183567
183583
  lengthAdjust: "spacing"
183568
183584
  }
@@ -183577,7 +183593,7 @@
183577
183593
  ...{
183578
183594
  ...shared,
183579
183595
  x: 0 + fudge / 2,
183580
- textLength: (alignmentData ? seqReadWidth : width) - fudge - fudge2
183596
+ textLength: Math.max(0, (alignmentData ? seqReadWidth : width) - fudge - fudge2)
183581
183597
  }
183582
183598
  },
183583
183599
  getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength })
@@ -185259,7 +185275,7 @@ double click --> edit`}`;
185259
185275
  insertStart
185260
185276
  });
185261
185277
  }
185262
- const textLength2 = charWidth * i.bases.length - fudge - fudge2;
185278
+ const textLength2 = Math.max(0, charWidth * i.bases.length - fudge - fudge2);
185263
185279
  insertText.push(
185264
185280
  /* @__PURE__ */ React$3.createElement(
185265
185281
  "text",
@@ -188792,7 +188808,7 @@ double click --> edit`}`;
188792
188808
  }
188793
188809
 
188794
188810
  const name = "@teselagen/ove";
188795
- const version = "0.3.19";
188811
+ const version = "0.3.21";
188796
188812
  const main = "./src/index.js";
188797
188813
  const exports$1 = {
188798
188814
  ".": {
@@ -190260,7 +190276,7 @@ double click --> edit`}`;
190260
190276
  },
190261
190277
  useGtgAndCtgAsStartCodons: {
190262
190278
  isHidden: isProtein,
190263
- name: "Use GTG And CTG As Start Codons",
190279
+ name: (props) => isRna(props) ? "Use GUG And CUG As Start Codons" : "Use GTG And CTG As Start Codons",
190264
190280
  isActive: (props) => props.useAdditionalOrfStartCodons,
190265
190281
  handler: (props) => props.useAdditionalOrfStartCodonsToggle()
190266
190282
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.20",
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" }}
@@ -930,7 +930,10 @@ const editCommandDefs = {
930
930
  useGtgAndCtgAsStartCodons: {
931
931
  isHidden: isProtein,
932
932
 
933
- name: "Use GTG And CTG As Start Codons",
933
+ name: props =>
934
+ isRna(props)
935
+ ? "Use GUG And CUG As Start Codons"
936
+ : "Use GTG And CTG As Start Codons",
934
937
  isActive: props => props.useAdditionalOrfStartCodons,
935
938
  handler: props => props.useAdditionalOrfStartCodonsToggle()
936
939
  },