@jbrowse/plugin-dotplot-view 2.17.0 → 2.18.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/ComparativeRenderer/index.d.ts +3 -8
- package/dist/ComparativeRenderer/index.js +3 -8
- package/dist/DotplotDisplay/components/DotplotDisplay.d.ts +1 -1
- package/dist/DotplotDisplay/components/DotplotDisplay.js +1 -1
- package/dist/DotplotDisplay/index.d.ts +1 -7
- package/dist/DotplotDisplay/index.js +2 -12
- package/dist/DotplotDisplay/renderDotplotBlock.d.ts +1 -1
- package/dist/DotplotDisplay/renderDotplotBlock.js +3 -9
- package/dist/DotplotDisplay/stateModelFactory.d.ts +7 -43
- package/dist/DotplotDisplay/stateModelFactory.js +55 -97
- package/dist/DotplotReadVsRef/DotplotReadVsRef.d.ts +2 -2
- package/dist/DotplotReadVsRef/DotplotReadVsRef.js +13 -14
- package/dist/DotplotReadVsRef/index.d.ts +1 -1
- package/dist/DotplotReadVsRef/index.js +0 -2
- package/dist/DotplotRenderer/ComparativeRenderRpc.d.ts +3 -8
- package/dist/DotplotRenderer/ComparativeRenderRpc.js +3 -8
- package/dist/DotplotRenderer/DotplotRenderer.d.ts +5 -4
- package/dist/DotplotRenderer/DotplotRenderer.js +1 -2
- package/dist/DotplotRenderer/components/DotplotRendering.d.ts +1 -1
- package/dist/DotplotRenderer/configSchema.d.ts +0 -21
- package/dist/DotplotRenderer/configSchema.js +2 -27
- package/dist/DotplotRenderer/drawDotplot.d.ts +3 -3
- package/dist/DotplotRenderer/drawDotplot.js +3 -6
- package/dist/DotplotRenderer/index.d.ts +1 -1
- package/dist/DotplotRenderer/index.js +1 -1
- package/dist/DotplotView/1dview.d.ts +2 -77
- package/dist/DotplotView/1dview.js +4 -33
- package/dist/DotplotView/components/Axes.d.ts +1 -1
- package/dist/DotplotView/components/Axes.js +3 -4
- package/dist/DotplotView/components/CursorIcon.d.ts +1 -1
- package/dist/DotplotView/components/CursorIcon.js +1 -1
- package/dist/DotplotView/components/DotplotControls.d.ts +1 -1
- package/dist/DotplotView/components/DotplotControls.js +5 -6
- package/dist/DotplotView/components/DotplotTooltipClick.d.ts +1 -1
- package/dist/DotplotView/components/DotplotTooltipClick.js +1 -1
- package/dist/DotplotView/components/DotplotTooltipMouseover.d.ts +1 -1
- package/dist/DotplotView/components/DotplotTooltipMouseover.js +1 -1
- package/dist/DotplotView/components/DotplotView.d.ts +1 -1
- package/dist/DotplotView/components/DotplotView.js +5 -12
- package/dist/DotplotView/components/DotplotWarnings.d.ts +1 -1
- package/dist/DotplotView/components/DotplotWarnings.js +0 -1
- package/dist/DotplotView/components/ExportSvgDialog.d.ts +1 -1
- package/dist/DotplotView/components/ExportSvgDialog.js +2 -4
- package/dist/DotplotView/components/Grid.d.ts +1 -1
- package/dist/DotplotView/components/Grid.js +2 -4
- package/dist/DotplotView/components/Header.d.ts +1 -1
- package/dist/DotplotView/components/Header.js +2 -2
- package/dist/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +2 -2
- package/dist/DotplotView/components/ImportForm/ImportCustomTrack.js +1 -1
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +1 -1
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +5 -10
- package/dist/DotplotView/components/ImportForm/index.d.ts +1 -1
- package/dist/DotplotView/components/ImportForm/index.js +4 -5
- package/dist/DotplotView/components/ImportForm/util.js +1 -3
- package/dist/DotplotView/components/PanButtons.d.ts +1 -1
- package/dist/DotplotView/components/PanButtons.js +3 -4
- package/dist/DotplotView/components/WarningDialog.d.ts +6 -5
- package/dist/DotplotView/components/WarningDialog.js +10 -6
- package/dist/DotplotView/components/util.d.ts +2 -7
- package/dist/DotplotView/components/util.js +0 -5
- package/dist/DotplotView/index.d.ts +1 -1
- package/dist/DotplotView/index.js +0 -1
- package/dist/DotplotView/model.d.ts +5 -129
- package/dist/DotplotView/model.js +6 -192
- package/dist/DotplotView/svgcomponents/SVGBackground.js +1 -1
- package/dist/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js +5 -9
- package/dist/LaunchDotplotView.d.ts +1 -1
- package/dist/LaunchDotplotView.js +1 -4
- package/dist/ServerSideRenderedBlockContent.d.ts +2 -1
- package/dist/ServerSideRenderedBlockContent.js +2 -3
- package/dist/ServerSideSyntenyRendering.d.ts +0 -4
- package/dist/ServerSideSyntenyRendering.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -6
- package/dist/util.d.ts +1 -1
- package/esm/ComparativeRenderer/index.d.ts +3 -8
- package/esm/ComparativeRenderer/index.js +3 -8
- package/esm/DotplotDisplay/components/DotplotDisplay.d.ts +1 -1
- package/esm/DotplotDisplay/components/DotplotDisplay.js +1 -1
- package/esm/DotplotDisplay/index.d.ts +1 -7
- package/esm/DotplotDisplay/index.js +2 -12
- package/esm/DotplotDisplay/renderDotplotBlock.d.ts +1 -1
- package/esm/DotplotDisplay/renderDotplotBlock.js +3 -6
- package/esm/DotplotDisplay/stateModelFactory.d.ts +7 -43
- package/esm/DotplotDisplay/stateModelFactory.js +56 -98
- package/esm/DotplotReadVsRef/DotplotReadVsRef.d.ts +2 -2
- package/esm/DotplotReadVsRef/DotplotReadVsRef.js +15 -16
- package/esm/DotplotReadVsRef/index.d.ts +1 -1
- package/esm/DotplotReadVsRef/index.js +0 -2
- package/esm/DotplotRenderer/ComparativeRenderRpc.d.ts +3 -8
- package/esm/DotplotRenderer/ComparativeRenderRpc.js +3 -8
- package/esm/DotplotRenderer/DotplotRenderer.d.ts +5 -4
- package/esm/DotplotRenderer/DotplotRenderer.js +1 -2
- package/esm/DotplotRenderer/components/DotplotRendering.d.ts +1 -1
- package/esm/DotplotRenderer/configSchema.d.ts +0 -21
- package/esm/DotplotRenderer/configSchema.js +2 -27
- package/esm/DotplotRenderer/drawDotplot.d.ts +3 -3
- package/esm/DotplotRenderer/drawDotplot.js +4 -7
- package/esm/DotplotRenderer/index.d.ts +1 -1
- package/esm/DotplotRenderer/index.js +1 -1
- package/esm/DotplotView/1dview.d.ts +2 -77
- package/esm/DotplotView/1dview.js +4 -33
- package/esm/DotplotView/components/Axes.d.ts +1 -1
- package/esm/DotplotView/components/Axes.js +3 -4
- package/esm/DotplotView/components/CursorIcon.d.ts +1 -1
- package/esm/DotplotView/components/CursorIcon.js +1 -1
- package/esm/DotplotView/components/DotplotControls.d.ts +1 -1
- package/esm/DotplotView/components/DotplotControls.js +5 -6
- package/esm/DotplotView/components/DotplotTooltipClick.d.ts +1 -1
- package/esm/DotplotView/components/DotplotTooltipClick.js +1 -1
- package/esm/DotplotView/components/DotplotTooltipMouseover.d.ts +1 -1
- package/esm/DotplotView/components/DotplotTooltipMouseover.js +1 -1
- package/esm/DotplotView/components/DotplotView.d.ts +1 -1
- package/esm/DotplotView/components/DotplotView.js +6 -13
- package/esm/DotplotView/components/DotplotWarnings.d.ts +1 -1
- package/esm/DotplotView/components/DotplotWarnings.js +0 -1
- package/esm/DotplotView/components/ExportSvgDialog.d.ts +1 -1
- package/esm/DotplotView/components/ExportSvgDialog.js +2 -4
- package/esm/DotplotView/components/Grid.d.ts +1 -1
- package/esm/DotplotView/components/Grid.js +2 -4
- package/esm/DotplotView/components/Header.d.ts +1 -1
- package/esm/DotplotView/components/Header.js +2 -2
- package/esm/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +2 -2
- package/esm/DotplotView/components/ImportForm/ImportCustomTrack.js +2 -2
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +1 -1
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +6 -11
- package/esm/DotplotView/components/ImportForm/index.d.ts +1 -1
- package/esm/DotplotView/components/ImportForm/index.js +6 -7
- package/esm/DotplotView/components/ImportForm/util.js +1 -3
- package/esm/DotplotView/components/PanButtons.d.ts +1 -1
- package/esm/DotplotView/components/PanButtons.js +3 -4
- package/esm/DotplotView/components/WarningDialog.d.ts +6 -5
- package/esm/DotplotView/components/WarningDialog.js +10 -6
- package/esm/DotplotView/components/util.d.ts +2 -7
- package/esm/DotplotView/components/util.js +0 -5
- package/esm/DotplotView/index.d.ts +1 -1
- package/esm/DotplotView/index.js +0 -1
- package/esm/DotplotView/model.d.ts +5 -129
- package/esm/DotplotView/model.js +7 -193
- package/esm/DotplotView/svgcomponents/SVGBackground.js +1 -1
- package/esm/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js +5 -9
- package/esm/LaunchDotplotView.d.ts +1 -1
- package/esm/LaunchDotplotView.js +1 -4
- package/esm/ServerSideRenderedBlockContent.d.ts +2 -1
- package/esm/ServerSideRenderedBlockContent.js +2 -3
- package/esm/ServerSideSyntenyRendering.d.ts +0 -4
- package/esm/ServerSideSyntenyRendering.js +2 -2
- package/esm/index.d.ts +1 -1
- package/esm/index.js +3 -6
- package/esm/util.d.ts +1 -1
- package/package.json +2 -4
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
3
|
-
import { getTrackName } from '@jbrowse/core/util/tracks';
|
|
4
|
-
import { getSession } from '@jbrowse/core/util';
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { readConfObject } from '@jbrowse/core/configuration';
|
|
5
3
|
import { ErrorMessage } from '@jbrowse/core/ui';
|
|
6
|
-
import { readConfObject, } from '@jbrowse/core/configuration';
|
|
7
|
-
import { observer } from 'mobx-react';
|
|
8
|
-
// icons
|
|
9
4
|
import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons';
|
|
5
|
+
import { getSession } from '@jbrowse/core/util';
|
|
6
|
+
import { getTrackName } from '@jbrowse/core/util/tracks';
|
|
7
|
+
import { MenuItem, Paper, Select, Typography } from '@mui/material';
|
|
8
|
+
import { observer } from 'mobx-react';
|
|
10
9
|
function f(track, assembly1, assembly2) {
|
|
11
10
|
const assemblyNames = readConfObject(track, 'assemblyNames');
|
|
12
11
|
return (assemblyNames.includes(assembly1) &&
|
|
@@ -25,13 +24,9 @@ const Selector = observer(({ model, assembly1, assembly2, setShowTrackId, }) =>
|
|
|
25
24
|
const resetTrack = ((_a = filteredTracks[0]) === null || _a === void 0 ? void 0 : _a.trackId) || '';
|
|
26
25
|
const [value, setValue] = useState(resetTrack);
|
|
27
26
|
useEffect(() => {
|
|
28
|
-
// if assembly1/assembly2 changes, then we will want to use this effect to change
|
|
29
|
-
// the state of the useState because it otherwise gets locked to a stale value
|
|
30
27
|
setValue(resetTrack);
|
|
31
28
|
}, [resetTrack]);
|
|
32
29
|
useEffect(() => {
|
|
33
|
-
// sets track data in a useEffect because the initial load is needed as well as
|
|
34
|
-
// onChange's to the select box
|
|
35
30
|
setShowTrackId(value);
|
|
36
31
|
}, [value, setShowTrackId]);
|
|
37
32
|
return (React.createElement(Paper, { style: { padding: 12 } },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
3
|
-
import { makeStyles } from 'tss-react/mui';
|
|
4
|
-
import { observer } from 'mobx-react';
|
|
5
|
-
import { transaction } from 'mobx';
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { AssemblySelector, ErrorMessage } from '@jbrowse/core/ui';
|
|
6
3
|
import { getSession, isSessionWithAddTracks } from '@jbrowse/core/util';
|
|
7
|
-
import {
|
|
4
|
+
import { Button, Container, FormControl, FormControlLabel, FormLabel, Grid, Paper, Radio, RadioGroup, Typography, } from '@mui/material';
|
|
5
|
+
import { transaction } from 'mobx';
|
|
6
|
+
import { observer } from 'mobx-react';
|
|
7
|
+
import { makeStyles } from 'tss-react/mui';
|
|
8
8
|
import ImportCustomTrack from './ImportCustomTrack';
|
|
9
9
|
import ImportSyntenyTrackSelector from './ImportSyntenyTrackSelector';
|
|
10
10
|
const useStyles = makeStyles()(theme => ({
|
|
@@ -73,7 +73,6 @@ const DotplotImportForm = observer(({ model }) => {
|
|
|
73
73
|
setError(e);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
// this is a combination of any displayed error message we have
|
|
77
76
|
const displayError = error || model.error;
|
|
78
77
|
return (React.createElement(Container, { className: classes.importFormContainer },
|
|
79
78
|
displayError ? React.createElement(ErrorMessage, { error: displayError }) : null,
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IconButton, Paper } from '@mui/material';
|
|
3
|
-
import { makeStyles } from 'tss-react/mui';
|
|
4
|
-
import { observer } from 'mobx-react';
|
|
5
|
-
// icons
|
|
6
2
|
import ArrowDropDown from '@mui/icons-material/ArrowDropDown';
|
|
7
3
|
import ArrowDropUp from '@mui/icons-material/ArrowDropUp';
|
|
8
4
|
import ArrowLeft from '@mui/icons-material/ArrowLeft';
|
|
9
5
|
import ArrowRight from '@mui/icons-material/ArrowRight';
|
|
10
6
|
import ZoomIn from '@mui/icons-material/ZoomIn';
|
|
11
7
|
import ZoomOut from '@mui/icons-material/ZoomOut';
|
|
8
|
+
import { IconButton, Paper } from '@mui/material';
|
|
9
|
+
import { observer } from 'mobx-react';
|
|
10
|
+
import { makeStyles } from 'tss-react/mui';
|
|
12
11
|
const useStyles = makeStyles()({
|
|
13
12
|
dpad: {
|
|
14
13
|
display: 'grid',
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
+
interface Warning {
|
|
4
|
+
message: string;
|
|
5
|
+
effect: string;
|
|
6
|
+
}
|
|
3
7
|
interface TrackWarning {
|
|
4
8
|
configuration: AnyConfigurationModel;
|
|
5
9
|
displays: {
|
|
6
|
-
warnings:
|
|
7
|
-
message: string;
|
|
8
|
-
effect: string;
|
|
9
|
-
}[];
|
|
10
|
+
warnings: Warning[];
|
|
10
11
|
}[];
|
|
11
12
|
}
|
|
12
13
|
declare const WarningDialog: ({ trackWarnings, handleClose, }: {
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { getConf } from '@jbrowse/core/configuration';
|
|
3
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
4
|
+
import { measureGridWidth } from '@jbrowse/core/util';
|
|
5
|
+
import { DialogContent, DialogContentText } from '@mui/material';
|
|
6
|
+
import { DataGrid } from '@mui/x-data-grid';
|
|
4
7
|
import { observer } from 'mobx-react';
|
|
5
8
|
import { makeStyles } from 'tss-react/mui';
|
|
6
|
-
import { DataGrid } from '@mui/x-data-grid';
|
|
7
|
-
import { getConf } from '@jbrowse/core/configuration';
|
|
8
|
-
import { measureGridWidth } from '@jbrowse/core/util';
|
|
9
9
|
const useStyles = makeStyles()({
|
|
10
10
|
content: {
|
|
11
11
|
minWidth: 600,
|
|
12
12
|
},
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
const { classes } = useStyles();
|
|
14
|
+
function getTrackWarnings({ trackWarnings, }) {
|
|
16
15
|
const rows = [];
|
|
17
16
|
for (let i = 0; i < trackWarnings.length; i++) {
|
|
18
17
|
const track = trackWarnings[i];
|
|
@@ -23,6 +22,11 @@ const WarningDialog = observer(function WarningDialog({ trackWarnings, handleClo
|
|
|
23
22
|
rows.push({ name, ...warning, id: `${i}_${j}` });
|
|
24
23
|
}
|
|
25
24
|
}
|
|
25
|
+
return rows;
|
|
26
|
+
}
|
|
27
|
+
const WarningDialog = observer(function WarningDialog({ trackWarnings, handleClose, }) {
|
|
28
|
+
const { classes } = useStyles();
|
|
29
|
+
const rows = getTrackWarnings({ trackWarnings });
|
|
26
30
|
const columns = [
|
|
27
31
|
{ field: 'name' },
|
|
28
32
|
{ field: 'message', width: measureGridWidth(rows.map(r => r.message)) },
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Dotplot1DViewModel } from '../model';
|
|
2
|
+
import type { BaseBlock } from '@jbrowse/core/util/blockTypes';
|
|
3
3
|
export declare function locstr(px: number, view: Dotplot1DViewModel, includeAsm?: boolean): string;
|
|
4
4
|
export declare function getBlockLabelKeysToHide(blocks: BaseBlock[], length: number, viewOffsetPx: number): Set<string>;
|
|
5
|
-
/**
|
|
6
|
-
* Given a scale ( bp/px ) and minimum distances (px) between major and minor
|
|
7
|
-
* gridlines, return an object like `{ majorPitch: bp, minorPitch: bp }` giving
|
|
8
|
-
* the gridline pitches to use.
|
|
9
|
-
*/
|
|
10
5
|
export declare function chooseGridPitch(scale: number, minMajorPitchPx: number, minMinorPitchPx: number): {
|
|
11
6
|
majorPitch: number;
|
|
12
7
|
minorPitch: number;
|
|
@@ -25,11 +25,6 @@ export function getBlockLabelKeysToHide(blocks, length, viewOffsetPx) {
|
|
|
25
25
|
}
|
|
26
26
|
return blockLabelKeysToHide;
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Given a scale ( bp/px ) and minimum distances (px) between major and minor
|
|
30
|
-
* gridlines, return an object like `{ majorPitch: bp, minorPitch: bp }` giving
|
|
31
|
-
* the gridline pitches to use.
|
|
32
|
-
*/
|
|
33
28
|
export function chooseGridPitch(scale, minMajorPitchPx, minMinorPitchPx) {
|
|
34
29
|
scale = Math.abs(scale);
|
|
35
30
|
const minMajorPitchBp = minMajorPitchPx * scale;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function DotplotViewF(pluginManager: PluginManager): void;
|
package/esm/DotplotView/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
3
|
-
import { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel';
|
|
4
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type React from 'react';
|
|
5
2
|
import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons';
|
|
3
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
4
|
+
import type { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel';
|
|
5
|
+
import type { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
6
6
|
type Coord = [number, number];
|
|
7
7
|
export interface ExportSvgOptions {
|
|
8
8
|
rasterizeLayers?: boolean;
|
|
@@ -12,12 +12,6 @@ export interface ExportSvgOptions {
|
|
|
12
12
|
}>;
|
|
13
13
|
themeName?: string;
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* #stateModel DotplotView
|
|
17
|
-
* #category view
|
|
18
|
-
* extends
|
|
19
|
-
* - [BaseViewModel](../baseviewmodel)
|
|
20
|
-
*/
|
|
21
15
|
export default function stateModelFactory(pm: PluginManager): import("mobx-state-tree").IModelType<{
|
|
22
16
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
23
17
|
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -221,57 +215,27 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
221
215
|
borderX: number;
|
|
222
216
|
borderY: number;
|
|
223
217
|
} & {
|
|
224
|
-
/**
|
|
225
|
-
* #getter
|
|
226
|
-
*/
|
|
227
218
|
readonly width: number;
|
|
228
219
|
} & {
|
|
229
|
-
/**
|
|
230
|
-
* #getter
|
|
231
|
-
*/
|
|
232
220
|
readonly assemblyErrors: string;
|
|
233
|
-
/**
|
|
234
|
-
* #getter
|
|
235
|
-
*/
|
|
236
221
|
readonly assembliesInitialized: boolean;
|
|
237
222
|
} & {
|
|
238
|
-
/**
|
|
239
|
-
* #getter
|
|
240
|
-
*/
|
|
241
223
|
readonly initialized: boolean;
|
|
242
|
-
/**
|
|
243
|
-
* #getter
|
|
244
|
-
*/
|
|
245
224
|
readonly hticks: {
|
|
246
225
|
type: string;
|
|
247
226
|
base: number;
|
|
248
227
|
index: number;
|
|
249
228
|
refName: string;
|
|
250
229
|
}[];
|
|
251
|
-
/**
|
|
252
|
-
* #getter
|
|
253
|
-
*/
|
|
254
230
|
readonly vticks: {
|
|
255
231
|
type: string;
|
|
256
232
|
base: number;
|
|
257
233
|
index: number;
|
|
258
234
|
refName: string;
|
|
259
235
|
}[];
|
|
260
|
-
/**
|
|
261
|
-
* #getter
|
|
262
|
-
*/
|
|
263
236
|
readonly loading: boolean;
|
|
264
|
-
/**
|
|
265
|
-
* #getter
|
|
266
|
-
*/
|
|
267
237
|
readonly viewWidth: number;
|
|
268
|
-
/**
|
|
269
|
-
* #getter
|
|
270
|
-
*/
|
|
271
238
|
readonly viewHeight: number;
|
|
272
|
-
/**
|
|
273
|
-
* #getter
|
|
274
|
-
*/
|
|
275
239
|
readonly views: ({
|
|
276
240
|
id: string;
|
|
277
241
|
displayedRegions: import("@jbrowse/core/util").Region[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("@jbrowse/core/util").Region[], import("@jbrowse/core/util").Region[], import("@jbrowse/core/util").Region[]>, [undefined]>>;
|
|
@@ -403,87 +367,26 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
403
367
|
} & {
|
|
404
368
|
readonly width: any;
|
|
405
369
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>)[];
|
|
406
|
-
/**
|
|
407
|
-
* #method
|
|
408
|
-
*/
|
|
409
370
|
renderProps(): any;
|
|
410
371
|
} & {
|
|
411
|
-
/**
|
|
412
|
-
* #action
|
|
413
|
-
*/
|
|
414
372
|
setShowPanButtons(flag: boolean): void;
|
|
415
|
-
/**
|
|
416
|
-
* #action
|
|
417
|
-
*/
|
|
418
373
|
setWheelMode(str: string): void;
|
|
419
|
-
/**
|
|
420
|
-
* #action
|
|
421
|
-
*/
|
|
422
374
|
setCursorMode(str: string): void;
|
|
423
|
-
/**
|
|
424
|
-
* #action
|
|
425
|
-
*/
|
|
426
375
|
setDrawCigar(flag: boolean): void;
|
|
427
|
-
/**
|
|
428
|
-
* #action
|
|
429
|
-
* returns to the import form
|
|
430
|
-
*/
|
|
431
376
|
clearView(): void;
|
|
432
|
-
/**
|
|
433
|
-
* #action
|
|
434
|
-
*/
|
|
435
377
|
setBorderX(n: number): void;
|
|
436
|
-
/**
|
|
437
|
-
* #action
|
|
438
|
-
*/
|
|
439
378
|
setBorderY(n: number): void;
|
|
440
|
-
/**
|
|
441
|
-
* #action
|
|
442
|
-
*/
|
|
443
379
|
setWidth(newWidth: number): number;
|
|
444
|
-
/**
|
|
445
|
-
* #action
|
|
446
|
-
*/
|
|
447
380
|
setHeight(newHeight: number): number;
|
|
448
|
-
/**
|
|
449
|
-
* #action
|
|
450
|
-
*/
|
|
451
381
|
setError(e: unknown): void;
|
|
452
|
-
/**
|
|
453
|
-
* #action
|
|
454
|
-
*/
|
|
455
382
|
zoomOut(): void;
|
|
456
|
-
/**
|
|
457
|
-
* #action
|
|
458
|
-
*/
|
|
459
383
|
zoomIn(): void;
|
|
460
|
-
/**
|
|
461
|
-
* #action
|
|
462
|
-
*/
|
|
463
384
|
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
464
|
-
/**
|
|
465
|
-
* #action
|
|
466
|
-
*/
|
|
467
385
|
showTrack(trackId: string, initialSnapshot?: {}): void;
|
|
468
|
-
/**
|
|
469
|
-
* #action
|
|
470
|
-
*/
|
|
471
386
|
hideTrack(trackId: string): number;
|
|
472
|
-
/**
|
|
473
|
-
* #action
|
|
474
|
-
*/
|
|
475
387
|
toggleTrack(trackId: string): boolean;
|
|
476
|
-
/**
|
|
477
|
-
* #action
|
|
478
|
-
*/
|
|
479
388
|
setAssemblyNames(target: string, query: string): void;
|
|
480
|
-
/**
|
|
481
|
-
* #action
|
|
482
|
-
*/
|
|
483
389
|
setViews(arr: SnapshotIn<Base1DViewModel>[]): void;
|
|
484
|
-
/**
|
|
485
|
-
* #action
|
|
486
|
-
*/
|
|
487
390
|
getCoords(mousedown: Coord, mouseup: Coord): {
|
|
488
391
|
coord: number;
|
|
489
392
|
index: number;
|
|
@@ -495,40 +398,16 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
495
398
|
end: number;
|
|
496
399
|
reversed?: boolean;
|
|
497
400
|
}[] | undefined;
|
|
498
|
-
/**
|
|
499
|
-
* #action
|
|
500
|
-
* zooms into clicked and dragged region
|
|
501
|
-
*/
|
|
502
401
|
zoomInToMouseCoords(mousedown: Coord, mouseup: Coord): void;
|
|
503
|
-
/**
|
|
504
|
-
* #action
|
|
505
|
-
*/
|
|
506
402
|
showAllRegions(): void;
|
|
507
|
-
/**
|
|
508
|
-
* #action
|
|
509
|
-
* creates a linear synteny view from the clicked and dragged region
|
|
510
|
-
*/
|
|
511
403
|
onDotplotView(mousedown: Coord, mouseup: Coord): void;
|
|
512
404
|
} & {
|
|
513
|
-
/**
|
|
514
|
-
* #action
|
|
515
|
-
* creates an svg export and save using FileSaver
|
|
516
|
-
*/
|
|
517
405
|
exportSvg(opts?: ExportSvgOptions): Promise<void>;
|
|
518
406
|
beforeDestroy(): void;
|
|
519
407
|
afterAttach(): void;
|
|
520
|
-
/**
|
|
521
|
-
* #action
|
|
522
|
-
*/
|
|
523
408
|
squareView(): void;
|
|
524
|
-
/**
|
|
525
|
-
* #action
|
|
526
|
-
*/
|
|
527
409
|
squareViewProportional(): void;
|
|
528
410
|
} & {
|
|
529
|
-
/**
|
|
530
|
-
* #method
|
|
531
|
-
*/
|
|
532
411
|
menuItems(): ({
|
|
533
412
|
label: string;
|
|
534
413
|
onClick: () => void;
|
|
@@ -544,11 +423,8 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
544
423
|
onClick: () => import("@jbrowse/core/util").Widget;
|
|
545
424
|
icon: typeof TrackSelectorIcon;
|
|
546
425
|
})[];
|
|
547
|
-
/**
|
|
548
|
-
* #getter
|
|
549
|
-
*/
|
|
550
426
|
readonly error: unknown;
|
|
551
427
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
552
428
|
export type DotplotViewStateModel = ReturnType<typeof stateModelFactory>;
|
|
553
429
|
export type DotplotViewModel = Instance<DotplotViewStateModel>;
|
|
554
|
-
export { type Dotplot1DViewModel
|
|
430
|
+
export { Dotplot1DView, type Dotplot1DViewModel } from './1dview';
|