@jbrowse/plugin-variants 4.1.3 → 4.1.4
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/esm/ChordVariantDisplay/models/configSchema.d.ts +2 -2
- package/esm/LDDisplay/SharedLDConfigSchema.d.ts +3 -3
- package/esm/LDDisplay/components/LDDisplayComponent.js +3 -1
- package/esm/LDDisplay/components/LinesConnectingMatrixToGenomicPosition.d.ts +0 -9
- package/esm/LDDisplay/components/LinesConnectingMatrixToGenomicPosition.js +3 -29
- package/esm/LDDisplay/components/VariantLabels.d.ts +5 -0
- package/esm/LDDisplay/components/VariantLabels.js +27 -0
- package/esm/LDDisplay/components/Wrapper.d.ts +8 -0
- package/esm/LDDisplay/components/Wrapper.js +16 -0
- package/esm/LDDisplay/configSchema1.d.ts +6 -6
- package/esm/LDDisplay/configSchema2.d.ts +6 -6
- package/esm/LDDisplay/renderSvg.js +3 -1
- package/esm/LDRenderer/configSchema.d.ts +2 -2
- package/esm/LDTrack/configSchema.d.ts +8 -8
- package/esm/LinearVariantDisplay/configSchema.d.ts +3 -3
- package/esm/LinearVariantDisplay/model.d.ts +18 -8
- package/esm/MultiLinearVariantDisplay/configSchema.d.ts +6 -6
- package/esm/MultiLinearVariantDisplay/model.d.ts +72 -18
- package/esm/MultiLinearVariantMatrixDisplay/configSchema.d.ts +5 -5
- package/esm/MultiLinearVariantMatrixDisplay/model.d.ts +76 -20
- package/esm/MultiLinearVariantMatrixRenderer/configSchema.d.ts +1 -1
- package/esm/MultiLinearVariantRenderer/configSchema.d.ts +1 -1
- package/esm/PlinkLDAdapter/configSchema.d.ts +2 -2
- package/esm/PlinkLDAdapter/configSchemaTabix.d.ts +4 -4
- package/esm/SplitVcfTabixAdapter/configSchema.d.ts +2 -2
- package/esm/StructuralVariantChordRenderer/configSchema.d.ts +2 -2
- package/esm/VariantFeatureWidget/configSchema.d.ts +1 -1
- package/esm/VariantFeatureWidget/stateModelFactory.d.ts +2 -2
- package/esm/VariantTrack/configSchema.d.ts +8 -8
- package/esm/VcfAdapter/configSchema.d.ts +2 -2
- package/esm/VcfTabixAdapter/configSchema.d.ts +4 -4
- package/esm/shared/MultiVariantBaseModel.d.ts +76 -20
- package/esm/shared/MultiVariantBaseModel.js +53 -3
- package/esm/shared/SharedVariantConfigSchema.d.ts +3 -3
- package/esm/shared/components/RectBg.js +3 -1
- package/esm/shared/components/TreeSidebar.js +38 -5
- package/esm/shared/components/types.d.ts +2 -0
- package/esm/shared/constants.d.ts +1 -0
- package/esm/shared/constants.js +1 -0
- package/esm/shared/makeSidebarSvg.js +3 -2
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare function configSchemaF(pluginManager: PluginManager): import("
|
|
2
|
+
declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
onChordClick: {
|
|
4
4
|
type: string;
|
|
5
5
|
description: string;
|
|
@@ -7,5 +7,5 @@ declare function configSchemaF(pluginManager: PluginManager): import("node_modul
|
|
|
7
7
|
contextVariable: string[];
|
|
8
8
|
};
|
|
9
9
|
renderer: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IAnyModelType, [undefined]>;
|
|
10
|
-
}, import("
|
|
10
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
11
11
|
export default configSchemaF;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function sharedLDConfigFactory(): import("
|
|
1
|
+
export default function sharedLDConfigFactory(): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
2
|
minorAlleleFrequencyFilter: {
|
|
3
3
|
type: string;
|
|
4
4
|
defaultValue: number;
|
|
@@ -72,7 +72,7 @@ export default function sharedLDConfigFactory(): import("node_modules/@jbrowse/c
|
|
|
72
72
|
type: string;
|
|
73
73
|
defaultValue: never[];
|
|
74
74
|
};
|
|
75
|
-
}, import("
|
|
75
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
76
76
|
maxFeatureScreenDensity: {
|
|
77
77
|
type: string;
|
|
78
78
|
description: string;
|
|
@@ -99,4 +99,4 @@ export default function sharedLDConfigFactory(): import("node_modules/@jbrowse/c
|
|
|
99
99
|
description: string;
|
|
100
100
|
defaultValue: never[];
|
|
101
101
|
};
|
|
102
|
-
}, import("
|
|
102
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
@@ -6,7 +6,9 @@ import Flatbush from '@jbrowse/core/util/flatbush';
|
|
|
6
6
|
import { observer } from 'mobx-react';
|
|
7
7
|
import BaseDisplayComponent from "./BaseDisplayComponent.js";
|
|
8
8
|
import LDColorLegend from "./LDColorLegend.js";
|
|
9
|
-
import LinesConnectingMatrixToGenomicPosition
|
|
9
|
+
import LinesConnectingMatrixToGenomicPosition from "./LinesConnectingMatrixToGenomicPosition.js";
|
|
10
|
+
import VariantLabels from "./VariantLabels.js";
|
|
11
|
+
import Wrapper from "./Wrapper.js";
|
|
10
12
|
import RecombinationTrack from "../../shared/components/RecombinationTrack.js";
|
|
11
13
|
import RecombinationYScaleBar from "../../shared/components/RecombinationYScaleBar.js";
|
|
12
14
|
const SQRT2 = Math.sqrt(2);
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import type { SharedLDModel } from '../shared.ts';
|
|
2
|
-
export declare const Wrapper: ({ children, model, exportSVG, yOffset, }: {
|
|
3
|
-
model: SharedLDModel;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
exportSVG?: boolean;
|
|
6
|
-
yOffset?: number;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare const VariantLabels: ({ model, }: {
|
|
9
|
-
model: SharedLDModel;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
2
|
declare const LinesConnectingMatrixToGenomicPosition: ({ model, exportSVG, yOffset, }: {
|
|
12
3
|
model: SharedLDModel;
|
|
13
4
|
exportSVG?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, isValidElement, useState } from 'react';
|
|
3
3
|
import { ResizeHandle, SanitizedHTML } from '@jbrowse/core/ui';
|
|
4
4
|
import BaseTooltip from '@jbrowse/core/ui/BaseTooltip';
|
|
@@ -6,6 +6,8 @@ import { getContainingView, getSession, getStrokeProps, } from '@jbrowse/core/ut
|
|
|
6
6
|
import { makeStyles } from '@jbrowse/core/util/tss-react';
|
|
7
7
|
import { alpha, useTheme } from '@mui/material';
|
|
8
8
|
import { observer } from 'mobx-react';
|
|
9
|
+
import VariantLabels from "./VariantLabels.js";
|
|
10
|
+
import Wrapper from "./Wrapper.js";
|
|
9
11
|
const useStyles = makeStyles()(theme => ({
|
|
10
12
|
resizeHandle: {
|
|
11
13
|
height: 5,
|
|
@@ -16,18 +18,6 @@ const useStyles = makeStyles()(theme => ({
|
|
|
16
18
|
},
|
|
17
19
|
},
|
|
18
20
|
}));
|
|
19
|
-
export const Wrapper = observer(function Wrapper({ children, model, exportSVG, yOffset = 0, }) {
|
|
20
|
-
const { height } = model;
|
|
21
|
-
const { width, offsetPx } = getContainingView(model);
|
|
22
|
-
const left = Math.max(0, -offsetPx);
|
|
23
|
-
return exportSVG ? (_jsx("g", { transform: `translate(${left} ${yOffset})`, children: children })) : (_jsx("svg", { style: {
|
|
24
|
-
position: 'absolute',
|
|
25
|
-
top: 0,
|
|
26
|
-
left,
|
|
27
|
-
height,
|
|
28
|
-
width,
|
|
29
|
-
}, children: children }));
|
|
30
|
-
});
|
|
31
21
|
function getGenomicX(view, assembly, snp, offsetAdjustment) {
|
|
32
22
|
return ((view.bpToPx({
|
|
33
23
|
refName: assembly.getCanonicalRefName2(snp.refName),
|
|
@@ -40,22 +30,6 @@ const TooltipContents = forwardRef(function TooltipContents2({ message }, ref) {
|
|
|
40
30
|
const LineTooltip = observer(function LineTooltip({ contents, }) {
|
|
41
31
|
return contents ? (_jsx(BaseTooltip, { children: _jsx(TooltipContents, { message: contents }) })) : null;
|
|
42
32
|
});
|
|
43
|
-
export const VariantLabels = observer(function VariantLabels({ model, }) {
|
|
44
|
-
const theme = useTheme();
|
|
45
|
-
const { assemblyManager } = getSession(model);
|
|
46
|
-
const view = getContainingView(model);
|
|
47
|
-
const { snps, showLabels } = model;
|
|
48
|
-
const { offsetPx, assemblyNames } = view;
|
|
49
|
-
const assembly = assemblyManager.get(assemblyNames[0]);
|
|
50
|
-
const offsetAdj = Math.max(offsetPx, 0);
|
|
51
|
-
if (!assembly || snps.length === 0 || !showLabels) {
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
return (_jsx(_Fragment, { children: snps.map((snp, i) => {
|
|
55
|
-
const genomicX = getGenomicX(view, assembly, snp, offsetAdj);
|
|
56
|
-
return (_jsx("text", { x: genomicX, y: 0, transform: `rotate(-90, ${genomicX}, 0)`, fontSize: 10, textAnchor: "end", dominantBaseline: "middle", fill: theme.palette.text.primary, style: { pointerEvents: 'none' }, children: snp.id || 'NOLABEL' }, `${snp.id}-${i}`));
|
|
57
|
-
}) }));
|
|
58
|
-
});
|
|
59
33
|
const AllLines = observer(function AllLines({ model, setMouseOverLine, }) {
|
|
60
34
|
const theme = useTheme();
|
|
61
35
|
const { assemblyManager } = getSession(model);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { getContainingView, getSession } from '@jbrowse/core/util';
|
|
3
|
+
import { useTheme } from '@mui/material';
|
|
4
|
+
import { observer } from 'mobx-react';
|
|
5
|
+
function getGenomicX(view, assembly, snp, offsetAdjustment) {
|
|
6
|
+
return ((view.bpToPx({
|
|
7
|
+
refName: assembly.getCanonicalRefName2(snp.refName),
|
|
8
|
+
coord: snp.start,
|
|
9
|
+
})?.offsetPx || 0) - offsetAdjustment);
|
|
10
|
+
}
|
|
11
|
+
const VariantLabels = observer(function VariantLabels({ model, }) {
|
|
12
|
+
const theme = useTheme();
|
|
13
|
+
const { assemblyManager } = getSession(model);
|
|
14
|
+
const view = getContainingView(model);
|
|
15
|
+
const { snps, showLabels } = model;
|
|
16
|
+
const { offsetPx, assemblyNames } = view;
|
|
17
|
+
const assembly = assemblyManager.get(assemblyNames[0]);
|
|
18
|
+
const offsetAdj = Math.max(offsetPx, 0);
|
|
19
|
+
if (!assembly || snps.length === 0 || !showLabels) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return (_jsx(_Fragment, { children: snps.map((snp, i) => {
|
|
23
|
+
const genomicX = getGenomicX(view, assembly, snp, offsetAdj);
|
|
24
|
+
return (_jsx("text", { x: genomicX, y: 0, transform: `rotate(-90, ${genomicX}, 0)`, fontSize: 10, textAnchor: "end", dominantBaseline: "middle", fill: theme.palette.text.primary, style: { pointerEvents: 'none' }, children: snp.id || 'NOLABEL' }, `${snp.id}-${i}`));
|
|
25
|
+
}) }));
|
|
26
|
+
});
|
|
27
|
+
export default VariantLabels;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SharedLDModel } from '../shared.ts';
|
|
2
|
+
declare const Wrapper: ({ children, model, exportSVG, yOffset, }: {
|
|
3
|
+
model: SharedLDModel;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
exportSVG?: boolean;
|
|
6
|
+
yOffset?: number;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Wrapper;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getContainingView } from '@jbrowse/core/util';
|
|
3
|
+
import { observer } from 'mobx-react';
|
|
4
|
+
const Wrapper = observer(function Wrapper({ children, model, exportSVG, yOffset = 0, }) {
|
|
5
|
+
const { height } = model;
|
|
6
|
+
const { width, offsetPx } = getContainingView(model);
|
|
7
|
+
const left = Math.max(0, -offsetPx);
|
|
8
|
+
return exportSVG ? (_jsx("g", { transform: `translate(${left} ${yOffset})`, children: children })) : (_jsx("svg", { style: {
|
|
9
|
+
position: 'absolute',
|
|
10
|
+
top: 0,
|
|
11
|
+
left,
|
|
12
|
+
height,
|
|
13
|
+
width,
|
|
14
|
+
}, children: children }));
|
|
15
|
+
});
|
|
16
|
+
export default Wrapper;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function configSchemaF(_pluginManager: PluginManager): import("
|
|
3
|
-
renderer: import("
|
|
2
|
+
export default function configSchemaF(_pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
+
renderer: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
4
4
|
maxHeight: {
|
|
5
5
|
type: string;
|
|
6
6
|
description: string;
|
|
7
7
|
defaultValue: number;
|
|
8
8
|
};
|
|
9
|
-
}, import("
|
|
9
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
10
10
|
height: {
|
|
11
11
|
type: string;
|
|
12
12
|
defaultValue: number;
|
|
13
13
|
};
|
|
14
|
-
}, import("
|
|
14
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
15
15
|
minorAlleleFrequencyFilter: {
|
|
16
16
|
type: string;
|
|
17
17
|
defaultValue: number;
|
|
@@ -85,7 +85,7 @@ export default function configSchemaF(_pluginManager: PluginManager): import("no
|
|
|
85
85
|
type: string;
|
|
86
86
|
defaultValue: never[];
|
|
87
87
|
};
|
|
88
|
-
}, import("
|
|
88
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
89
89
|
maxFeatureScreenDensity: {
|
|
90
90
|
type: string;
|
|
91
91
|
description: string;
|
|
@@ -112,4 +112,4 @@ export default function configSchemaF(_pluginManager: PluginManager): import("no
|
|
|
112
112
|
description: string;
|
|
113
113
|
defaultValue: never[];
|
|
114
114
|
};
|
|
115
|
-
}, import("
|
|
115
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function configSchemaF(_pluginManager: PluginManager): import("
|
|
3
|
-
renderer: import("
|
|
2
|
+
export default function configSchemaF(_pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
+
renderer: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
4
4
|
maxHeight: {
|
|
5
5
|
type: string;
|
|
6
6
|
description: string;
|
|
7
7
|
defaultValue: number;
|
|
8
8
|
};
|
|
9
|
-
}, import("
|
|
9
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
10
10
|
height: {
|
|
11
11
|
type: string;
|
|
12
12
|
defaultValue: number;
|
|
13
13
|
};
|
|
14
|
-
}, import("
|
|
14
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
15
15
|
minorAlleleFrequencyFilter: {
|
|
16
16
|
type: string;
|
|
17
17
|
defaultValue: number;
|
|
@@ -85,7 +85,7 @@ export default function configSchemaF(_pluginManager: PluginManager): import("no
|
|
|
85
85
|
type: string;
|
|
86
86
|
defaultValue: never[];
|
|
87
87
|
};
|
|
88
|
-
}, import("
|
|
88
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
89
89
|
maxFeatureScreenDensity: {
|
|
90
90
|
type: string;
|
|
91
91
|
description: string;
|
|
@@ -112,4 +112,4 @@ export default function configSchemaF(_pluginManager: PluginManager): import("no
|
|
|
112
112
|
description: string;
|
|
113
113
|
defaultValue: never[];
|
|
114
114
|
};
|
|
115
|
-
}, import("
|
|
115
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
@@ -2,7 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { getContainingView, getRpcSessionId, getSession, } from '@jbrowse/core/util';
|
|
3
3
|
import { ReactRendering, renderingToSvg, } from '@jbrowse/core/util/offscreenCanvasUtils';
|
|
4
4
|
import { LDSVGColorLegend } from "./components/LDColorLegend.js";
|
|
5
|
-
import LinesConnectingMatrixToGenomicPosition
|
|
5
|
+
import LinesConnectingMatrixToGenomicPosition from "./components/LinesConnectingMatrixToGenomicPosition.js";
|
|
6
|
+
import VariantLabels from "./components/VariantLabels.js";
|
|
7
|
+
import Wrapper from "./components/Wrapper.js";
|
|
6
8
|
import RecombinationTrack from "../shared/components/RecombinationTrack.js";
|
|
7
9
|
import RecombinationYScaleBar from "../shared/components/RecombinationYScaleBar.js";
|
|
8
10
|
export async function renderSvg(self, opts) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare const LDRenderer: import("
|
|
1
|
+
declare const LDRenderer: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
2
|
maxHeight: {
|
|
3
3
|
type: string;
|
|
4
4
|
description: string;
|
|
5
5
|
defaultValue: number;
|
|
6
6
|
};
|
|
7
|
-
}, import("
|
|
7
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
8
8
|
export default LDRenderer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare const configSchema: (pluginManager: PluginManager) => import("
|
|
2
|
+
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
name: {
|
|
4
4
|
description: string;
|
|
5
5
|
type: string;
|
|
@@ -31,7 +31,7 @@ declare const configSchema: (pluginManager: PluginManager) => import("node_modul
|
|
|
31
31
|
defaultValue: string;
|
|
32
32
|
};
|
|
33
33
|
adapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
34
|
-
textSearching: import("
|
|
34
|
+
textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
35
35
|
indexingAttributes: {
|
|
36
36
|
type: string;
|
|
37
37
|
description: string;
|
|
@@ -43,9 +43,9 @@ declare const configSchema: (pluginManager: PluginManager) => import("node_modul
|
|
|
43
43
|
defaultValue: string[];
|
|
44
44
|
};
|
|
45
45
|
textSearchAdapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
46
|
-
}, import("
|
|
46
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
47
47
|
displays: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
48
|
-
formatDetails: import("
|
|
48
|
+
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
49
49
|
feature: {
|
|
50
50
|
type: string;
|
|
51
51
|
description: string;
|
|
@@ -68,8 +68,8 @@ declare const configSchema: (pluginManager: PluginManager) => import("node_modul
|
|
|
68
68
|
defaultValue: number;
|
|
69
69
|
description: string;
|
|
70
70
|
};
|
|
71
|
-
}, import("
|
|
72
|
-
formatAbout: import("
|
|
71
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
72
|
+
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
73
73
|
config: {
|
|
74
74
|
type: string;
|
|
75
75
|
description: string;
|
|
@@ -80,6 +80,6 @@ declare const configSchema: (pluginManager: PluginManager) => import("node_modul
|
|
|
80
80
|
type: string;
|
|
81
81
|
defaultValue: boolean;
|
|
82
82
|
};
|
|
83
|
-
}, import("
|
|
84
|
-
}, import("
|
|
83
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
84
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, undefined>>;
|
|
85
85
|
export default configSchema;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
3
|
-
export default function configSchemaF(pluginManager: PluginManager): import("
|
|
3
|
+
export default function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
4
4
|
renderer: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
5
|
-
}, import("
|
|
5
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
6
|
maxFeatureScreenDensity: {
|
|
7
7
|
type: string;
|
|
8
8
|
description: string;
|
|
@@ -29,6 +29,6 @@ export default function configSchemaF(pluginManager: PluginManager): import("nod
|
|
|
29
29
|
description: string;
|
|
30
30
|
defaultValue: never[];
|
|
31
31
|
};
|
|
32
|
-
}, import("
|
|
32
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
33
33
|
export type LinearVariantDisplayConfigModel = ReturnType<typeof configSchemaF>;
|
|
34
34
|
export type LinearVariantDisplayConfig = Instance<LinearVariantDisplayConfigModel>;
|
|
@@ -34,6 +34,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
34
34
|
statusMessage?: string;
|
|
35
35
|
reactElement?: React.ReactElement;
|
|
36
36
|
isRenderingPending?: boolean;
|
|
37
|
+
displayHeight?: number;
|
|
37
38
|
};
|
|
38
39
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
39
40
|
renderProps: any;
|
|
@@ -52,10 +53,11 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
52
53
|
beforeDestroy(): void;
|
|
53
54
|
} & {
|
|
54
55
|
readonly statusMessage: any;
|
|
56
|
+
readonly displayHeight: number | undefined;
|
|
55
57
|
} & {
|
|
56
58
|
afterAttach(): void;
|
|
57
59
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
58
|
-
configuration: import("
|
|
60
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
59
61
|
maxFeatureScreenDensity: {
|
|
60
62
|
type: string;
|
|
61
63
|
description: string;
|
|
@@ -82,7 +84,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
82
84
|
description: string;
|
|
83
85
|
defaultValue: never[];
|
|
84
86
|
};
|
|
85
|
-
}, import("
|
|
87
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
86
88
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
87
89
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
88
90
|
} & {
|
|
@@ -385,6 +387,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
385
387
|
statusMessage?: string;
|
|
386
388
|
reactElement?: React.ReactElement;
|
|
387
389
|
isRenderingPending?: boolean;
|
|
390
|
+
displayHeight?: number;
|
|
388
391
|
};
|
|
389
392
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
390
393
|
renderProps: any;
|
|
@@ -403,6 +406,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
403
406
|
beforeDestroy(): void;
|
|
404
407
|
} & {
|
|
405
408
|
readonly statusMessage: any;
|
|
409
|
+
readonly displayHeight: number | undefined;
|
|
406
410
|
} & {
|
|
407
411
|
afterAttach(): void;
|
|
408
412
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>> & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
@@ -429,6 +433,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
429
433
|
statusMessage?: string;
|
|
430
434
|
reactElement?: React.ReactElement;
|
|
431
435
|
isRenderingPending?: boolean;
|
|
436
|
+
displayHeight?: number;
|
|
432
437
|
};
|
|
433
438
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
434
439
|
renderProps: any;
|
|
@@ -447,6 +452,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
447
452
|
beforeDestroy(): void;
|
|
448
453
|
} & {
|
|
449
454
|
readonly statusMessage: any;
|
|
455
|
+
readonly displayHeight: number | undefined;
|
|
450
456
|
} & {
|
|
451
457
|
afterAttach(): void;
|
|
452
458
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>>;
|
|
@@ -460,7 +466,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
460
466
|
[x: string]: any;
|
|
461
467
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & any & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
462
468
|
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
463
|
-
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("
|
|
469
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
464
470
|
maxFeatureScreenDensity: {
|
|
465
471
|
type: string;
|
|
466
472
|
description: string;
|
|
@@ -487,7 +493,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
487
493
|
description: string;
|
|
488
494
|
defaultValue: never[];
|
|
489
495
|
};
|
|
490
|
-
}, import("
|
|
496
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>>;
|
|
491
497
|
showLegend: boolean | undefined;
|
|
492
498
|
showTooltips: boolean | undefined;
|
|
493
499
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
@@ -777,6 +783,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
777
783
|
statusMessage?: string;
|
|
778
784
|
reactElement?: React.ReactElement;
|
|
779
785
|
isRenderingPending?: boolean;
|
|
786
|
+
displayHeight?: number;
|
|
780
787
|
};
|
|
781
788
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
782
789
|
renderProps: any;
|
|
@@ -795,10 +802,11 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
795
802
|
beforeDestroy(): void;
|
|
796
803
|
} & {
|
|
797
804
|
readonly statusMessage: any;
|
|
805
|
+
readonly displayHeight: number | undefined;
|
|
798
806
|
} & {
|
|
799
807
|
afterAttach(): void;
|
|
800
808
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
801
|
-
configuration: import("
|
|
809
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
802
810
|
maxFeatureScreenDensity: {
|
|
803
811
|
type: string;
|
|
804
812
|
description: string;
|
|
@@ -825,7 +833,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
825
833
|
description: string;
|
|
826
834
|
defaultValue: never[];
|
|
827
835
|
};
|
|
828
|
-
}, import("
|
|
836
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
829
837
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
830
838
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
831
839
|
}, {
|
|
@@ -1290,6 +1298,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
1290
1298
|
statusMessage?: string;
|
|
1291
1299
|
reactElement?: React.ReactElement;
|
|
1292
1300
|
isRenderingPending?: boolean;
|
|
1301
|
+
displayHeight?: number;
|
|
1293
1302
|
};
|
|
1294
1303
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
1295
1304
|
renderProps: any;
|
|
@@ -1308,10 +1317,11 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
1308
1317
|
beforeDestroy(): void;
|
|
1309
1318
|
} & {
|
|
1310
1319
|
readonly statusMessage: any;
|
|
1320
|
+
readonly displayHeight: number | undefined;
|
|
1311
1321
|
} & {
|
|
1312
1322
|
afterAttach(): void;
|
|
1313
1323
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
1314
|
-
configuration: import("
|
|
1324
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1315
1325
|
maxFeatureScreenDensity: {
|
|
1316
1326
|
type: string;
|
|
1317
1327
|
description: string;
|
|
@@ -1338,7 +1348,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
1338
1348
|
description: string;
|
|
1339
1349
|
defaultValue: never[];
|
|
1340
1350
|
};
|
|
1341
|
-
}, import("
|
|
1351
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
1342
1352
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
1343
1353
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
1344
1354
|
} & {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function VariantConfigFactory(pluginManager: PluginManager): import("
|
|
2
|
+
export default function VariantConfigFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
defaultRendering: {
|
|
4
4
|
type: string;
|
|
5
5
|
model: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
6
6
|
defaultValue: string;
|
|
7
7
|
};
|
|
8
|
-
renderers: import("
|
|
8
|
+
renderers: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
9
9
|
MultiVariantRenderer: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
10
|
-
}, import("
|
|
10
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
11
11
|
height: {
|
|
12
12
|
type: string;
|
|
13
13
|
defaultValue: number;
|
|
14
14
|
};
|
|
15
|
-
}, import("
|
|
15
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
16
16
|
showReferenceAlleles: {
|
|
17
17
|
type: string;
|
|
18
18
|
defaultValue: boolean;
|
|
@@ -38,7 +38,7 @@ export default function VariantConfigFactory(pluginManager: PluginManager): impo
|
|
|
38
38
|
type: string;
|
|
39
39
|
defaultValue: string;
|
|
40
40
|
};
|
|
41
|
-
}, import("
|
|
41
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
42
42
|
maxFeatureScreenDensity: {
|
|
43
43
|
type: string;
|
|
44
44
|
description: string;
|
|
@@ -65,4 +65,4 @@ export default function VariantConfigFactory(pluginManager: PluginManager): impo
|
|
|
65
65
|
description: string;
|
|
66
66
|
defaultValue: never[];
|
|
67
67
|
};
|
|
68
|
-
}, import("
|
|
68
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|