@jbrowse/product-core 4.0.2 → 4.0.3
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.
|
@@ -1699,7 +1699,7 @@ export declare function SessionTracksManagerSessionMixin(pluginManager: PluginMa
|
|
|
1699
1699
|
trackId: string;
|
|
1700
1700
|
};
|
|
1701
1701
|
}[];
|
|
1702
|
-
|
|
1702
|
+
getTracksById(): Record<string, AnyConfigurationModel>;
|
|
1703
1703
|
} & {
|
|
1704
1704
|
addTrackConf(trackConf: AnyConfiguration): any;
|
|
1705
1705
|
deleteTrackConf(trackConf: AnyConfigurationModel): any;
|
package/esm/Session/Tracks.d.ts
CHANGED
|
@@ -1697,7 +1697,7 @@ export declare function TracksManagerSessionMixin(pluginManager: PluginManager):
|
|
|
1697
1697
|
trackId: string;
|
|
1698
1698
|
};
|
|
1699
1699
|
}[];
|
|
1700
|
-
|
|
1700
|
+
getTracksById(): Record<string, AnyConfigurationModel>;
|
|
1701
1701
|
} & {
|
|
1702
1702
|
addTrackConf(trackConf: AnyConfiguration): any;
|
|
1703
1703
|
deleteTrackConf(trackConf: AnyConfigurationModel): any;
|
package/esm/Session/Tracks.js
CHANGED
|
@@ -11,14 +11,18 @@ export function TracksManagerSessionMixin(pluginManager) {
|
|
|
11
11
|
get assemblies() {
|
|
12
12
|
return self.jbrowse.assemblies;
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
getTracksById() {
|
|
15
15
|
const temporaryAssemblies = 'temporaryAssemblies' in self
|
|
16
16
|
? self.temporaryAssemblies
|
|
17
17
|
: [];
|
|
18
|
+
const connectionInstances = 'connectionInstances' in self
|
|
19
|
+
? self.connectionInstances
|
|
20
|
+
: [];
|
|
18
21
|
return Object.fromEntries([
|
|
19
22
|
...this.tracks.map(t => [t.trackId, t]),
|
|
20
23
|
...this.assemblies.map(a => [a.sequence.trackId, a.sequence]),
|
|
21
24
|
...temporaryAssemblies.map(a => [a.sequence.trackId, a.sequence]),
|
|
25
|
+
...connectionInstances.flatMap(c => c.tracks.map(t => [t.trackId, t])),
|
|
22
26
|
]);
|
|
23
27
|
},
|
|
24
28
|
}))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/product-core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "JBrowse 2 code shared between products but not used by plugins",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"librpc-web-mod": "^2.1.1",
|
|
31
31
|
"mobx": "^6.15.0",
|
|
32
32
|
"mobx-react": "^9.2.1",
|
|
33
|
-
"@jbrowse/core": "^4.0.
|
|
33
|
+
"@jbrowse/core": "^4.0.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": ">=18.0.0",
|