@jbrowse/plugin-linear-comparative-view 3.7.0 → 4.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/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +3 -3
- package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +9 -9
- package/esm/LGVSyntenyDisplay/configSchemaF.js +1 -1
- package/esm/LGVSyntenyDisplay/index.js +2 -2
- package/esm/LGVSyntenyDisplay/model.d.ts +1179 -133
- package/esm/LGVSyntenyDisplay/model.js +2 -2
- package/esm/LaunchLinearSyntenyView.js +13 -86
- package/esm/LinearComparativeDisplay/configSchemaF.d.ts +1 -1
- package/esm/LinearComparativeDisplay/index.js +2 -2
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +95 -135
- package/esm/LinearComparativeDisplay/stateModelFactory.js +18 -17
- package/esm/LinearComparativeView/components/ColorBySelector.d.ts +1 -1
- package/esm/LinearComparativeView/components/ColorBySelector.js +3 -4
- package/esm/LinearComparativeView/components/Header.d.ts +1 -1
- package/esm/LinearComparativeView/components/Header.js +8 -9
- package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +2 -2
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -1
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +9 -8
- package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +1 -1
- package/esm/LinearComparativeView/components/LinearComparativeView.js +5 -5
- package/esm/LinearComparativeView/components/MinLengthSlider.d.ts +1 -1
- package/esm/LinearComparativeView/components/MinLengthSlider.js +7 -7
- package/esm/LinearComparativeView/components/OpacitySlider.d.ts +1 -1
- package/esm/LinearComparativeView/components/OpacitySlider.js +5 -6
- package/esm/LinearComparativeView/components/Rubberband.d.ts +1 -1
- package/esm/LinearComparativeView/components/Rubberband.js +5 -5
- package/esm/LinearComparativeView/components/RubberbandSpan.js +3 -5
- package/esm/LinearComparativeView/components/VerticalGuide.d.ts +1 -1
- package/esm/LinearComparativeView/components/VerticalGuide.js +2 -2
- package/esm/LinearComparativeView/components/useRangeSelect.d.ts +1 -1
- package/esm/LinearComparativeView/components/useRangeSelect.js +1 -1
- package/esm/LinearComparativeView/components/util.js +1 -1
- package/esm/LinearComparativeView/index.js +2 -2
- package/esm/LinearComparativeView/model.d.ts +474 -222
- package/esm/LinearComparativeView/model.js +50 -29
- package/esm/LinearReadVsRef/LinearReadVsRef.js +8 -9
- package/esm/LinearReadVsRef/index.js +1 -1
- package/esm/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/afterAttach.js +10 -11
- package/esm/LinearSyntenyDisplay/components/BlockError.js +1 -1
- package/esm/LinearSyntenyDisplay/components/BlockMessage.js +6 -15
- package/esm/LinearSyntenyDisplay/components/Component.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/Component.js +5 -5
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +10 -14
- package/esm/LinearSyntenyDisplay/components/LoadingMessage.js +1 -1
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +8 -33
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +1 -1
- package/esm/LinearSyntenyDisplay/components/util.d.ts +2 -2
- package/esm/LinearSyntenyDisplay/components/util.js +3 -3
- package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +2 -2
- package/esm/LinearSyntenyDisplay/configSchemaF.js +1 -1
- package/esm/LinearSyntenyDisplay/drawMouseoverClickMap.d.ts +2 -0
- package/esm/LinearSyntenyDisplay/drawMouseoverClickMap.js +53 -0
- package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/drawSynteny.js +3 -5
- package/esm/LinearSyntenyDisplay/index.js +3 -3
- package/esm/LinearSyntenyDisplay/model.d.ts +97 -137
- package/esm/LinearSyntenyDisplay/model.js +3 -3
- package/esm/LinearSyntenyView/components/DiagonalizationProgressDialog.d.ts +1 -1
- package/esm/LinearSyntenyView/components/DiagonalizationProgressDialog.js +2 -2
- package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ExportSvgDialog.js +6 -2
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +4 -4
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +4 -5
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +11 -1
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +8 -4
- package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.js +26 -9
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +5 -5
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +1 -2
- package/esm/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.js +2 -2
- package/esm/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.js +2 -2
- package/esm/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.js +3 -3
- package/esm/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.js +3 -3
- package/esm/LinearSyntenyView/components/ImportForm/selectors/index.d.ts +4 -4
- package/esm/LinearSyntenyView/components/ImportForm/selectors/index.js +4 -4
- package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -1
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js +14 -4
- package/esm/LinearSyntenyView/index.js +2 -2
- package/esm/LinearSyntenyView/model.d.ts +522 -254
- package/esm/LinearSyntenyView/model.js +99 -15
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +3 -1
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +3 -3
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +2 -2
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +34 -31
- package/esm/LinearSyntenyView/types.d.ts +10 -1
- package/esm/LinearSyntenyViewHelper/index.js +1 -1
- package/esm/LinearSyntenyViewHelper/stateModelFactory.d.ts +11 -11
- package/esm/LinearSyntenyViewHelper/stateModelFactory.js +5 -43
- package/esm/SyntenyFeatureDetail/Formatter.js +2 -2
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +1 -1
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +6 -7
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +1 -1
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +3 -3
- package/esm/SyntenyFeatureDetail/index.js +2 -2
- package/esm/SyntenyTrack/configSchema.d.ts +16 -11
- package/esm/SyntenyTrack/index.js +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +11 -14
- package/esm/util.d.ts +1 -1
- package/esm/util.js +4 -8
- package/package.json +29 -35
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +0 -9
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +0 -53
- package/dist/LGVSyntenyDisplay/components/util.d.ts +0 -14
- package/dist/LGVSyntenyDisplay/components/util.js +0 -100
- package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +0 -66
- package/dist/LGVSyntenyDisplay/configSchemaF.js +0 -38
- package/dist/LGVSyntenyDisplay/index.d.ts +0 -2
- package/dist/LGVSyntenyDisplay/index.js +0 -24
- package/dist/LGVSyntenyDisplay/model.d.ts +0 -418
- package/dist/LGVSyntenyDisplay/model.js +0 -118
- package/dist/LaunchLinearSyntenyView.d.ts +0 -2
- package/dist/LaunchLinearSyntenyView.js +0 -93
- package/dist/LinearComparativeDisplay/configSchemaF.d.ts +0 -2
- package/dist/LinearComparativeDisplay/configSchemaF.js +0 -10
- package/dist/LinearComparativeDisplay/index.d.ts +0 -2
- package/dist/LinearComparativeDisplay/index.js +0 -24
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +0 -243
- package/dist/LinearComparativeDisplay/stateModelFactory.js +0 -146
- package/dist/LinearComparativeView/components/ColorBySelector.d.ts +0 -5
- package/dist/LinearComparativeView/components/ColorBySelector.js +0 -54
- package/dist/LinearComparativeView/components/Header.d.ts +0 -5
- package/dist/LinearComparativeView/components/Header.js +0 -87
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +0 -5
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +0 -24
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +0 -5
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +0 -46
- package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +0 -5
- package/dist/LinearComparativeView/components/LinearComparativeView.js +0 -30
- package/dist/LinearComparativeView/components/MinLengthSlider.d.ts +0 -5
- package/dist/LinearComparativeView/components/MinLengthSlider.js +0 -47
- package/dist/LinearComparativeView/components/OpacitySlider.d.ts +0 -5
- package/dist/LinearComparativeView/components/OpacitySlider.js +0 -46
- package/dist/LinearComparativeView/components/Rubberband.d.ts +0 -7
- package/dist/LinearComparativeView/components/Rubberband.js +0 -32
- package/dist/LinearComparativeView/components/RubberbandSpan.d.ts +0 -15
- package/dist/LinearComparativeView/components/RubberbandSpan.js +0 -38
- package/dist/LinearComparativeView/components/RubberbandTooltip.d.ts +0 -5
- package/dist/LinearComparativeView/components/RubberbandTooltip.js +0 -20
- package/dist/LinearComparativeView/components/SliderTooltip.d.ts +0 -2
- package/dist/LinearComparativeView/components/SliderTooltip.js +0 -9
- package/dist/LinearComparativeView/components/VerticalGuide.d.ts +0 -7
- package/dist/LinearComparativeView/components/VerticalGuide.js +0 -26
- package/dist/LinearComparativeView/components/useRangeSelect.d.ts +0 -59
- package/dist/LinearComparativeView/components/useRangeSelect.js +0 -124
- package/dist/LinearComparativeView/components/util.d.ts +0 -4
- package/dist/LinearComparativeView/components/util.js +0 -6
- package/dist/LinearComparativeView/index.d.ts +0 -2
- package/dist/LinearComparativeView/index.js +0 -55
- package/dist/LinearComparativeView/model.d.ts +0 -606
- package/dist/LinearComparativeView/model.js +0 -238
- package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +0 -6
- package/dist/LinearReadVsRef/LinearReadVsRef.js +0 -241
- package/dist/LinearReadVsRef/index.d.ts +0 -2
- package/dist/LinearReadVsRef/index.js +0 -86
- package/dist/LinearSyntenyDisplay/afterAttach.d.ts +0 -2
- package/dist/LinearSyntenyDisplay/afterAttach.js +0 -104
- package/dist/LinearSyntenyDisplay/components/BlockError.d.ts +0 -3
- package/dist/LinearSyntenyDisplay/components/BlockError.js +0 -16
- package/dist/LinearSyntenyDisplay/components/BlockMessage.d.ts +0 -3
- package/dist/LinearSyntenyDisplay/components/BlockMessage.js +0 -24
- package/dist/LinearSyntenyDisplay/components/Component.d.ts +0 -5
- package/dist/LinearSyntenyDisplay/components/Component.js +0 -26
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +0 -5
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +0 -223
- package/dist/LinearSyntenyDisplay/components/LoadingMessage.d.ts +0 -3
- package/dist/LinearSyntenyDisplay/components/LoadingMessage.js +0 -21
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +0 -15
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +0 -56
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +0 -4
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +0 -13
- package/dist/LinearSyntenyDisplay/components/util.d.ts +0 -45
- package/dist/LinearSyntenyDisplay/components/util.js +0 -199
- package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +0 -12
- package/dist/LinearSyntenyDisplay/configSchemaF.js +0 -23
- package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +0 -6
- package/dist/LinearSyntenyDisplay/drawSynteny.js +0 -470
- package/dist/LinearSyntenyDisplay/index.d.ts +0 -2
- package/dist/LinearSyntenyDisplay/index.js +0 -56
- package/dist/LinearSyntenyDisplay/model.d.ts +0 -291
- package/dist/LinearSyntenyDisplay/model.js +0 -133
- package/dist/LinearSyntenyView/components/DiagonalizationProgressDialog.d.ts +0 -6
- package/dist/LinearSyntenyView/components/DiagonalizationProgressDialog.js +0 -87
- package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +0 -7
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js +0 -58
- package/dist/LinearSyntenyView/components/Icons.d.ts +0 -3
- package/dist/LinearSyntenyView/components/Icons.js +0 -12
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +0 -8
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +0 -81
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +0 -8
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +0 -39
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +0 -7
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +0 -22
- package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +0 -11
- package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.js +0 -58
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +0 -5
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +0 -60
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +0 -5
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +0 -43
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +0 -117
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +0 -68
- package/dist/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.d.ts +0 -3
- package/dist/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.js +0 -13
- package/dist/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.d.ts +0 -3
- package/dist/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.js +0 -13
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SelectorTypes.d.ts +0 -19
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SelectorTypes.js +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.d.ts +0 -3
- package/dist/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.js +0 -20
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.d.ts +0 -13
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.js +0 -32
- package/dist/LinearSyntenyView/components/ImportForm/selectors/index.d.ts +0 -4
- package/dist/LinearSyntenyView/components/ImportForm/selectors/index.js +0 -27
- package/dist/LinearSyntenyView/components/ImportForm/util.d.ts +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/util.js +0 -24
- package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +0 -5
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js +0 -47
- package/dist/LinearSyntenyView/components/TextField2.d.ts +0 -2
- package/dist/LinearSyntenyView/components/TextField2.js +0 -8
- package/dist/LinearSyntenyView/index.d.ts +0 -2
- package/dist/LinearSyntenyView/index.js +0 -52
- package/dist/LinearSyntenyView/model.d.ts +0 -702
- package/dist/LinearSyntenyView/model.js +0 -240
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +0 -5
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +0 -10
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +0 -11
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +0 -11
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +0 -3
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +0 -80
- package/dist/LinearSyntenyView/types.d.ts +0 -29
- package/dist/LinearSyntenyView/types.js +0 -2
- package/dist/LinearSyntenyView/util/diagonalize.d.ts +0 -27
- package/dist/LinearSyntenyView/util/diagonalize.js +0 -91
- package/dist/LinearSyntenyViewHelper/index.d.ts +0 -2
- package/dist/LinearSyntenyViewHelper/index.js +0 -25
- package/dist/LinearSyntenyViewHelper/stateModelFactory.d.ts +0 -18
- package/dist/LinearSyntenyViewHelper/stateModelFactory.js +0 -78
- package/dist/SyntenyFeatureDetail/Formatter.d.ts +0 -3
- package/dist/SyntenyFeatureDetail/Formatter.js +0 -23
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +0 -7
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +0 -87
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +0 -5
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +0 -19
- package/dist/SyntenyFeatureDetail/index.d.ts +0 -2
- package/dist/SyntenyFeatureDetail/index.js +0 -60
- package/dist/SyntenyFeatureDetail/types.d.ts +0 -9
- package/dist/SyntenyFeatureDetail/types.js +0 -2
- package/dist/SyntenyTrack/configSchema.d.ts +0 -80
- package/dist/SyntenyTrack/configSchema.js +0 -9
- package/dist/SyntenyTrack/index.d.ts +0 -2
- package/dist/SyntenyTrack/index.js +0 -19
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -48
- package/dist/util.d.ts +0 -25
- package/dist/util.js +0 -67
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LinearSyntenyDisplayModel } from './model';
|
|
1
|
+
import type { LinearSyntenyDisplayModel } from './model.ts';
|
|
2
2
|
export declare const MAX_COLOR_RANGE: number;
|
|
3
3
|
export declare function getId(r: number, g: number, b: number, unitMultiplier: number): number;
|
|
4
4
|
export declare function drawCigarClickMap(model: LinearSyntenyDisplayModel, cigarClickMapCanvas: CanvasRenderingContext2D): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { category10 } from '@jbrowse/core/ui/colors';
|
|
2
2
|
import { doesIntersect2, getContainingView } from '@jbrowse/core/util';
|
|
3
3
|
import { colord } from '@jbrowse/core/util/colord';
|
|
4
|
-
import { draw, drawLocationMarkers, drawMatchSimple } from
|
|
4
|
+
import { draw, drawLocationMarkers, drawMatchSimple, } from "./components/util.js";
|
|
5
5
|
export const MAX_COLOR_RANGE = 255 * 255 * 255;
|
|
6
6
|
function makeColor(idx) {
|
|
7
7
|
const r = Math.floor(idx / (255 * 255)) % 255;
|
|
@@ -148,7 +148,6 @@ export function drawCigarClickMap(model, cigarClickMapCanvas) {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
export function drawRef(model, mainCanvas) {
|
|
151
|
-
var _a;
|
|
152
151
|
const view = getContainingView(model);
|
|
153
152
|
const drawCurves = view.drawCurves;
|
|
154
153
|
const drawCIGAR = view.drawCIGAR;
|
|
@@ -377,7 +376,7 @@ export function drawRef(model, mainCanvas) {
|
|
|
377
376
|
}
|
|
378
377
|
}
|
|
379
378
|
}
|
|
380
|
-
const ctx2 =
|
|
379
|
+
const ctx2 = model.clickMapCanvas?.getContext('2d');
|
|
381
380
|
if (!ctx2) {
|
|
382
381
|
return;
|
|
383
382
|
}
|
|
@@ -411,14 +410,13 @@ export function drawRef(model, mainCanvas) {
|
|
|
411
410
|
}
|
|
412
411
|
}
|
|
413
412
|
export function drawMouseoverClickMap(model) {
|
|
414
|
-
var _a;
|
|
415
413
|
const { level, clickId, mouseoverId } = model;
|
|
416
414
|
const highResolutionScaling = 1;
|
|
417
415
|
const view = getContainingView(model);
|
|
418
416
|
const drawCurves = view.drawCurves;
|
|
419
417
|
const height = model.height;
|
|
420
418
|
const width = view.width;
|
|
421
|
-
const ctx =
|
|
419
|
+
const ctx = model.mouseoverCanvas?.getContext('2d');
|
|
422
420
|
const offsets = view.views.map(v => v.offsetPx);
|
|
423
421
|
if (!ctx) {
|
|
424
422
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { lazy } from 'react';
|
|
2
2
|
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
3
|
-
import configSchemaF from
|
|
4
|
-
import stateModelFactory from
|
|
3
|
+
import configSchemaF from "./configSchemaF.js";
|
|
4
|
+
import stateModelFactory from "./model.js";
|
|
5
5
|
export default function LinearSyntenyDisplayF(pluginManager) {
|
|
6
6
|
pluginManager.addDisplayType(() => {
|
|
7
7
|
const configSchema = configSchemaF(pluginManager);
|
|
@@ -11,7 +11,7 @@ export default function LinearSyntenyDisplayF(pluginManager) {
|
|
|
11
11
|
stateModel: stateModelFactory(configSchema),
|
|
12
12
|
trackType: 'SyntenyTrack',
|
|
13
13
|
viewType: 'LinearSyntenyViewHelper',
|
|
14
|
-
ReactComponent: lazy(() => import(
|
|
14
|
+
ReactComponent: lazy(() => import("./components/Component.js")),
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
2
|
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
-
import type { Instance } from 'mobx-state-tree';
|
|
3
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
4
4
|
interface Pos {
|
|
5
5
|
offsetPx: number;
|
|
6
6
|
}
|
|
@@ -12,40 +12,40 @@ export interface FeatPos {
|
|
|
12
12
|
f: Feature;
|
|
13
13
|
cigar: string[];
|
|
14
14
|
}
|
|
15
|
-
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
16
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
17
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
18
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
15
|
+
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
16
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
17
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
18
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
19
19
|
} & {
|
|
20
|
-
type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
20
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
21
21
|
configuration: AnyConfigurationSchemaType;
|
|
22
22
|
} & {
|
|
23
|
-
type: import("mobx-state-tree").ISimpleType<"LinearSyntenyDisplay">;
|
|
23
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"LinearSyntenyDisplay">;
|
|
24
24
|
configuration: AnyConfigurationSchemaType;
|
|
25
|
-
colorBy: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
25
|
+
colorBy: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
26
26
|
}, {
|
|
27
27
|
rendererTypeName: string;
|
|
28
28
|
error: unknown;
|
|
29
|
-
|
|
29
|
+
statusMessage: string | undefined;
|
|
30
30
|
} & {
|
|
31
31
|
readonly RenderingComponent: React.FC<{
|
|
32
32
|
model: {
|
|
33
33
|
id: string;
|
|
34
34
|
type: string;
|
|
35
35
|
rpcDriverName: string | undefined;
|
|
36
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
36
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
37
37
|
rendererTypeName: string;
|
|
38
38
|
error: unknown;
|
|
39
|
-
|
|
40
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
41
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
42
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
43
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
39
|
+
statusMessage: string | undefined;
|
|
40
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
41
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
42
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
43
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
44
44
|
}, {
|
|
45
45
|
rendererTypeName: string;
|
|
46
46
|
error: unknown;
|
|
47
|
-
|
|
48
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
47
|
+
statusMessage: string | undefined;
|
|
48
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
49
49
|
onHorizontalScroll?: () => void;
|
|
50
50
|
blockState?: Record<string, any>;
|
|
51
51
|
}>;
|
|
@@ -54,81 +54,54 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
54
54
|
id: string;
|
|
55
55
|
type: string;
|
|
56
56
|
rpcDriverName: string | undefined;
|
|
57
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
57
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
58
58
|
rendererTypeName: string;
|
|
59
59
|
error: unknown;
|
|
60
|
-
|
|
61
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
62
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
63
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
64
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
60
|
+
statusMessage: string | undefined;
|
|
61
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
62
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
63
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
64
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
65
65
|
}, {
|
|
66
66
|
rendererTypeName: string;
|
|
67
67
|
error: unknown;
|
|
68
|
-
|
|
69
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
68
|
+
statusMessage: string | undefined;
|
|
69
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
70
70
|
}> | null;
|
|
71
71
|
readonly adapterConfig: any;
|
|
72
|
-
readonly parentTrack:
|
|
73
|
-
|
|
74
|
-
readonly
|
|
75
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
76
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
77
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
78
|
-
regionCannotBeRendered(): null;
|
|
79
|
-
} & {
|
|
80
|
-
setMessage(arg?: string): void;
|
|
81
|
-
setError(error?: unknown): void;
|
|
82
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
83
|
-
reload(): void;
|
|
72
|
+
readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
|
|
73
|
+
readonly parentDisplay: any;
|
|
74
|
+
readonly effectiveRpcDriverName: any;
|
|
84
75
|
} & {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
message: string | undefined;
|
|
88
|
-
loadingStatus: string | undefined;
|
|
89
|
-
} & {
|
|
90
|
-
readonly level: number;
|
|
91
|
-
readonly height: number;
|
|
92
|
-
renderProps(): {
|
|
93
|
-
rpcDriverName: string | undefined;
|
|
76
|
+
renderProps(): any;
|
|
77
|
+
renderingProps(): {
|
|
94
78
|
displayModel: {
|
|
95
79
|
id: string;
|
|
96
|
-
type:
|
|
80
|
+
type: string;
|
|
97
81
|
rpcDriverName: string | undefined;
|
|
98
|
-
|
|
99
|
-
[x: string]: any;
|
|
100
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
101
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
102
|
-
[x: string]: any;
|
|
103
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
104
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
105
|
-
[x: string]: any;
|
|
106
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
107
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
108
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
109
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
82
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
110
83
|
rendererTypeName: string;
|
|
111
84
|
error: unknown;
|
|
112
|
-
|
|
85
|
+
statusMessage: string | undefined;
|
|
113
86
|
} & {
|
|
114
87
|
readonly RenderingComponent: React.FC<{
|
|
115
88
|
model: {
|
|
116
89
|
id: string;
|
|
117
90
|
type: string;
|
|
118
91
|
rpcDriverName: string | undefined;
|
|
119
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
92
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
120
93
|
rendererTypeName: string;
|
|
121
94
|
error: unknown;
|
|
122
|
-
|
|
123
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
124
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
125
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
126
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
95
|
+
statusMessage: string | undefined;
|
|
96
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
97
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
98
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
99
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
127
100
|
}, {
|
|
128
101
|
rendererTypeName: string;
|
|
129
102
|
error: unknown;
|
|
130
|
-
|
|
131
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
103
|
+
statusMessage: string | undefined;
|
|
104
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
132
105
|
onHorizontalScroll?: () => void;
|
|
133
106
|
blockState?: Record<string, any>;
|
|
134
107
|
}>;
|
|
@@ -137,68 +110,51 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
137
110
|
id: string;
|
|
138
111
|
type: string;
|
|
139
112
|
rpcDriverName: string | undefined;
|
|
140
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
113
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
141
114
|
rendererTypeName: string;
|
|
142
115
|
error: unknown;
|
|
143
|
-
|
|
144
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
145
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
146
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
147
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
116
|
+
statusMessage: string | undefined;
|
|
117
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
118
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
119
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
120
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
148
121
|
}, {
|
|
149
122
|
rendererTypeName: string;
|
|
150
123
|
error: unknown;
|
|
151
|
-
|
|
152
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
124
|
+
statusMessage: string | undefined;
|
|
125
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
153
126
|
}> | null;
|
|
154
127
|
readonly adapterConfig: any;
|
|
155
|
-
readonly parentTrack:
|
|
156
|
-
|
|
157
|
-
readonly
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
} & {
|
|
163
|
-
setMessage(arg?: string): void;
|
|
164
|
-
setError(error?: unknown): void;
|
|
165
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
166
|
-
reload(): void;
|
|
167
|
-
} & {
|
|
168
|
-
renderInProgress: string | undefined;
|
|
169
|
-
features: Feature[] | undefined;
|
|
170
|
-
message: string | undefined;
|
|
171
|
-
loadingStatus: string | undefined;
|
|
172
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
173
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
174
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
175
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
176
|
-
} & {
|
|
177
|
-
type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
178
|
-
configuration: AnyConfigurationSchemaType;
|
|
128
|
+
readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
|
|
129
|
+
readonly parentDisplay: any;
|
|
130
|
+
readonly effectiveRpcDriverName: any;
|
|
131
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
132
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
133
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
134
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
179
135
|
}, {
|
|
180
136
|
rendererTypeName: string;
|
|
181
137
|
error: unknown;
|
|
182
|
-
|
|
138
|
+
statusMessage: string | undefined;
|
|
183
139
|
} & {
|
|
184
140
|
readonly RenderingComponent: React.FC<{
|
|
185
141
|
model: {
|
|
186
142
|
id: string;
|
|
187
143
|
type: string;
|
|
188
144
|
rpcDriverName: string | undefined;
|
|
189
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
145
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
190
146
|
rendererTypeName: string;
|
|
191
147
|
error: unknown;
|
|
192
|
-
|
|
193
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
194
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
195
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
196
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
148
|
+
statusMessage: string | undefined;
|
|
149
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
150
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
151
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
152
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
197
153
|
}, {
|
|
198
154
|
rendererTypeName: string;
|
|
199
155
|
error: unknown;
|
|
200
|
-
|
|
201
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
156
|
+
statusMessage: string | undefined;
|
|
157
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
202
158
|
onHorizontalScroll?: () => void;
|
|
203
159
|
blockState?: Record<string, any>;
|
|
204
160
|
}>;
|
|
@@ -207,41 +163,45 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
207
163
|
id: string;
|
|
208
164
|
type: string;
|
|
209
165
|
rpcDriverName: string | undefined;
|
|
210
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
166
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
211
167
|
rendererTypeName: string;
|
|
212
168
|
error: unknown;
|
|
213
|
-
|
|
214
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
215
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
216
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
217
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
169
|
+
statusMessage: string | undefined;
|
|
170
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
171
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
172
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
173
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
218
174
|
}, {
|
|
219
175
|
rendererTypeName: string;
|
|
220
176
|
error: unknown;
|
|
221
|
-
|
|
222
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
177
|
+
statusMessage: string | undefined;
|
|
178
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
223
179
|
}> | null;
|
|
224
180
|
readonly adapterConfig: any;
|
|
225
|
-
readonly parentTrack:
|
|
226
|
-
|
|
227
|
-
readonly
|
|
228
|
-
|
|
229
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
230
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
231
|
-
regionCannotBeRendered(): null;
|
|
232
|
-
} & {
|
|
233
|
-
setMessage(arg?: string): void;
|
|
234
|
-
setError(error?: unknown): void;
|
|
235
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
236
|
-
reload(): void;
|
|
237
|
-
} & {
|
|
238
|
-
renderInProgress: string | undefined;
|
|
239
|
-
features: Feature[] | undefined;
|
|
240
|
-
message: string | undefined;
|
|
241
|
-
loadingStatus: string | undefined;
|
|
242
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
243
|
-
highResolutionScaling: number;
|
|
181
|
+
readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
|
|
182
|
+
readonly parentDisplay: any;
|
|
183
|
+
readonly effectiveRpcDriverName: any;
|
|
184
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
244
185
|
};
|
|
186
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
187
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
188
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
189
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
190
|
+
regionCannotBeRendered(): null;
|
|
191
|
+
} & {
|
|
192
|
+
setStatusMessage(arg?: string): void;
|
|
193
|
+
setError(error?: unknown): void;
|
|
194
|
+
setRpcDriverName(rpcDriverName: string): void;
|
|
195
|
+
reload(): void;
|
|
196
|
+
} & {
|
|
197
|
+
renderInProgress: string | undefined;
|
|
198
|
+
features: Feature[] | undefined;
|
|
199
|
+
message: string | undefined;
|
|
200
|
+
loadingStatus: string | undefined;
|
|
201
|
+
} & {
|
|
202
|
+
readonly level: number;
|
|
203
|
+
readonly height: number;
|
|
204
|
+
renderProps(): any;
|
|
245
205
|
} & {
|
|
246
206
|
setLoading(newStopToken: string): void;
|
|
247
207
|
setMessage(messageText: string): void;
|
|
@@ -285,7 +245,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
285
245
|
};
|
|
286
246
|
} & {
|
|
287
247
|
afterAttach(): void;
|
|
288
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
248
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
289
249
|
export type LinearSyntenyDisplayStateModel = ReturnType<typeof stateModelFactory>;
|
|
290
250
|
export type LinearSyntenyDisplayModel = Instance<LinearSyntenyDisplayStateModel>;
|
|
291
251
|
export default stateModelFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigurationReference, getConf } from '@jbrowse/core/configuration';
|
|
2
|
-
import { types } from 'mobx-state-tree';
|
|
3
|
-
import baseModelFactory from
|
|
2
|
+
import { types } from '@jbrowse/mobx-state-tree';
|
|
3
|
+
import baseModelFactory from "../LinearComparativeDisplay/stateModelFactory.js";
|
|
4
4
|
function stateModelFactory(configSchema) {
|
|
5
5
|
return types
|
|
6
6
|
.compose('LinearSyntenyDisplay', baseModelFactory(configSchema), types.model({
|
|
@@ -81,7 +81,7 @@ function stateModelFactory(configSchema) {
|
|
|
81
81
|
;
|
|
82
82
|
(async () => {
|
|
83
83
|
try {
|
|
84
|
-
const { doAfterAttach } = await import(
|
|
84
|
+
const { doAfterAttach } = await import("./afterAttach.js");
|
|
85
85
|
doAfterAttach(self);
|
|
86
86
|
}
|
|
87
87
|
catch (e) {
|
|
@@ -5,8 +5,8 @@ import { getSession } from '@jbrowse/core/util';
|
|
|
5
5
|
import { Button, DialogActions, DialogContent, LinearProgress, Typography, } from '@mui/material';
|
|
6
6
|
import { transaction } from 'mobx';
|
|
7
7
|
import { observer } from 'mobx-react';
|
|
8
|
-
import { diagonalizeRegions } from
|
|
9
|
-
const DiagonalizationProgressDialog = observer(function ({ handleClose, model, }) {
|
|
8
|
+
import { diagonalizeRegions } from "../util/diagonalize.js";
|
|
9
|
+
const DiagonalizationProgressDialog = observer(function DiagonalizationProgressDialog({ handleClose, model, }) {
|
|
10
10
|
const [progress, setProgress] = useState(0);
|
|
11
11
|
const [message, setMessage] = useState('Initializing...');
|
|
12
12
|
const [error, setError] = useState();
|
|
@@ -3,7 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Dialog, ErrorMessage } from '@jbrowse/core/ui';
|
|
4
4
|
import { getSession, useLocalStorage } from '@jbrowse/core/util';
|
|
5
5
|
import { Button, Checkbox, CircularProgress, DialogActions, DialogContent, FormControlLabel, MenuItem, Typography, } from '@mui/material';
|
|
6
|
-
import TextField2 from
|
|
6
|
+
import TextField2 from "./TextField2.js";
|
|
7
7
|
function LoadingMessage() {
|
|
8
8
|
return (_jsxs("div", { children: [_jsx(CircularProgress, { size: 20, style: { marginRight: 20 } }), _jsx(Typography, { display: "inline", children: "Creating SVG" })] }));
|
|
9
9
|
}
|
|
@@ -14,6 +14,7 @@ export default function ExportSvgDialog({ model, handleClose, }) {
|
|
|
14
14
|
const session = getSession(model);
|
|
15
15
|
const offscreenCanvas = typeof OffscreenCanvas !== 'undefined';
|
|
16
16
|
const [rasterizeLayers, setRasterizeLayers] = useState(offscreenCanvas);
|
|
17
|
+
const [showGridlines, setShowGridlines] = useSvgLocal('gridlines', false);
|
|
17
18
|
const [loading, setLoading] = useState(false);
|
|
18
19
|
const [filename, setFilename] = useSvgLocal('file', 'jbrowse.svg');
|
|
19
20
|
const [trackLabels, setTrackLabels] = useSvgLocal('tracklabels', 'offset');
|
|
@@ -25,7 +26,9 @@ export default function ExportSvgDialog({ model, handleClose, }) {
|
|
|
25
26
|
setTrackLabels(event.target.value);
|
|
26
27
|
}, children: [_jsx(MenuItem, { value: "offset", children: "Offset" }), _jsx(MenuItem, { value: "overlay", children: "Overlay" }), _jsx(MenuItem, { value: "left", children: "Left" }), _jsx(MenuItem, { value: "none", children: "None" })] }), _jsx("br", {}), session.allThemes ? (_jsx(TextField2, { select: true, label: "Theme", variant: "outlined", value: themeName, onChange: event => {
|
|
27
28
|
setThemeName(event.target.value);
|
|
28
|
-
}, children: Object.entries(session.allThemes()).map(([key, val]) => (_jsx(MenuItem, { value: key, children: val.name || '(Unknown name)' }, key))) })) : null,
|
|
29
|
+
}, children: Object.entries(session.allThemes()).map(([key, val]) => (_jsx(MenuItem, { value: key, children: val.name || '(Unknown name)' }, key))) })) : null, _jsx(FormControlLabel, { control: _jsx(Checkbox, { checked: showGridlines, onChange: () => {
|
|
30
|
+
setShowGridlines(val => !val);
|
|
31
|
+
} }), label: "Show gridlines" }), offscreenCanvas ? (_jsx(FormControlLabel, { control: _jsx(Checkbox, { checked: rasterizeLayers, onChange: () => {
|
|
29
32
|
setRasterizeLayers(val => !val);
|
|
30
33
|
} }), label: "Rasterize canvas based tracks? File may be much larger if this is turned off" })) : (_jsx(Typography, { children: "Note: rasterizing layers not yet supported in this browser, so SVG size may be large" }))] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
31
34
|
handleClose();
|
|
@@ -38,6 +41,7 @@ export default function ExportSvgDialog({ model, handleClose, }) {
|
|
|
38
41
|
filename,
|
|
39
42
|
themeName,
|
|
40
43
|
trackLabels,
|
|
44
|
+
showGridlines,
|
|
41
45
|
});
|
|
42
46
|
handleClose();
|
|
43
47
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LinearSyntenyViewModel } from '../../model';
|
|
1
|
+
import type { LinearSyntenyViewModel } from '../../model.ts';
|
|
2
2
|
declare const ImportSyntenyOpenCustomTrack: ({ model, assembly1, assembly2, selectedRow, }: {
|
|
3
3
|
model: LinearSyntenyViewModel;
|
|
4
4
|
assembly1: string;
|
|
@@ -3,10 +3,10 @@ import { useEffect, useState } from 'react';
|
|
|
3
3
|
import { ErrorMessage, FileSelector } from '@jbrowse/core/ui';
|
|
4
4
|
import { FormControlLabel, Grid, Paper, Radio, RadioGroup, Typography, } from '@mui/material';
|
|
5
5
|
import { observer } from 'mobx-react';
|
|
6
|
-
import { getAdapter } from
|
|
7
|
-
import { AnchorsSelector, PifGzSelector, StandardFormatSelector, } from
|
|
8
|
-
import { basename, extName, getName, stripGz } from
|
|
9
|
-
const ImportSyntenyOpenCustomTrack = observer(function ({ model, assembly1, assembly2, selectedRow, }) {
|
|
6
|
+
import { getAdapter } from "./getAdapter.js";
|
|
7
|
+
import { AnchorsSelector, PifGzSelector, StandardFormatSelector, } from "./selectors/index.js";
|
|
8
|
+
import { basename, extName, getName, stripGz } from "./util.js";
|
|
9
|
+
const ImportSyntenyOpenCustomTrack = observer(function ImportSyntenyOpenCustomTrack({ model, assembly1, assembly2, selectedRow, }) {
|
|
10
10
|
const [swap, setSwap] = useState(false);
|
|
11
11
|
const [bed2Location, setBed2Location] = useState();
|
|
12
12
|
const [bed1Location, setBed1Location] = useState();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LinearSyntenyViewModel } from '../../model';
|
|
1
|
+
import type { LinearSyntenyViewModel } from '../../model.ts';
|
|
2
2
|
declare const ImportSyntenyTrackSelector: ({ model, selectedRow, assembly1, assembly2, }: {
|
|
3
3
|
model: LinearSyntenyViewModel;
|
|
4
4
|
selectedRow: number;
|
|
@@ -6,11 +6,10 @@ import { getSession } from '@jbrowse/core/util';
|
|
|
6
6
|
import { getTrackName } from '@jbrowse/core/util/tracks';
|
|
7
7
|
import { MenuItem, Paper, Select, Typography } from '@mui/material';
|
|
8
8
|
import { observer } from 'mobx-react';
|
|
9
|
-
const ImportSyntenyTrackSelector = observer(function ({ model, selectedRow, assembly1, assembly2, }) {
|
|
10
|
-
var _a;
|
|
9
|
+
const ImportSyntenyTrackSelector = observer(function ImportSyntenyTrackSelector({ model, selectedRow, assembly1, assembly2, }) {
|
|
11
10
|
const session = getSession(model);
|
|
12
11
|
const { importFormSyntenyTrackSelections } = model;
|
|
13
|
-
const { tracks
|
|
12
|
+
const { tracks, sessionTracks = [] } = session;
|
|
14
13
|
const allTracks = [...tracks, ...sessionTracks];
|
|
15
14
|
const filteredTracks = allTracks.filter(track => {
|
|
16
15
|
const assemblyNames = readConfObject(track, 'assemblyNames');
|
|
@@ -18,9 +17,9 @@ const ImportSyntenyTrackSelector = observer(function ({ model, selectedRow, asse
|
|
|
18
17
|
assemblyNames.includes(assembly2) &&
|
|
19
18
|
track.type.includes('Synteny'));
|
|
20
19
|
});
|
|
21
|
-
const resetTrack =
|
|
20
|
+
const resetTrack = filteredTracks[0]?.trackId || '';
|
|
22
21
|
const r = importFormSyntenyTrackSelections[selectedRow];
|
|
23
|
-
const value =
|
|
22
|
+
const value = r?.type === 'preConfigured' ? r.value : undefined;
|
|
24
23
|
useEffect(() => {
|
|
25
24
|
model.setImportFormSyntenyTrack(selectedRow, {
|
|
26
25
|
type: 'preConfigured',
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import type { LinearSyntenyViewModel } from '../../model';
|
|
1
|
+
import type { LinearSyntenyViewModel } from '../../model.ts';
|
|
2
|
+
export interface LinearSyntenyImportFormSyntenyOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
ReactComponent: React.FC<{
|
|
6
|
+
model: LinearSyntenyViewModel;
|
|
7
|
+
assembly1: string;
|
|
8
|
+
assembly2: string;
|
|
9
|
+
selectedRow: number;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
2
12
|
export default function ImportSyntenyTrackSelectorArea({ model, assembly1, assembly2, selectedRow, }: {
|
|
3
13
|
model: LinearSyntenyViewModel;
|
|
4
14
|
assembly1: string;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
|
+
import { getEnv } from '@jbrowse/core/util';
|
|
3
4
|
import { FormControl, FormControlLabel, Radio, RadioGroup } from '@mui/material';
|
|
4
|
-
import ImportCustomTrack from
|
|
5
|
-
import ImportSyntenyTrackSelector from
|
|
5
|
+
import ImportCustomTrack from "./ImportSyntenyOpenCustomTrack.js";
|
|
6
|
+
import ImportSyntenyTrackSelector from "./ImportSyntenyPreConfigured.js";
|
|
6
7
|
export default function ImportSyntenyTrackSelectorArea({ model, assembly1, assembly2, selectedRow, }) {
|
|
8
|
+
const { pluginManager } = getEnv(model);
|
|
7
9
|
const [choice, setChoice] = useState('tracklist');
|
|
10
|
+
const customOptions = pluginManager.evaluateExtensionPoint('LinearSyntenyView-ImportFormSyntenyOptions', [], { model, assembly1, assembly2, selectedRow });
|
|
11
|
+
const selectedCustomOption = customOptions.find(opt => opt.value === choice);
|
|
8
12
|
useEffect(() => {
|
|
9
|
-
if (choice === 'none') {
|
|
13
|
+
if (choice === 'none' || choice === 'custom') {
|
|
10
14
|
model.setImportFormSyntenyTrack(selectedRow, { type: 'none' });
|
|
11
15
|
}
|
|
12
16
|
}, [choice, model, selectedRow]);
|
|
13
17
|
return (_jsxs("div", { children: [_jsx(FormControl, { children: _jsxs(RadioGroup, { row: true, value: choice, "aria-labelledby": "group-label", onChange: event => {
|
|
14
18
|
setChoice(event.target.value);
|
|
15
|
-
}, children: [_jsx(FormControlLabel, { value: "none", control: _jsx(Radio, {}), label: "None" }), _jsx(FormControlLabel, { value: "tracklist", control: _jsx(Radio, {}), label: "Existing track" }), _jsx(FormControlLabel, { value: "custom", control: _jsx(Radio, {}), label: "New track" })] }) }), choice === 'custom' ? (_jsx(ImportCustomTrack, { model: model, selectedRow: selectedRow, assembly2: assembly2, assembly1: assembly1 })) : null, choice === 'tracklist' ? (_jsx(ImportSyntenyTrackSelector, { model: model, selectedRow: selectedRow, assembly1: assembly1, assembly2: assembly2 })) : null] }));
|
|
19
|
+
}, children: [_jsx(FormControlLabel, { value: "none", control: _jsx(Radio, {}), label: "None" }), _jsx(FormControlLabel, { value: "tracklist", control: _jsx(Radio, {}), label: "Existing track" }), _jsx(FormControlLabel, { value: "custom", control: _jsx(Radio, {}), label: "New track" }), customOptions.map(opt => (_jsx(FormControlLabel, { value: opt.value, control: _jsx(Radio, {}), label: opt.label }, opt.value)))] }) }), choice === 'custom' ? (_jsx(ImportCustomTrack, { model: model, selectedRow: selectedRow, assembly2: assembly2, assembly1: assembly1 })) : null, choice === 'tracklist' ? (_jsx(ImportSyntenyTrackSelector, { model: model, selectedRow: selectedRow, assembly1: assembly1, assembly2: assembly2 })) : null, selectedCustomOption ? (_jsx(selectedCustomOption.ReactComponent, { model: model, assembly1: assembly1, assembly2: assembly2, selectedRow: selectedRow })) : null] }));
|
|
16
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LinearSyntenyViewModel } from '../../model';
|
|
1
|
+
import type { LinearSyntenyViewModel } from '../../model.ts';
|
|
2
2
|
declare const LeftPanel: ({ model, selectedAssemblyNames, setSelectedAssemblyNames, selectedRow, setSelectedRow, defaultAssemblyName, onLaunch, }: {
|
|
3
3
|
model: LinearSyntenyViewModel;
|
|
4
4
|
selectedAssemblyNames: string[];
|