@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.umd.js CHANGED
@@ -23998,7 +23998,7 @@
23998
23998
  var ownKeys$9 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
23999
23999
  return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
24000
24000
  } : /* istanbul ignore next */Object.getOwnPropertyNames;
24001
- function toPrimitive$2(value) {
24001
+ function toPrimitive$3(value) {
24002
24002
  return value === null ? null : typeof value === "object" ? "" + value : value;
24003
24003
  }
24004
24004
  function hasProp(target, prop) {
@@ -24927,7 +24927,7 @@
24927
24927
  return this.name_ + "[" + this.value_ + "]";
24928
24928
  };
24929
24929
  _proto.valueOf = function valueOf() {
24930
- return toPrimitive$2(this.get());
24930
+ return toPrimitive$3(this.get());
24931
24931
  };
24932
24932
  _proto[_Symbol$toPrimitive] = function () {
24933
24933
  return this.valueOf();
@@ -25155,7 +25155,7 @@
25155
25155
  return this.name_ + "[" + this.derivation.toString() + "]";
25156
25156
  };
25157
25157
  _proto.valueOf = function valueOf() {
25158
- return toPrimitive$2(this.get());
25158
+ return toPrimitive$3(this.get());
25159
25159
  };
25160
25160
  _proto[_Symbol$toPrimitive$1] = function () {
25161
25161
  return this.valueOf();
@@ -57023,18 +57023,10 @@
57023
57023
  }
57024
57024
  };
57025
57025
 
57026
- var _descriptors;
57027
- var hasRequired_descriptors;
57028
-
57029
- function require_descriptors () {
57030
- if (hasRequired_descriptors) return _descriptors;
57031
- hasRequired_descriptors = 1;
57032
- // Thank's IE8 for his funny defineProperty
57033
- _descriptors = !_fails(function () {
57034
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
57035
- });
57036
- return _descriptors;
57037
- }
57026
+ // Thank's IE8 for his funny defineProperty
57027
+ var _descriptors = !_fails(function () {
57028
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
57029
+ });
57038
57030
 
57039
57031
  var _domCreate;
57040
57032
  var hasRequired_domCreate;
@@ -57052,17 +57044,9 @@
57052
57044
  return _domCreate;
57053
57045
  }
57054
57046
 
57055
- var _ie8DomDefine;
57056
- var hasRequired_ie8DomDefine;
57057
-
57058
- function require_ie8DomDefine () {
57059
- if (hasRequired_ie8DomDefine) return _ie8DomDefine;
57060
- hasRequired_ie8DomDefine = 1;
57061
- _ie8DomDefine = !require_descriptors() && !_fails(function () {
57062
- return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
57063
- });
57064
- return _ie8DomDefine;
57065
- }
57047
+ var _ie8DomDefine = !_descriptors && !_fails(function () {
57048
+ return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
57049
+ });
57066
57050
 
57067
57051
  // 7.1.1 ToPrimitive(input [, PreferredType])
57068
57052
  var isObject$6 = _isObject;
@@ -57077,29 +57061,22 @@
57077
57061
  throw TypeError("Can't convert object to primitive value");
57078
57062
  };
57079
57063
 
57080
- var hasRequired_objectDp;
57081
-
57082
- function require_objectDp () {
57083
- if (hasRequired_objectDp) return _objectDp;
57084
- hasRequired_objectDp = 1;
57085
- var anObject = _anObject;
57086
- var IE8_DOM_DEFINE = require_ie8DomDefine();
57087
- var toPrimitive = _toPrimitive$1;
57088
- var dP = Object.defineProperty;
57089
-
57090
- _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
57091
- anObject(O);
57092
- P = toPrimitive(P, true);
57093
- anObject(Attributes);
57094
- if (IE8_DOM_DEFINE) try {
57095
- return dP(O, P, Attributes);
57096
- } catch (e) { /* empty */ }
57097
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
57098
- if ('value' in Attributes) O[P] = Attributes.value;
57099
- return O;
57100
- };
57101
- return _objectDp;
57102
- }
57064
+ var anObject$3 = _anObject;
57065
+ var IE8_DOM_DEFINE$1 = _ie8DomDefine;
57066
+ var toPrimitive$2 = _toPrimitive$1;
57067
+ var dP$2 = Object.defineProperty;
57068
+
57069
+ _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
57070
+ anObject$3(O);
57071
+ P = toPrimitive$2(P, true);
57072
+ anObject$3(Attributes);
57073
+ if (IE8_DOM_DEFINE$1) try {
57074
+ return dP$2(O, P, Attributes);
57075
+ } catch (e) { /* empty */ }
57076
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
57077
+ if ('value' in Attributes) O[P] = Attributes.value;
57078
+ return O;
57079
+ };
57103
57080
 
