@jbrowse/plugin-alignments 1.5.3 → 1.5.7
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/BamAdapter/BamSlightlyLazyFeature.d.ts +1 -1
- package/dist/plugin-alignments.cjs.development.js +26 -30
- package/dist/plugin-alignments.cjs.development.js.map +1 -1
- package/dist/plugin-alignments.cjs.production.min.js +1 -1
- package/dist/plugin-alignments.cjs.production.min.js.map +1 -1
- package/dist/plugin-alignments.esm.js +26 -30
- package/dist/plugin-alignments.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/AlignmentsFeatureDetail/__snapshots__/index.test.js.snap +8 -0
- package/src/BamAdapter/BamSlightlyLazyFeature.ts +5 -11
- package/src/CramAdapter/CramSlightlyLazyFeature.ts +1 -5
- package/src/PileupRenderer/components/PileupRendering.tsx +2 -0
|
@@ -7,7 +7,7 @@ export default class BamSlightlyLazyFeature implements Feature {
|
|
|
7
7
|
private record;
|
|
8
8
|
private adapter;
|
|
9
9
|
private ref?;
|
|
10
|
-
constructor(record: BamRecord, adapter: BamAdapter, ref?: string);
|
|
10
|
+
constructor(record: BamRecord, adapter: BamAdapter, ref?: string | undefined);
|
|
11
11
|
_get_name(): any;
|
|
12
12
|
_get_type(): string;
|
|
13
13
|
_get_score(): number;
|
|
@@ -55,14 +55,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
55
55
|
|
|
56
56
|
if (Object.getOwnPropertySymbols) {
|
|
57
57
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
keys.push.apply(keys, symbols);
|
|
58
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
59
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
60
|
+
})), keys.push.apply(keys, symbols);
|
|
66
61
|
}
|
|
67
62
|
|
|
68
63
|
return keys;
|
|
@@ -70,19 +65,12 @@ function ownKeys(object, enumerableOnly) {
|
|
|
70
65
|
|
|
71
66
|
function _objectSpread2(target) {
|
|
72
67
|
for (var i = 1; i < arguments.length; i++) {
|
|
73
|
-
var source = arguments[i]
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
80
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
81
|
-
} else {
|
|
82
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
83
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
84
|
-
});
|
|
85
|
-
}
|
|
68
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
69
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
70
|
+
_defineProperty(target, key, source[key]);
|
|
71
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
72
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
73
|
+
});
|
|
86
74
|
}
|
|
87
75
|
|
|
88
76
|
return target;
|
|
@@ -143,6 +131,9 @@ function _defineProperties(target, props) {
|
|
|
143
131
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
144
132
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
145
133
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
134
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
135
|
+
writable: false
|
|
136
|
+
});
|
|
146
137
|
return Constructor;
|
|
147
138
|
}
|
|
148
139
|
|
|
@@ -166,12 +157,15 @@ function _inherits(subClass, superClass) {
|
|
|
166
157
|
throw new TypeError("Super expression must either be null or a function");
|
|
167
158
|
}
|
|
168
159
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
160
|
+
Object.defineProperty(subClass, "prototype", {
|
|
161
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
162
|
+
constructor: {
|
|
163
|
+
value: subClass,
|
|
164
|
+
writable: true,
|
|
165
|
+
configurable: true
|
|
166
|
+
}
|
|
167
|
+
}),
|
|
168
|
+
writable: false
|
|
175
169
|
});
|
|
176
170
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
177
171
|
}
|
|
@@ -287,7 +281,7 @@ function _superPropBase(object, property) {
|
|
|
287
281
|
return object;
|
|
288
282
|
}
|
|
289
283
|
|
|
290
|
-
function _get(
|
|
284
|
+
function _get() {
|
|
291
285
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
292
286
|
_get = Reflect.get;
|
|
293
287
|
} else {
|
|
@@ -298,14 +292,14 @@ function _get(target, property, receiver) {
|
|
|
298
292
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
299
293
|
|
|
300
294
|
if (desc.get) {
|
|
301
|
-
return desc.get.call(receiver);
|
|
295
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
302
296
|
}
|
|
303
297
|
|
|
304
298
|
return desc.value;
|
|
305
299
|
};
|
|
306
300
|
}
|
|
307
301
|
|
|
308
|
-
return _get(
|
|
302
|
+
return _get.apply(this, arguments);
|
|
309
303
|
}
|
|
310
304
|
|
|
311
305
|
function _slicedToArray(arr, i) {
|
|
@@ -3934,7 +3928,9 @@ function PileupRendering(props) {
|
|
|
3934
3928
|
|
|
3935
3929
|
function callMouseHandler(handlerName, event) {
|
|
3936
3930
|
// @ts-ignore
|
|
3931
|
+
// eslint-disable-next-line react/destructuring-assignment
|
|
3937
3932
|
var featureHandler = props["onFeature".concat(handlerName)]; // @ts-ignore
|
|
3933
|
+
// eslint-disable-next-line react/destructuring-assignment
|
|
3938
3934
|
|
|
3939
3935
|
var canvasHandler = props["on".concat(handlerName)];
|
|
3940
3936
|
|