@teselagen/ove 0.0.18 → 0.0.20

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
@@ -23996,7 +23996,7 @@
23996
23996
  var ownKeys$9 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
23997
23997
  return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
23998
23998
  } : /* istanbul ignore next */Object.getOwnPropertyNames;
23999
- function toPrimitive$3(value) {
23999
+ function toPrimitive$2(value) {
24000
24000
  return value === null ? null : typeof value === "object" ? "" + value : value;
24001
24001
  }
24002
24002
  function hasProp(target, prop) {
@@ -24925,7 +24925,7 @@
24925
24925
  return this.name_ + "[" + this.value_ + "]";
24926
24926
  };
24927
24927
  _proto.valueOf = function valueOf() {
24928
- return toPrimitive$3(this.get());
24928
+ return toPrimitive$2(this.get());
24929
24929
  };
24930
24930
  _proto[_Symbol$toPrimitive] = function () {
24931
24931
  return this.valueOf();
@@ -25153,7 +25153,7 @@
25153
25153
  return this.name_ + "[" + this.derivation.toString() + "]";
25154
25154
  };
25155
25155
  _proto.valueOf = function valueOf() {
25156
- return toPrimitive$3(this.get());
25156
+ return toPrimitive$2(this.get());
25157
25157
  };
25158
25158
  _proto[_Symbol$toPrimitive$1] = function () {
25159
25159
  return this.valueOf();
@@ -57050,10 +57050,18 @@
57050
57050
  }
57051
57051
  };
57052
57052
 
57053
- // Thank's IE8 for his funny defineProperty
57054
- var _descriptors = !_fails(function () {
57055
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
57056
- });
57053
+ var _descriptors;
57054
+ var hasRequired_descriptors;
57055
+
57056
+ function require_descriptors () {
57057
+ if (hasRequired_descriptors) return _descriptors;
57058
+ hasRequired_descriptors = 1;
57059
+ // Thank's IE8 for his funny defineProperty
57060
+ _descriptors = !_fails(function () {
57061
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
57062
+ });
57063
+ return _descriptors;
57064
+ }
57057
57065
 
57058
57066
  var _domCreate;
57059
57067
  var hasRequired_domCreate;
@@ -57071,9 +57079,17 @@
57071
57079
  return _domCreate;
57072
57080
  }
57073
57081
 
57074
- var _ie8DomDefine = !_descriptors && !_fails(function () {
57075
- return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
57076
- });
57082
+ var _ie8DomDefine;
57083
+ var hasRequired_ie8DomDefine;
57084
+
57085
+ function require_ie8DomDefine () {
57086
+ if (hasRequired_ie8DomDefine) return _ie8DomDefine;
57087
+ hasRequired_ie8DomDefine = 1;
57088
+ _ie8DomDefine = !require_descriptors() && !_fails(function () {
57089
+ return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
57090
+ });
57091
+ return _ie8DomDefine;
57092
+ }
57077
57093
 
57078
57094
  // 7.1.1 ToPrimitive(input [, PreferredType])
57079
57095
  var isObject$6 = _isObject;
@@ -57088,22 +57104,29 @@
57088
57104
  throw TypeError("Can't convert object to primitive value");
57089
57105
  };
57090
57106
 
57091
- var anObject$5 = _anObject;
57092
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
57093
- var toPrimitive$2 = _toPrimitive$1;
57094
- var dP$3 = Object.defineProperty;
57107
+ var hasRequired_objectDp;
57095
57108
 
57096
- _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
57097
- anObject$5(O);
57098
- P = toPrimitive$2(P, true);
57099
- anObject$5(Attributes);
57100
- if (IE8_DOM_DEFINE$1) try {
57101
- return dP$3(O, P, Attributes);
57102
- } catch (e) { /* empty */ }
57103
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
57104
- if ('value' in Attributes) O[P] = Attributes.value;
57105
- return O;
57106
- };
57109
+ function require_objectDp () {
57110
+ if (hasRequired_objectDp) return _objectDp;
57111
+ hasRequired_objectDp = 1;
57112
+ var anObject = _anObject;
57113
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
57114
+ var toPrimitive = _toPrimitive$1;
57115
+ var dP = Object.defineProperty;
57116
+
57117
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
57118
+ anObject(O);
57119
+ P = toPrimitive(P, true);
57120
+ anObject(Attributes);
57121
+ if (IE8_DOM_DEFINE) try {
57122
+ return dP(O, P, Attributes);
57123
+ } catch (e) { /* empty */ }
57124
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
57125
+ if ('value' in Attributes) O[P] = Attributes.value;
57126
+ return O;
57127
+ };
57128
+ return _objectDp;
57129
+ }
57107
57130
 