57104
57081
  var _propertyDesc = function (bitmap, value) {
57105
57082
  return {
@@ -57110,10 +57087,10 @@
57110
57087
  };
57111
57088
  };
57112
57089
 
57113
- var dP$2 = require_objectDp();
57090
+ var dP$1 = _objectDp;
57114
57091
  var createDesc$3 = _propertyDesc;
57115
- var _hide = require_descriptors() ? function (object, key, value) {
57116
- return dP$2.f(object, key, createDesc$3(1, value));
57092
+ var _hide = _descriptors ? function (object, key, value) {
57093
+ return dP$1.f(object, key, createDesc$3(1, value));
57117
57094
  } : function (object, key, value) {
57118
57095
  object[key] = value;
57119
57096
  return object;
@@ -57129,7 +57106,7 @@
57129
57106
  var ctx$1 = _ctx;
57130
57107
  var hide$2 = _hide;
57131
57108
  var has$d = _has;
57132
- var PROTOTYPE$2 = 'prototype';
57109
+ var PROTOTYPE$1 = 'prototype';
57133
57110
 
57134
57111
  var $export$8 = function (type, name, source) {
57135
57112
  var IS_FORCED = type & $export$8.F;
@@ -57139,8 +57116,8 @@
57139
57116
  var IS_BIND = type & $export$8.B;
57140
57117
  var IS_WRAP = type & $export$8.W;
57141
57118
  var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
57142
- var expProto = exports[PROTOTYPE$2];
57143
- var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$2];
57119
+ var expProto = exports[PROTOTYPE$1];
57120
+ var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$1];
57144
57121
  var key, own, out;
57145
57122
  if (IS_GLOBAL) source = name;
57146
57123
  for (key in source) {
@@ -57164,7 +57141,7 @@
57164
57141
  } return new C(a, b, c);
57165
57142
  } return C.apply(this, arguments);
57166
57143
  };
57167
- F[PROTOTYPE$2] = C[PROTOTYPE$2];
57144
+ F[PROTOTYPE$1] = C[PROTOTYPE$1];
57168
57145
  return F;
57169
57146
  // make static versions for prototype methods
57170
57147
  })(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
@@ -57301,14 +57278,14 @@
57301
57278
  var has$c = _has;
57302
57279
  var toIObject$4 = _toIobject;
57303
57280
  var arrayIndexOf = _arrayIncludes$1(false);
57304
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
57281
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
57305
57282
 
57306
57283
  var _objectKeysInternal = function (object, names) {
57307
57284
  var O = toIObject$4(object);
57308
57285
  var i = 0;
57309
57286
  var result = [];
57310
57287
  var key;
57311
- for (key in O) if (key != IE_PROTO$2) has$c(O, key) && result.push(key);
57288
+ for (key in O) if (key != IE_PROTO$1) has$c(O, key) && result.push(key);
57312
57289
  // Don't enum bug & hidden keys
57313
57290
  while (names.length > i) if (has$c(O, key = names[i++])) {
57314
57291
  ~arrayIndexOf(result, key) || result.push(key);
@@ -57323,10 +57300,10 @@
57323
57300
 
57324
57301
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
57325
57302
  var $keys$3 = _objectKeysInternal;
57326
- var enumBugKeys$1 = _enumBugKeys;
57303
+ var enumBugKeys = _enumBugKeys;
57327
57304
 
57328
57305
  var _objectKeys = Object.keys || function keys(O) {
57329
- return $keys$3(O, enumBugKeys$1);
57306
+ return $keys$3(O, enumBugKeys);
57330
57307
  };
57331
57308
 
57332
57309
  var _objectGops = {};
@@ -57357,7 +57334,7 @@
57357
57334
  if (hasRequired_objectAssign) return _objectAssign;
57358
57335
  hasRequired_objectAssign = 1;
57359
57336
  // 19.1.2.1 Object.assign(target, source, ...)
57360
- var DESCRIPTORS = require_descriptors();
57337
+ var DESCRIPTORS = _descriptors;
57361
57338
  var getKeys = _objectKeys;
57362
57339
  var gOPS = _objectGops;
57363
57340
  var pIE = require_objectPie();
@@ -57433,19 +57410,27 @@
57433
57410
 
57434
57411
  var _redefine = _hide;
57435
57412
 
57436
- var dP$1 = require_objectDp();
57437
- var anObject$4 = _anObject;
57438
- var getKeys$1 = _objectKeys;
57413
+ var _objectDps;
57414
+ var hasRequired_objectDps;
57439
57415
 
57440
- var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
57441
- anObject$4(O);
57442
- var keys = getKeys$1(Properties);
57443
- var length = keys.length;
57444
- var i = 0;
57445
- var P;
57446
- while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
57447
- return O;
57448
- };
57416
+ function require_objectDps () {
57417
+ if (hasRequired_objectDps) return _objectDps;
57418
+ hasRequired_objectDps = 1;
57419
+ var dP = _objectDp;
57420
+ var anObject = _anObject;
57421
+ var getKeys = _objectKeys;
57422
+
57423
+ _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
57424
+ anObject(O);
57425
+ var keys = getKeys(Properties);
57426
+ var length = keys.length;
57427
+ var i = 0;
57428
+ var P;
57429
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
57430
+ return O;
57431
+ };
57432
+ return _objectDps;
57433
+ }
57449
57434
 
57450
57435
  var _html;
57451
57436
  var hasRequired_html;
@@ -57458,47 +57443,55 @@
57458
57443
  return _html;
57459
57444
  }
