@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.js CHANGED
@@ -30279,10 +30279,18 @@ var _fails = function (exec) {
30279
30279
  }
30280
30280
  };
30281
30281
 
30282
- // Thank's IE8 for his funny defineProperty
30283
- var _descriptors = !_fails(function () {
30284
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30285
- });
30282
+ var _descriptors;
30283
+ var hasRequired_descriptors;
30284
+
30285
+ function require_descriptors () {
30286
+ if (hasRequired_descriptors) return _descriptors;
30287
+ hasRequired_descriptors = 1;
30288
+ // Thank's IE8 for his funny defineProperty
30289
+ _descriptors = !_fails(function () {
30290
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30291
+ });
30292
+ return _descriptors;
30293
+ }
30286
30294
 
30287
30295
  var _domCreate;
30288
30296
  var hasRequired_domCreate;
@@ -30300,7 +30308,7 @@ function require_domCreate () {
30300
30308
  return _domCreate;
30301
30309
  }
30302
30310
 
30303
- var _ie8DomDefine = !_descriptors && !_fails(function () {
30311
+ var _ie8DomDefine = !require_descriptors() && !_fails(function () {
30304
30312
  return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30305
30313
  });
30306
30314
 
@@ -30317,17 +30325,17 @@ var _toPrimitive$1 = function (it, S) {
30317
30325
  throw TypeError("Can't convert object to primitive value");
30318
30326
  };
30319
30327
 
30320
- var anObject$5 = _anObject;
30328
+ var anObject$3 = _anObject;
30321
30329
  var IE8_DOM_DEFINE$1 = _ie8DomDefine;
30322
30330
  var toPrimitive$2 = _toPrimitive$1;
30323
- var dP$3 = Object.defineProperty;
30331
+ var dP$2 = Object.defineProperty;
30324
30332
 
30325
- _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30326
- anObject$5(O);
30333
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30334
+ anObject$3(O);
30327
30335
  P = toPrimitive$2(P, true);
30328
- anObject$5(Attributes);
30336
+ anObject$3(Attributes);
30329
30337
  if (IE8_DOM_DEFINE$1) try {
30330
- return dP$3(O, P, Attributes);
30338
+ return dP$2(O, P, Attributes);
30331
30339
  } catch (e) { /* empty */ }
30332
30340
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30333
30341
  if ('value' in Attributes) O[P] = Attributes.value;
@@ -30343,10 +30351,10 @@ var _propertyDesc = function (bitmap, value) {
30343
30351
  };
30344
30352
  };
30345
30353
 
30346
- var dP$2 = _objectDp;
30354
+ var dP$1 = _objectDp;
30347
30355
  var createDesc$3 = _propertyDesc;
30348
- var _hide = _descriptors ? function (object, key, value) {
30349
- return dP$2.f(object, key, createDesc$3(1, value));
30356
+ var _hide = require_descriptors() ? function (object, key, value) {
30357
+ return dP$1.f(object, key, createDesc$3(1, value));
30350
30358
  } : function (object, key, value) {
30351
30359
  object[key] = value;
30352
30360
  return object;
@@ -30362,7 +30370,7 @@ var core$3 = _coreExports;
30362
30370
  var ctx$1 = _ctx;
30363
30371
  var hide$3 = _hide;
30364
30372
  var has$e = _has;
30365
- var PROTOTYPE$2 = 'prototype';
30373
+ var PROTOTYPE$1 = 'prototype';
30366
30374
 
30367
30375
  var $export$8 = function (type, name, source) {
30368
30376
  var IS_FORCED = type & $export$8.F;
@@ -30372,8 +30380,8 @@ var $export$8 = function (type, name, source) {
30372
30380
  var IS_BIND = type & $export$8.B;
30373
30381
  var IS_WRAP = type & $export$8.W;
30374
30382
  var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
30375
- var expProto = exports[PROTOTYPE$2];
30376
- var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name] : (global$5[name] || {})[PROTOTYPE$2];
30383
+ var expProto = exports[PROTOTYPE$1];
30384
+ var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name] : (global$5[name] || {})[PROTOTYPE$1];
30377
30385
  var key, own, out;
30378
30386
  if (IS_GLOBAL) source = name;
30379
30387
  for (key in source) {
@@ -30397,7 +30405,7 @@ var $export$8 = function (type, name, source) {
30397
30405
  } return new C(a, b, c);
30398
30406
  } return C.apply(this, arguments);
30399
30407
  };
30400
- F[PROTOTYPE$2] = C[PROTOTYPE$2];
30408
+ F[PROTOTYPE$1] = C[PROTOTYPE$1];
30401
30409
  return F;
30402
30410
  // make static versions for prototype methods
30403
30411
  })(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
@@ -30426,12 +30434,20 @@ var _cof = function (it) {
30426
30434
  return toString$6.call(it).slice(8, -1);
30427
30435
  };
30428
30436
 
30429
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30430
- var cof$2 = _cof;
30431
- // eslint-disable-next-line no-prototype-builtins
30432
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30433
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30434
- };
30437
+ var _iobject;
30438
+ var hasRequired_iobject;
30439
+
30440
+ function require_iobject () {
30441
+ if (hasRequired_iobject) return _iobject;
30442
+ hasRequired_iobject = 1;
30443
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30444
+ var cof = _cof;
30445
+ // eslint-disable-next-line no-prototype-builtins
30446
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30447
+ return cof(it) == 'String' ? it.split('') : Object(it);
30448
+ };
30449
+ return _iobject;
30450
+ }
30435
30451
 