57108
57131
  var _propertyDesc = function (bitmap, value) {
57109
57132
  return {
@@ -57114,10 +57137,10 @@
57114
57137
  };
57115
57138
  };
57116
57139
 
57117
- var dP$2 = _objectDp;
57140
+ var dP$1 = require_objectDp();
57118
57141
  var createDesc$3 = _propertyDesc;
57119
- var _hide = _descriptors ? function (object, key, value) {
57120
- return dP$2.f(object, key, createDesc$3(1, value));
57142
+ var _hide = require_descriptors() ? function (object, key, value) {
57143
+ return dP$1.f(object, key, createDesc$3(1, value));
57121
57144
  } : function (object, key, value) {
57122
57145
  object[key] = value;
57123
57146
  return object;
@@ -57133,7 +57156,7 @@
57133
57156
  var ctx$1 = _ctx;
57134
57157
  var hide$2 = _hide;
57135
57158
  var has$d = _has;
57136
- var PROTOTYPE$2 = 'prototype';
57159
+ var PROTOTYPE$1 = 'prototype';
57137
57160
 
57138
57161
  var $export$8 = function (type, name, source) {
57139
57162
  var IS_FORCED = type & $export$8.F;
@@ -57143,8 +57166,8 @@
57143
57166
  var IS_BIND = type & $export$8.B;
57144
57167
  var IS_WRAP = type & $export$8.W;
57145
57168
  var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
57146
- var expProto = exports[PROTOTYPE$2];
57147
- var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$2];
57169
+ var expProto = exports[PROTOTYPE$1];
57170
+ var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$1];
57148
57171
  var key, own, out;
57149
57172
  if (IS_GLOBAL) source = name;
57150
57173
  for (key in source) {
@@ -57168,7 +57191,7 @@
57168
57191
  } return new C(a, b, c);
57169
57192
  } return C.apply(this, arguments);
57170
57193
  };
57171
- F[PROTOTYPE$2] = C[PROTOTYPE$2];
57194
+ F[PROTOTYPE$1] = C[PROTOTYPE$1];
57172
57195
  return F;
57173
57196
  // make static versions for prototype methods
57174
57197
  })(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
@@ -57197,20 +57220,12 @@
57197
57220
  return toString$4.call(it).slice(8, -1);
57198
57221
  };
57199
57222
 
57200
- var _iobject;
57201
- var hasRequired_iobject;
57202
-
57203
- function require_iobject () {
57204
- if (hasRequired_iobject) return _iobject;
57205
- hasRequired_iobject = 1;
57206
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
57207
- var cof = _cof;
57208
- // eslint-disable-next-line no-prototype-builtins
57209
- _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
57210
- return cof(it) == 'String' ? it.split('') : Object(it);
57211
- };
57212
- return _iobject;
57213
- }
57223
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
57224
+ var cof$2 = _cof;
57225
+ // eslint-disable-next-line no-prototype-builtins
57226
+ var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
57227
+ return cof$2(it) == 'String' ? it.split('') : Object(it);
57228
+ };
57214
57229
 
57215
57230
  // 7.2.1 RequireObjectCoercible(argument)
57216
57231
  var _defined = function (it) {
@@ -57219,7 +57234,7 @@
57219
57234
  };
57220
57235
 
57221
57236
  // to indexed object, toObject with fallback for non-array-like ES3 strings
57222
- var IObject = require_iobject();
57237
+ var IObject = _iobject;
57223
57238
  var defined$2 = _defined;