57460
57445
 
57461
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57462
- var anObject$3 = _anObject;
57463
- var dPs = _objectDps;
57464
- var enumBugKeys = _enumBugKeys;
57465
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
57466
- var Empty = function () { /* empty */ };
57467
- var PROTOTYPE$1 = 'prototype';
57446
+ var _objectCreate;
57447
+ var hasRequired_objectCreate;
57468
57448
 
57469
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
57470
- var createDict = function () {
57471
- // Thrash, waste and sodomy: IE GC bug
57472
- var iframe = require_domCreate()('iframe');
57473
- var i = enumBugKeys.length;
57474
- var lt = '<';
57475
- var gt = '>';
57476
- var iframeDocument;
57477
- iframe.style.display = 'none';
57478
- require_html().appendChild(iframe);
57479
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57480
- // createDict = iframe.contentWindow.Object;
57481
- // html.removeChild(iframe);
57482
- iframeDocument = iframe.contentWindow.document;
57483
- iframeDocument.open();
57484
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57485
- iframeDocument.close();
57486
- createDict = iframeDocument.F;
57487
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
57488
- return createDict();
57489
- };
57490
-
57491
- var _objectCreate = Object.create || function create(O, Properties) {
57492
- var result;
57493
- if (O !== null) {
57494
- Empty[PROTOTYPE$1] = anObject$3(O);
57495
- result = new Empty();
57496
- Empty[PROTOTYPE$1] = null;
57497
- // add "__proto__" for Object.getPrototypeOf polyfill
57498
- result[IE_PROTO$1] = O;
57499
- } else result = createDict();
57500
- return Properties === undefined ? result : dPs(result, Properties);
57501
- };
57449
+ function require_objectCreate () {
57450
+ if (hasRequired_objectCreate) return _objectCreate;
57451
+ hasRequired_objectCreate = 1;
57452
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57453
+ var anObject = _anObject;
57454
+ var dPs = require_objectDps();
57455
+ var enumBugKeys = _enumBugKeys;
57456
+ var IE_PROTO = _sharedKey('IE_PROTO');
57457
+ var Empty = function () { /* empty */ };
57458
+ var PROTOTYPE = 'prototype';
57459
+
57460
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
57461
+ var createDict = function () {
57462
+ // Thrash, waste and sodomy: IE GC bug
57463
+ var iframe = require_domCreate()('iframe');
57464
+ var i = enumBugKeys.length;
57465
+ var lt = '<';
57466
+ var gt = '>';
57467
+ var iframeDocument;
57468
+ iframe.style.display = 'none';
57469
+ require_html().appendChild(iframe);
57470
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57471
+ // createDict = iframe.contentWindow.Object;
57472
+ // html.removeChild(iframe);
57473
+ iframeDocument = iframe.contentWindow.document;
57474
+ iframeDocument.open();
57475
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57476
+ iframeDocument.close();
57477
+ createDict = iframeDocument.F;
57478
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
57479
+ return createDict();
57480
+ };
57481
+
57482
+ _objectCreate = Object.create || function create(O, Properties) {
57483
+ var result;
57484
+ if (O !== null) {
57485
+ Empty[PROTOTYPE] = anObject(O);
57486
+ result = new Empty();
57487
+ Empty[PROTOTYPE] = null;
57488
+ // add "__proto__" for Object.getPrototypeOf polyfill
57489
+ result[IE_PROTO] = O;
57490
+ } else result = createDict();
57491
+ return Properties === undefined ? result : dPs(result, Properties);
57492
+ };
57493
+ return _objectCreate;
57494
+ }
57502
57495
 
