@jbrowse/plugin-dotplot-view 2.17.0 → 3.0.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 +2 -3
- package/dist/DotplotDisplay/components/DotplotDisplay.js +7 -12
- 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 +8 -45
- package/dist/DotplotDisplay/stateModelFactory.js +57 -100
- 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 +8 -7
- package/dist/DotplotRenderer/DotplotRenderer.js +18 -9
- package/dist/DotplotRenderer/components/DotplotRendering.d.ts +2 -3
- package/dist/DotplotRenderer/components/DotplotRendering.js +2 -5
- 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 +5 -6
- package/dist/DotplotView/components/Axes.js +26 -40
- package/dist/DotplotView/components/CursorIcon.d.ts +3 -4
- package/dist/DotplotView/components/CursorIcon.js +3 -5
- package/dist/DotplotView/components/DotplotControls.d.ts +2 -3
- package/dist/DotplotView/components/DotplotControls.js +94 -97
- package/dist/DotplotView/components/DotplotTooltipClick.d.ts +2 -3
- package/dist/DotplotView/components/DotplotTooltipClick.js +3 -7
- package/dist/DotplotView/components/DotplotTooltipMouseover.d.ts +2 -3
- package/dist/DotplotView/components/DotplotTooltipMouseover.js +4 -8
- package/dist/DotplotView/components/DotplotView.d.ts +2 -3
- package/dist/DotplotView/components/DotplotView.js +80 -92
- package/dist/DotplotView/components/DotplotWarnings.d.ts +2 -3
- package/dist/DotplotView/components/DotplotWarnings.js +26 -21
- package/dist/DotplotView/components/ExportSvgDialog.d.ts +2 -3
- package/dist/DotplotView/components/ExportSvgDialog.js +32 -67
- package/dist/DotplotView/components/Grid.d.ts +3 -4
- package/dist/DotplotView/components/Grid.js +19 -32
- package/dist/DotplotView/components/Header.d.ts +2 -3
- package/dist/DotplotView/components/Header.js +4 -23
- package/dist/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +7 -0
- package/dist/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +129 -0
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +4 -6
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +17 -48
- package/dist/DotplotView/components/ImportForm/TrackSelector.d.ts +7 -0
- package/dist/DotplotView/components/ImportForm/TrackSelector.js +23 -0
- package/dist/DotplotView/components/ImportForm/getAdapter.d.ts +117 -0
- package/dist/DotplotView/components/ImportForm/getAdapter.js +68 -0
- package/dist/DotplotView/components/ImportForm/index.d.ts +3 -4
- package/dist/DotplotView/components/ImportForm/index.js +47 -97
- package/dist/DotplotView/components/ImportForm/util.js +1 -3
- package/dist/DotplotView/components/PanButtons.d.ts +2 -3
- package/dist/DotplotView/components/PanButtons.js +17 -36
- package/dist/DotplotView/components/WarningDialog.d.ts +7 -7
- package/dist/DotplotView/components/WarningDialog.js +12 -15
- 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 +17 -8
- package/dist/DotplotView/model.d.ts +11 -133
- package/dist/DotplotView/model.js +46 -222
- package/dist/DotplotView/svgcomponents/SVGBackground.d.ts +1 -2
- package/dist/DotplotView/svgcomponents/SVGBackground.js +3 -6
- package/dist/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js +6 -24
- package/dist/DotplotView/types.d.ts +12 -0
- package/dist/DotplotView/types.js +2 -0
- package/dist/LaunchDotplotView.d.ts +1 -1
- package/dist/LaunchDotplotView.js +1 -4
- package/dist/ServerSideRenderedBlockContent.d.ts +2 -2
- package/dist/ServerSideRenderedBlockContent.js +11 -37
- package/dist/ServerSideSyntenyRendering.d.ts +1 -6
- package/dist/ServerSideSyntenyRendering.js +4 -26
- 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 +2 -3
- package/esm/DotplotDisplay/components/DotplotDisplay.js +7 -9
- 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 +8 -45
- package/esm/DotplotDisplay/stateModelFactory.js +58 -101
- 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 +8 -7
- package/esm/DotplotRenderer/DotplotRenderer.js +1 -2
- package/esm/DotplotRenderer/components/DotplotRendering.d.ts +2 -3
- package/esm/DotplotRenderer/components/DotplotRendering.js +2 -2
- 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 +5 -6
- package/esm/DotplotView/components/Axes.js +26 -37
- package/esm/DotplotView/components/CursorIcon.d.ts +3 -4
- package/esm/DotplotView/components/CursorIcon.js +3 -5
- package/esm/DotplotView/components/DotplotControls.d.ts +2 -3
- package/esm/DotplotView/components/DotplotControls.js +94 -97
- package/esm/DotplotView/components/DotplotTooltipClick.d.ts +2 -3
- package/esm/DotplotView/components/DotplotTooltipClick.js +3 -7
- package/esm/DotplotView/components/DotplotTooltipMouseover.d.ts +2 -3
- package/esm/DotplotView/components/DotplotTooltipMouseover.js +4 -8
- package/esm/DotplotView/components/DotplotView.d.ts +2 -3
- package/esm/DotplotView/components/DotplotView.js +63 -85
- package/esm/DotplotView/components/DotplotWarnings.d.ts +2 -3
- package/esm/DotplotView/components/DotplotWarnings.js +9 -14
- package/esm/DotplotView/components/ExportSvgDialog.d.ts +2 -3
- package/esm/DotplotView/components/ExportSvgDialog.js +32 -44
- package/esm/DotplotView/components/Grid.d.ts +3 -4
- package/esm/DotplotView/components/Grid.js +19 -29
- package/esm/DotplotView/components/Header.d.ts +2 -3
- package/esm/DotplotView/components/Header.js +4 -23
- package/esm/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +7 -0
- package/esm/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +124 -0
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +4 -6
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +17 -25
- package/esm/DotplotView/components/ImportForm/TrackSelector.d.ts +7 -0
- package/esm/DotplotView/components/ImportForm/TrackSelector.js +18 -0
- package/esm/DotplotView/components/ImportForm/getAdapter.d.ts +117 -0
- package/esm/DotplotView/components/ImportForm/getAdapter.js +65 -0
- package/esm/DotplotView/components/ImportForm/index.d.ts +3 -4
- package/esm/DotplotView/components/ImportForm/index.js +48 -75
- package/esm/DotplotView/components/ImportForm/util.js +1 -3
- package/esm/DotplotView/components/PanButtons.d.ts +2 -3
- package/esm/DotplotView/components/PanButtons.js +17 -36
- package/esm/DotplotView/components/WarningDialog.d.ts +7 -7
- package/esm/DotplotView/components/WarningDialog.js +12 -12
- 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 +11 -133
- package/esm/DotplotView/model.js +30 -216
- package/esm/DotplotView/svgcomponents/SVGBackground.d.ts +1 -2
- package/esm/DotplotView/svgcomponents/SVGBackground.js +3 -3
- package/esm/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js +6 -24
- package/esm/DotplotView/types.d.ts +12 -0
- package/esm/DotplotView/types.js +1 -0
- package/esm/LaunchDotplotView.d.ts +1 -1
- package/esm/LaunchDotplotView.js +1 -4
- package/esm/ServerSideRenderedBlockContent.d.ts +2 -2
- package/esm/ServerSideRenderedBlockContent.js +11 -14
- package/esm/ServerSideSyntenyRendering.d.ts +1 -6
- package/esm/ServerSideSyntenyRendering.js +4 -3
- 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
- package/dist/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +0 -11
- package/dist/DotplotView/components/ImportForm/ImportCustomTrack.js +0 -194
- package/esm/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +0 -11
- package/esm/DotplotView/components/ImportForm/ImportCustomTrack.js +0 -169
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import ComparativeRenderer from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
2
|
+
import type { Dotplot1DViewModel } from '../DotplotView/model';
|
|
3
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
|
+
import type { RenderArgs, RenderArgsDeserialized } from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
5
|
+
import type { Region } from '@jbrowse/core/util';
|
|
5
6
|
export interface DotplotRenderArgsDeserialized extends RenderArgsDeserialized {
|
|
6
7
|
adapterConfig: AnyConfigurationModel;
|
|
7
8
|
height: number;
|
|
@@ -35,7 +36,7 @@ export default class DotplotRenderer extends ComparativeRenderer {
|
|
|
35
36
|
bpPerPxX: number;
|
|
36
37
|
bpPerPxY: number;
|
|
37
38
|
canvasRecordedData: any;
|
|
38
|
-
reactElement?:
|
|
39
|
+
reactElement?: React.ReactElement;
|
|
39
40
|
html?: string;
|
|
40
41
|
} | {
|
|
41
42
|
height: number;
|
|
@@ -44,7 +45,7 @@ export default class DotplotRenderer extends ComparativeRenderer {
|
|
|
44
45
|
offsetY: number;
|
|
45
46
|
bpPerPxX: number;
|
|
46
47
|
bpPerPxY: number;
|
|
47
|
-
reactElement:
|
|
48
|
+
reactElement: import("react/jsx-runtime").JSX.Element;
|
|
48
49
|
html?: string;
|
|
49
50
|
} | {
|
|
50
51
|
height: number;
|
|
@@ -54,7 +55,7 @@ export default class DotplotRenderer extends ComparativeRenderer {
|
|
|
54
55
|
bpPerPxX: number;
|
|
55
56
|
bpPerPxY: number;
|
|
56
57
|
imageData: any;
|
|
57
|
-
reactElement?:
|
|
58
|
+
reactElement?: React.ReactElement;
|
|
58
59
|
html?: string;
|
|
59
60
|
}>;
|
|
60
61
|
}
|
|
@@ -15,20 +15,29 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const util_1 = require("@jbrowse/core/util");
|
|
30
39
|
const ComparativeServerSideRendererType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType"));
|
|
31
|
-
|
|
40
|
+
const util_1 = require("@jbrowse/core/util");
|
|
32
41
|
const model_1 = require("../DotplotView/model");
|
|
33
42
|
class DotplotRenderer extends ComparativeServerSideRendererType_1.default {
|
|
34
43
|
constructor() {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
declare const DotplotRendering: (props: DotplotRenderArgsDeserialized) => React.JSX.Element;
|
|
1
|
+
import type { DotplotRenderArgsDeserialized } from '../DotplotRenderer';
|
|
2
|
+
declare const DotplotRendering: (props: DotplotRenderArgsDeserialized) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default DotplotRendering;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
4
|
const ui_1 = require("@jbrowse/core/ui");
|
|
8
5
|
const mobx_react_1 = require("mobx-react");
|
|
9
6
|
const DotplotRendering = (0, mobx_react_1.observer)(function (props) {
|
|
10
|
-
return
|
|
7
|
+
return (0, jsx_runtime_1.jsx)(ui_1.PrerenderedCanvas, { ...props });
|
|
11
8
|
});
|
|
12
9
|
exports.default = DotplotRendering;
|
|
@@ -1,57 +1,36 @@
|
|
|
1
1
|
declare const _default: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot
|
|
4
|
-
*/
|
|
5
2
|
color: {
|
|
6
3
|
type: string;
|
|
7
4
|
description: string;
|
|
8
5
|
defaultValue: string;
|
|
9
6
|
contextVariable: string[];
|
|
10
7
|
};
|
|
11
|
-
/**
|
|
12
|
-
* #slot
|
|
13
|
-
*/
|
|
14
8
|
posColor: {
|
|
15
9
|
type: string;
|
|
16
10
|
description: string;
|
|
17
11
|
defaultValue: string;
|
|
18
12
|
};
|
|
19
|
-
/**
|
|
20
|
-
* #slot
|
|
21
|
-
*/
|
|
22
13
|
negColor: {
|
|
23
14
|
type: string;
|
|
24
15
|
description: string;
|
|
25
16
|
defaultValue: string;
|
|
26
17
|
};
|
|
27
|
-
/**
|
|
28
|
-
* #slot
|
|
29
|
-
*/
|
|
30
18
|
lineWidth: {
|
|
31
19
|
type: string;
|
|
32
20
|
description: string;
|
|
33
21
|
defaultValue: number;
|
|
34
22
|
};
|
|
35
|
-
/**
|
|
36
|
-
* #slot
|
|
37
|
-
*/
|
|
38
23
|
colorBy: {
|
|
39
24
|
type: string;
|
|
40
25
|
model: import("mobx-state-tree").ISimpleType<string>;
|
|
41
26
|
description: string;
|
|
42
27
|
defaultValue: string;
|
|
43
28
|
};
|
|
44
|
-
/**
|
|
45
|
-
* #slot
|
|
46
|
-
*/
|
|
47
29
|
thresholdsPalette: {
|
|
48
30
|
type: string;
|
|
49
31
|
defaultValue: string[];
|
|
50
32
|
description: string;
|
|
51
33
|
};
|
|
52
|
-
/**
|
|
53
|
-
* #slot
|
|
54
|
-
*/
|
|
55
34
|
thresholds: {
|
|
56
35
|
type: string;
|
|
57
36
|
defaultValue: string[];
|
|
@@ -2,48 +2,29 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
4
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
|
-
|
|
6
|
-
* #config DotplotRenderer
|
|
7
|
-
* #category renderer
|
|
8
|
-
*/
|
|
9
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
|
+
function x() { }
|
|
10
6
|
exports.default = (0, configuration_1.ConfigurationSchema)('DotplotRenderer', {
|
|
11
|
-
/**
|
|
12
|
-
* #slot
|
|
13
|
-
*/
|
|
14
7
|
color: {
|
|
15
8
|
type: 'color',
|
|
16
9
|
description: 'the color of each feature in a synteny, used with colorBy:default',
|
|
17
10
|
defaultValue: '#f0f',
|
|
18
11
|
contextVariable: ['feature'],
|
|
19
12
|
},
|
|
20
|
-
/**
|
|
21
|
-
* #slot
|
|
22
|
-
*/
|
|
23
13
|
posColor: {
|
|
24
14
|
type: 'color',
|
|
25
15
|
description: 'the color for forward alignments, used with colorBy:strand',
|
|
26
16
|
defaultValue: 'blue',
|
|
27
17
|
},
|
|
28
|
-
/**
|
|
29
|
-
* #slot
|
|
30
|
-
*/
|
|
31
18
|
negColor: {
|
|
32
19
|
type: 'color',
|
|
33
20
|
description: 'the color for reverse alignments, used with colorBy:strand',
|
|
34
21
|
defaultValue: 'red',
|
|
35
22
|
},
|
|
36
|
-
/**
|
|
37
|
-
* #slot
|
|
38
|
-
*/
|
|
39
23
|
lineWidth: {
|
|
40
24
|
type: 'number',
|
|
41
25
|
description: 'width of the lines to be drawn',
|
|
42
|
-
defaultValue: 2.5,
|
|
26
|
+
defaultValue: 2.5,
|
|
43
27
|
},
|
|
44
|
-
/**
|
|
45
|
-
* #slot
|
|
46
|
-
*/
|
|
47
28
|
colorBy: {
|
|
48
29
|
type: 'stringEnum',
|
|
49
30
|
model: mobx_state_tree_1.types.enumeration('colorBy', [
|
|
@@ -63,17 +44,11 @@ exports.default = (0, configuration_1.ConfigurationSchema)('DotplotRenderer', {
|
|
|
63
44
|
</ul>`,
|
|
64
45
|
defaultValue: 'default',
|
|
65
46
|
},
|
|
66
|
-
/**
|
|
67
|
-
* #slot
|
|
68
|
-
*/
|
|
69
47
|
thresholdsPalette: {
|
|
70
48
|
type: 'stringArray',
|
|
71
49
|
defaultValue: ['#094b09', '#2ebd40', '#d5670b', '#ffd84b'],
|
|
72
50
|
description: 'threshold colors, used with colorBy:identity',
|
|
73
51
|
},
|
|
74
|
-
/**
|
|
75
|
-
* #slot
|
|
76
|
-
*/
|
|
77
52
|
thresholds: {
|
|
78
53
|
type: 'stringArray',
|
|
79
54
|
defaultValue: ['0.75', '0.5', '0.25', '0'],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { Dotplot1DViewModel } from '../DotplotView/model';
|
|
2
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
+
import type { RenderArgsDeserialized } from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
4
4
|
export interface DotplotRenderArgsDeserialized extends RenderArgsDeserialized {
|
|
5
5
|
adapterConfig: AnyConfigurationModel;
|
|
6
6
|
height: number;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.drawDotplot = drawDotplot;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
+
const ui_1 = require("@jbrowse/core/ui");
|
|
5
6
|
const Base1DUtils_1 = require("@jbrowse/core/util/Base1DUtils");
|
|
6
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
7
7
|
const plugin_alignments_1 = require("@jbrowse/plugin-alignments");
|
|
8
|
-
const
|
|
8
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
9
9
|
const { parseCigar } = plugin_alignments_1.MismatchParser;
|
|
10
10
|
const r = 'fell outside of range due to CIGAR string';
|
|
11
11
|
const lt = '(less than min coordinate of feature)';
|
|
12
12
|
const gt = '(greater than max coordinate of feature)';
|
|
13
|
-
const fudgeFactor = 1;
|
|
13
|
+
const fudgeFactor = 1;
|
|
14
14
|
function drawCir(ctx, x, y, r = 1) {
|
|
15
15
|
ctx.beginPath();
|
|
16
16
|
ctx.arc(x, y, r / 2, 0, 2 * Math.PI);
|
|
@@ -33,8 +33,6 @@ async function drawDotplot(ctx, props) {
|
|
|
33
33
|
const db2 = (_b = vview.dynamicBlocks.contentBlocks[0]) === null || _b === void 0 ? void 0 : _b.offsetPx;
|
|
34
34
|
const warnings = [];
|
|
35
35
|
ctx.lineWidth = lineWidth;
|
|
36
|
-
// we operate on snapshots of these attributes of the hview/vview because
|
|
37
|
-
// it is significantly faster than accessing the mobx objects
|
|
38
36
|
const { bpPerPx: hBpPerPx } = hview;
|
|
39
37
|
const { bpPerPx: vBpPerPx } = vview;
|
|
40
38
|
function clampWithWarnX(num, min, max, feature) {
|
|
@@ -177,7 +175,6 @@ async function drawDotplot(ctx, props) {
|
|
|
177
175
|
}
|
|
178
176
|
currX = clampWithWarnX(currX, b1, b2, feature);
|
|
179
177
|
currY = clampWithWarnY(currY, e1, e2, feature);
|
|
180
|
-
// only draw a line segment if it is bigger than 0.5px
|
|
181
178
|
if (Math.abs(currX - lastDrawnX) > 0.5 ||
|
|
182
179
|
Math.abs(currY - lastDrawnY) > 0.5) {
|
|
183
180
|
ctx.lineTo(currX, height - currY);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function DotplotRendererF(pluginManager: PluginManager): void;
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = DotplotRendererF;
|
|
7
|
-
const DotplotRendering_1 = __importDefault(require("./components/DotplotRendering"));
|
|
8
7
|
const DotplotRenderer_1 = __importDefault(require("./DotplotRenderer"));
|
|
8
|
+
const DotplotRendering_1 = __importDefault(require("./components/DotplotRendering"));
|
|
9
9
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
10
10
|
function DotplotRendererF(pluginManager) {
|
|
11
11
|
pluginManager.addRendererType(() => new DotplotRenderer_1.default({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Instance } from 'mobx-state-tree';
|
|
1
|
+
import type { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const Dotplot1DView: import("mobx-state-tree").IModelType<{
|
|
3
3
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
4
4
|
displayedRegions: 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]>;
|
|
@@ -53,39 +53,14 @@ declare const Dotplot1DView: import("mobx-state-tree").IModelType<{
|
|
|
53
53
|
} & {
|
|
54
54
|
moveTo(start?: import("@jbrowse/core/util/Base1DUtils").BpOffset, end?: import("@jbrowse/core/util/Base1DUtils").BpOffset): void;
|
|
55
55
|
} & {
|
|
56
|
-
/**
|
|
57
|
-
* #action
|
|
58
|
-
*/
|
|
59
56
|
setScaleFactor(n: number): void;
|
|
60
|
-
/**
|
|
61
|
-
* #action
|
|
62
|
-
*/
|
|
63
57
|
center(): void;
|
|
64
58
|
} & {
|
|
65
|
-
/**
|
|
66
|
-
* #getter
|
|
67
|
-
* this uses padding=false and elision=false
|
|
68
|
-
*/
|
|
69
59
|
readonly dynamicBlocks: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
70
|
-
/**
|
|
71
|
-
* #getter
|
|
72
|
-
*/
|
|
73
60
|
readonly scaleFactor: number;
|
|
74
|
-
/**
|
|
75
|
-
* #getter
|
|
76
|
-
*/
|
|
77
61
|
readonly maxBpPerPx: number;
|
|
78
|
-
/**
|
|
79
|
-
* #getter
|
|
80
|
-
*/
|
|
81
62
|
readonly minBpPerPx: number;
|
|
82
|
-
/**
|
|
83
|
-
* #getter
|
|
84
|
-
*/
|
|
85
63
|
readonly maxOffset: number;
|
|
86
|
-
/**
|
|
87
|
-
* #getter
|
|
88
|
-
*/
|
|
89
64
|
readonly minOffset: number;
|
|
90
65
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
91
66
|
declare const DotplotHView: import("mobx-state-tree").IModelType<{
|
|
@@ -142,39 +117,14 @@ declare const DotplotHView: import("mobx-state-tree").IModelType<{
|
|
|
142
117
|
} & {
|
|
143
118
|
moveTo(start?: import("@jbrowse/core/util/Base1DUtils").BpOffset, end?: import("@jbrowse/core/util/Base1DUtils").BpOffset): void;
|
|
144
119
|
} & {
|
|
145
|
-
/**
|
|
146
|
-
* #action
|
|
147
|
-
*/
|
|
148
120
|
setScaleFactor(n: number): void;
|
|
149
|
-
/**
|
|
150
|
-
* #action
|
|
151
|
-
*/
|
|
152
121
|
center(): void;
|
|
153
122
|
} & {
|
|
154
|
-
/**
|
|
155
|
-
* #getter
|
|
156
|
-
* this uses padding=false and elision=false
|
|
157
|
-
*/
|
|
158
123
|
readonly dynamicBlocks: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
159
|
-
/**
|
|
160
|
-
* #getter
|
|
161
|
-
*/
|
|
162
124
|
readonly scaleFactor: number;
|
|
163
|
-
/**
|
|
164
|
-
* #getter
|
|
165
|
-
*/
|
|
166
125
|
readonly maxBpPerPx: number;
|
|
167
|
-
/**
|
|
168
|
-
* #getter
|
|
169
|
-
*/
|
|
170
126
|
readonly minBpPerPx: number;
|
|
171
|
-
/**
|
|
172
|
-
* #getter
|
|
173
|
-
*/
|
|
174
127
|
readonly maxOffset: number;
|
|
175
|
-
/**
|
|
176
|
-
* #getter
|
|
177
|
-
*/
|
|
178
128
|
readonly minOffset: number;
|
|
179
129
|
} & {
|
|
180
130
|
readonly width: any;
|
|
@@ -233,42 +183,17 @@ declare const DotplotVView: import("mobx-state-tree").IModelType<{
|
|
|
233
183
|
} & {
|
|
234
184
|
moveTo(start?: import("@jbrowse/core/util/Base1DUtils").BpOffset, end?: import("@jbrowse/core/util/Base1DUtils").BpOffset): void;
|
|
235
185
|
} & {
|
|
236
|
-
/**
|
|
237
|
-
* #action
|
|
238
|
-
*/
|
|
239
186
|
setScaleFactor(n: number): void;
|
|
240
|
-
/**
|
|
241
|
-
* #action
|
|
242
|
-
*/
|
|
243
187
|
center(): void;
|
|
244
188
|
} & {
|
|
245
|
-
/**
|
|
246
|
-
* #getter
|
|
247
|
-
* this uses padding=false and elision=false
|
|
248
|
-
*/
|
|
249
189
|
readonly dynamicBlocks: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
250
|
-
/**
|
|
251
|
-
* #getter
|
|
252
|
-
*/
|
|
253
190
|
readonly scaleFactor: number;
|
|
254
|
-
/**
|
|
255
|
-
* #getter
|
|
256
|
-
*/
|
|
257
191
|
readonly maxBpPerPx: number;
|
|
258
|
-
/**
|
|
259
|
-
* #getter
|
|
260
|
-
*/
|
|
261
192
|
readonly minBpPerPx: number;
|
|
262
|
-
/**
|
|
263
|
-
* #getter
|
|
264
|
-
*/
|
|
265
193
|
readonly maxOffset: number;
|
|
266
|
-
/**
|
|
267
|
-
* #getter
|
|
268
|
-
*/
|
|
269
194
|
readonly minOffset: number;
|
|
270
195
|
} & {
|
|
271
196
|
readonly width: any;
|
|
272
197
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
273
|
-
export {
|
|
198
|
+
export { Dotplot1DView, DotplotHView, DotplotVView };
|
|
274
199
|
export type Dotplot1DViewModel = Instance<typeof Dotplot1DView>;
|
|
@@ -3,68 +3,39 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
8
|
-
const mobx_1 = require("mobx");
|
|
6
|
+
exports.DotplotVView = exports.DotplotHView = exports.Dotplot1DView = void 0;
|
|
9
7
|
const Base1DViewModel_1 = __importDefault(require("@jbrowse/core/util/Base1DViewModel"));
|
|
10
8
|
const calculateDynamicBlocks_1 = __importDefault(require("@jbrowse/core/util/calculateDynamicBlocks"));
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
9
|
+
const mobx_1 = require("mobx");
|
|
10
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
11
|
+
function x() { }
|
|
16
12
|
const Dotplot1DView = Base1DViewModel_1.default.extend(self => {
|
|
17
13
|
const scaleFactor = mobx_1.observable.box(1);
|
|
18
14
|
return {
|
|
19
15
|
views: {
|
|
20
|
-
/**
|
|
21
|
-
* #getter
|
|
22
|
-
* this uses padding=false and elision=false
|
|
23
|
-
*/
|
|
24
16
|
get dynamicBlocks() {
|
|
25
17
|
return (0, calculateDynamicBlocks_1.default)(self, false, false);
|
|
26
18
|
},
|
|
27
|
-
/**
|
|
28
|
-
* #getter
|
|
29
|
-
*/
|
|
30
19
|
get scaleFactor() {
|
|
31
20
|
return scaleFactor.get();
|
|
32
21
|
},
|
|
33
|
-
/**
|
|
34
|
-
* #getter
|
|
35
|
-
*/
|
|
36
22
|
get maxBpPerPx() {
|
|
37
23
|
return self.totalBp / (self.width - 50);
|
|
38
24
|
},
|
|
39
|
-
/**
|
|
40
|
-
* #getter
|
|
41
|
-
*/
|
|
42
25
|
get minBpPerPx() {
|
|
43
26
|
return 1 / 50;
|
|
44
27
|
},
|
|
45
|
-
/**
|
|
46
|
-
* #getter
|
|
47
|
-
*/
|
|
48
28
|
get maxOffset() {
|
|
49
29
|
return self.displayedRegionsTotalPx - self.width * 0.2;
|
|
50
30
|
},
|
|
51
|
-
/**
|
|
52
|
-
* #getter
|
|
53
|
-
*/
|
|
54
31
|
get minOffset() {
|
|
55
32
|
return -self.width * 0.8;
|
|
56
33
|
},
|
|
57
34
|
},
|
|
58
35
|
actions: {
|
|
59
|
-
/**
|
|
60
|
-
* #action
|
|
61
|
-
*/
|
|
62
36
|
setScaleFactor(n) {
|
|
63
37
|
scaleFactor.set(n);
|
|
64
38
|
},
|
|
65
|
-
/**
|
|
66
|
-
* #action
|
|
67
|
-
*/
|
|
68
39
|
center() {
|
|
69
40
|
const centerBp = self.totalBp / 2;
|
|
70
41
|
const centerPx = centerBp / self.bpPerPx;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DotplotViewModel } from '../model';
|
|
1
|
+
import type { DotplotViewModel } from '../model';
|
|
3
2
|
export declare const HorizontalAxis: ({ model, }: {
|
|
4
3
|
model: DotplotViewModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export declare const HorizontalAxisRaw: ({ model, }: {
|
|
7
6
|
model: DotplotViewModel;
|
|
8
|
-
}) =>
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export declare const VerticalAxis: ({ model, }: {
|
|
10
9
|
model: DotplotViewModel;
|
|
11
|
-
}) =>
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export declare const VerticalAxisRaw: ({ model, }: {
|
|
13
12
|
model: DotplotViewModel;
|
|
14
|
-
}) =>
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.VerticalAxisRaw = exports.VerticalAxis = exports.HorizontalAxisRaw = exports.HorizontalAxis = void 0;
|
|
7
|
-
const
|
|
8
|
-
const mui_1 = require("tss-react/mui");
|
|
9
|
-
const mobx_react_1 = require("mobx-react");
|
|
10
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
5
|
const util_1 = require("@jbrowse/core/util");
|
|
12
6
|
const Base1DUtils_1 = require("@jbrowse/core/util/Base1DUtils");
|
|
13
7
|
const material_1 = require("@mui/material");
|
|
14
|
-
|
|
8
|
+
const mobx_react_1 = require("mobx-react");
|
|
9
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
10
|
+
const mui_1 = require("tss-react/mui");
|
|
15
11
|
const util_2 = require("./util");
|
|
16
12
|
const useStyles = (0, mui_1.makeStyles)()(() => ({
|
|
17
13
|
vtext: {
|
|
@@ -30,8 +26,7 @@ const useStyles = (0, mui_1.makeStyles)()(() => ({
|
|
|
30
26
|
exports.HorizontalAxis = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
31
27
|
const { viewWidth, borderY } = model;
|
|
32
28
|
const { classes } = useStyles();
|
|
33
|
-
return (
|
|
34
|
-
react_1.default.createElement(exports.HorizontalAxisRaw, { model: model })));
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("svg", { width: viewWidth, height: borderY, className: classes.htext, children: (0, jsx_runtime_1.jsx)(exports.HorizontalAxisRaw, { model: model }) }));
|
|
35
30
|
});
|
|
36
31
|
exports.HorizontalAxisRaw = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
37
32
|
const { viewWidth, borderX, borderY, hview, htextRotation, hticks } = model;
|
|
@@ -58,26 +53,21 @@ exports.HorizontalAxisRaw = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
|
58
53
|
})
|
|
59
54
|
.filter(f => f[1] !== undefined)
|
|
60
55
|
.map(f => [f[0], f[1] - offsetPx]);
|
|
61
|
-
return (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
ticks
|
|
72
|
-
.filter(t => t[0].type === 'major')
|
|
73
|
-
.map(([tick, x]) => x > 10 && x < width ? (react_1.default.createElement("text", { x: x - 7, y: 0, transform: `rotate(${htextRotation},${x},0)`, key: `text-${JSON.stringify(tick)}`, fontSize: 11, dominantBaseline: "middle", textAnchor: "end", ...(0, util_1.getFillProps)(theme.palette.text.primary) }, (0, util_1.getTickDisplayStr)(tick.base + 1, bpPerPx))) : null),
|
|
74
|
-
react_1.default.createElement("text", { y: borderY - 12, x: (viewWidth - borderX) / 2, textAnchor: "middle", fontSize: 11, dominantBaseline: "hanging", ...(0, util_1.getFillProps)(theme.palette.text.primary) }, hview.assemblyNames.join(','))));
|
|
56
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [dblocks
|
|
57
|
+
.filter(region => !hide.has(region.key))
|
|
58
|
+
.map(region => {
|
|
59
|
+
const x = region.offsetPx;
|
|
60
|
+
const y = 0;
|
|
61
|
+
const xoff = Math.floor(x - hview.offsetPx);
|
|
62
|
+
return ((0, jsx_runtime_1.jsx)("text", { transform: `rotate(${htextRotation},${xoff},${y})`, x: xoff, y: y + 1, fontSize: 11, dominantBaseline: "hanging", textAnchor: "end", ...(0, util_1.getFillProps)(theme.palette.text.primary), children: region.refName }, JSON.stringify(region)));
|
|
63
|
+
}), ticks.map(([tick, x]) => x > 0 && x < width ? ((0, jsx_runtime_1.jsx)("line", { x1: x, x2: x, y1: 0, y2: tick.type === 'major' ? 6 : 4, strokeWidth: 1, ...(0, util_1.getFillProps)(theme.palette.text.primary) }, `line-${JSON.stringify(tick)}`)) : null), ticks
|
|
64
|
+
.filter(t => t[0].type === 'major')
|
|
65
|
+
.map(([tick, x]) => x > 10 && x < width ? ((0, jsx_runtime_1.jsx)("text", { x: x - 7, y: 0, transform: `rotate(${htextRotation},${x},0)`, fontSize: 11, dominantBaseline: "middle", textAnchor: "end", ...(0, util_1.getFillProps)(theme.palette.text.primary), children: (0, util_1.getTickDisplayStr)(tick.base + 1, bpPerPx) }, `text-${JSON.stringify(tick)}`)) : null), (0, jsx_runtime_1.jsx)("text", { y: borderY - 12, x: (viewWidth - borderX) / 2, textAnchor: "middle", fontSize: 11, dominantBaseline: "hanging", ...(0, util_1.getFillProps)(theme.palette.text.primary), children: hview.assemblyNames.join(',') })] }));
|
|
75
66
|
});
|
|
76
67
|
exports.VerticalAxis = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
77
68
|
const { borderX, viewHeight } = model;
|
|
78
69
|
const { classes } = useStyles();
|
|
79
|
-
return (
|
|
80
|
-
react_1.default.createElement(exports.VerticalAxisRaw, { model: model })));
|
|
70
|
+
return ((0, jsx_runtime_1.jsx)("svg", { className: classes.vtext, width: borderX, height: viewHeight, children: (0, jsx_runtime_1.jsx)(exports.VerticalAxisRaw, { model: model }) }));
|
|
81
71
|
});
|
|
82
72
|
exports.VerticalAxisRaw = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
83
73
|
const { viewHeight, borderX, borderY, vview, vtextRotation, vticks } = model;
|
|
@@ -104,18 +94,14 @@ exports.VerticalAxisRaw = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
|
104
94
|
})
|
|
105
95
|
.filter(f => f[1] !== undefined)
|
|
106
96
|
.map(f => [f[0], f[1] - offsetPx]);
|
|
107
|
-
return (
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
ticks
|
|
118
|
-
.filter(t => t[0].type === 'major')
|
|
119
|
-
.map(([tick, y]) => y > 10 && y < viewHeight ? (react_1.default.createElement("text", { y: viewHeight - y - 3, x: borderX - 7, key: `text-${JSON.stringify(tick)}`, textAnchor: "end", dominantBaseline: "hanging", fontSize: 11, ...(0, util_1.getFillProps)(theme.palette.text.primary) }, (0, util_1.getTickDisplayStr)(tick.base + 1, bpPerPx))) : null),
|
|
120
|
-
react_1.default.createElement("text", { y: (viewHeight - borderY) / 2, x: 12, transform: `rotate(-90,12,${(viewHeight - borderY) / 2})`, textAnchor: "middle", fontSize: 11, ...(0, util_1.getFillProps)(theme.palette.text.primary) }, vview.assemblyNames.join(','))));
|
|
97
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [dblocks
|
|
98
|
+
.filter(region => !hide.has(region.key))
|
|
99
|
+
.map(region => {
|
|
100
|
+
const y = region.offsetPx;
|
|
101
|
+
const x = borderX;
|
|
102
|
+
const yoff = Math.floor(viewHeight - y + offsetPx);
|
|
103
|
+
return ((0, jsx_runtime_1.jsx)("text", { transform: `rotate(${vtextRotation},${x},${y})`, x: x, y: yoff, fontSize: 11, textAnchor: "end", ...(0, util_1.getFillProps)(theme.palette.text.primary), children: region.refName }, JSON.stringify(region)));
|
|
104
|
+
}), ticks.map(([tick, y]) => y > 0 ? ((0, jsx_runtime_1.jsx)("line", { y1: viewHeight - y, y2: viewHeight - y, x1: borderX, x2: borderX - (tick.type === 'major' ? 6 : 4), strokeWidth: 1, ...(0, util_1.getStrokeProps)(theme.palette.grey[400]) }, `line-${JSON.stringify(tick)}`)) : null), ticks
|
|
105
|
+
.filter(t => t[0].type === 'major')
|
|
106
|
+
.map(([tick, y]) => y > 10 && y < viewHeight ? ((0, jsx_runtime_1.jsx)("text", { y: viewHeight - y - 3, x: borderX - 7, textAnchor: "end", dominantBaseline: "hanging", fontSize: 11, ...(0, util_1.getFillProps)(theme.palette.text.primary), children: (0, util_1.getTickDisplayStr)(tick.base + 1, bpPerPx) }, `text-${JSON.stringify(tick)}`)) : null), (0, jsx_runtime_1.jsx)("text", { y: (viewHeight - borderY) / 2, x: 12, transform: `rotate(-90,12,${(viewHeight - borderY) / 2})`, textAnchor: "middle", fontSize: 11, ...(0, util_1.getFillProps)(theme.palette.text.primary), children: vview.assemblyNames.join(',') })] }));
|
|
121
107
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function CursorMouse(props: SvgIconProps): React.JSX.Element;
|
|
1
|
+
import type { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
export declare function CursorMove(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function CursorMouse(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|