57224
57239
  var _toIobject = function (it) {
57225
57240
  return IObject(defined$2(it));
@@ -57305,14 +57320,14 @@
57305
57320
  var has$c = _has;
57306
57321
  var toIObject$4 = _toIobject;
57307
57322
  var arrayIndexOf$1 = _arrayIncludes$1(false);
57308
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
57323
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
57309
57324
 
57310
57325
  var _objectKeysInternal = function (object, names) {
57311
57326
  var O = toIObject$4(object);
57312
57327
  var i = 0;
57313
57328
  var result = [];
57314
57329
  var key;
57315
- for (key in O) if (key != IE_PROTO$2) has$c(O, key) && result.push(key);
57330
+ for (key in O) if (key != IE_PROTO$1) has$c(O, key) && result.push(key);
57316
57331
  // Don't enum bug & hidden keys
57317
57332
  while (names.length > i) if (has$c(O, key = names[i++])) {
57318
57333
  ~arrayIndexOf$1(result, key) || result.push(key);
@@ -57327,10 +57342,10 @@
57327
57342
 
57328
57343
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
57329
57344
  var $keys$3 = _objectKeysInternal;
57330
- var enumBugKeys$1 = _enumBugKeys;
57345
+ var enumBugKeys = _enumBugKeys;
57331
57346
 
57332
57347
  var _objectKeys = Object.keys || function keys(O) {
57333
- return $keys$3(O, enumBugKeys$1);
57348
+ return $keys$3(O, enumBugKeys);
57334
57349
  };
57335
57350
 
57336
57351
  var _objectGops = {};
@@ -57361,12 +57376,12 @@
57361
57376
  if (hasRequired_objectAssign) return _objectAssign;
57362
57377
  hasRequired_objectAssign = 1;
57363
57378
  // 19.1.2.1 Object.assign(target, source, ...)
57364
- var DESCRIPTORS = _descriptors;
57379
+ var DESCRIPTORS = require_descriptors();
57365
57380
  var getKeys = _objectKeys;
57366
57381
  var gOPS = _objectGops;
57367
57382
  var pIE = require_objectPie();
57368
57383
  var toObject = _toObject;
57369
- var IObject = require_iobject();
57384
+ var IObject = _iobject;
57370
57385
  var $assign = Object.assign;
57371
57386
 
57372
57387
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -57437,19 +57452,27 @@
57437
57452
 
57438
57453
  var _redefine = _hide;
57439
57454
 
57440
- var dP$1 = _objectDp;
57441
- var anObject$4 = _anObject;
57442
- var getKeys$1 = _objectKeys;
57455
+ var _objectDps;
57456
+ var hasRequired_objectDps;
57443
57457
 
57444
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
57445
- anObject$4(O);
57446
- var keys = getKeys$1(Properties);
57447
- var length = keys.length;
57448
- var i = 0;
57449
- var P;
57450
- while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
57451
- return O;
57452
- };
57458
+ function require_objectDps () {
57459
+ if (hasRequired_objectDps) return _objectDps;
57460
+ hasRequired_objectDps = 1;
57461
+ var dP = require_objectDp();
57462
+ var anObject = _anObject;
57463
+ var getKeys = _objectKeys;
57464
+
57465
+ _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
57466
+ anObject(O);
57467
+ var keys = getKeys(Properties);
57468
+ var length = keys.length;
57469
+ var i = 0;
57470
+ var P;
57471
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
57472
+ return O;
57473
+ };
57474
+ return _objectDps;
57475
+ }
57453
57476
 
57454
57477
  var _html;
57455
57478
  var hasRequired_html;
@@ -57462,47 +57485,55 @@
57462
57485
  return _html;
57463
57486
  }
57464
57487
 
57465
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57466
- var anObject$3 = _anObject;
57467
- var dPs = _objectDps;
57468
- var enumBugKeys = _enumBugKeys;
57469
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
57470
- var Empty = function () { /* empty */ };
57471
- var PROTOTYPE$1 = 'prototype';
57488
+ var _objectCreate;
57489
+ var hasRequired_objectCreate;
57472
57490
 
