@jbrowse/plugin-alignments 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-alignments",
3
- "version": "1.5.2",
3
+ "version": "1.5.6",
4
4
  "description": "JBrowse 2 alignments adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "94fdfbc34787ab8f12a87e00038da74b247b42fa"
64
+ "gitHead": "f3d36cfd90f7c5bdf86869d6698d8cb68a8e122f"
65
65
  }
@@ -147,6 +147,7 @@ exports[`open up a widget 1`] = `
147
147
  >
148
148
  <div
149
149
  class="makeStyles-fieldName"
150
+ style="width: 96px;"
150
151
  >
151
152
  seq
152
153
  </div>
@@ -163,6 +164,7 @@ exports[`open up a widget 1`] = `
163
164
  >
164
165
  <div
165
166
  class="makeStyles-fieldName"
167
+ style="width: 96px;"
166
168
  >
167
169
  score
168
170
  </div>
@@ -179,6 +181,7 @@ exports[`open up a widget 1`] = `
179
181
  >
180
182
  <div
181
183
  class="makeStyles-fieldName"
184
+ style="width: 96px;"
182
185
  >
183
186
  qual
184
187
  </div>
@@ -205,6 +208,7 @@ exports[`open up a widget 1`] = `
205
208
  >
206
209
  <div
207
210
  class="makeStyles-fieldName"
211
+ style="width: 96px;"
208
212
  >
209
213
  MQ
210
214
  </div>
@@ -221,6 +225,7 @@ exports[`open up a widget 1`] = `
221
225
  >
222
226
  <div
223
227
  class="makeStyles-fieldName"
228
+ style="width: 96px;"
224
229
  >
225
230
  CIGAR
226
231
  </div>
@@ -237,6 +242,7 @@ exports[`open up a widget 1`] = `
237
242
  >
238
243
  <div
239
244
  class="makeStyles-fieldName"
245
+ style="width: 96px;"
240
246
  >
241
247
  length_on_ref
242
248
  </div>
@@ -253,6 +259,7 @@ exports[`open up a widget 1`] = `
253
259
  >
254
260
  <div
255
261
  class="makeStyles-fieldName"
262
+ style="width: 96px;"
256
263
  >
257
264
  template_length
258
265
  </div>
@@ -269,6 +276,7 @@ exports[`open up a widget 1`] = `
269
276
  >
270
277
  <div
271
278
  class="makeStyles-fieldName"
279
+ style="width: 96px;"
272
280
  >
273
281
  seq_length
274
282
  </div>
@@ -15,17 +15,11 @@ import {
15
15
  import BamAdapter from './BamAdapter'
16
16
 
17
17
  export default class BamSlightlyLazyFeature implements Feature {
18
- private record: BamRecord
19
-
20
- private adapter: BamAdapter
21
-
22
- private ref?: string
23
-
24
- constructor(record: BamRecord, adapter: BamAdapter, ref?: string) {
25
- this.record = record
26
- this.adapter = adapter
27
- this.ref = ref
28
- }
18
+ constructor(
19
+ private record: BamRecord,
20
+ private adapter: BamAdapter,
21
+ private ref?: string,
22
+ ) {}
29
23
 
30
24
  _get_name() {
31
25
  return this.record.get('name')
@@ -18,14 +18,10 @@ export interface Mismatch {
18
18
  }
19
19
 
20
20
  export default class CramSlightlyLazyFeature implements Feature {
21
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
- private record: any
23
-
24
21
  private _store: CramAdapter
25
22
 
26
23
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
- constructor(record: any, store: CramAdapter) {
28
- this.record = record
24
+ constructor(private record: any, store: CramAdapter) {
29
25
  this._store = store
30
26
  }
31
27
 
@@ -158,8 +158,10 @@ function PileupRendering(props: {
158
158
 
159
159
  function callMouseHandler(handlerName: string, event: MouseEvent) {
160
160
  // @ts-ignore
161
+ // eslint-disable-next-line react/destructuring-assignment
161
162
  const featureHandler = props[`onFeature${handlerName}`]
162
163
  // @ts-ignore
164
+ // eslint-disable-next-line react/destructuring-assignment
163
165
  const canvasHandler = props[`on${handlerName}`]
164
166
  if (featureHandler && featureIdUnderMouse) {
165
167
  featureHandler(event, featureIdUnderMouse)