@teselagen/ove 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +112 -88
- package/index.es.js +112 -88
- package/index.umd.js +86 -96
- package/package.json +2 -2
- package/src/MenuBar/defaultConfig.js +2 -1
- package/src/SimpleCircularOrLinearView.js +4 -3
- package/src/ToolBar/downloadTool.js +2 -1
- package/src/commands/index.js +19 -4
- package/src/withEditorProps/index.js +16 -14
package/index.es.js
CHANGED
|
@@ -5519,10 +5519,10 @@ var ownKeys$7 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
|
|
|
5519
5519
|
/* istanbul ignore next */
|
|
5520
5520
|
Object.getOwnPropertyNames
|
|
5521
5521
|
);
|
|
5522
|
-
function toPrimitive$
|
|
5522
|
+
function toPrimitive$2(value) {
|
|
5523
5523
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
5524
5524
|
}
|
|
5525
|
-
__name(toPrimitive$
|
|
5525
|
+
__name(toPrimitive$2, "toPrimitive$2");
|
|
5526
5526
|
function hasProp(target, prop2) {
|
|
5527
5527
|
return objectPrototype$1.hasOwnProperty.call(target, prop2);
|
|
5528
5528
|
}
|
|
@@ -6419,7 +6419,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
6419
6419
|
return this.name_ + "[" + this.value_ + "]";
|
|
6420
6420
|
}, "toString");
|
|
6421
6421
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
6422
|
-
return toPrimitive$
|
|
6422
|
+
return toPrimitive$2(this.get());
|
|
6423
6423
|
}, "valueOf");
|
|
6424
6424
|
_proto[_Symbol$toPrimitive] = function() {
|
|
6425
6425
|
return this.valueOf();
|
|
@@ -6604,7 +6604,7 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
6604
6604
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
6605
6605
|
}, "toString");
|
|
6606
6606
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
6607
|
-
return toPrimitive$
|
|
6607
|
+
return toPrimitive$2(this.get());
|
|
6608
6608
|
}, "valueOf");
|
|
6609
6609
|
_proto[_Symbol$toPrimitive$1] = function() {
|
|
6610
6610
|
return this.valueOf();
|
|
@@ -11238,7 +11238,7 @@ lodash.exports;
|
|
|
11238
11238
|
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11239
11239
|
);
|
|
11240
11240
|
var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
|
|
11241
|
-
var
|
|
11241
|
+
var defineProperty5 = function() {
|
|
11242
11242
|
try {
|
|
11243
11243
|
var func = getNative2(Object2, "defineProperty");
|
|
11244
11244
|
func({}, "", {});
|
|
@@ -11678,8 +11678,8 @@ lodash.exports;
|
|
|
11678
11678
|
}
|
|
11679
11679
|
__name(baseAssignIn2, "baseAssignIn");
|
|
11680
11680
|
function baseAssignValue2(object3, key, value) {
|
|
11681
|
-
if (key == "__proto__" &&
|
|
11682
|
-
|
|
11681
|
+
if (key == "__proto__" && defineProperty5) {
|
|
11682
|
+
defineProperty5(object3, key, {
|
|
11683
11683
|
"configurable": true,
|
|
11684
11684
|
"enumerable": true,
|
|
11685
11685
|
"value": value,
|
|
@@ -12412,8 +12412,8 @@ lodash.exports;
|
|
|
12412
12412
|
metaMap.set(func, data);
|
|
12413
12413
|
return func;
|
|
12414
12414
|
};
|
|
12415
|
-
var baseSetToString2 = !
|
|
12416
|
-
return
|
|
12415
|
+
var baseSetToString2 = !defineProperty5 ? identity4 : function(func, string2) {
|
|
12416
|
+
return defineProperty5(func, "toString", {
|
|
12417
12417
|
"configurable": true,
|
|
12418
12418
|
"enumerable": false,
|
|
12419
12419
|
"value": constant2(string2),
|
|
@@ -16966,11 +16966,20 @@ function require_domCreate() {
|
|
|
16966
16966
|
return _domCreate;
|
|
16967
16967
|
}
|
|
16968
16968
|
__name(require_domCreate, "require_domCreate");
|
|
16969
|
-
var _ie8DomDefine
|
|
16970
|
-
|
|
16971
|
-
|
|
16972
|
-
|
|
16973
|
-
|
|
16969
|
+
var _ie8DomDefine;
|
|
16970
|
+
var hasRequired_ie8DomDefine;
|
|
16971
|
+
function require_ie8DomDefine() {
|
|
16972
|
+
if (hasRequired_ie8DomDefine)
|
|
16973
|
+
return _ie8DomDefine;
|
|
16974
|
+
hasRequired_ie8DomDefine = 1;
|
|
16975
|
+
_ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
16976
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
16977
|
+
return 7;
|
|
16978
|
+
} }).a != 7;
|
|
16979
|
+
});
|
|
16980
|
+
return _ie8DomDefine;
|
|
16981
|
+
}
|
|
16982
|
+
__name(require_ie8DomDefine, "require_ie8DomDefine");
|
|
16974
16983
|
var isObject$d = _isObject;
|
|
16975
16984
|
var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
16976
16985
|
if (!isObject$d(it))
|
|
@@ -16984,25 +16993,33 @@ var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
|
16984
16993
|
return val2;
|
|
16985
16994
|
throw TypeError("Can't convert object to primitive value");
|
|
16986
16995
|
}, "_toPrimitive$1");
|
|
16987
|
-
var
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
|
|
16992
|
-
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
|
|
17003
|
-
|
|
17004
|
-
|
|
17005
|
-
|
|
16996
|
+
var hasRequired_objectDp;
|
|
16997
|
+
function require_objectDp() {
|
|
16998
|
+
if (hasRequired_objectDp)
|
|
16999
|
+
return _objectDp;
|
|
17000
|
+
hasRequired_objectDp = 1;
|
|
17001
|
+
var anObject2 = _anObject;
|
|
17002
|
+
var IE8_DOM_DEFINE2 = require_ie8DomDefine();
|
|
17003
|
+
var toPrimitive2 = _toPrimitive$1;
|
|
17004
|
+
var dP2 = Object.defineProperty;
|
|
17005
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
|
|
17006
|
+
anObject2(O2);
|
|
17007
|
+
P2 = toPrimitive2(P2, true);
|
|
17008
|
+
anObject2(Attributes);
|
|
17009
|
+
if (IE8_DOM_DEFINE2)
|
|
17010
|
+
try {
|
|
17011
|
+
return dP2(O2, P2, Attributes);
|
|
17012
|
+
} catch (e2) {
|
|
17013
|
+
}
|
|
17014
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
17015
|
+
throw TypeError("Accessors not supported!");
|
|
17016
|
+
if ("value" in Attributes)
|
|
17017
|
+
O2[P2] = Attributes.value;
|
|
17018
|
+
return O2;
|
|
17019
|
+
}, "defineProperty");
|
|
17020
|
+
return _objectDp;
|
|
17021
|
+
}
|
|
17022
|
+
__name(require_objectDp, "require_objectDp");
|
|
17006
17023
|
var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
17007
17024
|
return {
|
|
17008
17025
|
enumerable: !(bitmap & 1),
|
|
@@ -17011,7 +17028,7 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
17011
17028
|
value
|
|
17012
17029
|
};
|
|
17013
17030
|
}, "_propertyDesc");
|
|
17014
|
-
var dP$1 =
|
|
17031
|
+
var dP$1 = require_objectDp();
|
|
17015
17032
|
var createDesc$3 = _propertyDesc;
|
|
17016
17033
|
var _hide = require_descriptors() ? function(object3, key, value) {
|
|
17017
17034
|
return dP$1.f(object3, key, createDesc$3(1, value));
|
|
@@ -17085,25 +17102,16 @@ var toString$6 = {}.toString;
|
|
|
17085
17102
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
17086
17103
|
return toString$6.call(it).slice(8, -1);
|
|
17087
17104
|
}, "_cof");
|
|
17088
|
-
var
|
|
17089
|
-
var
|
|
17090
|
-
|
|
17091
|
-
|
|
17092
|
-
return _iobject;
|
|
17093
|
-
hasRequired_iobject = 1;
|
|
17094
|
-
var cof2 = _cof;
|
|
17095
|
-
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
17096
|
-
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
17097
|
-
};
|
|
17098
|
-
return _iobject;
|
|
17099
|
-
}
|
|
17100
|
-
__name(require_iobject, "require_iobject");
|
|
17105
|
+
var cof$2 = _cof;
|
|
17106
|
+
var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
17107
|
+
return cof$2(it) == "String" ? it.split("") : Object(it);
|
|
17108
|
+
};
|
|
17101
17109
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
17102
17110
|
if (it == void 0)
|
|
17103
17111
|
throw TypeError("Can't call method on " + it);
|
|
17104
17112
|
return it;
|
|
17105
17113
|
}, "_defined");
|
|
17106
|
-
var IObject =
|
|
17114
|
+
var IObject = _iobject;
|
|
17107
17115
|
var defined$2 = _defined;
|
|
17108
17116
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
17109
17117
|
return IObject(defined$2(it));
|
|
@@ -17224,7 +17232,7 @@ function require_objectAssign() {
|
|
|
17224
17232
|
var gOPS2 = _objectGops;
|
|
17225
17233
|
var pIE2 = require_objectPie();
|
|
17226
17234
|
var toObject2 = _toObject;
|
|
17227
|
-
var IObject2 =
|
|
17235
|
+
var IObject2 = _iobject;
|
|
17228
17236
|
var $assign = Object.assign;
|
|
17229
17237
|
_objectAssign = !$assign || _fails(function() {
|
|
17230
17238
|
var A2 = {};
|
|
@@ -17291,7 +17299,7 @@ function require_objectDps() {
|
|
|
17291
17299
|
if (hasRequired_objectDps)
|
|
17292
17300
|
return _objectDps;
|
|
17293
17301
|
hasRequired_objectDps = 1;
|
|
17294
|
-
var dP2 =
|
|
17302
|
+
var dP2 = require_objectDp();
|
|
17295
17303
|
var anObject2 = _anObject;
|
|
17296
17304
|
var getKeys2 = _objectKeys;
|
|
17297
17305
|
_objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties3(O2, Properties2) {
|
|
@@ -17373,7 +17381,7 @@ var $exports = _wks.exports = function(name2) {
|
|
|
17373
17381
|
};
|
|
17374
17382
|
$exports.store = store$2;
|
|
17375
17383
|
var _wksExports = _wks.exports;
|
|
17376
|
-
var def =
|
|
17384
|
+
var def = require_objectDp().f;
|
|
17377
17385
|
var has$c = _has;
|
|
17378
17386
|
var TAG$1 = _wksExports("toStringTag");
|
|
17379
17387
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
@@ -17646,7 +17654,7 @@ var ArrayProto = Array.prototype;
|
|
|
17646
17654
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
17647
17655
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
17648
17656
|
}, "_isArrayIter");
|
|
17649
|
-
var $defineProperty$2 =
|
|
17657
|
+
var $defineProperty$2 = require_objectDp();
|
|
17650
17658
|
var createDesc$2 = _propertyDesc;
|
|
17651
17659
|
var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
|
|
17652
17660
|
if (index2 in object3)
|
|
@@ -17775,9 +17783,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
17775
17783
|
}
|
|
17776
17784
|
}, "_default$8");
|
|
17777
17785
|
var $export$3 = _export;
|
|
17778
|
-
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty:
|
|
17786
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
|
|
17779
17787
|
var $Object$2 = _coreExports.Object;
|
|
17780
|
-
var defineProperty$c = /* @__PURE__ */ __name(function
|
|
17788
|
+
var defineProperty$c = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
|
|
17781
17789
|
return $Object$2.defineProperty(it, key, desc);
|
|
17782
17790
|
}, "defineProperty");
|
|
17783
17791
|
var defineProperty$b = { "default": defineProperty$c, __esModule: true };
|
|
@@ -17816,7 +17824,7 @@ var _meta = { exports: {} };
|
|
|
17816
17824
|
var META$1 = _uid("meta");
|
|
17817
17825
|
var isObject$c = _isObject;
|
|
17818
17826
|
var has$a = _has;
|
|
17819
|
-
var setDesc =
|
|
17827
|
+
var setDesc = require_objectDp().f;
|
|
17820
17828
|
var id$1 = 0;
|
|
17821
17829
|
var isExtensible = Object.isExtensible || function() {
|
|
17822
17830
|
return true;
|
|
@@ -17869,7 +17877,7 @@ var meta = _meta.exports = {
|
|
|
17869
17877
|
var _metaExports = _meta.exports;
|
|
17870
17878
|
var core = _coreExports;
|
|
17871
17879
|
var wksExt$1 = _wksExt;
|
|
17872
|
-
var defineProperty$a =
|
|
17880
|
+
var defineProperty$a = require_objectDp().f;
|
|
17873
17881
|
var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
17874
17882
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
17875
17883
|
if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
|
|
@@ -17923,7 +17931,7 @@ var createDesc$1 = _propertyDesc;
|
|
|
17923
17931
|
var toIObject$1 = _toIobject;
|
|
17924
17932
|
var toPrimitive$1 = _toPrimitive$1;
|
|
17925
17933
|
var has$9 = _has;
|
|
17926
|
-
var IE8_DOM_DEFINE =
|
|
17934
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
17927
17935
|
var gOPD$5 = Object.getOwnPropertyDescriptor;
|
|
17928
17936
|
_objectGopd.f = require_descriptors() ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
|
|
17929
17937
|
O2 = toIObject$1(O2);
|
|
@@ -17961,7 +17969,7 @@ var _create$1 = require_objectCreate();
|
|
|
17961
17969
|
var gOPNExt = _objectGopnExt;
|
|
17962
17970
|
var $GOPD = _objectGopd;
|
|
17963
17971
|
var $GOPS = _objectGops;
|
|
17964
|
-
var $DP =
|
|
17972
|
+
var $DP = require_objectDp();
|
|
17965
17973
|
var $keys$1 = _objectKeys;
|
|
17966
17974
|
var gOPD$4 = $GOPD.f;
|
|
17967
17975
|
var dP = $DP.f;
|
|
@@ -18004,7 +18012,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
18004
18012
|
} : function(it) {
|
|
18005
18013
|
return it instanceof $Symbol;
|
|
18006
18014
|
};
|
|
18007
|
-
var $defineProperty$1 = /* @__PURE__ */ __name(function
|
|
18015
|
+
var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
|
|
18008
18016
|
if (it === ObjectProto)
|
|
18009
18017
|
$defineProperty$1(OPSymbols, key, D2);
|
|
18010
18018
|
anObject(it);
|
|
@@ -83645,12 +83653,12 @@ const calcTmMethods = {
|
|
|
83645
83653
|
// Monovalent salt concentration. 50mM is typical for PCR.
|
|
83646
83654
|
/**
|
|
83647
83655
|
* Calculates temperature for DNA sequence using a given algorithm.
|
|
83648
|
-
*
|
|
83649
|
-
*
|
|
83650
|
-
*
|
|
83651
|
-
*
|
|
83652
|
-
*
|
|
83653
|
-
*
|
|
83656
|
+
* sequence - The DNA sequence to use.
|
|
83657
|
+
* type - Either Teselagen.bio.tools.TemperatureCalculator.TABLE_BRESLAUER, TABLE_SUGIMOTO, or TABLE_UNIFIED
|
|
83658
|
+
* A - Helix initation for deltaS. Defaults to -10.8.
|
|
83659
|
+
* R - The gas constant, in cal/(K*mol). Defaults to 0.5e-6M.
|
|
83660
|
+
* Na - THe monovalent salt concentration. Defaults to 50e-3M.
|
|
83661
|
+
* return - Temperature for the given sequence, in Celsius.
|
|
83654
83662
|
*/
|
|
83655
83663
|
calculateTemperature: function(sequence2, type, A2, R2, C, Na) {
|
|
83656
83664
|
if (typeof type === "undefined") {
|
|
@@ -105684,13 +105692,12 @@ function jsonToFasta(jsonSequence, options) {
|
|
|
105684
105692
|
proteinSize,
|
|
105685
105693
|
proteinSequence
|
|
105686
105694
|
} = cleanedData;
|
|
105687
|
-
options =
|
|
105688
|
-
|
|
105689
|
-
|
|
105690
|
-
|
|
105691
|
-
|
|
105692
|
-
|
|
105693
|
-
}
|
|
105695
|
+
options = __spreadValues({
|
|
105696
|
+
sequence: isProtein2 && proteinSequence ? proteinSequence : sequence2,
|
|
105697
|
+
size: isProtein2 && proteinSequence ? proteinSize : size
|
|
105698
|
+
}, options);
|
|
105699
|
+
const seqToUse = options.sequence;
|
|
105700
|
+
const sizeToUse = options.size;
|
|
105694
105701
|
let fastaString = "";
|
|
105695
105702
|
fastaString += `>${name2 || "Untitled Sequence"}|`;
|
|
105696
105703
|
fastaString += "|" + sizeToUse;
|
|
@@ -109999,7 +110006,7 @@ const importSequenceFromFile = /* @__PURE__ */ __name((props) => (_0, ..._1) =>
|
|
|
109999
110006
|
}
|
|
110000
110007
|
__name(finishDisplayingSeq, "finishDisplayingSeq");
|
|
110001
110008
|
}), "importSequenceFromFile");
|
|
110002
|
-
const exportSequenceToFile = /* @__PURE__ */ __name((props) => (format2) => {
|
|
110009
|
+
const exportSequenceToFile = /* @__PURE__ */ __name((props) => (format2, options) => {
|
|
110003
110010
|
const { sequenceData: sequenceData2 } = props;
|
|
110004
110011
|
let convert2, fileExt;
|
|
110005
110012
|
if (format2 === "genbank") {
|
|
@@ -110018,7 +110025,9 @@ const exportSequenceToFile = /* @__PURE__ */ __name((props) => (format2) => {
|
|
|
110018
110025
|
console.error(`Invalid export format: '${format2}'`);
|
|
110019
110026
|
return;
|
|
110020
110027
|
}
|
|
110021
|
-
const blob = new Blob([convert2(sequenceData2)], {
|
|
110028
|
+
const blob = new Blob([convert2(sequenceData2, options)], {
|
|
110029
|
+
type: "text/plain"
|
|
110030
|
+
});
|
|
110022
110031
|
const filename = `${sequenceData2.name || "Untitled_Sequence"}.${fileExt}`;
|
|
110023
110032
|
FileSaver.saveAs(blob, filename);
|
|
110024
110033
|
window.toastr.success("File Downloaded Successfully");
|
|
@@ -124978,7 +124987,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
124978
124987
|
}
|
|
124979
124988
|
__name(showFileDialog, "showFileDialog");
|
|
124980
124989
|
const name = "@teselagen/ove";
|
|
124981
|
-
const version = "0.4.
|
|
124990
|
+
const version = "0.4.3";
|
|
124982
124991
|
const main = "./src/index.js";
|
|
124983
124992
|
const exports$1 = {
|
|
124984
124993
|
".": {
|
|
@@ -125900,9 +125909,21 @@ const fileCommandDefs = __spreadValues(__spreadProps(__spreadValues({
|
|
|
125900
125909
|
name: (props) => isProtein(props) ? "Download GenPept File" : "Download Genbank File",
|
|
125901
125910
|
handler: (props) => props.exportSequenceToFile(isProtein(props) ? "genpept" : "genbank")
|
|
125902
125911
|
},
|
|
125903
|
-
|
|
125904
|
-
name:
|
|
125905
|
-
|
|
125912
|
+
exportDNASequenceAsFasta: {
|
|
125913
|
+
name: (props) => `Download ${props.sequenceData.isProtein ? "DNA " : ""}FASTA File`,
|
|
125914
|
+
isHidden: (props) => !props.sequenceData.sequence,
|
|
125915
|
+
handler: (props) => props.exportSequenceToFile("fasta", {
|
|
125916
|
+
sequence: props.sequenceData.sequence,
|
|
125917
|
+
size: props.sequenceData.size
|
|
125918
|
+
})
|
|
125919
|
+
},
|
|
125920
|
+
exportProteinSequenceAsFasta: {
|
|
125921
|
+
name: "Download AA FASTA File",
|
|
125922
|
+
isHidden: (props) => !props.sequenceData.proteinSequence,
|
|
125923
|
+
handler: (props) => props.exportSequenceToFile("fasta", {
|
|
125924
|
+
sequence: props.sequenceData.proteinSequence,
|
|
125925
|
+
size: props.sequenceData.proteinSize
|
|
125926
|
+
})
|
|
125906
125927
|
},
|
|
125907
125928
|
exportSequenceAsTeselagenJson: {
|
|
125908
125929
|
name: "Download Teselagen JSON File",
|
|
@@ -125982,7 +126003,7 @@ const bpEditingDisabledTooltip = "Sequence Editing Disabled";
|
|
|
125982
126003
|
const noSelection = /* @__PURE__ */ __name(({ selectionLayer: selectionLayer2 = {} }) => !(selectionLayer2.start > -1 && selectionLayer2.end > -1) && "Selection Required", "noSelection");
|
|
125983
126004
|
const triggerClipboardCommand = /* @__PURE__ */ __name((type, props) => {
|
|
125984
126005
|
const wrapper2 = document.querySelector(
|
|
125985
|
-
|
|
126006
|
+
`.${props.editorName} .veVectorInteractionWrapper`
|
|
125986
126007
|
);
|
|
125987
126008
|
if (!wrapper2) {
|
|
125988
126009
|
return window.toastr.info(`Cannot trigger a ${type} in the current view`);
|
|
@@ -127307,7 +127328,7 @@ var createClass = function() {
|
|
|
127307
127328
|
return Constructor;
|
|
127308
127329
|
};
|
|
127309
127330
|
}();
|
|
127310
|
-
var
|
|
127331
|
+
var defineProperty4 = /* @__PURE__ */ __name(function(obj, key, value) {
|
|
127311
127332
|
if (key in obj) {
|
|
127312
127333
|
Object.defineProperty(obj, key, {
|
|
127313
127334
|
value,
|
|
@@ -127918,7 +127939,7 @@ function arrow(data, options) {
|
|
|
127918
127939
|
var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
|
|
127919
127940
|
sideValue = Math.max(Math.min(popper2[len] - arrowElementSize, sideValue), 0);
|
|
127920
127941
|
data.arrowElement = arrowElement;
|
|
127921
|
-
data.offsets.arrow = (_data$offsets$arrow = {},
|
|
127942
|
+
data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty4(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty4(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
|
|
127922
127943
|
return data;
|
|
127923
127944
|
}
|
|
127924
127945
|
__name(arrow, "arrow");
|
|
@@ -128149,7 +128170,7 @@ function preventOverflow(data, options) {
|
|
|
128149
128170
|
if (popper2[placement] < boundaries[placement] && !options.escapeWithReference) {
|
|
128150
128171
|
value = Math.max(popper2[placement], boundaries[placement]);
|
|
128151
128172
|
}
|
|
128152
|
-
return
|
|
128173
|
+
return defineProperty4({}, placement, value);
|
|
128153
128174
|
}, "primary"),
|
|
128154
128175
|
secondary: /* @__PURE__ */ __name(function secondary(placement) {
|
|
128155
128176
|
var mainSide = placement === "right" ? "left" : "top";
|
|
@@ -128157,7 +128178,7 @@ function preventOverflow(data, options) {
|
|
|
128157
128178
|
if (popper2[placement] > boundaries[placement] && !options.escapeWithReference) {
|
|
128158
128179
|
value = Math.min(popper2[mainSide], boundaries[placement] - (placement === "right" ? popper2.width : popper2.height));
|
|
128159
128180
|
}
|
|
128160
|
-
return
|
|
128181
|
+
return defineProperty4({}, mainSide, value);
|
|
128161
128182
|
}, "secondary")
|
|
128162
128183
|
};
|
|
128163
128184
|
order2.forEach(function(placement) {
|
|
@@ -128178,8 +128199,8 @@ function shift3(data) {
|
|
|
128178
128199
|
var side = isVertical ? "left" : "top";
|
|
128179
128200
|
var measurement = isVertical ? "width" : "height";
|
|
128180
128201
|
var shiftOffsets = {
|
|
128181
|
-
start:
|
|
128182
|
-
end:
|
|
128202
|
+
start: defineProperty4({}, side, reference2[side]),
|
|
128203
|
+
end: defineProperty4({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
|
|
128183
128204
|
};
|
|
128184
128205
|
data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
|
|
128185
128206
|
}
|
|
@@ -129496,7 +129517,8 @@ const menuDef = [
|
|
|
129496
129517
|
showInSearchMenu: true,
|
|
129497
129518
|
submenu: [
|
|
129498
129519
|
{ cmd: "exportSequenceAsGenbank" },
|
|
129499
|
-
{ cmd: "
|
|
129520
|
+
{ cmd: "exportDNASequenceAsFasta" },
|
|
129521
|
+
{ cmd: "exportProteinSequenceAsFasta" },
|
|
129500
129522
|
{ cmd: "exportSequenceAsTeselagenJson" }
|
|
129501
129523
|
]
|
|
129502
129524
|
},
|
|
@@ -137844,7 +137866,8 @@ const DownloadBtn = withHandlers({ exportSequenceToFile })((props) => {
|
|
|
137844
137866
|
onClick: (event) => showContextMenu(
|
|
137845
137867
|
[
|
|
137846
137868
|
"exportSequenceAsGenbank",
|
|
137847
|
-
"
|
|
137869
|
+
"exportDNASequenceAsFasta",
|
|
137870
|
+
"exportProteinSequenceAsFasta",
|
|
137848
137871
|
"exportSequenceAsTeselagenJson"
|
|
137849
137872
|
],
|
|
137850
137873
|
[
|
|
@@ -145266,7 +145289,8 @@ const Dropdown = withEditorProps((props) => {
|
|
|
145266
145289
|
return /* @__PURE__ */ React__default$1.createElement(Menu, null, createCommandMenu(
|
|
145267
145290
|
[
|
|
145268
145291
|
"exportSequenceAsGenbank",
|
|
145269
|
-
"
|
|
145292
|
+
"exportDNASequenceAsFasta",
|
|
145293
|
+
"exportProteinSequenceAsFasta",
|
|
145270
145294
|
"exportSequenceAsTeselagenJson"
|
|
145271
145295
|
],
|
|
145272
145296
|
getCommands({ props })
|