57473
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
57474
- var createDict = function () {
57475
- // Thrash, waste and sodomy: IE GC bug
57476
- var iframe = require_domCreate()('iframe');
57477
- var i = enumBugKeys.length;
57478
- var lt = '<';
57479
- var gt = '>';
57480
- var iframeDocument;
57481
- iframe.style.display = 'none';
57482
- require_html().appendChild(iframe);
57483
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57484
- // createDict = iframe.contentWindow.Object;
57485
- // html.removeChild(iframe);
57486
- iframeDocument = iframe.contentWindow.document;
57487
- iframeDocument.open();
57488
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57489
- iframeDocument.close();
57490
- createDict = iframeDocument.F;
57491
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
57492
- return createDict();
57493
- };
57494
-
57495
- var _objectCreate = Object.create || function create(O, Properties) {
57496
- var result;
57497
- if (O !== null) {
57498
- Empty[PROTOTYPE$1] = anObject$3(O);
57499
- result = new Empty();
57500
- Empty[PROTOTYPE$1] = null;
57501
- // add "__proto__" for Object.getPrototypeOf polyfill
57502
- result[IE_PROTO$1] = O;
57503
- } else result = createDict();
57504
- return Properties === undefined ? result : dPs(result, Properties);
57505
- };
57491
+ function require_objectCreate () {
57492
+ if (hasRequired_objectCreate) return _objectCreate;
57493
+ hasRequired_objectCreate = 1;
57494
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57495
+ var anObject = _anObject;
57496
+ var dPs = require_objectDps();
57497
+ var enumBugKeys = _enumBugKeys;
57498
+ var IE_PROTO = _sharedKey('IE_PROTO');
57499
+ var Empty = function () { /* empty */ };
57500
+ var PROTOTYPE = 'prototype';
57501
+
57502
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
57503
+ var createDict = function () {
57504
+ // Thrash, waste and sodomy: IE GC bug
57505
+ var iframe = require_domCreate()('iframe');
57506
+ var i = enumBugKeys.length;
57507
+ var lt = '<';
57508
+ var gt = '>';
57509
+ var iframeDocument;
57510
+ iframe.style.display = 'none';
57511
+ require_html().appendChild(iframe);
57512
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57513
+ // createDict = iframe.contentWindow.Object;
57514
+ // html.removeChild(iframe);
57515
+ iframeDocument = iframe.contentWindow.document;
57516
+ iframeDocument.open();
57517
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57518
+ iframeDocument.close();
57519
+ createDict = iframeDocument.F;
57520
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
57521
+ return createDict();
57522
+ };
57523
+
57524
+ _objectCreate = Object.create || function create(O, Properties) {
57525
+ var result;
57526
+ if (O !== null) {
57527
+ Empty[PROTOTYPE] = anObject(O);
57528
+ result = new Empty();
57529
+ Empty[PROTOTYPE] = null;
57530
+ // add "__proto__" for Object.getPrototypeOf polyfill
57531
+ result[IE_PROTO] = O;
57532
+ } else result = createDict();
57533
+ return Properties === undefined ? result : dPs(result, Properties);
57534
+ };
57535
+ return _objectCreate;
57536
+ }
57506
57537
 
57507
57538
  var _wks = {exports: {}};
57508
57539
 
@@ -57520,7 +57551,7 @@
57520
57551
 
57521
57552
  var _wksExports = _wks.exports;
57522
57553
 
57523
- var def = _objectDp.f;
57554
+ var def = require_objectDp().f;
57524
57555
  var has$b = _has;
57525
57556
  var TAG$1 = _wksExports('toStringTag');
57526
57557
 
@@ -57528,7 +57559,7 @@
57528
57559
  if (it && !has$b(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
57529
57560
  };
57530
57561
 
57531
- var create$4 = _objectCreate;
57562
+ var create$4 = require_objectCreate();
57532
57563
  var descriptor = _propertyDesc;
57533
57564
  var setToStringTag$2 = _setToStringTag;
57534
57565
  var IteratorPrototype = {};
@@ -57834,7 +57865,7 @@
57834
57865
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
57835
57866
  };
57836
57867
 
57837
- var $defineProperty$1 = _objectDp;
57868
+ var $defineProperty$1 = require_objectDp();
57838
57869
  var createDesc$2 = _propertyDesc;
57839
57870
 