30436
30452
  // 7.2.1 RequireObjectCoercible(argument)
30437
30453
  var _defined = function (it) {
@@ -30440,7 +30456,7 @@ var _defined = function (it) {
30440
30456
  };
30441
30457
 
30442
30458
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30443
- var IObject = _iobject;
30459
+ var IObject = require_iobject();
30444
30460
  var defined$2 = _defined;
30445
30461
  var _toIobject = function (it) {
30446
30462
  return IObject(defined$2(it));
@@ -30526,14 +30542,14 @@ var _sharedKey = function (key) {
30526
30542
  var has$d = _has;
30527
30543
  var toIObject$4 = _toIobject;
30528
30544
  var arrayIndexOf = _arrayIncludes$1(false);
30529
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
30545
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
30530
30546
 
30531
30547
  var _objectKeysInternal = function (object, names) {
30532
30548
  var O = toIObject$4(object);
30533
30549
  var i = 0;
30534
30550
  var result = [];
30535
30551
  var key;
30536
- for (key in O) if (key != IE_PROTO$2) has$d(O, key) && result.push(key);
30552
+ for (key in O) if (key != IE_PROTO$1) has$d(O, key) && result.push(key);
30537
30553
  // Don't enum bug & hidden keys
30538
30554
  while (names.length > i) if (has$d(O, key = names[i++])) {
30539
30555
  ~arrayIndexOf(result, key) || result.push(key);
@@ -30548,10 +30564,10 @@ var _enumBugKeys = (
30548
30564
 
30549
30565
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
30550
30566
  var $keys$3 = _objectKeysInternal;
30551
- var enumBugKeys$1 = _enumBugKeys;
30567
+ var enumBugKeys = _enumBugKeys;
30552
30568
 
30553
30569
  var _objectKeys = Object.keys || function keys(O) {
30554
- return $keys$3(O, enumBugKeys$1);
30570
+ return $keys$3(O, enumBugKeys);
30555
30571
  };
30556
30572
 
30557
30573
  var _objectGops = {};
@@ -30575,12 +30591,12 @@ function require_objectAssign () {
30575
30591
  if (hasRequired_objectAssign) return _objectAssign;
30576
30592
  hasRequired_objectAssign = 1;
30577
30593
  // 19.1.2.1 Object.assign(target, source, ...)
30578
- var DESCRIPTORS = _descriptors;
30594
+ var DESCRIPTORS = require_descriptors();
30579
30595
  var getKeys = _objectKeys;
30580
30596
  var gOPS = _objectGops;
30581
30597
  var pIE = _objectPie;
30582
30598
  var toObject = _toObject;
30583
- var IObject = _iobject;
30599
+ var IObject = require_iobject();
30584
30600
  var $assign = Object.assign;
30585
30601
 
30586
30602
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -30651,19 +30667,27 @@ var _iterators = {};
30651
30667
 
30652
30668
  var _redefine = _hide;
30653
30669
 
30654
- var dP$1 = _objectDp;
30655
- var anObject$4 = _anObject;
30656
- var getKeys$1 = _objectKeys;
30670
+ var _objectDps;
30671
+ var hasRequired_objectDps;
30657
30672
 
30658
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30659
- anObject$4(O);
30660
- var keys = getKeys$1(Properties);
30661
- var length = keys.length;
30662
- var i = 0;
30663
- var P;
30664
- while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
30665
- return O;
30666
- };
30673
+ function require_objectDps () {
30674
+ if (hasRequired_objectDps) return _objectDps;
30675
+ hasRequired_objectDps = 1;
30676
+ var dP = _objectDp;
30677
+ var anObject = _anObject;
30678
+ var getKeys = _objectKeys;
30679
+
30680
+ _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30681
+ anObject(O);
30682
+ var keys = getKeys(Properties);
30683
+ var length = keys.length;
30684
+ var i = 0;
30685
+ var P;
30686
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
30687
+ return O;
30688
+ };
30689
+ return _objectDps;
30690
+ }
30667
30691
 
30668
30692
  var _html;
30669
30693
  var hasRequired_html;
@@ -30676,47 +30700,55 @@ function require_html () {
30676
30700
  return _html;
30677
30701
  }
30678
30702
 
30679
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
30680
- var anObject$3 = _anObject;
30681
- var dPs = _objectDps;
30682
- var enumBugKeys = _enumBugKeys;
30683
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
30684
- var Empty = function () { /* empty */ };
30685
- var PROTOTYPE$1 = 'prototype';
30703
+ var _objectCreate;
30704
+ var hasRequired_objectCreate;
30686
30705
 
30687
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
30688
- var createDict = function () {
30689
- // Thrash, waste and sodomy: IE GC bug
30690
- var iframe = require_domCreate()('iframe');
30691
- var i = enumBugKeys.length;
30692
- var lt = '<';
30693
- var gt = '>';
30694
- var iframeDocument;
30695
- iframe.style.display = 'none';
30696
- require_html().appendChild(iframe);
30697
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
30698
- // createDict = iframe.contentWindow.Object;
30699
- // html.removeChild(iframe);
30700
- iframeDocument = iframe.contentWindow.document;
30701
- iframeDocument.open();
30702
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
30703
- iframeDocument.close();
30704
- createDict = iframeDocument.F;
30705
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
30706
- return createDict();
30707
- };
30708
-
30709
- var _objectCreate = Object.create || function create(O, Properties) {
30710
- var result;
30711
- if (O !== null) {
30712
- Empty[PROTOTYPE$1] = anObject$3(O);
30713
- result = new Empty();
30714
- Empty[PROTOTYPE$1] = null;
30715
- // add "__proto__" for Object.getPrototypeOf polyfill
30716
- result[IE_PROTO$1] = O;
30717
- } else result = createDict();
30718
- return Properties === undefined ? result : dPs(result, Properties);
30719
- };
30706
+ function require_objectCreate () {
30707
+ if (hasRequired_objectCreate) return _objectCreate;
30708
+ hasRequired_objectCreate = 1;
30709
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
30710
+ var anObject = _anObject;
30711
+ var dPs = require_objectDps();
30712
+ var enumBugKeys = _enumBugKeys;
30713
+ var IE_PROTO = _sharedKey('IE_PROTO');
30714
+ var Empty = function () { /* empty */ };
30715
+ var PROTOTYPE = 'prototype';
30716
+
30717
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
30718
+ var createDict = function () {
30719
+ // Thrash, waste and sodomy: IE GC bug
30720
+ var iframe = require_domCreate()('iframe');
30721
+ var i = enumBugKeys.length;
30722
+ var lt = '<';
30723
+ var gt = '>';
30724
+ var iframeDocument;
30725
+ iframe.style.display = 'none';
30726
+ require_html().appendChild(iframe);
30727
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
30728
+ // createDict = iframe.contentWindow.Object;
30729
+ // html.removeChild(iframe);
30730
+ iframeDocument = iframe.contentWindow.document;
30731
+ iframeDocument.open();
30732
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
30733
+ iframeDocument.close();
30734
+ createDict = iframeDocument.F;
30735
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
30736
+ return createDict();
30737
+ };
30738
+
30739
+ _objectCreate = Object.create || function create(O, Properties) {
30740
+ var result;
30741
+ if (O !== null) {
30742
+ Empty[PROTOTYPE] = anObject(O);
30743
+ result = new Empty();
30744
+ Empty[PROTOTYPE] = null;
30745
+ // add "__proto__" for Object.getPrototypeOf polyfill
30746
+ result[IE_PROTO] = O;
30747
+ } else result = createDict();
30748
+ return Properties === undefined ? result : dPs(result, Properties);
30749
+ };
30750
+ return _objectCreate;
30751
+ }
30720
30752
 
30721
30753
  var _wks = {exports: {}};
30722
30754
 
@@ -30742,7 +30774,7 @@ var _setToStringTag = function (it, tag, stat) {
30742
30774
  if (it && !has$c(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
30743
30775
  };
30744
30776
 
30745
- var create$4 = _objectCreate;
30777
+ var create$4 = require_objectCreate();
30746
30778
  var descriptor = _propertyDesc;
30747
30779
  var setToStringTag$2 = _setToStringTag;
30748
30780
  var IteratorPrototype = {};
@@ -31181,7 +31213,7 @@ var _default$9 = function (instance, Constructor) {
31181
31213
 
31182
31214
  var $export$3 = _export;
31183
31215
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
31184
- $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
31216
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: _objectDp.f });
31185
31217
 
31186
31218
  var $Object$2 = _coreExports.Object;
31187
31219
  var defineProperty$c = function defineProperty(it, key, desc) {
@@ -31354,7 +31386,7 @@ var has$9 = _has;
31354
31386
  var IE8_DOM_DEFINE = _ie8DomDefine;
31355
31387
  var gOPD$5 = Object.getOwnPropertyDescriptor;
31356
31388
 
31357
- _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31389
+ _objectGopd.f = require_descriptors() ? gOPD$5 : function getOwnPropertyDescriptor(O, P) {
31358
31390
  O = toIObject$1(O);
31359
31391
  P = toPrimitive$1(P, true);
31360
31392
  if (IE8_DOM_DEFINE) try {
@@ -31366,7 +31398,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : function getOwnPropertyDescriptor(O, P)
31366
31398
  // ECMAScript 6 symbols shim
31367
31399
  var global$2 = _globalExports;
31368
31400
  var has$8 = _has;
31369
- var DESCRIPTORS = _descriptors;
31401
+ var DESCRIPTORS = require_descriptors();
31370
31402
  var $export$2 = _export;
31371
31403
  var redefine = _redefine;
31372
31404
  var META = _metaExports.KEY;
@@ -31385,7 +31417,7 @@ var toObject$1 = _toObject;
31385
31417
  var toIObject = _toIobject;
31386
31418
  var toPrimitive = _toPrimitive$1;
31387
31419
  var createDesc = _propertyDesc;
31388
- var _create$1 = _objectCreate;
31420
+ var _create$1 = require_objectCreate();
31389
31421
  var gOPNExt = _objectGopnExt;
31390
31422
  var $GOPD = _objectGopd;
31391
31423
  var $GOPS = _objectGops;
@@ -31695,7 +31727,7 @@ var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
31695
31727
 
31696
31728
  var $export = _export;
31697
31729
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
31698
- $export($export.S, 'Object', { create: _objectCreate });
31730
+ $export($export.S, 'Object', { create: require_objectCreate() });
31699
31731
 
31700
31732
  var $Object$1 = _coreExports.Object;
31701
31733
  var create$3 = function create(P, D) {
@@ -106614,8 +106646,8 @@ function getOverlapsOfPotentiallyCircularRanges(rangeA, rangeB, maxRangeLength,
106614
106646
  maxRangeLength
106615
106647
  );
106616
106648
  let overlaps = [];
106617
- normalizedRangeA.forEach(function(nonCircularRangeA, iA) {
106618
- normalizedRangeB.forEach(function(nonCircularRangeB, iB) {
106649
+ normalizedRangeA.forEach(function(nonCircularRangeA) {
106650
+ normalizedRangeB.forEach(function(nonCircularRangeB) {
106619
106651
  const overlap = getOverlapOfNonCircularRanges(
106620
106652
  nonCircularRangeA,
106621
106653
  nonCircularRangeB
@@ -106627,7 +106659,7 @@ function getOverlapsOfPotentiallyCircularRanges(rangeA, rangeB, maxRangeLength,
106627
106659
  });
106628
106660
  if (joinIfPossible && normalizedRangeA.length === 2 && normalizedRangeB.length === 2 && maxRangeLength) {
106629
106661
  const joinedOverlap = {};
106630
- overlaps = lodashExports.flatMap(overlaps, (o, i) => {
106662
+ overlaps = lodashExports.flatMap(overlaps, (o) => {
106631
106663
  if (o.start === 0) {
106632
106664
  joinedOverlap.end = o.end;
106633
106665
  return [];
@@ -107117,7 +107149,7 @@ function translateRange(rangeToBeAdjusted, translateBy, rangeLength) {
107117
107149
  });
107118
107150
  }
107119
107151
 
107120
- function flipRelativeRange(innerRange, outerRange, sequenceLength, options) {
107152
+ function flipRelativeRange(innerRange, outerRange, sequenceLength) {
107121
107153
  const isFullyContained = isRangeWithinRange(
107122
107154
  innerRange,
107123
107155
  outerRange,
@@ -107129,7 +107161,7 @@ function flipRelativeRange(innerRange, outerRange, sequenceLength, options) {
107129
107161
  return flipNonFullyContainedRange(innerRange, outerRange, sequenceLength);
107130
107162
  }
107131
107163
  }
107132
- function flipNonFullyContainedRange(innerRange, outerRange, sequenceLength, options) {
107164
+ function flipNonFullyContainedRange(innerRange, outerRange, sequenceLength) {
107133
107165
  const outerFullyContained = isRangeWithinRange(
107134
107166
  outerRange,
107135
107167
  innerRange,
@@ -107170,9 +107202,8 @@ function flipNonFullyContainedRange(innerRange, outerRange, sequenceLength, opti
107170
107202
  sequenceLength
107171
107203
  );
107172
107204
  if (overlaps.length >= 1) {
107173
- let overlapExtendsForward;
107174
107205
  const firstOverlap = overlaps[0];
107175
- overlapExtendsForward = firstOverlap.start !== outerRange.start;
107206
+ const overlapExtendsForward = firstOverlap.start !== outerRange.start;
107176
107207
  const flippedTruncatedInner = flipFullyContainedRange(
107177
107208
  firstOverlap,
107178
107209
  outerRange,
@@ -107193,7 +107224,7 @@ function flipNonFullyContainedRange(innerRange, outerRange, sequenceLength, opti
107193
107224
  }
107194
107225
  return flippedInnerRange;
107195
107226
  }
107196
- function flipFullyContainedRange(innerRange, outerRange, sequenceLength, options) {
107227
+ function flipFullyContainedRange(innerRange, outerRange, sequenceLength) {
107197
107228
  const translateBy = -outerRange.start;
107198
107229
  const translatedOuterRange = translateRange(
107199
107230
  outerRange,
@@ -107321,6 +107352,7 @@ function getYOffsetForPotentiallyCircularRange(range, YOffsetLevelsWithRanges, a
107321
107352
  rangesAlreadyAddedToYOffset.push(range);
107322
107353
  return true;
107323
107354
  }
107355
+ return false;
107324
107356
  });
107325
107357
  if (!openYOffsetFound) {
107326
107358
  yOffset = YOffsetLevelsWithRanges.length;
@@ -124024,7 +124056,6 @@ function genbankToJson(string, options = {}) {
124024
124056
  }
124025
124057
  function parseLocus(line) {
124026
124058
  result = createInitialSequence(options);
124027
- let locusName;
124028
124059
  let circular;
124029
124060
  let gbDivision;
124030
124061
  let date;
@@ -124035,7 +124066,7 @@ function genbankToJson(string, options = {}) {
124035
124066
  );
124036
124067
  addMessage("Import Warning: Locus line contains no values: " + line);
124037
124068
  }
124038
- locusName = lineArr[1];
124069
+ const locusName = lineArr[1];
124039
124070
  for (let i = 1; i < lineArr.length; i++) {
124040
124071
  if (lineArr[i].match(/circular/gi)) {
124041
124072
  circular = true;
@@ -124182,10 +124213,10 @@ function genbankToJson(string, options = {}) {
124182
124213
  }
124183
124214
  }
124184
124215
  function parseFeatureNote(line) {
124185
- let newLine, lineArr;
124216
+ let newLine;
124186
124217
  newLine = line.trimLeft();
124187
124218
  newLine = newLine.replace(/^\/|"$/g, "");
124188
- lineArr = newLine.split(/="|=/);
124219
+ const lineArr = newLine.split(/="|=/);
124189
124220
  let val = lineArr.slice(1).join("=");
124190
124221
  if (val) {
124191
124222
  val = val.replace(/\\/g, " ");
@@ -137653,7 +137684,6 @@ function createGenbankLocus(serSeq, options) {
137653
137684
  if (serSeq.sequence.symbols) {
137654
137685
  serSeq.sequence = serSeq.sequence.symbols.split("");
137655
137686
  }
137656
- let tmp;
137657
137687
  let dnaType;
137658
137688
  if (serSeq.isProtein) {
137659
137689
  dnaType = "";
@@ -137670,7 +137700,7 @@ function createGenbankLocus(serSeq, options) {
137670
137700
  line += " ";
137671
137701
  line += StringUtil.lpad(String(serSeq.sequence.length), " ", 11);
137672
137702
  line += serSeq.isProtein ? " aa " : " bp ";
137673
- tmp = "";
137703
+ const tmp = "";
137674
137704
  line += StringUtil.lpad(tmp, " ", 3);
137675
137705
  line += StringUtil.rpad(dnaType, " ", 6);
137676
137706
  line += " ";
@@ -142904,6 +142934,7 @@ function mapStateToProps(state, ownProps) {
142904
142934
  if (!editorState) {
142905
142935
  return editorReducer({}, {});
142906
142936
  }
142937
+ const sequenceLength = selectors.sequenceLengthSelector(editorState);
142907
142938
  const { findTool, annotationsToSupport = {} } = editorState;
142908
142939
  const visibilities = getVisibilities(editorState);
142909
142940
  let annotationToAdd;
@@ -142914,7 +142945,13 @@ function mapStateToProps(state, ownProps) {
142914
142945
  ].forEach(([n, type, annotationTypePlural]) => {
142915
142946
  const vals = reduxForm.getFormValues(n)(state);
142916
142947
  if (vals) {
142917
- annotationToAdd = getAnnToAdd(vals, n, type, annotationTypePlural);
142948
+ annotationToAdd = getAnnToAdd(
142949
+ vals,
142950
+ n,
142951
+ type,
142952
+ annotationTypePlural,
142953
+ sequenceLength
142954
+ );
142918
142955
  }
142919
142956
  });
142920
142957
  const toReturn = {
@@ -142938,7 +142975,6 @@ function mapStateToProps(state, ownProps) {
142938
142975
  editorState,
142939
142976
  ownProps.additionalEnzymes
142940
142977
  );
142941
- const sequenceLength = selectors.sequenceLengthSelector(editorState);
142942
142978
  const { matchedSearchLayer, searchLayers, matchesTotal } = getSearchLayersAndMatch(editorState);
142943
142979
  const annotationSearchMatches = selectors.annotationSearchSelector(editorState);
142944
142980
  const _sequenceDataToUse = getSequenceDataToUse(
@@ -143214,21 +143250,26 @@ const getFindTool = createSelector(
143214
143250
  };
143215
143251
  }
143216
143252
  );
143217
- const getAnnToAdd = defaultMemoize((vals, n, type, annotationTypePlural) => {
143218
- const annToAdd = {
143219
- color: getFeatureToColorMap({ includeHidden: true })[vals.type || "primer_bind"],
143220
- //we won't have the correct color yet so we set it here
143221
- ...vals,
143222
- formName: n,
143223
- type,
143224
- annotationTypePlural,
143225
- name: vals.name || "Untitled"
143226
- };
143227
- if (!vals.useLinkedOligo) {
143228
- delete annToAdd.bases;
143253
+ const getAnnToAdd = defaultMemoize(
143254
+ (vals, n, type, annotationTypePlural, sequenceLength) => {
143255
+ const annToAdd = normalizeRange(
143256
+ {
143257
+ color: getFeatureToColorMap({ includeHidden: true })[vals.type || "primer_bind"],
143258
+ //we won't have the correct color yet so we set it here
143259
+ ...vals,
143260
+ formName: n,
143261
+ type,
143262
+ annotationTypePlural,
143263
+ name: vals.name || "Untitled"
143264
+ },
143265
+ sequenceLength
143266
+ );
143267
+ if (!vals.useLinkedOligo) {
143268
+ delete annToAdd.bases;
143269
+ }
143270
+ return annToAdd;
143229
143271
  }
143230
- return annToAdd;
143231
- });
143272
+ );
143232
143273
  const getSeqDataWithAnnToAdd = defaultMemoize(
143233
143274
  (seqData, ann, allowMultipleFeatureDirections) => {
143234
143275
  if (ann) {
@@ -161139,7 +161180,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161139
161180
  }
161140
161181
 
161141
161182
  const name = "@teselagen/ove";
161142
- const version = "0.3.12";
161183
+ const version = "0.3.13";
161143
161184
  const main = "./src/index.js";
161144
161185
  const exports$1 = {
161145
161186
  ".": {
@@ -177378,30 +177419,30 @@ class AddOrEditAnnotationDialog extends React$3.Component {
177378
177419
  formatStart = (val) => {
177379
177420
  const { isProtein } = this.props.sequenceData || {};
177380
177421
  if (isProtein) {
177381
- return (val + 2) / 3;
177422
+ return lodashExports.round((val + 2) / 3);
177382
177423
  }
177383
- return val;
177424
+ return lodashExports.round(val);
177384
177425
  };
177385
177426
  formatEnd = (val) => {
177386
177427
  const { isProtein } = this.props.sequenceData || {};
177387
177428
  if (isProtein) {
177388
- return val / 3;
177429
+ return lodashExports.round(val / 3);
177389
177430
  }
177390
- return val;
177431
+ return lodashExports.round(val);
177391
177432
  };
177392
177433
  parseStart = (val) => {
177393
177434
  const { isProtein } = this.props.sequenceData || {};
177394
177435
  if (isProtein) {
177395
- return val * 3 - 2;
177436
+ return lodashExports.round(val * 3 - 2);
177396
177437
  }
177397
- return val;
177438
+ return lodashExports.round(val);
177398
177439
  };
177399
177440
  parseEnd = (val) => {
177400
177441
  const { isProtein } = this.props.sequenceData || {};
177401
177442
  if (isProtein) {
177402
- return val * 3;
177443
+ return lodashExports.round(val * 3);
177403
177444
  }
177404
- return val;
177445
+ return lodashExports.round(val);
177405
177446
  };
177406
177447
  renderLocations = (props) => {
177407
177448
  const { fields } = props;
@@ -184673,7 +184714,7 @@ class GeneralProperties extends React$3.Component {
184673
184714
  {
184674
184715
  className: "veReadOnlySelect",
184675
184716
  disabled: !onSave || disableSetReadOnly,
184676
- onChange: (val) => console.log(`val:`, val) || handleReadOnlyChange(val === "readOnly", this.props),
184717
+ onChange: (val) => handleReadOnlyChange(val === "readOnly", this.props),
184677
184718
  value: readOnly ? "readOnly" : "editable",
184678
184719
  options: [
184679
184720
  { label: "Read Only", value: "readOnly" },