@jbrowse/plugin-linear-comparative-view 2.6.1
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/LICENSE +201 -0
- package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +52 -0
- package/dist/LGVSyntenyDisplay/configSchemaF.js +18 -0
- package/dist/LGVSyntenyDisplay/configSchemaF.js.map +1 -0
- package/dist/LGVSyntenyDisplay/index.d.ts +3 -0
- package/dist/LGVSyntenyDisplay/index.js +24 -0
- package/dist/LGVSyntenyDisplay/index.js.map +1 -0
- package/dist/LGVSyntenyDisplay/model.d.ts +380 -0
- package/dist/LGVSyntenyDisplay/model.js +154 -0
- package/dist/LGVSyntenyDisplay/model.js.map +1 -0
- package/dist/LaunchLinearSyntenyView.d.ts +2 -0
- package/dist/LaunchLinearSyntenyView.js +58 -0
- package/dist/LaunchLinearSyntenyView.js.map +1 -0
- package/dist/LinearComparativeDisplay/configSchemaF.d.ts +5 -0
- package/dist/LinearComparativeDisplay/configSchemaF.js +18 -0
- package/dist/LinearComparativeDisplay/configSchemaF.js.map +1 -0
- package/dist/LinearComparativeDisplay/index.d.ts +3 -0
- package/dist/LinearComparativeDisplay/index.js +24 -0
- package/dist/LinearComparativeDisplay/index.js.map +1 -0
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +275 -0
- package/dist/LinearComparativeDisplay/stateModelFactory.js +172 -0
- package/dist/LinearComparativeDisplay/stateModelFactory.js.map +1 -0
- package/dist/LinearComparativeView/components/Header.d.ts +7 -0
- package/dist/LinearComparativeView/components/Header.js +89 -0
- package/dist/LinearComparativeView/components/Header.js.map +1 -0
- package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +8 -0
- package/dist/LinearComparativeView/components/LinearComparativeView.js +99 -0
- package/dist/LinearComparativeView/components/LinearComparativeView.js.map +1 -0
- package/dist/LinearComparativeView/components/Rubberband.d.ts +9 -0
- package/dist/LinearComparativeView/components/Rubberband.js +225 -0
- package/dist/LinearComparativeView/components/Rubberband.js.map +1 -0
- package/dist/LinearComparativeView/index.d.ts +3 -0
- package/dist/LinearComparativeView/index.js +42 -0
- package/dist/LinearComparativeView/index.js.map +1 -0
- package/dist/LinearComparativeView/model.d.ts +326 -0
- package/dist/LinearComparativeView/model.js +346 -0
- package/dist/LinearComparativeView/model.js.map +1 -0
- package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +7 -0
- package/dist/LinearReadVsRef/LinearReadVsRef.js +284 -0
- package/dist/LinearReadVsRef/LinearReadVsRef.js.map +1 -0
- package/dist/LinearReadVsRef/index.d.ts +2 -0
- package/dist/LinearReadVsRef/index.js +55 -0
- package/dist/LinearReadVsRef/index.js.map +1 -0
- package/dist/LinearSyntenyDisplay/afterAttach.d.ts +2 -0
- package/dist/LinearSyntenyDisplay/afterAttach.js +108 -0
- package/dist/LinearSyntenyDisplay/afterAttach.js.map +1 -0
- package/dist/LinearSyntenyDisplay/components/Component.d.ts +6 -0
- package/dist/LinearSyntenyDisplay/components/Component.js +87 -0
- package/dist/LinearSyntenyDisplay/components/Component.js.map +1 -0
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +6 -0
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +160 -0
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js.map +1 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +7 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +83 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js.map +1 -0
- package/dist/LinearSyntenyDisplay/components/util.d.ts +27 -0
- package/dist/LinearSyntenyDisplay/components/util.js +84 -0
- package/dist/LinearSyntenyDisplay/components/util.js.map +1 -0
- package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +23 -0
- package/dist/LinearSyntenyDisplay/configSchemaF.js +36 -0
- package/dist/LinearSyntenyDisplay/configSchemaF.js.map +1 -0
- package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +5 -0
- package/dist/LinearSyntenyDisplay/drawSynteny.js +235 -0
- package/dist/LinearSyntenyDisplay/drawSynteny.js.map +1 -0
- package/dist/LinearSyntenyDisplay/index.d.ts +3 -0
- package/dist/LinearSyntenyDisplay/index.js +47 -0
- package/dist/LinearSyntenyDisplay/index.js.map +1 -0
- package/dist/LinearSyntenyDisplay/model.d.ts +333 -0
- package/dist/LinearSyntenyDisplay/model.js +179 -0
- package/dist/LinearSyntenyDisplay/model.js.map +1 -0
- package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +8 -0
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js +86 -0
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js.map +1 -0
- package/dist/LinearSyntenyView/components/Icons.d.ts +4 -0
- package/dist/LinearSyntenyView/components/Icons.js +19 -0
- package/dist/LinearSyntenyView/components/Icons.js.map +1 -0
- package/dist/LinearSyntenyView/components/ImportCustomTrack.d.ts +11 -0
- package/dist/LinearSyntenyView/components/ImportCustomTrack.js +180 -0
- package/dist/LinearSyntenyView/components/ImportCustomTrack.js.map +1 -0
- package/dist/LinearSyntenyView/components/ImportForm.d.ts +6 -0
- package/dist/LinearSyntenyView/components/ImportForm.js +127 -0
- package/dist/LinearSyntenyView/components/ImportForm.js.map +1 -0
- package/dist/LinearSyntenyView/components/ImportSyntenyTrackSelector.d.ts +9 -0
- package/dist/LinearSyntenyView/components/ImportSyntenyTrackSelector.js +63 -0
- package/dist/LinearSyntenyView/components/ImportSyntenyTrackSelector.js.map +1 -0
- package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +7 -0
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js +38 -0
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js.map +1 -0
- package/dist/LinearSyntenyView/index.d.ts +3 -0
- package/dist/LinearSyntenyView/index.js +42 -0
- package/dist/LinearSyntenyView/index.js.map +1 -0
- package/dist/LinearSyntenyView/model.d.ts +754 -0
- package/dist/LinearSyntenyView/model.js +170 -0
- package/dist/LinearSyntenyView/model.js.map +1 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +6 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +13 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js.map +1 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +4 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +85 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js.map +1 -0
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +5 -0
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +66 -0
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js.map +1 -0
- package/dist/SyntenyFeatureDetail/index.d.ts +3 -0
- package/dist/SyntenyFeatureDetail/index.js +58 -0
- package/dist/SyntenyFeatureDetail/index.js.map +1 -0
- package/dist/SyntenyTrack/configSchema.d.ts +75 -0
- package/dist/SyntenyTrack/configSchema.js +16 -0
- package/dist/SyntenyTrack/configSchema.js.map +1 -0
- package/dist/SyntenyTrack/index.d.ts +3 -0
- package/dist/SyntenyTrack/index.js +19 -0
- package/dist/SyntenyTrack/index.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/dist/util.d.ts +25 -0
- package/dist/util.js +77 -0
- package/dist/util.js.map +1 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +52 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.js +16 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.js.map +1 -0
- package/esm/LGVSyntenyDisplay/index.d.ts +3 -0
- package/esm/LGVSyntenyDisplay/index.js +19 -0
- package/esm/LGVSyntenyDisplay/index.js.map +1 -0
- package/esm/LGVSyntenyDisplay/model.d.ts +380 -0
- package/esm/LGVSyntenyDisplay/model.js +152 -0
- package/esm/LGVSyntenyDisplay/model.js.map +1 -0
- package/esm/LaunchLinearSyntenyView.d.ts +2 -0
- package/esm/LaunchLinearSyntenyView.js +55 -0
- package/esm/LaunchLinearSyntenyView.js.map +1 -0
- package/esm/LinearComparativeDisplay/configSchemaF.d.ts +5 -0
- package/esm/LinearComparativeDisplay/configSchemaF.js +16 -0
- package/esm/LinearComparativeDisplay/configSchemaF.js.map +1 -0
- package/esm/LinearComparativeDisplay/index.d.ts +3 -0
- package/esm/LinearComparativeDisplay/index.js +19 -0
- package/esm/LinearComparativeDisplay/index.js.map +1 -0
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +275 -0
- package/esm/LinearComparativeDisplay/stateModelFactory.js +170 -0
- package/esm/LinearComparativeDisplay/stateModelFactory.js.map +1 -0
- package/esm/LinearComparativeView/components/Header.d.ts +7 -0
- package/esm/LinearComparativeView/components/Header.js +61 -0
- package/esm/LinearComparativeView/components/Header.js.map +1 -0
- package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +8 -0
- package/esm/LinearComparativeView/components/LinearComparativeView.js +94 -0
- package/esm/LinearComparativeView/components/LinearComparativeView.js.map +1 -0
- package/esm/LinearComparativeView/components/Rubberband.d.ts +9 -0
- package/esm/LinearComparativeView/components/Rubberband.js +200 -0
- package/esm/LinearComparativeView/components/Rubberband.js.map +1 -0
- package/esm/LinearComparativeView/index.d.ts +3 -0
- package/esm/LinearComparativeView/index.js +14 -0
- package/esm/LinearComparativeView/index.js.map +1 -0
- package/esm/LinearComparativeView/model.d.ts +326 -0
- package/esm/LinearComparativeView/model.js +318 -0
- package/esm/LinearComparativeView/model.js.map +1 -0
- package/esm/LinearReadVsRef/LinearReadVsRef.d.ts +7 -0
- package/esm/LinearReadVsRef/LinearReadVsRef.js +258 -0
- package/esm/LinearReadVsRef/LinearReadVsRef.js.map +1 -0
- package/esm/LinearReadVsRef/index.d.ts +2 -0
- package/esm/LinearReadVsRef/index.js +49 -0
- package/esm/LinearReadVsRef/index.js.map +1 -0
- package/esm/LinearSyntenyDisplay/afterAttach.d.ts +2 -0
- package/esm/LinearSyntenyDisplay/afterAttach.js +104 -0
- package/esm/LinearSyntenyDisplay/afterAttach.js.map +1 -0
- package/esm/LinearSyntenyDisplay/components/Component.d.ts +6 -0
- package/esm/LinearSyntenyDisplay/components/Component.js +59 -0
- package/esm/LinearSyntenyDisplay/components/Component.js.map +1 -0
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +6 -0
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +132 -0
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js.map +1 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +7 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +58 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js.map +1 -0
- package/esm/LinearSyntenyDisplay/components/util.d.ts +27 -0
- package/esm/LinearSyntenyDisplay/components/util.js +77 -0
- package/esm/LinearSyntenyDisplay/components/util.js.map +1 -0
- package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +23 -0
- package/esm/LinearSyntenyDisplay/configSchemaF.js +31 -0
- package/esm/LinearSyntenyDisplay/configSchemaF.js.map +1 -0
- package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +5 -0
- package/esm/LinearSyntenyDisplay/drawSynteny.js +229 -0
- package/esm/LinearSyntenyDisplay/drawSynteny.js.map +1 -0
- package/esm/LinearSyntenyDisplay/index.d.ts +3 -0
- package/esm/LinearSyntenyDisplay/index.js +19 -0
- package/esm/LinearSyntenyDisplay/index.js.map +1 -0
- package/esm/LinearSyntenyDisplay/model.d.ts +333 -0
- package/esm/LinearSyntenyDisplay/model.js +151 -0
- package/esm/LinearSyntenyDisplay/model.js.map +1 -0
- package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +8 -0
- package/esm/LinearSyntenyView/components/ExportSvgDialog.js +60 -0
- package/esm/LinearSyntenyView/components/ExportSvgDialog.js.map +1 -0
- package/esm/LinearSyntenyView/components/Icons.d.ts +4 -0
- package/esm/LinearSyntenyView/components/Icons.js +11 -0
- package/esm/LinearSyntenyView/components/Icons.js.map +1 -0
- package/esm/LinearSyntenyView/components/ImportCustomTrack.d.ts +11 -0
- package/esm/LinearSyntenyView/components/ImportCustomTrack.js +152 -0
- package/esm/LinearSyntenyView/components/ImportCustomTrack.js.map +1 -0
- package/esm/LinearSyntenyView/components/ImportForm.d.ts +6 -0
- package/esm/LinearSyntenyView/components/ImportForm.js +99 -0
- package/esm/LinearSyntenyView/components/ImportForm.js.map +1 -0
- package/esm/LinearSyntenyView/components/ImportSyntenyTrackSelector.d.ts +9 -0
- package/esm/LinearSyntenyView/components/ImportSyntenyTrackSelector.js +38 -0
- package/esm/LinearSyntenyView/components/ImportSyntenyTrackSelector.js.map +1 -0
- package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +7 -0
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js +10 -0
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js.map +1 -0
- package/esm/LinearSyntenyView/index.d.ts +3 -0
- package/esm/LinearSyntenyView/index.js +14 -0
- package/esm/LinearSyntenyView/index.js.map +1 -0
- package/esm/LinearSyntenyView/model.d.ts +754 -0
- package/esm/LinearSyntenyView/model.js +141 -0
- package/esm/LinearSyntenyView/model.js.map +1 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +6 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js +7 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js.map +1 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +4 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +78 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js.map +1 -0
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +5 -0
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +38 -0
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js.map +1 -0
- package/esm/SyntenyFeatureDetail/index.d.ts +3 -0
- package/esm/SyntenyFeatureDetail/index.js +30 -0
- package/esm/SyntenyFeatureDetail/index.js.map +1 -0
- package/esm/SyntenyTrack/configSchema.d.ts +75 -0
- package/esm/SyntenyTrack/configSchema.js +14 -0
- package/esm/SyntenyTrack/configSchema.js.map +1 -0
- package/esm/SyntenyTrack/index.d.ts +3 -0
- package/esm/SyntenyTrack/index.js +14 -0
- package/esm/SyntenyTrack/index.js.map +1 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +41 -0
- package/esm/index.js.map +1 -0
- package/esm/util.d.ts +25 -0
- package/esm/util.js +69 -0
- package/esm/util.js.map +1 -0
- package/package.json +67 -0
- package/src/LGVSyntenyDisplay/configSchemaF.ts +22 -0
- package/src/LGVSyntenyDisplay/index.ts +20 -0
- package/src/LGVSyntenyDisplay/model.ts +177 -0
- package/src/LaunchLinearSyntenyView.ts +86 -0
- package/src/LinearComparativeDisplay/configSchemaF.ts +22 -0
- package/src/LinearComparativeDisplay/index.ts +21 -0
- package/src/LinearComparativeDisplay/stateModelFactory.ts +212 -0
- package/src/LinearComparativeView/components/Header.tsx +103 -0
- package/src/LinearComparativeView/components/LinearComparativeView.tsx +152 -0
- package/src/LinearComparativeView/components/Rubberband.tsx +329 -0
- package/src/LinearComparativeView/index.ts +15 -0
- package/src/LinearComparativeView/model.ts +395 -0
- package/src/LinearReadVsRef/LinearReadVsRef.tsx +360 -0
- package/src/LinearReadVsRef/index.ts +58 -0
- package/src/LinearSyntenyDisplay/afterAttach.ts +149 -0
- package/src/LinearSyntenyDisplay/components/Component.tsx +75 -0
- package/src/LinearSyntenyDisplay/components/LinearSyntenyRendering.tsx +200 -0
- package/src/LinearSyntenyDisplay/components/SyntenyTooltip.tsx +82 -0
- package/src/LinearSyntenyDisplay/components/util.ts +142 -0
- package/src/LinearSyntenyDisplay/configSchemaF.ts +38 -0
- package/src/LinearSyntenyDisplay/drawSynteny.ts +266 -0
- package/src/LinearSyntenyDisplay/index.ts +21 -0
- package/src/LinearSyntenyDisplay/model.ts +187 -0
- package/src/LinearSyntenyView/components/ExportSvgDialog.tsx +148 -0
- package/src/LinearSyntenyView/components/Icons.tsx +24 -0
- package/src/LinearSyntenyView/components/ImportCustomTrack.tsx +262 -0
- package/src/LinearSyntenyView/components/ImportForm.tsx +221 -0
- package/src/LinearSyntenyView/components/ImportSyntenyTrackSelector.tsx +82 -0
- package/src/LinearSyntenyView/components/LinearSyntenyView.tsx +20 -0
- package/src/LinearSyntenyView/index.ts +15 -0
- package/src/LinearSyntenyView/model.test.ts +1605 -0
- package/src/LinearSyntenyView/model.ts +169 -0
- package/src/LinearSyntenyView/svgcomponents/SVGBackground.tsx +21 -0
- package/src/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.tsx +176 -0
- package/src/SyntenyFeatureDetail/SyntenyFeatureDetail.tsx +64 -0
- package/src/SyntenyFeatureDetail/index.ts +36 -0
- package/src/SyntenyTrack/configSchema.ts +23 -0
- package/src/SyntenyTrack/index.tsx +15 -0
- package/src/index.tsx +42 -0
- package/src/util.ts +124 -0
package/dist/util.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Region } from '@jbrowse/core/util/types';
|
|
2
|
+
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
3
|
+
export type LayoutRecord = [number, number, number, number];
|
|
4
|
+
export interface ReducedLinearGenomeView {
|
|
5
|
+
bpPerPx: number;
|
|
6
|
+
offsetPx: number;
|
|
7
|
+
staticBlocks: Region[];
|
|
8
|
+
dynamicBlocks: Region[];
|
|
9
|
+
displayedRegions: Region[];
|
|
10
|
+
headerHeight: number;
|
|
11
|
+
scaleBarHeight: number;
|
|
12
|
+
height: number;
|
|
13
|
+
features: Feature[];
|
|
14
|
+
tracks: {
|
|
15
|
+
scrollTop: number;
|
|
16
|
+
height: number;
|
|
17
|
+
configuration: string;
|
|
18
|
+
skip: number;
|
|
19
|
+
}[];
|
|
20
|
+
}
|
|
21
|
+
export declare function cheight(chunk: LayoutRecord): number;
|
|
22
|
+
export declare function getTrackPos(view: ReducedLinearGenomeView, trackConfigId: string): number;
|
|
23
|
+
export declare function getPxFromCoordinate(view: ReducedLinearGenomeView, refName: string, coord: number): number;
|
|
24
|
+
export declare function overlayYPos(trackConfigId: string, level: number, views: ReducedLinearGenomeView[], c: LayoutRecord, cond: boolean): number;
|
|
25
|
+
export declare function interstitialYPos(cond: boolean, height: number): number;
|
package/dist/util.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.interstitialYPos = exports.overlayYPos = exports.getPxFromCoordinate = exports.getTrackPos = exports.cheight = void 0;
|
|
4
|
+
const util_1 = require("@jbrowse/core/util");
|
|
5
|
+
const [, TOP, , BOTTOM] = [0, 1, 2, 3];
|
|
6
|
+
function cheight(chunk) {
|
|
7
|
+
return chunk[BOTTOM] - chunk[TOP];
|
|
8
|
+
}
|
|
9
|
+
exports.cheight = cheight;
|
|
10
|
+
function heightFromSpecificLevel(views, trackConfigId, level) {
|
|
11
|
+
const heightUpUntilThisPoint = views
|
|
12
|
+
.slice(0, level)
|
|
13
|
+
.map(v => v.height + 7)
|
|
14
|
+
.reduce((a, b) => a + b, 0);
|
|
15
|
+
return (heightUpUntilThisPoint +
|
|
16
|
+
views[level].headerHeight +
|
|
17
|
+
views[level].scaleBarHeight +
|
|
18
|
+
getTrackPos(views[level], trackConfigId) +
|
|
19
|
+
1);
|
|
20
|
+
}
|
|
21
|
+
function getTrackPos(view, trackConfigId) {
|
|
22
|
+
const idx = view.tracks.findIndex(t => t.configuration === trackConfigId);
|
|
23
|
+
let accum = 0;
|
|
24
|
+
for (let i = 0; i < idx; i += 1) {
|
|
25
|
+
accum += view.tracks[i].height + 3; // +1px for trackresizehandle
|
|
26
|
+
}
|
|
27
|
+
return accum;
|
|
28
|
+
}
|
|
29
|
+
exports.getTrackPos = getTrackPos;
|
|
30
|
+
// Uses bpToPx to get the screen pixel coordinates but ignores some conditions
|
|
31
|
+
// where bpToPx could return undefined
|
|
32
|
+
function getPxFromCoordinate(view, refName, coord) {
|
|
33
|
+
return (((bpToPx(view, { refName, coord }) || {}).offsetPx || 0) - view.offsetPx);
|
|
34
|
+
}
|
|
35
|
+
exports.getPxFromCoordinate = getPxFromCoordinate;
|
|
36
|
+
// Retrieves the y-position of a layout record in a track
|
|
37
|
+
// If track not found returns 0
|
|
38
|
+
function overlayYPos(trackConfigId, level, views, c, cond) {
|
|
39
|
+
const track = views[level].tracks.find(t => t.configuration === trackConfigId);
|
|
40
|
+
const ypos = track
|
|
41
|
+
? (0, util_1.clamp)(c[TOP] - (track.scrollTop || 0), 0, track.height) +
|
|
42
|
+
heightFromSpecificLevel(views, trackConfigId, level) +
|
|
43
|
+
track.skip
|
|
44
|
+
: 0;
|
|
45
|
+
return ypos + (cond ? cheight(c) : 0);
|
|
46
|
+
}
|
|
47
|
+
exports.overlayYPos = overlayYPos;
|
|
48
|
+
// Returns the pixel screen position of a refName:coord input, or undefined if
|
|
49
|
+
// the input could not be located. Uses view.displayedRegions as a representation
|
|
50
|
+
// of what is on the screen
|
|
51
|
+
//
|
|
52
|
+
// Note: does not consider that this refName:coord input could multi-match
|
|
53
|
+
function bpToPx(view, { refName, coord }) {
|
|
54
|
+
let offsetBp = 0;
|
|
55
|
+
const index = view.displayedRegions.findIndex(r => {
|
|
56
|
+
if (refName === r.refName && coord >= r.start && coord <= r.end) {
|
|
57
|
+
offsetBp += coord - r.start;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
offsetBp += r.end - r.start;
|
|
61
|
+
return false;
|
|
62
|
+
});
|
|
63
|
+
const foundRegion = view.displayedRegions[index];
|
|
64
|
+
if (foundRegion) {
|
|
65
|
+
return {
|
|
66
|
+
index,
|
|
67
|
+
offsetPx: Math.round(offsetBp / view.bpPerPx),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
// Returns either 0 or height depending on condition
|
|
73
|
+
function interstitialYPos(cond, height) {
|
|
74
|
+
return cond ? 0 : height;
|
|
75
|
+
}
|
|
76
|
+
exports.interstitialYPos = interstitialYPos;
|
|
77
|
+
//# sourceMappingURL=util.js.map
|
package/dist/util.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
/**
|
|
3
|
+
* #config LGVSyntenyDisplay
|
|
4
|
+
*/
|
|
5
|
+
declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
|
+
defaultRendering: {
|
|
7
|
+
type: string;
|
|
8
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
9
|
+
defaultValue: string; /**
|
|
10
|
+
* #baseConfiguration
|
|
11
|
+
*/
|
|
12
|
+
};
|
|
13
|
+
renderers: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
14
|
+
PileupRenderer: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
15
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
16
|
+
maxFeatureScreenDensity: {
|
|
17
|
+
type: string;
|
|
18
|
+
description: string;
|
|
19
|
+
defaultValue: number;
|
|
20
|
+
};
|
|
21
|
+
colorScheme: {
|
|
22
|
+
type: string;
|
|
23
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
24
|
+
description: string;
|
|
25
|
+
defaultValue: string;
|
|
26
|
+
};
|
|
27
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
28
|
+
renderer: import("mobx-state-tree").IAnyModelType;
|
|
29
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
30
|
+
maxFeatureScreenDensity: {
|
|
31
|
+
type: string;
|
|
32
|
+
description: string;
|
|
33
|
+
defaultValue: number;
|
|
34
|
+
};
|
|
35
|
+
fetchSizeLimit: {
|
|
36
|
+
type: string;
|
|
37
|
+
defaultValue: number;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
height: {
|
|
41
|
+
type: string;
|
|
42
|
+
defaultValue: number;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
mouseover: {
|
|
46
|
+
type: string;
|
|
47
|
+
description: string;
|
|
48
|
+
defaultValue: string;
|
|
49
|
+
contextVariable: string[];
|
|
50
|
+
};
|
|
51
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>, undefined>>;
|
|
52
|
+
export default configSchemaF;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
+
import { linearPileupDisplayConfigSchemaFactory } from '@jbrowse/plugin-alignments';
|
|
3
|
+
/**
|
|
4
|
+
* #config LGVSyntenyDisplay
|
|
5
|
+
*/
|
|
6
|
+
function configSchemaF(pluginManager) {
|
|
7
|
+
return ConfigurationSchema('LGVSyntenyDisplay', {}, {
|
|
8
|
+
/**
|
|
9
|
+
* #baseConfiguration
|
|
10
|
+
*/
|
|
11
|
+
baseConfiguration: linearPileupDisplayConfigSchemaFactory(pluginManager),
|
|
12
|
+
explicitlyTyped: true,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export default configSchemaF;
|
|
16
|
+
//# sourceMappingURL=configSchemaF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configSchemaF.js","sourceRoot":"","sources":["../../src/LGVSyntenyDisplay/configSchemaF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE,OAAO,EAAE,sCAAsC,EAAE,MAAM,4BAA4B,CAAA;AAEnF;;GAEG;AACH,SAAS,aAAa,CAAC,aAA4B;IACjD,OAAO,mBAAmB,CACxB,mBAAmB,EACnB,EAAE,EACF;QACE;;WAEG;QACH,iBAAiB,EAAE,sCAAsC,CAAC,aAAa,CAAC;QACxE,eAAe,EAAE,IAAI;KACtB,CACF,CAAA;AACH,CAAC;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
2
|
+
import configSchemaF from './configSchemaF';
|
|
3
|
+
import stateModelF from './model';
|
|
4
|
+
import { BaseLinearDisplayComponent } from '@jbrowse/plugin-linear-genome-view';
|
|
5
|
+
export default (pluginManager) => {
|
|
6
|
+
pluginManager.addDisplayType(() => {
|
|
7
|
+
const configSchema = configSchemaF(pluginManager);
|
|
8
|
+
const stateModel = stateModelF(configSchema);
|
|
9
|
+
return new DisplayType({
|
|
10
|
+
name: 'LGVSyntenyDisplay',
|
|
11
|
+
configSchema,
|
|
12
|
+
stateModel,
|
|
13
|
+
trackType: 'SyntenyTrack',
|
|
14
|
+
viewType: 'LinearGenomeView',
|
|
15
|
+
ReactComponent: BaseLinearDisplayComponent,
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LGVSyntenyDisplay/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AACzE,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,WAAW,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;AAE/E,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,CAAA;QACjD,MAAM,UAAU,GAAG,WAAW,CAAC,YAAY,CAAC,CAAA;QAC5C,OAAO,IAAI,WAAW,CAAC;YACrB,IAAI,EAAE,mBAAmB;YACzB,YAAY;YACZ,UAAU;YACV,SAAS,EAAE,cAAc;YACzB,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,0BAA0B;SAC3C,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
|
+
import { Feature } from '@jbrowse/core/util';
|
|
4
|
+
/**
|
|
5
|
+
* #stateModel LGVSyntenyDisplay
|
|
6
|
+
* extends `LinearPileupDisplay`, displays location of "synteny" feature in a
|
|
7
|
+
* plain LGV, allowing linking out to external synteny views
|
|
8
|
+
*/
|
|
9
|
+
declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
10
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
11
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
12
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
13
|
+
} & {
|
|
14
|
+
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
15
|
+
} & {
|
|
16
|
+
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
17
|
+
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
18
|
+
} & {
|
|
19
|
+
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
20
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
21
|
+
region: import("mobx-state-tree").IModelType<{
|
|
22
|
+
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
23
|
+
start: import("mobx-state-tree").ISimpleType<number>;
|
|
24
|
+
end: import("mobx-state-tree").ISimpleType<number>;
|
|
25
|
+
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
26
|
+
} & {
|
|
27
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
28
|
+
}, {
|
|
29
|
+
setRefName(newRefName: string): void;
|
|
30
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
31
|
+
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
32
|
+
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
33
|
+
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
34
|
+
}, {
|
|
35
|
+
renderInProgress: AbortController | undefined;
|
|
36
|
+
filled: boolean;
|
|
37
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
38
|
+
features: Map<string, Feature> | undefined;
|
|
39
|
+
layout: any;
|
|
40
|
+
status: string;
|
|
41
|
+
error: unknown;
|
|
42
|
+
message: string | undefined;
|
|
43
|
+
maxHeightReached: boolean;
|
|
44
|
+
ReactComponent: ({ model, }: {
|
|
45
|
+
model: any;
|
|
46
|
+
}) => any;
|
|
47
|
+
renderProps: any;
|
|
48
|
+
} & {
|
|
49
|
+
doReload(): void;
|
|
50
|
+
afterAttach(): void;
|
|
51
|
+
setStatus(message: string): void;
|
|
52
|
+
setLoading(abortController: AbortController): void;
|
|
53
|
+
setMessage(messageText: string): void;
|
|
54
|
+
setRendered(props: {
|
|
55
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
56
|
+
features: Map<string, Feature>;
|
|
57
|
+
layout: any;
|
|
58
|
+
maxHeightReached: boolean;
|
|
59
|
+
renderProps: any;
|
|
60
|
+
} | undefined): void;
|
|
61
|
+
setError(error: unknown): void;
|
|
62
|
+
reload(): void;
|
|
63
|
+
beforeDestroy(): void;
|
|
64
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
65
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
66
|
+
maxFeatureScreenDensity: {
|
|
67
|
+
type: string;
|
|
68
|
+
description: string;
|
|
69
|
+
defaultValue: number;
|
|
70
|
+
};
|
|
71
|
+
fetchSizeLimit: {
|
|
72
|
+
type: string;
|
|
73
|
+
defaultValue: number;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
height: {
|
|
77
|
+
type: string;
|
|
78
|
+
defaultValue: number;
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
mouseover: {
|
|
82
|
+
type: string;
|
|
83
|
+
description: string;
|
|
84
|
+
defaultValue: string;
|
|
85
|
+
contextVariable: string[];
|
|
86
|
+
};
|
|
87
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
88
|
+
} & {
|
|
89
|
+
type: import("mobx-state-tree").ISimpleType<"LinearPileupDisplay">;
|
|
90
|
+
configuration: AnyConfigurationSchemaType;
|
|
91
|
+
showSoftClipping: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
92
|
+
featureHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
93
|
+
noSpacing: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
94
|
+
fadeLikelihood: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
95
|
+
trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
96
|
+
mismatchAlpha: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
97
|
+
sortedBy: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
98
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
99
|
+
pos: import("mobx-state-tree").ISimpleType<number>;
|
|
100
|
+
tag: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
101
|
+
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
102
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
103
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
104
|
+
colorBy: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
105
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
106
|
+
tag: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
107
|
+
extra: import("mobx-state-tree").IType<any, any, any>;
|
|
108
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
109
|
+
filterBy: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
110
|
+
flagInclude: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
111
|
+
flagExclude: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
112
|
+
readName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
113
|
+
tagFilter: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
114
|
+
tag: import("mobx-state-tree").ISimpleType<string>;
|
|
115
|
+
value: import("mobx-state-tree").ISimpleType<string>;
|
|
116
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
117
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
118
|
+
} & {
|
|
119
|
+
/**
|
|
120
|
+
* #property
|
|
121
|
+
*/
|
|
122
|
+
type: import("mobx-state-tree").ISimpleType<"LGVSyntenyDisplay">;
|
|
123
|
+
/**
|
|
124
|
+
* #property
|
|
125
|
+
*/
|
|
126
|
+
configuration: AnyConfigurationSchemaType;
|
|
127
|
+
}, {
|
|
128
|
+
rendererTypeName: string;
|
|
129
|
+
error: unknown;
|
|
130
|
+
message: string | undefined;
|
|
131
|
+
} & {
|
|
132
|
+
readonly RenderingComponent: import("react").FC<{
|
|
133
|
+
model: {
|
|
134
|
+
id: string;
|
|
135
|
+
type: string;
|
|
136
|
+
rpcDriverName: string | undefined;
|
|
137
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
138
|
+
rendererTypeName: string;
|
|
139
|
+
error: unknown;
|
|
140
|
+
message: string | undefined;
|
|
141
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
142
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
143
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
144
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
145
|
+
}, {
|
|
146
|
+
rendererTypeName: string;
|
|
147
|
+
error: unknown;
|
|
148
|
+
message: string | undefined;
|
|
149
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
150
|
+
onHorizontalScroll?: Function | undefined;
|
|
151
|
+
blockState?: Record<string, any> | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
readonly DisplayBlurb: import("react").FC<{
|
|
154
|
+
model: {
|
|
155
|
+
id: string;
|
|
156
|
+
type: string;
|
|
157
|
+
rpcDriverName: string | undefined;
|
|
158
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
159
|
+
rendererTypeName: string;
|
|
160
|
+
error: unknown;
|
|
161
|
+
message: string | undefined;
|
|
162
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
163
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
164
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
165
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
166
|
+
}, {
|
|
167
|
+
rendererTypeName: string;
|
|
168
|
+
error: unknown;
|
|
169
|
+
message: string | undefined;
|
|
170
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
171
|
+
}> | null;
|
|
172
|
+
readonly adapterConfig: any;
|
|
173
|
+
readonly parentTrack: any;
|
|
174
|
+
renderProps(): any;
|
|
175
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
176
|
+
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
177
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
178
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
179
|
+
regionCannotBeRendered(): null;
|
|
180
|
+
} & {
|
|
181
|
+
setMessage(arg?: string | undefined): void;
|
|
182
|
+
setError(error?: unknown): void;
|
|
183
|
+
setRpcDriverName(rpcDriverName: string): void;
|
|
184
|
+
reload(): void;
|
|
185
|
+
} & {
|
|
186
|
+
scrollTop: number;
|
|
187
|
+
} & {
|
|
188
|
+
readonly height: number;
|
|
189
|
+
} & {
|
|
190
|
+
setScrollTop(scrollTop: number): void;
|
|
191
|
+
setHeight(displayHeight: number): number;
|
|
192
|
+
resizeHeight(distance: number): number;
|
|
193
|
+
} & {
|
|
194
|
+
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
195
|
+
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
196
|
+
currStatsBpPerPx: number;
|
|
197
|
+
} & {
|
|
198
|
+
readonly currentBytesRequested: number;
|
|
199
|
+
readonly currentFeatureScreenDensity: number;
|
|
200
|
+
readonly maxFeatureScreenDensity: any;
|
|
201
|
+
readonly featureDensityStatsReady: boolean;
|
|
202
|
+
readonly maxAllowableBytes: number;
|
|
203
|
+
} & {
|
|
204
|
+
afterAttach(): void;
|
|
205
|
+
} & {
|
|
206
|
+
setCurrStatsBpPerPx(n: number): void;
|
|
207
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
208
|
+
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
209
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
210
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
211
|
+
clearFeatureDensityStats(): void;
|
|
212
|
+
} & {
|
|
213
|
+
readonly regionTooLarge: boolean;
|
|
214
|
+
readonly regionTooLargeReason: string;
|
|
215
|
+
} & {
|
|
216
|
+
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
217
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
218
|
+
} & {
|
|
219
|
+
featureIdUnderMouse: string | undefined;
|
|
220
|
+
contextMenuFeature: Feature | undefined;
|
|
221
|
+
} & {
|
|
222
|
+
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
223
|
+
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
224
|
+
} & {
|
|
225
|
+
readonly renderDelay: number;
|
|
226
|
+
readonly TooltipComponent: import("react").FC<any>;
|
|
227
|
+
readonly selectedFeatureId: string | undefined;
|
|
228
|
+
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
229
|
+
} & {
|
|
230
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
231
|
+
readonly featureUnderMouse: Feature | undefined;
|
|
232
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
233
|
+
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
234
|
+
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
235
|
+
} & {
|
|
236
|
+
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
237
|
+
deleteBlock(key: string): void;
|
|
238
|
+
selectFeature(feature: Feature): void;
|
|
239
|
+
clearFeatureSelection(): void;
|
|
240
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
241
|
+
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
242
|
+
} & {
|
|
243
|
+
reload(): Promise<void>;
|
|
244
|
+
} & {
|
|
245
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
246
|
+
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
247
|
+
renderProps(): any;
|
|
248
|
+
} & {
|
|
249
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
250
|
+
afterAttach(): void;
|
|
251
|
+
} & {
|
|
252
|
+
colorTagMap: import("mobx").ObservableMap<string, string>;
|
|
253
|
+
modificationTagMap: import("mobx").ObservableMap<string, string>;
|
|
254
|
+
featureUnderMouseVolatile: Feature | undefined;
|
|
255
|
+
currSortBpPerPx: number;
|
|
256
|
+
modificationsReady: boolean;
|
|
257
|
+
sortReady: boolean;
|
|
258
|
+
tagsReady: boolean;
|
|
259
|
+
} & {
|
|
260
|
+
readonly autorunReady: boolean;
|
|
261
|
+
} & {
|
|
262
|
+
setModificationsReady(flag: boolean): void;
|
|
263
|
+
setTagsReady(flag: boolean): void;
|
|
264
|
+
setSortReady(flag: boolean): void;
|
|
265
|
+
setCurrSortBpPerPx(n: number): void;
|
|
266
|
+
setMaxHeight(n: number): void;
|
|
267
|
+
setFeatureHeight(n?: number | undefined): void;
|
|
268
|
+
setNoSpacing(flag?: boolean | undefined): void;
|
|
269
|
+
setColorScheme(colorScheme: {
|
|
270
|
+
type: string;
|
|
271
|
+
tag?: string | undefined;
|
|
272
|
+
}): void;
|
|
273
|
+
updateModificationColorMap(uniqueModifications: string[]): void;
|
|
274
|
+
updateColorTagMap(uniqueTag: string[]): void;
|
|
275
|
+
setFeatureUnderMouse(feat?: Feature | undefined): void;
|
|
276
|
+
selectFeature(feature: Feature): void;
|
|
277
|
+
clearSelected(): void;
|
|
278
|
+
copyFeatureToClipboard(feature: Feature): void;
|
|
279
|
+
toggleSoftClipping(): void;
|
|
280
|
+
toggleMismatchAlpha(): void;
|
|
281
|
+
setConfig(conf: {
|
|
282
|
+
[x: string]: any;
|
|
283
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
284
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
285
|
+
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>): void;
|
|
286
|
+
setSortedBy(type: string, tag?: string | undefined): void;
|
|
287
|
+
setFilterBy(filter: import("@jbrowse/plugin-alignments/src/LinearPileupDisplay/model").Filter): void;
|
|
288
|
+
} & {
|
|
289
|
+
reload(): void;
|
|
290
|
+
} & {
|
|
291
|
+
readonly rendererConfig: {
|
|
292
|
+
[x: string]: any;
|
|
293
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
294
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
295
|
+
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
296
|
+
} & {
|
|
297
|
+
readonly maxHeight: any;
|
|
298
|
+
readonly featureHeightSetting: any;
|
|
299
|
+
readonly mismatchAlphaSetting: any;
|
|
300
|
+
readonly featureUnderMouse: Feature | undefined;
|
|
301
|
+
readonly renderReady: boolean;
|
|
302
|
+
} & {
|
|
303
|
+
readonly rendererTypeName: string;
|
|
304
|
+
contextMenuItems(): ({
|
|
305
|
+
label: string;
|
|
306
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
307
|
+
muiName: string;
|
|
308
|
+
};
|
|
309
|
+
onClick: () => void;
|
|
310
|
+
} | {
|
|
311
|
+
label: string;
|
|
312
|
+
icon: typeof import("@jbrowse/core/ui/Icons").ContentCopy;
|
|
313
|
+
onClick: () => void;
|
|
314
|
+
})[];
|
|
315
|
+
readonly DisplayBlurb: (props: import("@jbrowse/plugin-alignments/src/LinearPileupDisplay/components/LinearPileupDisplayBlurb").LinearPileupDisplayBlurbProps) => import("react").JSX.Element | null;
|
|
316
|
+
renderPropsPre(): any;
|
|
317
|
+
renderProps(): any;
|
|
318
|
+
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
319
|
+
label: string;
|
|
320
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
321
|
+
muiName: string;
|
|
322
|
+
};
|
|
323
|
+
type: string;
|
|
324
|
+
checked: boolean;
|
|
325
|
+
onClick: () => void;
|
|
326
|
+
disabled?: undefined;
|
|
327
|
+
subMenu?: undefined;
|
|
328
|
+
} | {
|
|
329
|
+
label: string;
|
|
330
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
331
|
+
muiName: string;
|
|
332
|
+
};
|
|
333
|
+
disabled: boolean;
|
|
334
|
+
subMenu: {
|
|
335
|
+
label: string;
|
|
336
|
+
onClick: () => void;
|
|
337
|
+
}[];
|
|
338
|
+
type?: undefined;
|
|
339
|
+
checked?: undefined;
|
|
340
|
+
onClick?: undefined;
|
|
341
|
+
} | {
|
|
342
|
+
label: string;
|
|
343
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
344
|
+
muiName: string;
|
|
345
|
+
};
|
|
346
|
+
subMenu: {
|
|
347
|
+
label: string;
|
|
348
|
+
onClick: () => void;
|
|
349
|
+
}[];
|
|
350
|
+
type?: undefined;
|
|
351
|
+
checked?: undefined;
|
|
352
|
+
onClick?: undefined;
|
|
353
|
+
disabled?: undefined;
|
|
354
|
+
} | {
|
|
355
|
+
label: string;
|
|
356
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
357
|
+
muiName: string;
|
|
358
|
+
};
|
|
359
|
+
onClick: () => void;
|
|
360
|
+
type?: undefined;
|
|
361
|
+
checked?: undefined;
|
|
362
|
+
disabled?: undefined;
|
|
363
|
+
subMenu?: undefined;
|
|
364
|
+
} | {
|
|
365
|
+
label: string;
|
|
366
|
+
type: string;
|
|
367
|
+
checked: any;
|
|
368
|
+
onClick: () => void;
|
|
369
|
+
icon?: undefined;
|
|
370
|
+
disabled?: undefined;
|
|
371
|
+
subMenu?: undefined;
|
|
372
|
+
})[];
|
|
373
|
+
} & {
|
|
374
|
+
afterAttach(): void;
|
|
375
|
+
} & {
|
|
376
|
+
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
377
|
+
} & {
|
|
378
|
+
afterCreate(): void;
|
|
379
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
380
|
+
export default stateModelFactory;
|