57840
57871
  var _createProperty = function (object, index, value) {
@@ -57967,7 +57998,7 @@
57967
57998
 
57968
57999
  var $export$3 = _export;
57969
58000
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
57970
- $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
58001
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
57971
58002
 
57972
58003
  var $Object$1 = _coreExports.Object;
57973
58004
  var defineProperty$6 = function defineProperty(it, key, desc) {
@@ -58015,7 +58046,7 @@
58015
58046
  var META$1 = _uid('meta');
58016
58047
  var isObject$5 = _isObject;
58017
58048
  var has$9 = _has;
58018
- var setDesc = _objectDp.f;
58049
+ var setDesc = require_objectDp().f;
58019
58050
  var id$1 = 0;
58020
58051
  var isExtensible = Object.isExtensible || function () {
58021
58052
  return true;
@@ -58070,7 +58101,7 @@
58070
58101
 
58071
58102
  var core = _coreExports;
58072
58103
  var wksExt$1 = _wksExt;
58073
- var defineProperty$4 = _objectDp.f;
58104
+ var defineProperty$4 = require_objectDp().f;
58074
58105
  var _wksDefine = function (name) {
58075
58106
  var $Symbol = core.Symbol || (core.Symbol = {} );
58076
58107
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$4($Symbol, name, { value: wksExt$1.f(name) });
@@ -58137,10 +58168,10 @@
58137
58168
  var toIObject$1 = _toIobject;
58138
58169
  var toPrimitive$1 = _toPrimitive$1;
58139
58170
  var has$8 = _has;
58140
- var IE8_DOM_DEFINE = _ie8DomDefine;
58171
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
58141
58172
  var gOPD$2 = Object.getOwnPropertyDescriptor;
58142
58173
 
58143
- _objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
58174
+ _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
58144
58175
  O = toIObject$1(O);
58145
58176
  P = toPrimitive$1(P, true);
58146
58177
  if (IE8_DOM_DEFINE) try {
@@ -58152,7 +58183,7 @@
58152
58183
  // ECMAScript 6 symbols shim
58153
58184
  var global$1 = _globalExports;
58154
58185
  var has$7 = _has;
58155
- var DESCRIPTORS = _descriptors;
58186
+ var DESCRIPTORS = require_descriptors();
58156
58187
  var $export$2 = _export;
58157
58188
  var redefine = _redefine;
58158
58189
  var META = _metaExports.KEY;
@@ -58171,11 +58202,11 @@
58171
58202
  var toIObject = _toIobject;
58172
58203
  var toPrimitive = _toPrimitive$1;
58173
58204
  var createDesc = _propertyDesc;
58174
- var _create$1 = _objectCreate;
58205
+ var _create$1 = require_objectCreate();
58175
58206
  var gOPNExt = _objectGopnExt;
58176
58207
  var $GOPD = _objectGopd;
58177
58208
  var $GOPS = _objectGops;
58178
- var $DP = _objectDp;
58209
+ var $DP = require_objectDp();
58179
58210
  var $keys$1 = _objectKeys;
58180
58211
  var gOPD$1 = $GOPD.f;
58181
58212
  var dP = $DP.f;
@@ -58481,7 +58512,7 @@
58481
58512
 
58482
58513
  var $export = _export;
58483
58514
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
58484
- $export($export.S, 'Object', { create: _objectCreate });
58515
+ $export($export.S, 'Object', { create: require_objectCreate() });
58485
58516
 
58486
58517
  var $Object = _coreExports.Object;
58487
58518
  var create$3 = function create(P, D) {
@@ -160605,7 +160636,17 @@
160605
160636
  data.size = isProtein ? size * 3 : size;
160606
160637
  data.sequence = await read(size, "utf8");
160607
160638
  } else if (ord(next_byte) === 10) {
160608
- const strand_dict = { 0: ".", 1: "+", 2: "-", 3: "=" };
160639
+ const strand_dict = {
160640
+ // [strand, arrowheadType]
160641
+ 0: [1, "NONE"],
160642
+ // non-directional feature (in that case, the attribute is generally absent altogether)
160643
+ 1: [1, "TOP"],
160644
+ // forward strand
160645
+ 2: [-1, "BOTTOM"],
160646
+ // reverse strand
160647
+ 3: [1, "BOTH"]
160648
+ // bi-directional feature
160649
+ };
160609
160650
  const xml = await read(block_size, "utf8");
160610
160651
  const b = new fxp.XMLParser({
160611
160652
  ignoreAttributes: false,
@@ -160636,7 +160677,8 @@
160636
160677
  name,
160637
160678
  type,
160638
160679
  ...locations?.length > 1 && { locations },
160639
- strand: strand_dict[directionality],
160680
+ strand: directionality ? strand_dict[directionality][0] : 1,
160681
+ arrowheadType: directionality ? strand_dict[directionality][1] : "NONE",
160640
160682
  start: maxStart,
160641
160683
  end: maxEnd
160642
160684
  // color,
@@ -171108,7 +171150,7 @@
171108
171150
  const isAlreadyProteinEditor = currentEditor.sequenceData && currentEditor.sequenceData.isProtein;
171109
171151
  const isAlreadyRnaEditor = currentEditor.sequenceData && currentEditor.sequenceData.isRna;
171110
171152
  const isAlreadyOligoEditor = currentEditor.sequenceData && currentEditor.sequenceData.isOligo;
171111
- const reverseSequenceShouldBeUpdate = currentEditor.sequenceData?.isSingleStrandedDNA !== sequenceData?.isSingleStrandedDNA;
171153
+ const reverseSequenceShouldBeUpdate = currentEditor.sequenceData?.isSingleStrandedDNA !== sequenceData?.isSingleStrandedDNA || currentEditor.sequenceData?.isDoubleStrandedRNA !== sequenceData?.isDoubleStrandedRNA;
171112
171154
  const isAlreadySpecialEditor = isAlreadyProteinEditor || isAlreadyRnaEditor || isAlreadyOligoEditor || reverseSequenceShouldBeUpdate;
171113
171155
  let toSpread = {};
171114
171156
  let payload;
@@ -171135,14 +171177,14 @@
171135
171177
  },
171136
171178
  annotationVisibility: {
171137
171179
  caret: true,
171138
- ...annotationVisibility,
171139
- //we spread this here to allow the user to override this .. if they must!
171140
171180
  sequence: false,
171141
171181
  reverseSequence: false,
171142
171182
  cutsites: false,
171143
171183
  translations: false,
171144
171184
  aminoAcidNumbers: false,
171145
- primaryProteinSequence: true
171185
+ primaryProteinSequence: true,
171186
+ ...annotationVisibility
171187
+ //we spread this here to allow the user to override this .. if they must!
171146
171188
  },
171147
171189
  annotationsToSupport: {
171148
171190
  features: true,
@@ -171164,14 +171206,14 @@
171164
171206
  },
171165
171207
  annotationVisibility: {
171166
171208
  caret: true,
171167
- ...annotationVisibility,
171168
- //we spread this here to allow the user to override this .. if they must!
171169
171209
  sequence: true,
171170
171210
  cutsites: false,
171171
171211
  reverseSequence: false,
171172
171212
  translations: false,
171173
171213
  aminoAcidNumbers: false,
171174
- primaryProteinSequence: false
171214
+ primaryProteinSequence: false,
171215
+ ...annotationVisibility
171216
+ //we spread this here to allow the user to override this .. if they must!
171175
171217
  },
171176
171218
  annotationsToSupport: {
171177
171219
  features: true,
@@ -171194,14 +171236,14 @@
171194
171236
  },
171195
171237
  annotationVisibility: {
171196
171238
  caret: true,
171197
- ...annotationVisibility,
171198
- //we spread this here to allow the user to override this .. if they must!
171199
171239
  sequence: true,
171200
171240
  cutsites: false,
171201
- reverseSequence: false,
171241
+ reverseSequence: sequenceData?.isDoubleStrandedRNA,
171202
171242
  translations: false,
171203
171243
  aminoAcidNumbers: false,
171204
- primaryProteinSequence: false
171244
+ primaryProteinSequence: false,
171245
+ ...annotationVisibility
171246
+ //we spread this here to allow the user to override this .. if they must!
171205
171247
  },
171206
171248
  annotationsToSupport: {
171207
171249
  features: true,
@@ -171225,13 +171267,13 @@
171225
171267
  },
171226
171268
  annotationVisibility: {
171227
171269
  caret: true,
171228
- ...annotationVisibility,
171229
- //we spread this here to allow the user to override this .. if they must!
171230
171270
  sequence: true,
171231
171271
  reverseSequence: !sequenceData?.isSingleStrandedDNA,
171232
171272
  translations: false,
171233
171273
  aminoAcidNumbers: false,
171234
- primaryProteinSequence: false
171274
+ primaryProteinSequence: false,
171275
+ ...annotationVisibility
171276
+ //we spread this here to allow the user to override this .. if they must!
171235
171277
  },
171236
171278
  annotationsToSupport: {
171237
171279
  features: true,
@@ -188154,6 +188196,7 @@ double click --> edit`}`;
188154
188196
  rowTopComp,
188155
188197
  rowBottomComp,
188156
188198
  isProtein,
188199
+ isRna,
188157
188200
  tickSpacing,
188158
188201
  truncateLabelsThatDoNotFit = true,
188159
188202
  aminoAcidNumbersHeight = rowHeights.aminoAcidNumbers.height,
@@ -188218,7 +188261,8 @@ double click --> edit`}`;
188218
188261
  } = annotationVisibility;
188219
188262
  const { sequence = "", cutsites = [] } = row;
188220
188263
  const reverseSequence = getComplementSequenceString(
188221
- alignmentData && alignmentData.sequence || sequence
188264
+ alignmentData && alignmentData.sequence || sequence,
188265
+ isRna
188222
188266
  );
188223
188267
  const getGaps = reactExports.useMemo(() => {
188224
188268
  if (alignmentData) {
@@ -189924,14 +189968,12 @@ double click --> edit`}`;
189924
189968
  }
189925
189969
 
189926
189970
  const name = "@teselagen/ove";
189927
- const version = "0.0.17";
189971
+ const version = "0.0.19";
189928
189972
  const main = "./src/index.js";
189929
- const type = "commonjs";
189930
189973
  const packageJson = {
189931
189974
  name: name,
189932
189975
  version: version,
189933
- main: main,
189934
- type: type
189976
+ main: main
189935
189977
  };
189936
189978
 
189937
189979
  const PartTagSearch = withEditorProps(PartToolDropdown);
@@ -200357,6 +200399,7 @@ double click --> edit`}`;
200357
200399
  },
200358
200400
  isRowView: true,
200359
200401
  isProtein: sequenceData.isProtein,
200402
+ isRna: sequenceData.isRna,
200360
200403
  chromatogramData: sequenceData.chromatogramData,
200361
200404
  sequenceLength: sequenceData.sequence.length,
200362
200405
  bpsPerRow,
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "main": "./src/index.js",
5
- "type": "module",
6
5
  "dependencies": {
7
- "@teselagen/sequence-utils": "0.1.19",
8
- "@teselagen/range-utils": "0.1.18",
9
- "@teselagen/ui": "0.0.23",
10
- "@teselagen/file-utils": "0.2.25",
11
- "@teselagen/bounce-loader": "0.0.12",
12
- "@teselagen/bio-parsers": "0.1.24",
6
+ "@teselagen/sequence-utils": "0.1.22",
7
+ "@teselagen/range-utils": "0.1.21",
8
+ "@teselagen/ui": "0.0.26",
9
+ "@teselagen/file-utils": "0.2.28",
10
+ "@teselagen/bounce-loader": "0.0.15",
11
+ "@teselagen/bio-parsers": "0.1.27",
13
12
  "@blueprintjs/core": "3.52.0",
14
13
  "@blueprintjs/datetime": "3.23.19",
15
14
  "@blueprintjs/icons": "3.33.0",
@@ -85,5 +84,6 @@
85
84
  "use-debounce": "^8.0.4",
86
85
  "use-deep-compare-effect": "^1.6.1",
87
86
  "write-excel-file": "^1.4.25"
88
- }
87
+ },
88
+ "type": "commonjs"
89
89
  }
@@ -74,6 +74,7 @@ export default function RowItem(props) {
74
74
  rowTopComp,
75
75
  rowBottomComp,
76
76
  isProtein,
77
+ isRna,
77
78
  tickSpacing,
78
79
  truncateLabelsThatDoNotFit = true,
79
80
  aminoAcidNumbersHeight = rowHeights.aminoAcidNumbers.height,
@@ -141,7 +142,8 @@ export default function RowItem(props) {
141
142
  const { sequence = "", cutsites = [] } = row;
142
143
 
143
144
  const reverseSequence = getComplementSequenceString(
144
- (alignmentData && alignmentData.sequence) || sequence
145
+ (alignmentData && alignmentData.sequence) || sequence,
146
+ isRna
145
147
  );
146
148
  const getGaps = useMemo(() => {
147
149
  if (alignmentData) {
@@ -367,6 +367,7 @@ class _RowView extends React.Component {
367
367
  },
368
368
  isRowView: true,
369
369
  isProtein: sequenceData.isProtein,
370
+ isRna: sequenceData.isRna,
370
371
  chromatogramData: sequenceData.chromatogramData,
371
372
  sequenceLength: sequenceData.sequence.length,
372
373
  bpsPerRow,
@@ -25,7 +25,9 @@ export default function updateEditor(
25
25
  currentEditor.sequenceData && currentEditor.sequenceData.isOligo;
26
26
  const reverseSequenceShouldBeUpdate =
27
27
  currentEditor.sequenceData?.isSingleStrandedDNA !==
28
- sequenceData?.isSingleStrandedDNA;
28
+ sequenceData?.isSingleStrandedDNA ||
29
+ currentEditor.sequenceData?.isDoubleStrandedRNA !==
30
+ sequenceData?.isDoubleStrandedRNA;
29
31
 
30
32
  const isAlreadySpecialEditor =
31
33
  isAlreadyProteinEditor ||
@@ -60,13 +62,13 @@ export default function updateEditor(
60
62
 
61
63
  annotationVisibility: {
62
64
  caret: true,
63
- ...annotationVisibility, //we spread this here to allow the user to override this .. if they must!
64
65
  sequence: false,
65
66
  reverseSequence: false,
66
67
  cutsites: false,
67
68
  translations: false,
68
69
  aminoAcidNumbers: false,
69
- primaryProteinSequence: true
70
+ primaryProteinSequence: true,
71
+ ...annotationVisibility //we spread this here to allow the user to override this .. if they must!
70
72
  },
71
73
  annotationsToSupport: {
72
74
  features: true,
@@ -87,13 +89,13 @@ export default function updateEditor(
87
89
  },
88
90
  annotationVisibility: {
89
91
  caret: true,
90
- ...annotationVisibility, //we spread this here to allow the user to override this .. if they must!
91
92
  sequence: true,
92
93
  cutsites: false,
93
94
  reverseSequence: false,
94
95
  translations: false,
95
96
  aminoAcidNumbers: false,
96
- primaryProteinSequence: false
97
+ primaryProteinSequence: false,
98
+ ...annotationVisibility //we spread this here to allow the user to override this .. if they must!
97
99
  },
98
100
  annotationsToSupport: {
99
101
  features: true,
@@ -114,13 +116,13 @@ export default function updateEditor(
114
116
  },
115
117
  annotationVisibility: {
116
118
  caret: true,
117
- ...annotationVisibility, //we spread this here to allow the user to override this .. if they must!
118
119
  sequence: true,
119
120
  cutsites: false,
120
- reverseSequence: false,
121
+ reverseSequence: sequenceData?.isDoubleStrandedRNA,
121
122
  translations: false,
122
123
  aminoAcidNumbers: false,
123
- primaryProteinSequence: false
124
+ primaryProteinSequence: false,
125
+ ...annotationVisibility //we spread this here to allow the user to override this .. if they must!
124
126
  },
125
127
  annotationsToSupport: {
126
128
  features: true,
@@ -143,12 +145,12 @@ export default function updateEditor(
143
145
  },
144
146
  annotationVisibility: {
145
147
  caret: true,
146
- ...annotationVisibility, //we spread this here to allow the user to override this .. if they must!
147
148
  sequence: true,
148
149
  reverseSequence: !sequenceData?.isSingleStrandedDNA,
149
150
  translations: false,
150
151
  aminoAcidNumbers: false,
151
- primaryProteinSequence: false
152
+ primaryProteinSequence: false,
153
+ ...annotationVisibility //we spread this here to allow the user to override this .. if they must!
152
154
  },
153
155
  annotationsToSupport: {
154
156
  features: true,