@jbrowse/plugin-dotplot-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/ComparativeRenderer/index.d.ts +27 -0
- package/dist/ComparativeRenderer/index.js +59 -0
- package/dist/ComparativeRenderer/index.js.map +1 -0
- package/dist/DotplotDisplay/components/DotplotDisplay.d.ts +8 -0
- package/dist/DotplotDisplay/components/DotplotDisplay.js +24 -0
- package/dist/DotplotDisplay/components/DotplotDisplay.js.map +1 -0
- package/dist/DotplotDisplay/index.d.ts +12 -0
- package/dist/DotplotDisplay/index.js +48 -0
- package/dist/DotplotDisplay/index.js.map +1 -0
- package/dist/DotplotDisplay/renderDotplotBlock.d.ts +11 -0
- package/dist/DotplotDisplay/renderDotplotBlock.js +57 -0
- package/dist/DotplotDisplay/renderDotplotBlock.js.map +1 -0
- package/dist/DotplotDisplay/stateModelFactory.d.ts +138 -0
- package/dist/DotplotDisplay/stateModelFactory.js +165 -0
- package/dist/DotplotDisplay/stateModelFactory.js.map +1 -0
- package/dist/DotplotReadVsRef/DotplotReadVsRef.d.ts +3 -0
- package/dist/DotplotReadVsRef/DotplotReadVsRef.js +102 -0
- package/dist/DotplotReadVsRef/DotplotReadVsRef.js.map +1 -0
- package/dist/DotplotReadVsRef/index.d.ts +2 -0
- package/dist/DotplotReadVsRef/index.js +42 -0
- package/dist/DotplotReadVsRef/index.js.map +1 -0
- package/dist/DotplotRenderer/ComparativeRenderRpc.d.ts +27 -0
- package/dist/DotplotRenderer/ComparativeRenderRpc.js +59 -0
- package/dist/DotplotRenderer/ComparativeRenderRpc.js.map +1 -0
- package/dist/DotplotRenderer/DotplotRenderer.d.ts +69 -0
- package/dist/DotplotRenderer/DotplotRenderer.js +274 -0
- package/dist/DotplotRenderer/DotplotRenderer.js.map +1 -0
- package/dist/DotplotRenderer/components/DotplotRendering.d.ts +5 -0
- package/dist/DotplotRenderer/components/DotplotRendering.js +13 -0
- package/dist/DotplotRenderer/components/DotplotRendering.js.map +1 -0
- package/dist/DotplotRenderer/configSchema.d.ts +61 -0
- package/dist/DotplotRenderer/configSchema.js +83 -0
- package/dist/DotplotRenderer/configSchema.js.map +1 -0
- package/dist/DotplotRenderer/index.d.ts +3 -0
- package/dist/DotplotRenderer/index.js +17 -0
- package/dist/DotplotRenderer/index.js.map +1 -0
- package/dist/DotplotView/1dview.d.ts +307 -0
- package/dist/DotplotView/1dview.js +95 -0
- package/dist/DotplotView/1dview.js.map +1 -0
- package/dist/DotplotView/blockTypes.d.ts +61 -0
- package/dist/DotplotView/blockTypes.js +117 -0
- package/dist/DotplotView/blockTypes.js.map +1 -0
- package/dist/DotplotView/components/Axes.d.ts +14 -0
- package/dist/DotplotView/components/Axes.js +127 -0
- package/dist/DotplotView/components/Axes.js.map +1 -0
- package/dist/DotplotView/components/CursorIcon.d.ts +4 -0
- package/dist/DotplotView/components/CursorIcon.js +19 -0
- package/dist/DotplotView/components/CursorIcon.js.map +1 -0
- package/dist/DotplotView/components/DotplotTooltip.d.ts +19 -0
- package/dist/DotplotView/components/DotplotTooltip.js +128 -0
- package/dist/DotplotView/components/DotplotTooltip.js.map +1 -0
- package/dist/DotplotView/components/DotplotView.d.ts +6 -0
- package/dist/DotplotView/components/DotplotView.js +272 -0
- package/dist/DotplotView/components/DotplotView.js.map +1 -0
- package/dist/DotplotView/components/DotplotWarnings.d.ts +6 -0
- package/dist/DotplotView/components/DotplotWarnings.js +40 -0
- package/dist/DotplotView/components/DotplotWarnings.js.map +1 -0
- package/dist/DotplotView/components/ExportSvgDialog.d.ts +8 -0
- package/dist/DotplotView/components/ExportSvgDialog.js +76 -0
- package/dist/DotplotView/components/ExportSvgDialog.js.map +1 -0
- package/dist/DotplotView/components/Grid.d.ts +10 -0
- package/dist/DotplotView/components/Grid.js +60 -0
- package/dist/DotplotView/components/Grid.js.map +1 -0
- package/dist/DotplotView/components/Header.d.ts +10 -0
- package/dist/DotplotView/components/Header.js +168 -0
- package/dist/DotplotView/components/Header.js.map +1 -0
- package/dist/DotplotView/components/ImportCustomTrack.d.ts +11 -0
- package/dist/DotplotView/components/ImportCustomTrack.js +180 -0
- package/dist/DotplotView/components/ImportCustomTrack.js.map +1 -0
- package/dist/DotplotView/components/ImportForm.d.ts +6 -0
- package/dist/DotplotView/components/ImportForm.js +121 -0
- package/dist/DotplotView/components/ImportForm.js.map +1 -0
- package/dist/DotplotView/components/ImportSyntenyTrackSelector.d.ts +9 -0
- package/dist/DotplotView/components/ImportSyntenyTrackSelector.js +69 -0
- package/dist/DotplotView/components/ImportSyntenyTrackSelector.js.map +1 -0
- package/dist/DotplotView/components/PanButtons.d.ts +6 -0
- package/dist/DotplotView/components/PanButtons.js +60 -0
- package/dist/DotplotView/components/PanButtons.js.map +1 -0
- package/dist/DotplotView/components/WarningDialog.d.ts +16 -0
- package/dist/DotplotView/components/WarningDialog.js +41 -0
- package/dist/DotplotView/components/WarningDialog.js.map +1 -0
- package/dist/DotplotView/components/util.d.ts +19 -0
- package/dist/DotplotView/components/util.js +90 -0
- package/dist/DotplotView/components/util.js.map +1 -0
- package/dist/DotplotView/index.d.ts +2 -0
- package/dist/DotplotView/index.js +44 -0
- package/dist/DotplotView/index.js.map +1 -0
- package/dist/DotplotView/model.d.ts +616 -0
- package/dist/DotplotView/model.js +647 -0
- package/dist/DotplotView/model.js.map +1 -0
- package/dist/DotplotView/svgcomponents/SVGBackground.d.ts +5 -0
- package/dist/DotplotView/svgcomponents/SVGBackground.js +13 -0
- package/dist/DotplotView/svgcomponents/SVGBackground.js.map +1 -0
- package/dist/DotplotView/svgcomponents/SVGDotplotView.d.ts +2 -0
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js +47 -0
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js.map +1 -0
- package/dist/LaunchDotplotView.d.ts +2 -0
- package/dist/LaunchDotplotView.js +45 -0
- package/dist/LaunchDotplotView.js.map +1 -0
- package/dist/ServerSideRenderedBlockContent.d.ts +12 -0
- package/dist/ServerSideRenderedBlockContent.js +87 -0
- package/dist/ServerSideRenderedBlockContent.js.map +1 -0
- package/dist/ServerSideSyntenyRendering.d.ts +23 -0
- package/dist/ServerSideSyntenyRendering.js +54 -0
- package/dist/ServerSideSyntenyRendering.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/util.d.ts +9 -0
- package/dist/util.js +9 -0
- package/dist/util.js.map +1 -0
- package/esm/ComparativeRenderer/index.d.ts +27 -0
- package/esm/ComparativeRenderer/index.js +53 -0
- package/esm/ComparativeRenderer/index.js.map +1 -0
- package/esm/DotplotDisplay/components/DotplotDisplay.d.ts +8 -0
- package/esm/DotplotDisplay/components/DotplotDisplay.js +19 -0
- package/esm/DotplotDisplay/components/DotplotDisplay.js.map +1 -0
- package/esm/DotplotDisplay/index.d.ts +12 -0
- package/esm/DotplotDisplay/index.js +41 -0
- package/esm/DotplotDisplay/index.js.map +1 -0
- package/esm/DotplotDisplay/renderDotplotBlock.d.ts +11 -0
- package/esm/DotplotDisplay/renderDotplotBlock.js +49 -0
- package/esm/DotplotDisplay/renderDotplotBlock.js.map +1 -0
- package/esm/DotplotDisplay/stateModelFactory.d.ts +138 -0
- package/esm/DotplotDisplay/stateModelFactory.js +158 -0
- package/esm/DotplotDisplay/stateModelFactory.js.map +1 -0
- package/esm/DotplotReadVsRef/DotplotReadVsRef.d.ts +3 -0
- package/esm/DotplotReadVsRef/DotplotReadVsRef.js +98 -0
- package/esm/DotplotReadVsRef/DotplotReadVsRef.js.map +1 -0
- package/esm/DotplotReadVsRef/index.d.ts +2 -0
- package/esm/DotplotReadVsRef/index.js +36 -0
- package/esm/DotplotReadVsRef/index.js.map +1 -0
- package/esm/DotplotRenderer/ComparativeRenderRpc.d.ts +27 -0
- package/esm/DotplotRenderer/ComparativeRenderRpc.js +53 -0
- package/esm/DotplotRenderer/ComparativeRenderRpc.js.map +1 -0
- package/esm/DotplotRenderer/DotplotRenderer.d.ts +69 -0
- package/esm/DotplotRenderer/DotplotRenderer.js +268 -0
- package/esm/DotplotRenderer/DotplotRenderer.js.map +1 -0
- package/esm/DotplotRenderer/components/DotplotRendering.d.ts +5 -0
- package/esm/DotplotRenderer/components/DotplotRendering.js +8 -0
- package/esm/DotplotRenderer/components/DotplotRendering.js.map +1 -0
- package/esm/DotplotRenderer/configSchema.d.ts +61 -0
- package/esm/DotplotRenderer/configSchema.js +81 -0
- package/esm/DotplotRenderer/configSchema.js.map +1 -0
- package/esm/DotplotRenderer/index.d.ts +3 -0
- package/esm/DotplotRenderer/index.js +12 -0
- package/esm/DotplotRenderer/index.js.map +1 -0
- package/esm/DotplotView/1dview.d.ts +307 -0
- package/esm/DotplotView/1dview.js +87 -0
- package/esm/DotplotView/1dview.js.map +1 -0
- package/esm/DotplotView/blockTypes.d.ts +61 -0
- package/esm/DotplotView/blockTypes.js +109 -0
- package/esm/DotplotView/blockTypes.js.map +1 -0
- package/esm/DotplotView/components/Axes.d.ts +14 -0
- package/esm/DotplotView/components/Axes.js +121 -0
- package/esm/DotplotView/components/Axes.js.map +1 -0
- package/esm/DotplotView/components/CursorIcon.d.ts +4 -0
- package/esm/DotplotView/components/CursorIcon.js +11 -0
- package/esm/DotplotView/components/CursorIcon.js.map +1 -0
- package/esm/DotplotView/components/DotplotTooltip.d.ts +19 -0
- package/esm/DotplotView/components/DotplotTooltip.js +101 -0
- package/esm/DotplotView/components/DotplotTooltip.js.map +1 -0
- package/esm/DotplotView/components/DotplotView.d.ts +6 -0
- package/esm/DotplotView/components/DotplotView.js +244 -0
- package/esm/DotplotView/components/DotplotView.js.map +1 -0
- package/esm/DotplotView/components/DotplotWarnings.d.ts +6 -0
- package/esm/DotplotView/components/DotplotWarnings.js +15 -0
- package/esm/DotplotView/components/DotplotWarnings.js.map +1 -0
- package/esm/DotplotView/components/ExportSvgDialog.d.ts +8 -0
- package/esm/DotplotView/components/ExportSvgDialog.js +50 -0
- package/esm/DotplotView/components/ExportSvgDialog.js.map +1 -0
- package/esm/DotplotView/components/Grid.d.ts +10 -0
- package/esm/DotplotView/components/Grid.js +53 -0
- package/esm/DotplotView/components/Grid.js.map +1 -0
- package/esm/DotplotView/components/Header.d.ts +10 -0
- package/esm/DotplotView/components/Header.js +140 -0
- package/esm/DotplotView/components/Header.js.map +1 -0
- package/esm/DotplotView/components/ImportCustomTrack.d.ts +11 -0
- package/esm/DotplotView/components/ImportCustomTrack.js +152 -0
- package/esm/DotplotView/components/ImportCustomTrack.js.map +1 -0
- package/esm/DotplotView/components/ImportForm.d.ts +6 -0
- package/esm/DotplotView/components/ImportForm.js +93 -0
- package/esm/DotplotView/components/ImportForm.js.map +1 -0
- package/esm/DotplotView/components/ImportSyntenyTrackSelector.d.ts +9 -0
- package/esm/DotplotView/components/ImportSyntenyTrackSelector.js +44 -0
- package/esm/DotplotView/components/ImportSyntenyTrackSelector.js.map +1 -0
- package/esm/DotplotView/components/PanButtons.d.ts +6 -0
- package/esm/DotplotView/components/PanButtons.js +55 -0
- package/esm/DotplotView/components/PanButtons.js.map +1 -0
- package/esm/DotplotView/components/WarningDialog.d.ts +16 -0
- package/esm/DotplotView/components/WarningDialog.js +36 -0
- package/esm/DotplotView/components/WarningDialog.js.map +1 -0
- package/esm/DotplotView/components/util.d.ts +19 -0
- package/esm/DotplotView/components/util.js +83 -0
- package/esm/DotplotView/components/util.js.map +1 -0
- package/esm/DotplotView/index.d.ts +2 -0
- package/esm/DotplotView/index.js +15 -0
- package/esm/DotplotView/index.js.map +1 -0
- package/esm/DotplotView/model.d.ts +616 -0
- package/esm/DotplotView/model.js +616 -0
- package/esm/DotplotView/model.js.map +1 -0
- package/esm/DotplotView/svgcomponents/SVGBackground.d.ts +5 -0
- package/esm/DotplotView/svgcomponents/SVGBackground.js +7 -0
- package/esm/DotplotView/svgcomponents/SVGBackground.js.map +1 -0
- package/esm/DotplotView/svgcomponents/SVGDotplotView.d.ts +2 -0
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js +40 -0
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js.map +1 -0
- package/esm/LaunchDotplotView.d.ts +2 -0
- package/esm/LaunchDotplotView.js +42 -0
- package/esm/LaunchDotplotView.js.map +1 -0
- package/esm/ServerSideRenderedBlockContent.d.ts +12 -0
- package/esm/ServerSideRenderedBlockContent.js +62 -0
- package/esm/ServerSideRenderedBlockContent.js.map +1 -0
- package/esm/ServerSideSyntenyRendering.d.ts +23 -0
- package/esm/ServerSideSyntenyRendering.js +29 -0
- package/esm/ServerSideSyntenyRendering.js.map +1 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +38 -0
- package/esm/index.js.map +1 -0
- package/esm/util.d.ts +9 -0
- package/esm/util.js +5 -0
- package/esm/util.js.map +1 -0
- package/package.json +69 -0
- package/src/ComparativeRenderer/index.ts +87 -0
- package/src/DotplotDisplay/components/DotplotDisplay.tsx +34 -0
- package/src/DotplotDisplay/index.ts +48 -0
- package/src/DotplotDisplay/renderDotplotBlock.ts +60 -0
- package/src/DotplotDisplay/stateModelFactory.tsx +196 -0
- package/src/DotplotReadVsRef/DotplotReadVsRef.ts +115 -0
- package/src/DotplotReadVsRef/index.ts +50 -0
- package/src/DotplotRenderer/ComparativeRenderRpc.ts +87 -0
- package/src/DotplotRenderer/DotplotRenderer.ts +328 -0
- package/src/DotplotRenderer/__image_snapshots__/linear-synteny-renderer-test-ts-test-rendering-a-simple-synteny-from-fake-data-1-snap.png +0 -0
- package/src/DotplotRenderer/components/DotplotRendering.tsx +12 -0
- package/src/DotplotRenderer/configSchema.ts +92 -0
- package/src/DotplotRenderer/index.ts +16 -0
- package/src/DotplotView/1dview.ts +98 -0
- package/src/DotplotView/blockTypes.ts +140 -0
- package/src/DotplotView/components/Axes.tsx +246 -0
- package/src/DotplotView/components/CursorIcon.tsx +24 -0
- package/src/DotplotView/components/DotplotTooltip.tsx +163 -0
- package/src/DotplotView/components/DotplotView.tsx +348 -0
- package/src/DotplotView/components/DotplotWarnings.tsx +26 -0
- package/src/DotplotView/components/ExportSvgDialog.tsx +129 -0
- package/src/DotplotView/components/Grid.tsx +112 -0
- package/src/DotplotView/components/Header.tsx +182 -0
- package/src/DotplotView/components/ImportCustomTrack.tsx +262 -0
- package/src/DotplotView/components/ImportForm.tsx +209 -0
- package/src/DotplotView/components/ImportSyntenyTrackSelector.tsx +90 -0
- package/src/DotplotView/components/PanButtons.tsx +93 -0
- package/src/DotplotView/components/WarningDialog.tsx +74 -0
- package/src/DotplotView/components/util.ts +118 -0
- package/src/DotplotView/index.ts +16 -0
- package/src/DotplotView/model.test.ts +17 -0
- package/src/DotplotView/model.ts +719 -0
- package/src/DotplotView/svgcomponents/SVGBackground.tsx +21 -0
- package/src/DotplotView/svgcomponents/SVGDotplotView.tsx +68 -0
- package/src/LaunchDotplotView.ts +63 -0
- package/src/ServerSideRenderedBlockContent.tsx +86 -0
- package/src/ServerSideSyntenyRendering.tsx +54 -0
- package/src/index.ts +41 -0
- package/src/util.ts +14 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
+
import { Region } from '@jbrowse/core/util';
|
|
4
|
+
import ComparativeRenderer, { RenderArgsDeserialized, RenderArgs } from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
5
|
+
import { Dotplot1DViewModel } from '../DotplotView/model';
|
|
6
|
+
export interface DotplotRenderArgsDeserialized extends RenderArgsDeserialized {
|
|
7
|
+
height: number;
|
|
8
|
+
width: number;
|
|
9
|
+
highResolutionScaling: number;
|
|
10
|
+
view: {
|
|
11
|
+
hview: Dotplot1DViewModel;
|
|
12
|
+
vview: Dotplot1DViewModel;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
interface DotplotRenderArgs extends RenderArgs {
|
|
16
|
+
adapterConfig: AnyConfigurationModel;
|
|
17
|
+
sessionId: string;
|
|
18
|
+
view: {
|
|
19
|
+
hview: {
|
|
20
|
+
displayedRegions: Region[];
|
|
21
|
+
};
|
|
22
|
+
vview: {
|
|
23
|
+
displayedRegions: Region[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export default class DotplotRenderer extends ComparativeRenderer {
|
|
28
|
+
supportsSVG: boolean;
|
|
29
|
+
renameRegionsIfNeeded(args: DotplotRenderArgs): Promise<DotplotRenderArgs>;
|
|
30
|
+
drawDotplot(ctx: CanvasRenderingContext2D, props: DotplotRenderArgsDeserialized & {
|
|
31
|
+
views: Dotplot1DViewModel[];
|
|
32
|
+
}): Promise<{
|
|
33
|
+
warnings: {
|
|
34
|
+
message: string;
|
|
35
|
+
effect: string;
|
|
36
|
+
}[];
|
|
37
|
+
}>;
|
|
38
|
+
render(renderProps: DotplotRenderArgsDeserialized): Promise<{
|
|
39
|
+
height: number;
|
|
40
|
+
width: number;
|
|
41
|
+
offsetX: number;
|
|
42
|
+
offsetY: number;
|
|
43
|
+
bpPerPxX: number;
|
|
44
|
+
bpPerPxY: number;
|
|
45
|
+
canvasRecordedData: any;
|
|
46
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
47
|
+
html?: string | undefined;
|
|
48
|
+
} | {
|
|
49
|
+
height: number;
|
|
50
|
+
width: number;
|
|
51
|
+
offsetX: number;
|
|
52
|
+
offsetY: number;
|
|
53
|
+
bpPerPxX: number;
|
|
54
|
+
bpPerPxY: number;
|
|
55
|
+
reactElement: import("react").JSX.Element;
|
|
56
|
+
html?: string | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
height: number;
|
|
59
|
+
width: number;
|
|
60
|
+
offsetX: number;
|
|
61
|
+
offsetY: number;
|
|
62
|
+
bpPerPxX: number;
|
|
63
|
+
bpPerPxY: number;
|
|
64
|
+
imageData: any;
|
|
65
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
66
|
+
html?: string | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { readConfObject, } from '@jbrowse/core/configuration';
|
|
2
|
+
import { renameRegionsIfNeeded, renderToAbstractCanvas, } from '@jbrowse/core/util';
|
|
3
|
+
import { bpToPx } from '@jbrowse/core/util/Base1DUtils';
|
|
4
|
+
import { getSnapshot } from 'mobx-state-tree';
|
|
5
|
+
import ComparativeRenderer from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
6
|
+
import { MismatchParser } from '@jbrowse/plugin-alignments';
|
|
7
|
+
// locals
|
|
8
|
+
import { Dotplot1DView } from '../DotplotView/model';
|
|
9
|
+
import { createJBrowseTheme } from '@jbrowse/core/ui';
|
|
10
|
+
const { parseCigar } = MismatchParser;
|
|
11
|
+
const r = 'fell outside of range due to CIGAR string';
|
|
12
|
+
const lt = '(less than min coordinate of feature)';
|
|
13
|
+
const gt = '(greater than max coordinate of feature)';
|
|
14
|
+
const fudgeFactor = 1; // allow 1px fuzzyness before warn
|
|
15
|
+
function drawCir(ctx, x, y, r = 1) {
|
|
16
|
+
ctx.beginPath();
|
|
17
|
+
ctx.arc(x, y, r / 2, 0, 2 * Math.PI);
|
|
18
|
+
ctx.fill();
|
|
19
|
+
}
|
|
20
|
+
export default class DotplotRenderer extends ComparativeRenderer {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.supportsSVG = true;
|
|
24
|
+
}
|
|
25
|
+
async renameRegionsIfNeeded(args) {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
const pm = this.pluginManager;
|
|
28
|
+
const assemblyManager = (_b = (_a = pm.rootModel) === null || _a === void 0 ? void 0 : _a.session) === null || _b === void 0 ? void 0 : _b.assemblyManager;
|
|
29
|
+
const { view, sessionId, adapterConfig } = args;
|
|
30
|
+
async function process(regions) {
|
|
31
|
+
if (!assemblyManager) {
|
|
32
|
+
throw new Error('No assembly manager provided');
|
|
33
|
+
}
|
|
34
|
+
const result = await renameRegionsIfNeeded(assemblyManager, {
|
|
35
|
+
sessionId,
|
|
36
|
+
adapterConfig,
|
|
37
|
+
regions,
|
|
38
|
+
});
|
|
39
|
+
return result.regions;
|
|
40
|
+
}
|
|
41
|
+
view.hview.displayedRegions = await process(view.hview.displayedRegions);
|
|
42
|
+
view.vview.displayedRegions = await process(view.vview.displayedRegions);
|
|
43
|
+
return args;
|
|
44
|
+
}
|
|
45
|
+
async drawDotplot(ctx, props) {
|
|
46
|
+
var _a, _b, _c;
|
|
47
|
+
const { config, views, height, drawCigar, theme } = props;
|
|
48
|
+
const color = readConfObject(config, 'color');
|
|
49
|
+
const posColor = readConfObject(config, 'posColor');
|
|
50
|
+
const negColor = readConfObject(config, 'negColor');
|
|
51
|
+
const colorBy = readConfObject(config, 'colorBy');
|
|
52
|
+
const lineWidth = readConfObject(config, 'lineWidth');
|
|
53
|
+
const thresholds = readConfObject(config, 'thresholds');
|
|
54
|
+
const palette = readConfObject(config, 'thresholdsPalette');
|
|
55
|
+
const isCallback = config.color.isCallback;
|
|
56
|
+
const [hview, vview] = views;
|
|
57
|
+
const db1 = (_a = hview.dynamicBlocks.contentBlocks[0]) === null || _a === void 0 ? void 0 : _a.offsetPx;
|
|
58
|
+
const db2 = (_b = vview.dynamicBlocks.contentBlocks[0]) === null || _b === void 0 ? void 0 : _b.offsetPx;
|
|
59
|
+
const warnings = [];
|
|
60
|
+
ctx.lineWidth = lineWidth;
|
|
61
|
+
// we operate on snapshots of these attributes of the hview/vview because
|
|
62
|
+
// it is significantly faster than accessing the mobx objects
|
|
63
|
+
const { bpPerPx: hBpPerPx } = hview;
|
|
64
|
+
const { bpPerPx: vBpPerPx } = vview;
|
|
65
|
+
function clampWithWarnX(num, min, max, feature) {
|
|
66
|
+
const strand = feature.get('strand') || 1;
|
|
67
|
+
if (strand === -1) {
|
|
68
|
+
;
|
|
69
|
+
[max, min] = [min, max];
|
|
70
|
+
}
|
|
71
|
+
if (num < min - fudgeFactor) {
|
|
72
|
+
let start = feature.get('start');
|
|
73
|
+
let end = feature.get('end');
|
|
74
|
+
const refName = feature.get('refName');
|
|
75
|
+
if (strand === -1) {
|
|
76
|
+
;
|
|
77
|
+
[end, start] = [start, end];
|
|
78
|
+
}
|
|
79
|
+
warnings.push({
|
|
80
|
+
message: `feature at (X ${refName}:${start}-${end}) ${r} ${lt}`,
|
|
81
|
+
effect: 'clipped the feature',
|
|
82
|
+
});
|
|
83
|
+
return min;
|
|
84
|
+
}
|
|
85
|
+
if (num > max + fudgeFactor) {
|
|
86
|
+
const strand = feature.get('strand') || 1;
|
|
87
|
+
const start = strand === 1 ? feature.get('start') : feature.get('end');
|
|
88
|
+
const end = strand === 1 ? feature.get('end') : feature.get('start');
|
|
89
|
+
const refName = feature.get('refName');
|
|
90
|
+
warnings.push({
|
|
91
|
+
message: `feature at (X ${refName}:${start}-${end}) ${r} ${gt}`,
|
|
92
|
+
effect: 'clipped the feature',
|
|
93
|
+
});
|
|
94
|
+
return max;
|
|
95
|
+
}
|
|
96
|
+
return num;
|
|
97
|
+
}
|
|
98
|
+
function clampWithWarnY(num, min, max, feature) {
|
|
99
|
+
if (num < min - fudgeFactor) {
|
|
100
|
+
const mate = feature.get('mate');
|
|
101
|
+
const { refName, start, end } = mate;
|
|
102
|
+
warnings.push({
|
|
103
|
+
message: `feature at (Y ${refName}:${start}-${end}) ${r} ${lt}`,
|
|
104
|
+
effect: 'clipped the feature',
|
|
105
|
+
});
|
|
106
|
+
return min;
|
|
107
|
+
}
|
|
108
|
+
if (num > max + fudgeFactor) {
|
|
109
|
+
const mate = feature.get('mate');
|
|
110
|
+
const { refName, start, end } = mate;
|
|
111
|
+
warnings.push({
|
|
112
|
+
message: `feature at (Y ${refName}:${start}-${end}) ${r} ${gt}`,
|
|
113
|
+
effect: 'clipped the feature',
|
|
114
|
+
});
|
|
115
|
+
return max;
|
|
116
|
+
}
|
|
117
|
+
return num;
|
|
118
|
+
}
|
|
119
|
+
const hsnap = {
|
|
120
|
+
...getSnapshot(hview),
|
|
121
|
+
staticBlocks: hview.staticBlocks,
|
|
122
|
+
width: hview.width,
|
|
123
|
+
};
|
|
124
|
+
const vsnap = {
|
|
125
|
+
...getSnapshot(vview),
|
|
126
|
+
staticBlocks: vview.staticBlocks,
|
|
127
|
+
width: vview.width,
|
|
128
|
+
};
|
|
129
|
+
const t = createJBrowseTheme(theme);
|
|
130
|
+
(_c = hview.features) === null || _c === void 0 ? void 0 : _c.forEach(feature => {
|
|
131
|
+
const strand = feature.get('strand') || 1;
|
|
132
|
+
const start = strand === 1 ? feature.get('start') : feature.get('end');
|
|
133
|
+
const end = strand === 1 ? feature.get('end') : feature.get('start');
|
|
134
|
+
const refName = feature.get('refName');
|
|
135
|
+
const mate = feature.get('mate');
|
|
136
|
+
const mateRef = mate.refName;
|
|
137
|
+
let r;
|
|
138
|
+
if (colorBy === 'identity') {
|
|
139
|
+
const identity = feature.get('identity');
|
|
140
|
+
for (let i = 0; i < thresholds.length; i++) {
|
|
141
|
+
if (identity > +thresholds[i]) {
|
|
142
|
+
r = palette[i];
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
else if (colorBy === 'meanQueryIdentity') {
|
|
148
|
+
r = `hsl(${feature.get('meanScore') * 200},100%,40%)`;
|
|
149
|
+
}
|
|
150
|
+
else if (colorBy === 'mappingQuality') {
|
|
151
|
+
r = `hsl(${feature.get('mappingQual')},100%,40%)`;
|
|
152
|
+
}
|
|
153
|
+
else if (colorBy === 'strand') {
|
|
154
|
+
r = strand === -1 ? negColor : posColor;
|
|
155
|
+
}
|
|
156
|
+
else if (colorBy === 'default') {
|
|
157
|
+
r = isCallback
|
|
158
|
+
? readConfObject(config, 'color', { feature })
|
|
159
|
+
: color === '#f0f'
|
|
160
|
+
? t.palette.text.primary
|
|
161
|
+
: color;
|
|
162
|
+
}
|
|
163
|
+
ctx.fillStyle = r;
|
|
164
|
+
ctx.strokeStyle = r;
|
|
165
|
+
const b10 = bpToPx({ self: hsnap, refName, coord: start });
|
|
166
|
+
const b20 = bpToPx({ self: hsnap, refName, coord: end });
|
|
167
|
+
const e10 = bpToPx({ self: vsnap, refName: mateRef, coord: mate.start });
|
|
168
|
+
const e20 = bpToPx({ self: vsnap, refName: mateRef, coord: mate.end });
|
|
169
|
+
if (b10 !== undefined &&
|
|
170
|
+
b20 !== undefined &&
|
|
171
|
+
e10 !== undefined &&
|
|
172
|
+
e20 !== undefined) {
|
|
173
|
+
const b1 = b10.offsetPx - db1;
|
|
174
|
+
const b2 = b20.offsetPx - db1;
|
|
175
|
+
const e1 = e10.offsetPx - db2;
|
|
176
|
+
const e2 = e20.offsetPx - db2;
|
|
177
|
+
if (Math.abs(b1 - b2) <= 4 && Math.abs(e1 - e2) <= 4) {
|
|
178
|
+
drawCir(ctx, b1, height - e1, lineWidth);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
let currX = b1;
|
|
182
|
+
let currY = e1;
|
|
183
|
+
const cigar = feature.get('CIGAR');
|
|
184
|
+
if (drawCigar && cigar) {
|
|
185
|
+
const cigarOps = parseCigar(cigar);
|
|
186
|
+
ctx.beginPath();
|
|
187
|
+
ctx.moveTo(currX, height - currY);
|
|
188
|
+
for (let i = 0; i < cigarOps.length; i += 2) {
|
|
189
|
+
const val = +cigarOps[i];
|
|
190
|
+
const op = cigarOps[i + 1];
|
|
191
|
+
if (op === 'M' || op === '=' || op === 'X') {
|
|
192
|
+
currX += (val / hBpPerPx) * strand;
|
|
193
|
+
currY += val / vBpPerPx;
|
|
194
|
+
}
|
|
195
|
+
else if (op === 'D' || op === 'N') {
|
|
196
|
+
currX += (val / hBpPerPx) * strand;
|
|
197
|
+
}
|
|
198
|
+
else if (op === 'I') {
|
|
199
|
+
currY += val / vBpPerPx;
|
|
200
|
+
}
|
|
201
|
+
currX = clampWithWarnX(currX, b1, b2, feature);
|
|
202
|
+
currY = clampWithWarnY(currY, e1, e2, feature);
|
|
203
|
+
ctx.lineTo(currX, height - currY);
|
|
204
|
+
}
|
|
205
|
+
ctx.stroke();
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
ctx.beginPath();
|
|
209
|
+
ctx.moveTo(b1, height - e1);
|
|
210
|
+
ctx.lineTo(b2, height - e2);
|
|
211
|
+
ctx.stroke();
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
if (warnings.length <= 5) {
|
|
217
|
+
if (b10 === undefined || b20 === undefined) {
|
|
218
|
+
warnings.push({
|
|
219
|
+
message: `feature at (X ${refName}:${start}-${end}) not plotted, fell outside of range`,
|
|
220
|
+
effect: 'feature not rendered',
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
warnings.push({
|
|
225
|
+
message: `feature at (Y ${mateRef}:${mate.start}-${mate.end}) not plotted, fell outside of range`,
|
|
226
|
+
effect: 'feature not rendered',
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
return { warnings };
|
|
233
|
+
}
|
|
234
|
+
async render(renderProps) {
|
|
235
|
+
var _a, _b;
|
|
236
|
+
const { width, height, view: { hview, vview }, } = renderProps;
|
|
237
|
+
const dimensions = [width, height];
|
|
238
|
+
const views = [hview, vview].map((snap, idx) => {
|
|
239
|
+
const view = Dotplot1DView.create(snap);
|
|
240
|
+
view.setVolatileWidth(dimensions[idx]);
|
|
241
|
+
return view;
|
|
242
|
+
});
|
|
243
|
+
const target = views[0];
|
|
244
|
+
const feats = await this.getFeatures({
|
|
245
|
+
...renderProps,
|
|
246
|
+
regions: target.dynamicBlocks.contentBlocks,
|
|
247
|
+
});
|
|
248
|
+
target.setFeatures(feats);
|
|
249
|
+
const ret = await renderToAbstractCanvas(width, height, renderProps, ctx => this.drawDotplot(ctx, { ...renderProps, views }));
|
|
250
|
+
const results = await super.render({
|
|
251
|
+
...renderProps,
|
|
252
|
+
...ret,
|
|
253
|
+
height,
|
|
254
|
+
width,
|
|
255
|
+
});
|
|
256
|
+
return {
|
|
257
|
+
...results,
|
|
258
|
+
...ret,
|
|
259
|
+
height,
|
|
260
|
+
width,
|
|
261
|
+
offsetX: ((_a = views[0].dynamicBlocks.blocks[0]) === null || _a === void 0 ? void 0 : _a.offsetPx) || 0,
|
|
262
|
+
offsetY: ((_b = views[1].dynamicBlocks.blocks[0]) === null || _b === void 0 ? void 0 : _b.offsetPx) || 0,
|
|
263
|
+
bpPerPxX: views[0].bpPerPx,
|
|
264
|
+
bpPerPxY: views[1].bpPerPx,
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
//# sourceMappingURL=DotplotRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DotplotRenderer.js","sourceRoot":"","sources":["../../src/DotplotRenderer/DotplotRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,GAEf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GAGvB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,mBAGN,MAAM,iFAAiF,CAAA;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAE3D,SAAS;AACT,OAAO,EAAE,aAAa,EAAsB,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAErD,MAAM,EAAE,UAAU,EAAE,GAAG,cAAc,CAAA;AAqBrC,MAAM,CAAC,GAAG,2CAA2C,CAAA;AACrD,MAAM,EAAE,GAAG,uCAAuC,CAAA;AAClD,MAAM,EAAE,GAAG,0CAA0C,CAAA;AACrD,MAAM,WAAW,GAAG,CAAC,CAAA,CA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AE,KAAK,EAAE,CAAC,CACjD,CAAA;QAED,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;YACjC,GAAG,WAAW;YACd,GAAG,GAAG;YACN,MAAM;YACN,KAAK;SACN,CAAC,CAAA;QAEF,OAAO;YACL,GAAG,OAAO;YACV,GAAG,GAAG;YACN,MAAM;YACN,KAAK;YACL,OAAO,EAAE,CAAA,MAAA,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,0CAAE,QAAQ,KAAI,CAAC;YACxD,OAAO,EAAE,CAAA,MAAA,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,0CAAE,QAAQ,KAAI,CAAC;YACxD,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO;YAC1B,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO;SAC3B,CAAA;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PrerenderedCanvas } from '@jbrowse/core/ui';
|
|
3
|
+
import { observer } from 'mobx-react';
|
|
4
|
+
function DotplotRendering(props) {
|
|
5
|
+
return React.createElement(PrerenderedCanvas, { ...props });
|
|
6
|
+
}
|
|
7
|
+
export default observer(DotplotRendering);
|
|
8
|
+
//# sourceMappingURL=DotplotRendering.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DotplotRendering.js","sourceRoot":"","sources":["../../../src/DotplotRenderer/components/DotplotRendering.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAKrC,SAAS,gBAAgB,CAAC,KAAoC;IAC5D,OAAO,oBAAC,iBAAiB,OAAK,KAAK,GAAI,CAAA;AACzC,CAAC;AAED,eAAe,QAAQ,CAAC,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare const _default: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
color: {
|
|
6
|
+
type: string;
|
|
7
|
+
description: string;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
contextVariable: string[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* #slot
|
|
13
|
+
*/
|
|
14
|
+
posColor: {
|
|
15
|
+
type: string;
|
|
16
|
+
description: string;
|
|
17
|
+
defaultValue: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* #slot
|
|
21
|
+
*/
|
|
22
|
+
negColor: {
|
|
23
|
+
type: string;
|
|
24
|
+
description: string;
|
|
25
|
+
defaultValue: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* #slot
|
|
29
|
+
*/
|
|
30
|
+
lineWidth: {
|
|
31
|
+
type: string;
|
|
32
|
+
description: string;
|
|
33
|
+
defaultValue: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* #slot
|
|
37
|
+
*/
|
|
38
|
+
colorBy: {
|
|
39
|
+
type: string;
|
|
40
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
41
|
+
description: string;
|
|
42
|
+
defaultValue: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* #slot
|
|
46
|
+
*/
|
|
47
|
+
thresholdsPalette: {
|
|
48
|
+
type: string;
|
|
49
|
+
defaultValue: string[];
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* #slot
|
|
54
|
+
*/
|
|
55
|
+
thresholds: {
|
|
56
|
+
type: string;
|
|
57
|
+
defaultValue: string[];
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
+
import { types } from 'mobx-state-tree';
|
|
3
|
+
/**
|
|
4
|
+
* #config DotplotRenderer
|
|
5
|
+
* #category renderer
|
|
6
|
+
*/
|
|
7
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
|
+
export default ConfigurationSchema('DotplotRenderer', {
|
|
9
|
+
/**
|
|
10
|
+
* #slot
|
|
11
|
+
*/
|
|
12
|
+
color: {
|
|
13
|
+
type: 'color',
|
|
14
|
+
description: 'the color of each feature in a synteny, used with colorBy:default',
|
|
15
|
+
defaultValue: '#f0f',
|
|
16
|
+
contextVariable: ['feature'],
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* #slot
|
|
20
|
+
*/
|
|
21
|
+
posColor: {
|
|
22
|
+
type: 'color',
|
|
23
|
+
description: 'the color for forward alignments, used with colorBy:strand',
|
|
24
|
+
defaultValue: 'blue',
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* #slot
|
|
28
|
+
*/
|
|
29
|
+
negColor: {
|
|
30
|
+
type: 'color',
|
|
31
|
+
description: 'the color for reverse alignments, used with colorBy:strand',
|
|
32
|
+
defaultValue: 'red',
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* #slot
|
|
36
|
+
*/
|
|
37
|
+
lineWidth: {
|
|
38
|
+
type: 'number',
|
|
39
|
+
description: 'width of the lines to be drawn',
|
|
40
|
+
defaultValue: 2.5, // 2.5 is similar to D-GENIES
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* #slot
|
|
44
|
+
*/
|
|
45
|
+
colorBy: {
|
|
46
|
+
type: 'stringEnum',
|
|
47
|
+
model: types.enumeration('colorBy', [
|
|
48
|
+
'identity',
|
|
49
|
+
'meanQueryIdentity',
|
|
50
|
+
'mappingQuality',
|
|
51
|
+
'strand',
|
|
52
|
+
'default',
|
|
53
|
+
]),
|
|
54
|
+
description: `Color by options:<br/>
|
|
55
|
+
<ul>
|
|
56
|
+
<li>"identity" - the identity of the particular hit, similar to D-GENIES, use the other config slots 'thresholds' and 'thresholdsPalette' to define colors for this setting</li>
|
|
57
|
+
<li>"meanQueryIdentity" - calculates the weighted mean identity (weighted by alignment length) of all the hits that the query maps to (e.g. if the query is split aligned to many target, uses their weighted mean. can help show patterns of more related and distant synteny after WGD)</li>
|
|
58
|
+
<li>"mappingQuality" - uses mapping quality from PAF, some adapters don't have this setting</li>
|
|
59
|
+
<li>"strand" - colors negative alignments with negColor and positive alignments with posColor</li>
|
|
60
|
+
<li>"default" - uses the 'color' config slot</li>
|
|
61
|
+
</ul>`,
|
|
62
|
+
defaultValue: 'default',
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* #slot
|
|
66
|
+
*/
|
|
67
|
+
thresholdsPalette: {
|
|
68
|
+
type: 'stringArray',
|
|
69
|
+
defaultValue: ['#094b09', '#2ebd40', '#d5670b', '#ffd84b'],
|
|
70
|
+
description: 'threshold colors, used with colorBy:identity',
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* #slot
|
|
74
|
+
*/
|
|
75
|
+
thresholds: {
|
|
76
|
+
type: 'stringArray',
|
|
77
|
+
defaultValue: ['0.75', '0.5', '0.25', '0'],
|
|
78
|
+
description: 'threshold breakpoints, used with colorBy:identity',
|
|
79
|
+
},
|
|
80
|
+
}, { explicitlyTyped: true });
|
|
81
|
+
//# sourceMappingURL=configSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/DotplotRenderer/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM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12 @@
|
|
|
1
|
+
import ReactComponent from './components/DotplotRendering';
|
|
2
|
+
import DotplotRenderer from './DotplotRenderer';
|
|
3
|
+
import configSchema from './configSchema';
|
|
4
|
+
export default (pluginManager) => {
|
|
5
|
+
pluginManager.addRendererType(() => new DotplotRenderer({
|
|
6
|
+
name: 'DotplotRenderer',
|
|
7
|
+
configSchema: configSchema,
|
|
8
|
+
ReactComponent,
|
|
9
|
+
pluginManager,
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/DotplotRenderer/index.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,MAAM,+BAA+B,CAAA;AAC1D,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAC/C,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,eAAe,CAC3B,GAAG,EAAE,CACH,IAAI,eAAe,CAAC;QAClB,IAAI,EAAE,iBAAiB;QACvB,YAAY,EAAE,YAAY;QAC1B,cAAc;QACd,aAAa;KACd,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|