57503
57496
  var _wks = {exports: {}};
57504
57497
 
@@ -57516,7 +57509,7 @@
57516
57509
 
57517
57510
  var _wksExports = _wks.exports;
57518
57511
 
57519
- var def = require_objectDp().f;
57512
+ var def = _objectDp.f;
57520
57513
  var has$b = _has;
57521
57514
  var TAG$1 = _wksExports('toStringTag');
57522
57515
 
@@ -57524,7 +57517,7 @@
57524
57517
  if (it && !has$b(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
57525
57518
  };
57526
57519
 
57527
- var create$4 = _objectCreate;
57520
+ var create$4 = require_objectCreate();
57528
57521
  var descriptor = _propertyDesc;
57529
57522
  var setToStringTag$2 = _setToStringTag;
57530
57523
  var IteratorPrototype = {};
@@ -57830,7 +57823,7 @@
57830
57823
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
57831
57824
  };
57832
57825
 
57833
- var $defineProperty$1 = require_objectDp();
57826
+ var $defineProperty$1 = _objectDp;
57834
57827
  var createDesc$2 = _propertyDesc;
57835
57828
 
57836
57829
  var _createProperty = function (object, index, value) {
@@ -57963,7 +57956,7 @@
57963
57956
 
57964
57957
  var $export$3 = _export;
57965
57958
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
57966
- $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
57959
+ $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
57967
57960
 
57968
57961
  var $Object$1 = _coreExports.Object;
57969
57962
  var defineProperty$6 = function defineProperty(it, key, desc) {
@@ -58011,7 +58004,7 @@
58011
58004
  var META$1 = _uid('meta');
58012
58005
  var isObject$5 = _isObject;
58013
58006
  var has$9 = _has;
58014
- var setDesc = require_objectDp().f;
58007
+ var setDesc = _objectDp.f;
58015
58008
  var id$1 = 0;
58016
58009
  var isExtensible = Object.isExtensible || function () {
58017
58010
  return true;
@@ -58066,7 +58059,7 @@
58066
58059
 
58067
58060
  var core = _coreExports;
58068
58061
  var wksExt$1 = _wksExt;
58069
- var defineProperty$4 = require_objectDp().f;
58062
+ var defineProperty$4 = _objectDp.f;
58070
58063
  var _wksDefine = function (name) {
58071
58064
  var $Symbol = core.Symbol || (core.Symbol = {} );
58072
58065
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$4($Symbol, name, { value: wksExt$1.f(name) });
@@ -58133,10 +58126,10 @@
58133
58126
  var toIObject$1 = _toIobject;
58134
58127
  var toPrimitive$1 = _toPrimitive$1;
58135
58128
  var has$8 = _has;
58136
- var IE8_DOM_DEFINE = require_ie8DomDefine();
58129
+ var IE8_DOM_DEFINE = _ie8DomDefine;
58137
58130
  var gOPD$2 = Object.getOwnPropertyDescriptor;
58138
58131
 
58139
- _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
58132
+ _objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
58140
58133
  O = toIObject$1(O);
58141
58134
  P = toPrimitive$1(P, true);
58142
58135
  if (IE8_DOM_DEFINE) try {
@@ -58148,7 +58141,7 @@
58148
58141
  // ECMAScript 6 symbols shim
58149
58142
  var global$1 = _globalExports;
58150
58143
  var has$7 = _has;
58151
- var DESCRIPTORS = require_descriptors();
58144
+ var DESCRIPTORS = _descriptors;
58152
58145
  var $export$2 = _export;
58153
58146
  var redefine = _redefine;
58154
58147
  var META = _metaExports.KEY;
@@ -58167,11 +58160,11 @@
58167
58160
  var toIObject = _toIobject;
58168
58161
  var toPrimitive = _toPrimitive$1;
58169
58162
  var createDesc = _propertyDesc;
58170
- var _create$1 = _objectCreate;
58163
+ var _create$1 = require_objectCreate();
58171
58164
  var gOPNExt = _objectGopnExt;
58172
58165
  var $GOPD = _objectGopd;
58173
58166
  var $GOPS = _objectGops;
58174
- var $DP = require_objectDp();
58167
+ var $DP = _objectDp;
58175
58168
  var $keys$1 = _objectKeys;
58176
58169
  var gOPD$1 = $GOPD.f;
58177
58170
  var dP = $DP.f;
@@ -58477,7 +58470,7 @@
58477
58470
 
58478
58471
  var $export = _export;
58479
58472
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
58480
- $export($export.S, 'Object', { create: _objectCreate });
58473
+ $export($export.S, 'Object', { create: require_objectCreate() });
58481
58474
 
58482
58475
  var $Object = _coreExports.Object;
58483
58476
  var create$3 = function create(P, D) {
@@ -135008,8 +135001,8 @@
135008
135001
  maxRangeLength
135009
135002
  );
135010
135003
  let overlaps = [];
135011
- normalizedRangeA.forEach(function(nonCircularRangeA, iA) {
135012
- normalizedRangeB.forEach(function(nonCircularRangeB, iB) {
135004
+ normalizedRangeA.forEach(function(nonCircularRangeA) {
135005
+ normalizedRangeB.forEach(function(nonCircularRangeB) {
135013
135006
  const overlap = getOverlapOfNonCircularRanges(
135014
135007
  nonCircularRangeA,
135015
135008
  nonCircularRangeB
@@ -135021,7 +135014,7 @@
135021
135014
  });
135022
135015
  if (joinIfPossible && normalizedRangeA.length === 2 && normalizedRangeB.length === 2 && maxRangeLength) {
135023
135016
  const joinedOverlap = {};
135024
- overlaps = lodashExports.flatMap(overlaps, (o, i) => {
135017
+ overlaps = lodashExports.flatMap(overlaps, (o) => {
135025
135018
  if (o.start === 0) {
135026
135019
  joinedOverlap.end = o.end;
135027
135020
  return [];
@@ -135511,7 +135504,7 @@
135511
135504
  });
135512
135505
  }
135513
135506
 
135514
- function flipRelativeRange(innerRange, outerRange, sequenceLength, options) {
135507
+ function flipRelativeRange(innerRange, outerRange, sequenceLength) {
135515
135508
  const isFullyContained = isRangeWithinRange(
135516
135509
  innerRange,
135517
135510
  outerRange,
@@ -135523,7 +135516,7 @@
135523
135516
  return flipNonFullyContainedRange(innerRange, outerRange, sequenceLength);
135524
135517
  }
135525
135518
  }
135526
- function flipNonFullyContainedRange(innerRange, outerRange, sequenceLength, options) {
135519
+ function flipNonFullyContainedRange(innerRange, outerRange, sequenceLength) {
135527
135520
  const outerFullyContained = isRangeWithinRange(
135528
135521
  outerRange,
135529
135522
  innerRange,
@@ -135564,9 +135557,8 @@
135564
135557
  sequenceLength
135565
135558
  );
135566
135559
  if (overlaps.length >= 1) {
135567
- let overlapExtendsForward;
135568
135560
  const firstOverlap = overlaps[0];
135569
- overlapExtendsForward = firstOverlap.start !== outerRange.start;
135561
+ const overlapExtendsForward = firstOverlap.start !== outerRange.start;
135570
135562
  const flippedTruncatedInner = flipFullyContainedRange(
135571
135563
  firstOverlap,
135572
135564
  outerRange,
@@ -135587,7 +135579,7 @@
135587
135579
  }
135588
135580
  return flippedInnerRange;
135589
135581
  }
135590
- function flipFullyContainedRange(innerRange, outerRange, sequenceLength, options) {
135582
+ function flipFullyContainedRange(innerRange, outerRange, sequenceLength) {
135591
135583
  const translateBy = -outerRange.start;
135592
135584
  const translatedOuterRange = translateRange(
135593
135585
  outerRange,
@@ -135715,6 +135707,7 @@
135715
135707
  rangesAlreadyAddedToYOffset.push(range);
135716
135708
  return true;
135717
135709
  }
135710
+ return false;
135718
135711
  });
135719
135712
  if (!openYOffsetFound) {
135720
135713
  yOffset = YOffsetLevelsWithRanges.length;
@@ -152418,7 +152411,6 @@
152418
152411
  }
152419
152412
  function parseLocus(line) {
152420
152413
  result = createInitialSequence(options);
152421
- let locusName;
152422
152414
  let circular;
152423
152415
  let gbDivision;
152424
152416
  let date;
@@ -152429,7 +152421,7 @@
152429
152421
  );
152430
152422
  addMessage("Import Warning: Locus line contains no values: " + line);
152431
152423
  }
152432
- locusName = lineArr[1];
152424
+ const locusName = lineArr[1];
152433
152425
  for (let i = 1; i < lineArr.length; i++) {
152434
152426
  if (lineArr[i].match(/circular/gi)) {
152435
152427
  circular = true;
@@ -152576,10 +152568,10 @@
152576
152568
  }
152577
152569
  }
152578
152570
  function parseFeatureNote(line) {
152579
- let newLine, lineArr;
152571
+ let newLine;
152580
152572
  newLine = line.trimLeft();
152581
152573
  newLine = newLine.replace(/^\/|"$/g, "");
152582
- lineArr = newLine.split(/="|=/);
152574
+ const lineArr = newLine.split(/="|=/);
152583
152575
  let val = lineArr.slice(1).join("=");
152584
152576
  if (val) {
152585
152577
  val = val.replace(/\\/g, " ");
@@ -166047,7 +166039,6 @@
166047
166039
  if (serSeq.sequence.symbols) {
166048
166040
  serSeq.sequence = serSeq.sequence.symbols.split("");
166049
166041
  }
166050
- let tmp;
166051
166042
  let dnaType;
166052
166043
  if (serSeq.isProtein) {
166053
166044
  dnaType = "";
@@ -166064,7 +166055,7 @@
166064
166055
  line += " ";
166065
166056
  line += StringUtil.lpad(String(serSeq.sequence.length), " ", 11);
166066
166057
  line += serSeq.isProtein ? " aa " : " bp ";
166067
- tmp = "";
166058
+ const tmp = "";
166068
166059
  line += StringUtil.lpad(tmp, " ", 3);
166069
166060
  line += StringUtil.rpad(dnaType, " ", 6);
166070
166061
  line += " ";
@@ -170564,6 +170555,7 @@
170564
170555
  if (!editorState) {
170565
170556
  return editorReducer({}, {});
170566
170557
  }
170558
+ const sequenceLength = selectors.sequenceLengthSelector(editorState);
170567
170559
  const { findTool, annotationsToSupport = {} } = editorState;
170568
170560
  const visibilities = getVisibilities(editorState);
170569
170561
  let annotationToAdd;
@@ -170574,7 +170566,13 @@
170574
170566
  ].forEach(([n, type, annotationTypePlural]) => {
170575
170567
  const vals = getFormValues(n)(state);
170576
170568
  if (vals) {
170577
- annotationToAdd = getAnnToAdd(vals, n, type, annotationTypePlural);
170569
+ annotationToAdd = getAnnToAdd(
170570
+ vals,
170571
+ n,
170572
+ type,
170573
+ annotationTypePlural,
170574
+ sequenceLength
170575
+ );
170578
170576
  }
170579
170577
  });
170580
170578
  const toReturn = {
@@ -170598,7 +170596,6 @@
170598
170596
  editorState,
170599
170597
  ownProps.additionalEnzymes
170600
170598
  );
170601
- const sequenceLength = selectors.sequenceLengthSelector(editorState);
170602
170599
  const { matchedSearchLayer, searchLayers, matchesTotal } = getSearchLayersAndMatch(editorState);
170603
170600
  const annotationSearchMatches = selectors.annotationSearchSelector(editorState);
170604
170601
  const _sequenceDataToUse = getSequenceDataToUse(
@@ -170874,21 +170871,26 @@
170874
170871
  };
170875
170872
  }
170876
170873
  );
170877
- const getAnnToAdd = defaultMemoize((vals, n, type, annotationTypePlural) => {
170878
- const annToAdd = {
170879
- color: getFeatureToColorMap({ includeHidden: true })[vals.type || "primer_bind"],
170880
- //we won't have the correct color yet so we set it here
170881
- ...vals,
170882
- formName: n,
170883
- type,
170884
- annotationTypePlural,
170885
- name: vals.name || "Untitled"
170886
- };
170887
- if (!vals.useLinkedOligo) {
170888
- delete annToAdd.bases;
170874
+ const getAnnToAdd = defaultMemoize(
170875
+ (vals, n, type, annotationTypePlural, sequenceLength) => {
170876
+ const annToAdd = normalizeRange(
170877
+ {
170878
+ color: getFeatureToColorMap({ includeHidden: true })[vals.type || "primer_bind"],
170879
+ //we won't have the correct color yet so we set it here
170880
+ ...vals,
170881
+ formName: n,
170882
+ type,
170883
+ annotationTypePlural,
170884
+ name: vals.name || "Untitled"
170885
+ },
170886
+ sequenceLength
170887
+ );
170888
+ if (!vals.useLinkedOligo) {
170889
+ delete annToAdd.bases;
170890
+ }
170891
+ return annToAdd;
170889
170892
  }
170890
- return annToAdd;
170891
- });
170893
+ );
170892
170894
  const getSeqDataWithAnnToAdd = defaultMemoize(
170893
170895
  (seqData, ann, allowMultipleFeatureDirections) => {
170894
170896
  if (ann) {
@@ -188761,7 +188763,7 @@ double click --> edit`}`;
188761
188763
  }
188762
188764
 
188763
188765
  const name = "@teselagen/ove";
188764
- const version = "0.3.12";
188766
+ const version = "0.3.13";
188765
188767
  const main = "./src/index.js";
188766
188768
  const exports$1 = {
188767
188769
  ".": {
@@ -202384,30 +202386,30 @@ double click --> edit`}`;
202384
202386
  formatStart = (val) => {
202385
202387
  const { isProtein } = this.props.sequenceData || {};
202386
202388
  if (isProtein) {
202387
- return (val + 2) / 3;
202389
+ return lodashExports.round((val + 2) / 3);
202388
202390
  }
202389
- return val;
202391
+ return lodashExports.round(val);
202390
202392
  };
202391
202393
  formatEnd = (val) => {
202392
202394
  const { isProtein } = this.props.sequenceData || {};
202393
202395
  if (isProtein) {
202394
- return val / 3;
202396
+ return lodashExports.round(val / 3);
202395
202397
  }
202396
- return val;
202398
+ return lodashExports.round(val);
202397
202399
  };
202398
202400
  parseStart = (val) => {
202399
202401
  const { isProtein } = this.props.sequenceData || {};
202400
202402
  if (isProtein) {
202401
- return val * 3 - 2;
202403
+ return lodashExports.round(val * 3 - 2);
202402
202404
  }
202403
- return val;
202405
+ return lodashExports.round(val);
202404
202406
  };
202405
202407
  parseEnd = (val) => {
202406
202408
  const { isProtein } = this.props.sequenceData || {};
202407
202409
  if (isProtein) {
202408
- return val * 3;
202410
+ return lodashExports.round(val * 3);
202409
202411
  }
202410
- return val;
202412
+ return lodashExports.round(val);
202411
202413
  };
202412
202414
  renderLocations = (props) => {
202413
202415
  const { fields } = props;
@@ -208752,7 +208754,7 @@ ${seqDataToCopy}\r
208752
208754
  {
208753
208755
  className: "veReadOnlySelect",
208754
208756
  disabled: !onSave || disableSetReadOnly,
208755
- onChange: (val) => console.log(`val:`, val) || handleReadOnlyChange(val === "readOnly", this.props),
208757
+ onChange: (val) => handleReadOnlyChange(val === "readOnly", this.props),
208756
208758
  value: readOnly ? "readOnly" : "editable",
208757
208759
  options: [
208758
208760
  { label: "Read Only", value: "readOnly" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -2,7 +2,6 @@ import React, { useState } from "react";
2
2
  import { Icon } from "@blueprintjs/core";
3
3
  import ToolbarItem from "./ToolbarItem";
4
4
  import { connectToEditor } from "../withEditorProps";
5
- import { func } from "prop-types";
6
5
 
7
6
  export default connectToEditor(editorState => {
8
7
  return {