@teselagen/ove 0.3.13 → 0.3.14

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.mjs CHANGED
@@ -30258,10 +30258,18 @@ var _fails = function (exec) {
30258
30258
  }
30259
30259
  };
30260
30260
 
30261
- // Thank's IE8 for his funny defineProperty
30262
- var _descriptors = !_fails(function () {
30263
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30264
- });
30261
+ var _descriptors;
30262
+ var hasRequired_descriptors;
30263
+
30264
+ function require_descriptors () {
30265
+ if (hasRequired_descriptors) return _descriptors;
30266
+ hasRequired_descriptors = 1;
30267
+ // Thank's IE8 for his funny defineProperty
30268
+ _descriptors = !_fails(function () {
30269
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30270
+ });
30271
+ return _descriptors;
30272
+ }
30265
30273
 
30266
30274
  var _domCreate;
30267
30275
  var hasRequired_domCreate;
@@ -30279,7 +30287,7 @@ function require_domCreate () {
30279
30287
  return _domCreate;
30280
30288
  }
30281
30289
 
30282
- var _ie8DomDefine = !_descriptors && !_fails(function () {
30290
+ var _ie8DomDefine = !require_descriptors() && !_fails(function () {
30283
30291
  return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30284
30292
  });
30285
30293
 
@@ -30296,17 +30304,17 @@ var _toPrimitive$1 = function (it, S) {
30296
30304
  throw TypeError("Can't convert object to primitive value");
30297
30305
  };
30298
30306
 
30299
- var anObject$5 = _anObject;
30307
+ var anObject$3 = _anObject;
30300
30308
  var IE8_DOM_DEFINE$1 = _ie8DomDefine;
30301
30309
  var toPrimitive$2 = _toPrimitive$1;
30302
- var dP$3 = Object.defineProperty;
30310
+ var dP$2 = Object.defineProperty;
30303
30311
 
30304
- _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30305
- anObject$5(O);
30312
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30313
+ anObject$3(O);
30306
30314
  P = toPrimitive$2(P, true);
30307
- anObject$5(Attributes);
30315
+ anObject$3(Attributes);
30308
30316
  if (IE8_DOM_DEFINE$1) try {
30309
- return dP$3(O, P, Attributes);
30317
+ return dP$2(O, P, Attributes);
30310
30318
  } catch (e) { /* empty */ }
30311
30319
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30312
30320
  if ('value' in Attributes) O[P] = Attributes.value;
@@ -30322,10 +30330,10 @@ var _propertyDesc = function (bitmap, value) {
30322
30330
  };
30323
30331
  };
30324
30332
 
30325
- var dP$2 = _objectDp;
30333
+ var dP$1 = _objectDp;
30326
30334
  var createDesc$3 = _propertyDesc;
30327
- var _hide = _descriptors ? function (object, key, value) {
30328
- return dP$2.f(object, key, createDesc$3(1, value));
30335
+ var _hide = require_descriptors() ? function (object, key, value) {
30336
+ return dP$1.f(object, key, createDesc$3(1, value));
30329
30337
  } : function (object, key, value) {
30330
30338
  object[key] = value;
30331
30339
  return object;
@@ -30341,7 +30349,7 @@ var core$3 = _coreExports;
30341
30349
  var ctx$1 = _ctx;
30342
30350
  var hide$3 = _hide;
30343
30351
  var has$e = _has;
30344
- var PROTOTYPE$2 = 'prototype';
30352
+ var PROTOTYPE$1 = 'prototype';
30345
30353
 
30346
30354
  var $export$8 = function (type, name, source) {
30347
30355
  var IS_FORCED = type & $export$8.F;
@@ -30351,8 +30359,8 @@ var $export$8 = function (type, name, source) {
30351
30359
  var IS_BIND = type & $export$8.B;
30352
30360
  var IS_WRAP = type & $export$8.W;
30353
30361
  var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
30354
- var expProto = exports[PROTOTYPE$2];
30355
- var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name] : (global$5[name] || {})[PROTOTYPE$2];
30362
+ var expProto = exports[PROTOTYPE$1];
30363
+ var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name] : (global$5[name] || {})[PROTOTYPE$1];
30356
30364
  var key, own, out;
30357
30365
  if (IS_GLOBAL) source = name;
30358
30366
  for (key in source) {
@@ -30376,7 +30384,7 @@ var $export$8 = function (type, name, source) {
30376
30384
  } return new C(a, b, c);
30377
30385
  } return C.apply(this, arguments);
30378
30386
  };
30379
- F[PROTOTYPE$2] = C[PROTOTYPE$2];
30387
+ F[PROTOTYPE$1] = C[PROTOTYPE$1];
30380
30388
  return F;
30381
30389
  // make static versions for prototype methods
30382
30390
  })(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
@@ -30405,12 +30413,20 @@ var _cof = function (it) {
30405
30413
  return toString$6.call(it).slice(8, -1);
30406
30414
  };
30407
30415
 
30408
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30409
- var cof$2 = _cof;
30410
- // eslint-disable-next-line no-prototype-builtins
30411
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30412
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30413
- };
30416
+ var _iobject;
30417
+ var hasRequired_iobject;
30418
+
30419
+ function require_iobject () {
30420
+ if (hasRequired_iobject) return _iobject;
30421
+ hasRequired_iobject = 1;
30422
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30423
+ var cof = _cof;
30424
+ // eslint-disable-next-line no-prototype-builtins
30425
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30426
+ return cof(it) == 'String' ? it.split('') : Object(it);
30427
+ };
30428
+ return _iobject;
30429
+ }
30414
30430
 
