@jbrowse/plugin-linear-genome-view 3.0.1 → 3.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.
|
@@ -7,7 +7,6 @@ function LaunchLinearGenomeViewF(pluginManager) {
|
|
|
7
7
|
pluginManager.addToExtensionPoint('LaunchView-LinearGenomeView', async ({ session, assembly, loc, tracks = [], tracklist, nav, highlight, }) => {
|
|
8
8
|
try {
|
|
9
9
|
const { assemblyManager } = session;
|
|
10
|
-
const { isValidRefName } = assemblyManager;
|
|
11
10
|
const view = session.addView('LinearGenomeView', {});
|
|
12
11
|
await (0, util_1.when)(() => !!view.volatileWidth);
|
|
13
12
|
if (!assembly) {
|
|
@@ -25,7 +24,7 @@ function LaunchLinearGenomeViewF(pluginManager) {
|
|
|
25
24
|
}
|
|
26
25
|
if (highlight !== undefined) {
|
|
27
26
|
highlight.forEach(async (h) => {
|
|
28
|
-
const p = (0, util_1.parseLocString)(h, refName => isValidRefName(refName, assembly));
|
|
27
|
+
const p = (0, util_1.parseLocString)(h, refName => assemblyManager.isValidRefName(refName, assembly));
|
|
29
28
|
const { start, end } = p;
|
|
30
29
|
if (start !== undefined && end !== undefined) {
|
|
31
30
|
view.addToHighlights({
|
|
@@ -4,7 +4,6 @@ export default function LaunchLinearGenomeViewF(pluginManager) {
|
|
|
4
4
|
pluginManager.addToExtensionPoint('LaunchView-LinearGenomeView', async ({ session, assembly, loc, tracks = [], tracklist, nav, highlight, }) => {
|
|
5
5
|
try {
|
|
6
6
|
const { assemblyManager } = session;
|
|
7
|
-
const { isValidRefName } = assemblyManager;
|
|
8
7
|
const view = session.addView('LinearGenomeView', {});
|
|
9
8
|
await when(() => !!view.volatileWidth);
|
|
10
9
|
if (!assembly) {
|
|
@@ -22,7 +21,7 @@ export default function LaunchLinearGenomeViewF(pluginManager) {
|
|
|
22
21
|
}
|
|
23
22
|
if (highlight !== undefined) {
|
|
24
23
|
highlight.forEach(async (h) => {
|
|
25
|
-
const p = parseLocString(h, refName => isValidRefName(refName, assembly));
|
|
24
|
+
const p = parseLocString(h, refName => assemblyManager.isValidRefName(refName, assembly));
|
|
26
25
|
const { start, end } = p;
|
|
27
26
|
if (start !== undefined && end !== undefined) {
|
|
28
27
|
view.addToHighlights({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-linear-genome-view",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "JBrowse 2 linear genome view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"useSrc": "node ../../scripts/useSrc.js"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@jbrowse/core": "^3.0.
|
|
41
|
+
"@jbrowse/core": "^3.0.3",
|
|
42
42
|
"@mui/icons-material": "^6.0.0",
|
|
43
43
|
"@mui/material": "^6.0.0",
|
|
44
44
|
"@types/file-saver": "^2.0.1",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"module": "esm/index.js",
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "f516540428282351d26e46743e69a724651bfb2c"
|
|
62
62
|
}
|