@jbrowse/plugin-circular-view 1.5.2 → 1.5.6
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/dist/CircularView/models/slices.d.ts +2 -2
- package/dist/plugin-circular-view.cjs.development.js +23 -29
- package/dist/plugin-circular-view.cjs.development.js.map +1 -1
- package/dist/plugin-circular-view.cjs.production.min.js +1 -1
- package/dist/plugin-circular-view.cjs.production.min.js.map +1 -1
- package/dist/plugin-circular-view.esm.js +23 -29
- package/dist/plugin-circular-view.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/CircularView/models/slices.ts +2 -8
|
@@ -31,14 +31,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
31
31
|
|
|
32
32
|
if (Object.getOwnPropertySymbols) {
|
|
33
33
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
keys.push.apply(keys, symbols);
|
|
34
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
+
})), keys.push.apply(keys, symbols);
|
|
42
37
|
}
|
|
43
38
|
|
|
44
39
|
return keys;
|
|
@@ -46,19 +41,12 @@ function ownKeys(object, enumerableOnly) {
|
|
|
46
41
|
|
|
47
42
|
function _objectSpread2(target) {
|
|
48
43
|
for (var i = 1; i < arguments.length; i++) {
|
|
49
|
-
var source = arguments[i]
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
56
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
57
|
-
} else {
|
|
58
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
59
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
60
|
-
});
|
|
61
|
-
}
|
|
44
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
45
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
46
|
+
_defineProperty(target, key, source[key]);
|
|
47
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
+
});
|
|
62
50
|
}
|
|
63
51
|
|
|
64
52
|
return target;
|
|
@@ -119,6 +107,9 @@ function _defineProperties(target, props) {
|
|
|
119
107
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
120
108
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
121
109
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
110
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
111
|
+
writable: false
|
|
112
|
+
});
|
|
122
113
|
return Constructor;
|
|
123
114
|
}
|
|
124
115
|
|
|
@@ -142,12 +133,15 @@ function _inherits(subClass, superClass) {
|
|
|
142
133
|
throw new TypeError("Super expression must either be null or a function");
|
|
143
134
|
}
|
|
144
135
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
136
|
+
Object.defineProperty(subClass, "prototype", {
|
|
137
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
138
|
+
constructor: {
|
|
139
|
+
value: subClass,
|
|
140
|
+
writable: true,
|
|
141
|
+
configurable: true
|
|
142
|
+
}
|
|
143
|
+
}),
|
|
144
|
+
writable: false
|
|
151
145
|
});
|
|
152
146
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
153
147
|
}
|
|
@@ -655,12 +649,12 @@ var Slice = /*#__PURE__*/function () {
|
|
|
655
649
|
function Slice(view, region, currentRadianOffset, radianWidth) {
|
|
656
650
|
_classCallCheck(this, Slice);
|
|
657
651
|
|
|
652
|
+
this.region = region;
|
|
653
|
+
this.radianWidth = radianWidth;
|
|
658
654
|
var bpPerRadian = view.bpPerRadian;
|
|
659
655
|
this.key = assembleLocString(region);
|
|
660
|
-
this.region = region;
|
|
661
656
|
this.offsetRadians = currentRadianOffset;
|
|
662
657
|
this.bpPerRadian = bpPerRadian;
|
|
663
|
-
this.radianWidth = radianWidth;
|
|
664
658
|
this.flipped = false;
|
|
665
659
|
this.startRadians = this.offsetRadians;
|
|
666
660
|
this.endRadians = region.widthBp / this.bpPerRadian + this.offsetRadians;
|