30415
30431
  // 7.2.1 RequireObjectCoercible(argument)
30416
30432
  var _defined = function (it) {
@@ -30419,7 +30435,7 @@ var _defined = function (it) {
30419
30435
  };
30420
30436
 
30421
30437
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30422
- var IObject = _iobject;
30438
+ var IObject = require_iobject();
30423
30439
  var defined$2 = _defined;
30424
30440
  var _toIobject = function (it) {
30425
30441
  return IObject(defined$2(it));
@@ -30505,14 +30521,14 @@ var _sharedKey = function (key) {
30505
30521
  var has$d = _has;
30506
30522
  var toIObject$4 = _toIobject;
30507
30523
  var arrayIndexOf = _arrayIncludes$1(false);
30508
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
30524
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
30509
30525
 
30510
30526
  var _objectKeysInternal = function (object, names) {
30511
30527
  var O = toIObject$4(object);
30512
30528
  var i = 0;
30513
30529
  var result = [];
30514
30530
  var key;
30515
- for (key in O) if (key != IE_PROTO$2) has$d(O, key) && result.push(key);
30531
+ for (key in O) if (key != IE_PROTO$1) has$d(O, key) && result.push(key);
30516
30532
  // Don't enum bug & hidden keys
30517
30533
  while (names.length > i) if (has$d(O, key = names[i++])) {
30518
30534
  ~arrayIndexOf(result, key) || result.push(key);
@@ -30527,10 +30543,10 @@ var _enumBugKeys = (
30527
30543
 
30528
30544
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
30529
30545
  var $keys$3 = _objectKeysInternal;
30530
- var enumBugKeys$1 = _enumBugKeys;
30546
+ var enumBugKeys = _enumBugKeys;
30531
30547
 
30532
30548
  var _objectKeys = Object.keys || function keys(O) {
30533
- return $keys$3(O, enumBugKeys$1);
30549
+ return $keys$3(O, enumBugKeys);
30534
30550
  };
30535
30551
 
30536
30552
  var _objectGops = {};
@@ -30554,12 +30570,12 @@ function require_objectAssign () {
30554
30570
  if (hasRequired_objectAssign) return _objectAssign;
30555
30571
  hasRequired_objectAssign = 1;
30556
30572
  // 19.1.2.1 Object.assign(target, source, ...)
30557
- var DESCRIPTORS = _descriptors;
30573
+ var DESCRIPTORS = require_descriptors();
30558
30574
  var getKeys = _objectKeys;
30559
30575
  var gOPS = _objectGops;
30560
30576
  var pIE = _objectPie;
30561
30577
  var toObject = _toObject;
30562
- var IObject = _iobject;
30578
+ var IObject = require_iobject();
30563
30579
  var $assign = Object.assign;
30564
30580
 
30565
30581
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -30630,19 +30646,27 @@ var _iterators = {};
30630
30646
 
30631
30647
  var _redefine = _hide;
30632
30648
 
30633
- var dP$1 = _objectDp;
30634
- var anObject$4 = _anObject;
30635
- var getKeys$1 = _objectKeys;
30649
+ var _objectDps;
30650
+ var hasRequired_objectDps;
30636
30651
 
30637
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30638
- anObject$4(O);
30639
- var keys = getKeys$1(Properties);
30640
- var length = keys.length;
30641
- var i = 0;
30642
- var P;
30643
- while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
30644
- return O;
30645
- };
30652
+ function require_objectDps () {
30653
+ if (hasRequired_objectDps) return _objectDps;
30654
+ hasRequired_objectDps = 1;
30655
+ var dP = _objectDp;
30656
+ var anObject = _anObject;
30657
+ var getKeys = _objectKeys;
30658
+
30659
+ _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30660
+ anObject(O);
30661
+ var keys = getKeys(Properties);
30662
+ var length = keys.length;
30663
+ var i = 0;
30664
+ var P;
30665
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
30666
+ return O;
30667
+ };
30668
+ return _objectDps;
30669
+ }
30646
30670
 
30647
30671
  var _html;
30648
30672
  var hasRequired_html;
@@ -30655,47 +30679,55 @@ function require_html () {
30655
30679
  return _html;
30656
30680
  }
30657
30681
 
30658
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
30659
- var anObject$3 = _anObject;
30660
- var dPs = _objectDps;
30661
- var enumBugKeys = _enumBugKeys;
30662
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
30663
- var Empty = function () { /* empty */ };
30664
- var PROTOTYPE$1 = 'prototype';
30682
+ var _objectCreate;
30683
+ var hasRequired_objectCreate;
30665
30684
 
30666
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
30667
- var createDict = function () {
30668
- // Thrash, waste and sodomy: IE GC bug
30669
- var iframe = require_domCreate()('iframe');
30670
- var i = enumBugKeys.length;
30671
- var lt = '<';
30672
- var gt = '>';
30673
- var iframeDocument;
30674
- iframe.style.display = 'none';
30675
- require_html().appendChild(iframe);
30676
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
30677
- // createDict = iframe.contentWindow.Object;
30678
- // html.removeChild(iframe);
30679
- iframeDocument = iframe.contentWindow.document;
30680
- iframeDocument.open();
30681
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
30682
- iframeDocument.close();
30683
- createDict = iframeDocument.F;
30684
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
30685
- return createDict();
30686
- };
30687
-
30688
- var _objectCreate = Object.create || function create(O, Properties) {
30689
- var result;
30690
- if (O !== null) {
30691
- Empty[PROTOTYPE$1] = anObject$3(O);
30692
- result = new Empty();
30693
- Empty[PROTOTYPE$1] = null;
30694
- // add "__proto__" for Object.getPrototypeOf polyfill
30695
- result[IE_PROTO$1] = O;
30696
- } else result = createDict();
30697
- return Properties === undefined ? result : dPs(result, Properties);
30698
- };
30685
+ function require_objectCreate () {
30686
+ if (hasRequired_objectCreate) return _objectCreate;
30687
+ hasRequired_objectCreate = 1;
30688
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
30689
+ var anObject = _anObject;
30690
+ var dPs = require_objectDps();
30691
+ var enumBugKeys = _enumBugKeys;
30692
+ var IE_PROTO = _sharedKey('IE_PROTO');
30693
+ var Empty = function () { /* empty */ };
30694
+ var PROTOTYPE = 'prototype';
30695
+
30696
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
30697
+ var createDict = function () {
30698
+ // Thrash, waste and sodomy: IE GC bug
30699
+ var iframe = require_domCreate()('iframe');
30700
+ var i = enumBugKeys.length;
30701
+ var lt = '<';
30702
+ var gt = '>';
30703
+ var iframeDocument;
30704
+ iframe.style.display = 'none';
30705
+ require_html().appendChild(iframe);
30706
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
30707
+ // createDict = iframe.contentWindow.Object;
30708
+ // html.removeChild(iframe);
30709
+ iframeDocument = iframe.contentWindow.document;
30710
+ iframeDocument.open();
30711
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
30712
+ iframeDocument.close();
30713
+ createDict = iframeDocument.F;
30714
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
30715
+ return createDict();
30716
+ };
30717
+
30718
+ _objectCreate = Object.create || function create(O, Properties) {
30719
+ var result;
30720
+ if (O !== null) {
30721
+ Empty[PROTOTYPE] = anObject(O);
30722
+ result = new Empty();
30723
+ Empty[PROTOTYPE] = null;
30724
+ // add "__proto__" for Object.getPrototypeOf polyfill
30725
+ result[IE_PROTO] = O;
30726
+ } else result = createDict();
30727
+ return Properties === undefined ? result : dPs(result, Properties);
30728
+ };
30729
+ return _objectCreate;
30730
+ }
30699
30731
 
30700
30732
  var _wks = {exports: {}};
30701
30733
 
@@ -30721,7 +30753,7 @@ var _setToStringTag = function (it, tag, stat) {
30721
30753
  if (it && !has$c(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
30722
30754
  };
30723
30755
 
30724
- var create$4 = _objectCreate;
30756
+ var create$4 = require_objectCreate();
30725
30757
  var descriptor = _propertyDesc;
30726
30758
  var setToStringTag$2 = _setToStringTag;
30727
30759
  var IteratorPrototype = {};
@@ -31160,7 +31192,7 @@ var _default$9 = function (instance, Constructor) {
31160
31192
 
31161
31193
  var $export$3 = _export;
31162
31194
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
31163
- $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
31195
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: _objectDp.f });
31164
31196
 
31165
31197
  var $Object$2 = _coreExports.Object;
31166
31198
  var defineProperty$c = function defineProperty(it, key, desc) {
@@ -31333,7 +31365,7 @@ var has$9 = _has;
31333
31365
  var IE8_DOM_DEFINE = _ie8DomDefine;
31334
31366
  var gOPD$5 = Object.getOwnPropertyDescriptor;
31335
31367
 
31336
- _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31368
+ _objectGopd.f = require_descriptors() ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31337
31369
  O = toIObject$1(O);
31338
31370
  P = toPrimitive$1(P, true);
31339
31371
  if (IE8_DOM_DEFINE) try {
@@ -31345,7 +31377,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P)
31345
31377
  // ECMAScript 6 symbols shim
31346
31378
  var global$2 = _globalExports;
31347
31379
  var has$8 = _has;
31348
- var DESCRIPTORS = _descriptors;
31380
+ var DESCRIPTORS = require_descriptors();
31349
31381
  var $export$2 = _export;
31350
31382
  var redefine = _redefine;
31351
31383
  var META = _metaExports.KEY;
@@ -31364,7 +31396,7 @@ var toObject$1 = _toObject;
31364
31396
  var toIObject = _toIobject;
31365
31397
  var toPrimitive = _toPrimitive$1;
31366
31398
  var createDesc = _propertyDesc;
31367
- var _create$1 = _objectCreate;
31399
+ var _create$1 = require_objectCreate();
31368
31400
  var gOPNExt = _objectGopnExt;
31369
31401
  var $GOPD = _objectGopd;
31370
31402
  var $GOPS = _objectGops;
@@ -31674,7 +31706,7 @@ var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
31674
31706
 
31675
31707
  var $export = _export;
31676
31708
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
31677
- $export($export.S, 'Object', { create: _objectCreate });
31709
+ $export($export.S, 'Object', { create: require_objectCreate() });
31678
31710
 
31679
31711
  var $Object$1 = _coreExports.Object;
31680
31712
  var create$3 = function create(P, D) {
@@ -106593,8 +106625,8 @@ function getOverlapsOfPotentiallyCircularRanges(rangeA, rangeB, maxRangeLength,
106593
106625
  maxRangeLength
106594
106626
  );
106595
106627
  let overlaps = [];
106596
- normalizedRangeA.forEach(function(nonCircularRangeA, iA) {
106597
- normalizedRangeB.forEach(function(nonCircularRangeB, iB) {
106628
+ normalizedRangeA.forEach(function(nonCircularRangeA) {
106629
+ normalizedRangeB.forEach(function(nonCircularRangeB) {
106598
106630
  const overlap = getOverlapOfNonCircularRanges(
106599
106631
  nonCircularRangeA,
106600
106632
  nonCircularRangeB
@@ -106606,7 +106638,7 @@ function getOverlapsOfPotentiallyCircularRanges(rangeA, rangeB, maxRangeLength,
106606
106638
  });
106607
106639
  if (joinIfPossible && normalizedRangeA.length === 2 && normalizedRangeB.length === 2 && maxRangeLength) {
106608
106640
  const joinedOverlap = {};
106609
- overlaps = lodashExports.flatMap(overlaps, (o, i) => {
106641
+ overlaps = lodashExports.flatMap(overlaps, (o) => {
106610
106642
  if (o.start === 0) {
106611
106643
  joinedOverlap.end = o.end;
106612
106644
  return [];
@@ -107096,7 +107128,7 @@ function translateRange(rangeToBeAdjusted, translateBy, rangeLength) {
107096
107128
  });
107097
107129
  }
107098
107130
 
107099
- function flipRelativeRange(innerRange, outerRange, sequenceLength, options) {
107131
+ function flipRelativeRange(innerRange, outerRange, sequenceLength) {
107100
107132
  const isFullyContained = isRangeWithinRange(
107101
107133
  innerRange,
107102
107134
  outerRange,
@@ -107108,7 +107140,7 @@ function flipRelativeRange(innerRange, outerRange, sequenceLength, options) {
107108
107140
  return flipNonFullyContainedRange(innerRange, outerRange, sequenceLength);
107109
107141
  }
107110
107142
  }
107111
- function flipNonFullyContainedRange(innerRange, outerRange, sequenceLength, options) {
107143
+ function flipNonFullyContainedRange(innerRange, outerRange, sequenceLength) {
107112
107144
  const outerFullyContained = isRangeWithinRange(
107113
107145
  outerRange,
107114
107146
  innerRange,
@@ -107149,9 +107181,8 @@ function flipNonFullyContainedRange(innerRange, outerRange, sequenceLength, opti
107149
107181
  sequenceLength
107150
107182
  );
107151
107183
  if (overlaps.length >= 1) {
107152
- let overlapExtendsForward;
107153
107184
  const firstOverlap = overlaps[0];
107154
- overlapExtendsForward = firstOverlap.start !== outerRange.start;
107185
+ const overlapExtendsForward = firstOverlap.start !== outerRange.start;
107155
107186
  const flippedTruncatedInner = flipFullyContainedRange(
107156
107187
  firstOverlap,
107157
107188
  outerRange,
@@ -107172,7 +107203,7 @@ function flipNonFullyContainedRange(innerRange, outerRange, sequenceLength, opti
107172
107203
  }
107173
107204
  return flippedInnerRange;
107174
107205
  }
107175
- function flipFullyContainedRange(innerRange, outerRange, sequenceLength, options) {
107206
+ function flipFullyContainedRange(innerRange, outerRange, sequenceLength) {
107176
107207
  const translateBy = -outerRange.start;
107177
107208
  const translatedOuterRange = translateRange(
107178
107209
  outerRange,
@@ -107300,6 +107331,7 @@ function getYOffsetForPotentiallyCircularRange(range, YOffsetLevelsWithRanges, a
107300
107331
  rangesAlreadyAddedToYOffset.push(range);
107301
107332
  return true;
107302
107333
  }
107334
+ return false;
107303
107335
  });
107304
107336
  if (!openYOffsetFound) {
107305
107337
  yOffset = YOffsetLevelsWithRanges.length;
@@ -124003,7 +124035,6 @@ function genbankToJson(string, options = {}) {
124003
124035
  }
124004
124036
  function parseLocus(line) {
124005
124037
  result = createInitialSequence(options);
124006
- let locusName;
124007
124038
  let circular;
124008
124039
  let gbDivision;
124009
124040
  let date;
@@ -124014,7 +124045,7 @@ function genbankToJson(string, options = {}) {
124014
124045
  );
124015
124046
  addMessage("Import Warning: Locus line contains no values: " + line);
124016
124047
  }
124017
- locusName = lineArr[1];
124048
+ const locusName = lineArr[1];
124018
124049
  for (let i = 1; i < lineArr.length; i++) {
124019
124050
  if (lineArr[i].match(/circular/gi)) {
124020
124051
  circular = true;
@@ -124161,10 +124192,10 @@ function genbankToJson(string, options = {}) {
124161
124192
  }
124162
124193
  }
124163
124194
  function parseFeatureNote(line) {
124164
- let newLine, lineArr;
124195
+ let newLine;
124165
124196
  newLine = line.trimLeft();
124166
124197
  newLine = newLine.replace(/^\/|"$/g, "");
124167
- lineArr = newLine.split(/="|=/);
124198
+ const lineArr = newLine.split(/="|=/);
124168
124199
  let val = lineArr.slice(1).join("=");
124169
124200
  if (val) {
124170
124201
  val = val.replace(/\\/g, " ");
@@ -137632,7 +137663,6 @@ function createGenbankLocus(serSeq, options) {
137632
137663
  if (serSeq.sequence.symbols) {
137633
137664
  serSeq.sequence = serSeq.sequence.symbols.split("");
137634
137665
  }
137635
- let tmp;
137636
137666
  let dnaType;
137637
137667
  if (serSeq.isProtein) {
137638
137668
  dnaType = "";
@@ -137649,7 +137679,7 @@ function createGenbankLocus(serSeq, options) {
137649
137679
  line += " ";
137650
137680
  line += StringUtil.lpad(String(serSeq.sequence.length), " ", 11);
137651
137681
  line += serSeq.isProtein ? " aa " : " bp ";
137652
- tmp = "";
137682
+ const tmp = "";
137653
137683
  line += StringUtil.lpad(tmp, " ", 3);
137654
137684
  line += StringUtil.rpad(dnaType, " ", 6);
137655
137685
  line += " ";
@@ -142883,6 +142913,7 @@ function mapStateToProps(state, ownProps) {
142883
142913
  if (!editorState) {
142884
142914
  return editorReducer({}, {});
142885
142915
  }
142916
+ const sequenceLength = selectors.sequenceLengthSelector(editorState);
142886
142917
  const { findTool, annotationsToSupport = {} } = editorState;
142887
142918
  const visibilities = getVisibilities(editorState);
142888
142919
  let annotationToAdd;
@@ -142893,7 +142924,13 @@ function mapStateToProps(state, ownProps) {
142893
142924
  ].forEach(([n, type, annotationTypePlural]) => {
142894
142925
  const vals = getFormValues(n)(state);
142895
142926
  if (vals) {
142896
- annotationToAdd = getAnnToAdd(vals, n, type, annotationTypePlural);
142927
+ annotationToAdd = getAnnToAdd(
142928
+ vals,
142929
+ n,
142930
+ type,
142931
+ annotationTypePlural,
142932
+ sequenceLength
142933
+ );
142897
142934
  }
142898
142935
  });
142899
142936
  const toReturn = {
@@ -142917,7 +142954,6 @@ function mapStateToProps(state, ownProps) {
142917
142954
  editorState,
142918
142955
  ownProps.additionalEnzymes
142919
142956
  );
142920
- const sequenceLength = selectors.sequenceLengthSelector(editorState);
142921
142957
  const { matchedSearchLayer, searchLayers, matchesTotal } = getSearchLayersAndMatch(editorState);
142922
142958
  const annotationSearchMatches = selectors.annotationSearchSelector(editorState);
142923
142959
  const _sequenceDataToUse = getSequenceDataToUse(
@@ -143193,21 +143229,26 @@ const getFindTool = createSelector(
143193
143229
  };
143194
143230
  }
143195
143231
  );
143196
- const getAnnToAdd = defaultMemoize((vals, n, type, annotationTypePlural) => {
143197
- const annToAdd = {
143198
- color: getFeatureToColorMap({ includeHidden: true })[vals.type || "primer_bind"],
143199
- //we won't have the correct color yet so we set it here
143200
- ...vals,
143201
- formName: n,
143202
- type,
143203
- annotationTypePlural,
143204
- name: vals.name || "Untitled"
143205
- };
143206
- if (!vals.useLinkedOligo) {
143207
- delete annToAdd.bases;
143232
+ const getAnnToAdd = defaultMemoize(
143233
+ (vals, n, type, annotationTypePlural, sequenceLength) => {
143234
+ const annToAdd = normalizeRange(
143235
+ {
143236
+ color: getFeatureToColorMap({ includeHidden: true })[vals.type || "primer_bind"],
143237
+ //we won't have the correct color yet so we set it here
143238
+ ...vals,
143239
+ formName: n,
143240
+ type,
143241
+ annotationTypePlural,
143242
+ name: vals.name || "Untitled"
143243
+ },
143244
+ sequenceLength
143245
+ );
143246
+ if (!vals.useLinkedOligo) {
143247
+ delete annToAdd.bases;
143248
+ }
143249
+ return annToAdd;
143208
143250
  }
143209
- return annToAdd;
143210
- });
143251
+ );
143211
143252
  const getSeqDataWithAnnToAdd = defaultMemoize(
143212
143253
  (seqData, ann, allowMultipleFeatureDirections) => {
143213
143254
  if (ann) {
@@ -161118,7 +161159,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161118
161159
  }
161119
161160
 
161120
161161
  const name = "@teselagen/ove";
161121
- const version = "0.3.12";
161162
+ const version = "0.3.13";
161122
161163
  const main = "./src/index.js";
161123
161164
  const exports$1 = {
161124
161165
  ".": {
@@ -177357,30 +177398,30 @@ class AddOrEditAnnotationDialog extends React__default$1.Component {
177357
177398
  formatStart = (val) => {
177358
177399
  const { isProtein } = this.props.sequenceData || {};
177359
177400
  if (isProtein) {
177360
- return (val + 2) / 3;
177401
+ return lodashExports.round((val + 2) / 3);
177361
177402
  }
177362
- return val;
177403
+ return lodashExports.round(val);
177363
177404
  };
177364
177405
  formatEnd = (val) => {
177365
177406
  const { isProtein } = this.props.sequenceData || {};
177366
177407
  if (isProtein) {
177367
- return val / 3;
177408
+ return lodashExports.round(val / 3);
177368
177409
  }
177369
- return val;
177410
+ return lodashExports.round(val);
177370
177411
  };
177371
177412
  parseStart = (val) => {
177372
177413
  const { isProtein } = this.props.sequenceData || {};
177373
177414
  if (isProtein) {
177374
- return val * 3 - 2;
177415
+ return lodashExports.round(val * 3 - 2);
177375
177416
  }
177376
- return val;
177417
+ return lodashExports.round(val);
177377
177418
  };
177378
177419
  parseEnd = (val) => {
177379
177420
  const { isProtein } = this.props.sequenceData || {};
177380
177421
  if (isProtein) {
177381
- return val * 3;
177422
+ return lodashExports.round(val * 3);
177382
177423
  }
177383
- return val;
177424
+ return lodashExports.round(val);
177384
177425
  };
177385
177426
  renderLocations = (props) => {
177386
177427
  const { fields } = props;
@@ -184652,7 +184693,7 @@ class GeneralProperties extends React__default$1.Component {
184652
184693
  {
184653
184694
  className: "veReadOnlySelect",
184654
184695
  disabled: !onSave || disableSetReadOnly,
184655
- onChange: (val) => console.log(`val:`, val) || handleReadOnlyChange(val === "readOnly", this.props),
184696
+ onChange: (val) => handleReadOnlyChange(val === "readOnly", this.props),
184656
184697
  value: readOnly ? "readOnly" : "editable",
184657
184698
  options: [
184658
184699
  { label: "Read Only", value: "readOnly" },