@jbrowse/plugin-alignments 2.11.2 → 2.12.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/dist/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.js +1 -8
- package/dist/AlignmentsFeatureDetail/SuppAlignmentsLocStrings.js +1 -1
- package/dist/AlignmentsFeatureDetail/stateModelFactory.d.ts +26 -0
- package/esm/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.js +1 -8
- package/esm/AlignmentsFeatureDetail/SuppAlignmentsLocStrings.js +1 -1
- package/esm/AlignmentsFeatureDetail/stateModelFactory.d.ts +26 -0
- package/package.json +2 -2
|
@@ -26,18 +26,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
const react_1 = __importStar(require("react"));
|
|
27
27
|
const material_1 = require("@mui/material");
|
|
28
28
|
const util_1 = require("@jbrowse/core/util");
|
|
29
|
-
const mui_1 = require("tss-react/mui");
|
|
30
29
|
const ui_1 = require("@jbrowse/core/ui");
|
|
31
30
|
const getSAFeatures_1 = require("./getSAFeatures");
|
|
32
31
|
// lazies
|
|
33
32
|
const BreakendOptionDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./BreakendOptionDialog'))));
|
|
34
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
35
|
-
cursor: {
|
|
36
|
-
cursor: 'pointer',
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
33
|
function LaunchBreakpointSplitViewPanel({ model, feature, viewType, }) {
|
|
40
|
-
const { classes } = useStyles();
|
|
41
34
|
const session = (0, util_1.getSession)(model);
|
|
42
35
|
const { view } = model;
|
|
43
36
|
const [res, setRes] = (0, react_1.useState)();
|
|
@@ -72,7 +65,7 @@ function LaunchBreakpointSplitViewPanel({ model, feature, viewType, }) {
|
|
|
72
65
|
const [f1, f2] = arg;
|
|
73
66
|
return (react_1.default.createElement("li", { key: `${JSON.stringify(arg)}-${index}` },
|
|
74
67
|
react_1.default.createElement(material_1.Tooltip, { title: "Top panel->Bottom panel" },
|
|
75
|
-
react_1.default.createElement(material_1.Link, { href: "#",
|
|
68
|
+
react_1.default.createElement(material_1.Link, { href: "#", onClick: event => {
|
|
76
69
|
event.preventDefault();
|
|
77
70
|
session.queueDialog(handleClose => [
|
|
78
71
|
BreakendOptionDialog,
|
|
@@ -27,7 +27,7 @@ function SuppAlignmentsLocStrings({ tag, model, }) {
|
|
|
27
27
|
const displayEnd = end.toLocaleString('en-US');
|
|
28
28
|
const displayString = `${saRef}:${displayStart}-${displayEnd} (${saStrand}) [${saLength}bp]`;
|
|
29
29
|
return (react_1.default.createElement("li", { key: `${locString}-${index}` },
|
|
30
|
-
react_1.default.createElement(material_1.Link, { onClick: async (event) => {
|
|
30
|
+
react_1.default.createElement(material_1.Link, { href: "#", onClick: async (event) => {
|
|
31
31
|
event.preventDefault();
|
|
32
32
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
33
33
|
(0, util_1.navToLoc)(locString, model);
|
|
@@ -12,13 +12,26 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
12
12
|
trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
13
13
|
maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
14
14
|
sequenceFeatureDetails: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{}, {
|
|
15
|
+
showCoordinatesSetting: string;
|
|
15
16
|
intronBp: number;
|
|
16
17
|
upDownBp: number;
|
|
17
18
|
upperCaseCDS: boolean;
|
|
19
|
+
charactersPerRow: number;
|
|
20
|
+
feature: import("@jbrowse/core/util").SimpleFeatureSerialized | undefined;
|
|
21
|
+
mode: string;
|
|
18
22
|
} & {
|
|
23
|
+
setFeature(f: import("@jbrowse/core/util").SimpleFeatureSerialized): void;
|
|
19
24
|
setUpDownBp(f: number): void;
|
|
20
25
|
setIntronBp(f: number): void;
|
|
21
26
|
setUpperCaseCDS(f: boolean): void;
|
|
27
|
+
setShowCoordinates(f: "none" | "relative" | "genomic"): void;
|
|
28
|
+
setMode(mode: string): void;
|
|
29
|
+
} & {
|
|
30
|
+
readonly showCoordinates: boolean;
|
|
31
|
+
readonly showGenomicCoordsOption: boolean;
|
|
32
|
+
readonly hasCDS: boolean | undefined;
|
|
33
|
+
readonly hasExon: boolean | undefined;
|
|
34
|
+
readonly hasExonOrCDS: boolean | undefined;
|
|
22
35
|
} & {
|
|
23
36
|
afterAttach(): void;
|
|
24
37
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
@@ -48,13 +61,26 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
48
61
|
trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
49
62
|
maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
50
63
|
sequenceFeatureDetails: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{}, {
|
|
64
|
+
showCoordinatesSetting: string;
|
|
51
65
|
intronBp: number;
|
|
52
66
|
upDownBp: number;
|
|
53
67
|
upperCaseCDS: boolean;
|
|
68
|
+
charactersPerRow: number;
|
|
69
|
+
feature: import("@jbrowse/core/util").SimpleFeatureSerialized | undefined;
|
|
70
|
+
mode: string;
|
|
54
71
|
} & {
|
|
72
|
+
setFeature(f: import("@jbrowse/core/util").SimpleFeatureSerialized): void;
|
|
55
73
|
setUpDownBp(f: number): void;
|
|
56
74
|
setIntronBp(f: number): void;
|
|
57
75
|
setUpperCaseCDS(f: boolean): void;
|
|
76
|
+
setShowCoordinates(f: "none" | "relative" | "genomic"): void;
|
|
77
|
+
setMode(mode: string): void;
|
|
78
|
+
} & {
|
|
79
|
+
readonly showCoordinates: boolean;
|
|
80
|
+
readonly showGenomicCoordsOption: boolean;
|
|
81
|
+
readonly hasCDS: boolean | undefined;
|
|
82
|
+
readonly hasExon: boolean | undefined;
|
|
83
|
+
readonly hasExonOrCDS: boolean | undefined;
|
|
58
84
|
} & {
|
|
59
85
|
afterAttach(): void;
|
|
60
86
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import React, { lazy, useEffect, useState } from 'react';
|
|
2
2
|
import { Typography, Link, Tooltip } from '@mui/material';
|
|
3
3
|
import { SimpleFeature, getSession, toLocale, } from '@jbrowse/core/util';
|
|
4
|
-
import { makeStyles } from 'tss-react/mui';
|
|
5
4
|
import { ErrorMessage } from '@jbrowse/core/ui';
|
|
6
5
|
import { getSAFeatures } from './getSAFeatures';
|
|
7
6
|
// lazies
|
|
8
7
|
const BreakendOptionDialog = lazy(() => import('./BreakendOptionDialog'));
|
|
9
|
-
const useStyles = makeStyles()({
|
|
10
|
-
cursor: {
|
|
11
|
-
cursor: 'pointer',
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
8
|
export default function LaunchBreakpointSplitViewPanel({ model, feature, viewType, }) {
|
|
15
|
-
const { classes } = useStyles();
|
|
16
9
|
const session = getSession(model);
|
|
17
10
|
const { view } = model;
|
|
18
11
|
const [res, setRes] = useState();
|
|
@@ -47,7 +40,7 @@ export default function LaunchBreakpointSplitViewPanel({ model, feature, viewTyp
|
|
|
47
40
|
const [f1, f2] = arg;
|
|
48
41
|
return (React.createElement("li", { key: `${JSON.stringify(arg)}-${index}` },
|
|
49
42
|
React.createElement(Tooltip, { title: "Top panel->Bottom panel" },
|
|
50
|
-
React.createElement(Link, { href: "#",
|
|
43
|
+
React.createElement(Link, { href: "#", onClick: event => {
|
|
51
44
|
event.preventDefault();
|
|
52
45
|
session.queueDialog(handleClose => [
|
|
53
46
|
BreakendOptionDialog,
|
|
@@ -22,7 +22,7 @@ export default function SuppAlignmentsLocStrings({ tag, model, }) {
|
|
|
22
22
|
const displayEnd = end.toLocaleString('en-US');
|
|
23
23
|
const displayString = `${saRef}:${displayStart}-${displayEnd} (${saStrand}) [${saLength}bp]`;
|
|
24
24
|
return (React.createElement("li", { key: `${locString}-${index}` },
|
|
25
|
-
React.createElement(Link, { onClick: async (event) => {
|
|
25
|
+
React.createElement(Link, { href: "#", onClick: async (event) => {
|
|
26
26
|
event.preventDefault();
|
|
27
27
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
28
28
|
navToLoc(locString, model);
|
|
@@ -12,13 +12,26 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
12
12
|
trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
13
13
|
maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
14
14
|
sequenceFeatureDetails: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{}, {
|
|
15
|
+
showCoordinatesSetting: string;
|
|
15
16
|
intronBp: number;
|
|
16
17
|
upDownBp: number;
|
|
17
18
|
upperCaseCDS: boolean;
|
|
19
|
+
charactersPerRow: number;
|
|
20
|
+
feature: import("@jbrowse/core/util").SimpleFeatureSerialized | undefined;
|
|
21
|
+
mode: string;
|
|
18
22
|
} & {
|
|
23
|
+
setFeature(f: import("@jbrowse/core/util").SimpleFeatureSerialized): void;
|
|
19
24
|
setUpDownBp(f: number): void;
|
|
20
25
|
setIntronBp(f: number): void;
|
|
21
26
|
setUpperCaseCDS(f: boolean): void;
|
|
27
|
+
setShowCoordinates(f: "none" | "relative" | "genomic"): void;
|
|
28
|
+
setMode(mode: string): void;
|
|
29
|
+
} & {
|
|
30
|
+
readonly showCoordinates: boolean;
|
|
31
|
+
readonly showGenomicCoordsOption: boolean;
|
|
32
|
+
readonly hasCDS: boolean | undefined;
|
|
33
|
+
readonly hasExon: boolean | undefined;
|
|
34
|
+
readonly hasExonOrCDS: boolean | undefined;
|
|
22
35
|
} & {
|
|
23
36
|
afterAttach(): void;
|
|
24
37
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
@@ -48,13 +61,26 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
48
61
|
trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
49
62
|
maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
50
63
|
sequenceFeatureDetails: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{}, {
|
|
64
|
+
showCoordinatesSetting: string;
|
|
51
65
|
intronBp: number;
|
|
52
66
|
upDownBp: number;
|
|
53
67
|
upperCaseCDS: boolean;
|
|
68
|
+
charactersPerRow: number;
|
|
69
|
+
feature: import("@jbrowse/core/util").SimpleFeatureSerialized | undefined;
|
|
70
|
+
mode: string;
|
|
54
71
|
} & {
|
|
72
|
+
setFeature(f: import("@jbrowse/core/util").SimpleFeatureSerialized): void;
|
|
55
73
|
setUpDownBp(f: number): void;
|
|
56
74
|
setIntronBp(f: number): void;
|
|
57
75
|
setUpperCaseCDS(f: boolean): void;
|
|
76
|
+
setShowCoordinates(f: "none" | "relative" | "genomic"): void;
|
|
77
|
+
setMode(mode: string): void;
|
|
78
|
+
} & {
|
|
79
|
+
readonly showCoordinates: boolean;
|
|
80
|
+
readonly showGenomicCoordsOption: boolean;
|
|
81
|
+
readonly hasCDS: boolean | undefined;
|
|
82
|
+
readonly hasExon: boolean | undefined;
|
|
83
|
+
readonly hasExonOrCDS: boolean | undefined;
|
|
58
84
|
} & {
|
|
59
85
|
afterAttach(): void;
|
|
60
86
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-alignments",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "JBrowse 2 alignments adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"distModule": "esm/index.js",
|
|
64
64
|
"srcModule": "src/index.ts",
|
|
65
65
|
"module": "esm/index.js",
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "935f2602d29abc737bb1f493a922b6218d023ae2"
|
|
67
67
|
}
|