react-msaview 9.1.1 → 9.2.0
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/bundle/index.js +49 -49
- package/bundle/index.js.map +4 -4
- package/dist/components/MSAViewer.d.ts +2 -0
- package/dist/components/settings/TrackList.js +8 -5
- package/dist/components/settings/TrackList.js.map +1 -1
- package/dist/components/tracks/TrackTooltipContent.js +2 -1
- package/dist/components/tracks/TrackTooltipContent.js.map +1 -1
- package/dist/components/tracks/drawTracks.js +13 -6
- package/dist/components/tracks/drawTracks.js.map +1 -1
- package/dist/model.d.ts +6 -0
- package/dist/model.js +23 -0
- package/dist/model.js.map +1 -1
- package/dist/svgTestUtil.d.ts +2 -0
- package/dist/types.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/src/components/settings/TrackList.tsx +9 -4
- package/src/components/tracks/TrackTooltipContent.tsx +2 -1
- package/src/components/tracks/drawTracks.ts +15 -7
- package/src/model.ts +25 -0
- package/src/types.ts +1 -1
- package/src/version.ts +1 -1
package/src/model.ts
CHANGED
|
@@ -2498,6 +2498,30 @@ function stateModelFactory({
|
|
|
2498
2498
|
}))
|
|
2499
2499
|
},
|
|
2500
2500
|
|
|
2501
|
+
/**
|
|
2502
|
+
* #getter
|
|
2503
|
+
* the reference row (`relativeTo`) repeated above the alignment, so it
|
|
2504
|
+
* stays in view while the rows compared against it scroll
|
|
2505
|
+
*/
|
|
2506
|
+
get referenceTrackModels(): BasicTrack[] {
|
|
2507
|
+
const { relativeTo } = self
|
|
2508
|
+
const data =
|
|
2509
|
+
relativeTo === undefined ? undefined : self.columns.get(relativeTo)
|
|
2510
|
+
return relativeTo === undefined || data === undefined
|
|
2511
|
+
? []
|
|
2512
|
+
: [
|
|
2513
|
+
{
|
|
2514
|
+
model: {
|
|
2515
|
+
id: 'reference-row',
|
|
2516
|
+
name: relativeTo,
|
|
2517
|
+
kind: 'reference' as const,
|
|
2518
|
+
data,
|
|
2519
|
+
height: self.rowHeight,
|
|
2520
|
+
},
|
|
2521
|
+
},
|
|
2522
|
+
]
|
|
2523
|
+
},
|
|
2524
|
+
|
|
2501
2525
|
get tracks(): BasicTrack[] {
|
|
2502
2526
|
return [
|
|
2503
2527
|
...this.adapterTrackModels,
|
|
@@ -2506,6 +2530,7 @@ function stateModelFactory({
|
|
|
2506
2530
|
// every computed track reads the alignment's columns, and a tree, a
|
|
2507
2531
|
// GFF and a features panel draw a figure with none
|
|
2508
2532
|
...(self.numColumns > 0 ? this.computedTrackModels : []),
|
|
2533
|
+
...this.referenceTrackModels,
|
|
2509
2534
|
]
|
|
2510
2535
|
},
|
|
2511
2536
|
|
package/src/types.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface Accession {
|
|
|
8
8
|
}
|
|
9
9
|
// every kind draws into the same per-column space; drawTracks.ts dispatches on
|
|
10
10
|
// it to pick the draw function
|
|
11
|
-
export type TrackKind = 'text' | 'bar' | 'logo' | 'arc' | 'ruler'
|
|
11
|
+
export type TrackKind = 'text' | 'bar' | 'logo' | 'arc' | 'ruler' | 'reference'
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Which channel the color scheme paints. `fill` colors the cell a residue sits
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '9.
|
|
1
|
+
export const version = '9.2.0'
|