@jbrowse/plugin-linear-genome-view 2.4.1 → 2.5.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/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -4
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +8 -43
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
- package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +3 -4
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js +9 -9
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js.map +1 -1
- package/dist/BaseLinearDisplay/components/Tooltip.d.ts +0 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +81 -35
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +105 -143
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/dist/BaseLinearDisplay/models/configSchema.d.ts +35 -1
- package/dist/BaseLinearDisplay/models/configSchema.js +9 -0
- package/dist/BaseLinearDisplay/models/configSchema.js.map +1 -1
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +10 -6
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +1 -1
- package/dist/BaseLinearDisplay/models/util.d.ts +8 -0
- package/dist/BaseLinearDisplay/models/util.js +33 -1
- package/dist/BaseLinearDisplay/models/util.js.map +1 -1
- package/dist/BasicTrack/configSchema.d.ts +73 -1
- package/dist/FeatureTrack/configSchema.d.ts +75 -1
- package/dist/LinearBareDisplay/configSchema.d.ts +28 -1
- package/dist/LinearBareDisplay/index.js +1 -0
- package/dist/LinearBareDisplay/index.js.map +1 -1
- package/dist/LinearBareDisplay/model.d.ts +66 -23
- package/dist/LinearBareDisplay/model.js +2 -2
- package/dist/LinearBareDisplay/model.js.map +1 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.d.ts +1 -2
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js +2 -5
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js.map +1 -1
- package/dist/LinearBasicDisplay/configSchema.d.ts +28 -1
- package/dist/LinearBasicDisplay/configSchema.js +0 -9
- package/dist/LinearBasicDisplay/configSchema.js.map +1 -1
- package/dist/LinearBasicDisplay/index.js +1 -1
- package/dist/LinearBasicDisplay/model.d.ts +76 -36
- package/dist/LinearBasicDisplay/model.js.map +1 -1
- package/dist/LinearGenomeView/components/CenterLine.d.ts +0 -1
- package/dist/LinearGenomeView/components/Cytobands.d.ts +22 -23
- package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.js +14 -16
- package/dist/LinearGenomeView/components/GetSequenceDialog.js.map +1 -1
- package/dist/LinearGenomeView/components/Gridlines.d.ts +0 -1
- package/dist/LinearGenomeView/components/Header.d.ts +0 -1
- package/dist/LinearGenomeView/components/HelpDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/ImportForm.d.ts +0 -1
- package/dist/LinearGenomeView/components/ImportForm.js +4 -7
- package/dist/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +0 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.js +0 -4
- package/dist/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
- package/dist/LinearGenomeView/components/MiniControls.d.ts +0 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.js +2 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.js.map +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js +53 -52
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
- package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +0 -1
- package/dist/LinearGenomeView/components/SearchBox.d.ts +0 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +5 -3
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +6 -82
- package/dist/LinearGenomeView/components/SearchResultsDialog.js.map +1 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +8 -0
- package/dist/LinearGenomeView/components/SearchResultsTable.js +83 -0
- package/dist/LinearGenomeView/components/SearchResultsTable.js.map +1 -0
- package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +0 -1
- package/dist/LinearGenomeView/components/TrackContainer.js +8 -2
- package/dist/LinearGenomeView/components/TrackContainer.js.map +1 -1
- package/dist/LinearGenomeView/components/TracksContainer.js +5 -7
- package/dist/LinearGenomeView/components/TracksContainer.js.map +1 -1
- package/dist/LinearGenomeView/components/VerticalGuide.d.ts +0 -1
- package/dist/LinearGenomeView/components/ZoomControls.d.ts +0 -1
- package/dist/LinearGenomeView/components/util.js +1 -1
- package/dist/LinearGenomeView/components/util.js.map +1 -1
- package/dist/LinearGenomeView/model.d.ts +49 -36
- package/dist/LinearGenomeView/model.js +121 -198
- package/dist/LinearGenomeView/model.js.map +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -1
- package/dist/LinearGenomeView/util.d.ts +29 -0
- package/dist/LinearGenomeView/util.js +79 -1
- package/dist/LinearGenomeView/util.js.map +1 -1
- package/dist/index.d.ts +201 -106
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -4
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +8 -20
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
- package/esm/BaseLinearDisplay/components/TooLargeMessage.d.ts +3 -4
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +9 -9
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js.map +1 -1
- package/esm/BaseLinearDisplay/components/Tooltip.d.ts +0 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +81 -35
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +105 -143
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/esm/BaseLinearDisplay/models/configSchema.d.ts +35 -1
- package/esm/BaseLinearDisplay/models/configSchema.js +9 -0
- package/esm/BaseLinearDisplay/models/configSchema.js.map +1 -1
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +10 -6
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +1 -1
- package/esm/BaseLinearDisplay/models/util.d.ts +8 -0
- package/esm/BaseLinearDisplay/models/util.js +30 -0
- package/esm/BaseLinearDisplay/models/util.js.map +1 -1
- package/esm/BasicTrack/configSchema.d.ts +73 -1
- package/esm/FeatureTrack/configSchema.d.ts +75 -1
- package/esm/LinearBareDisplay/configSchema.d.ts +28 -1
- package/esm/LinearBareDisplay/index.js +1 -0
- package/esm/LinearBareDisplay/index.js.map +1 -1
- package/esm/LinearBareDisplay/model.d.ts +66 -23
- package/esm/LinearBareDisplay/model.js +1 -1
- package/esm/LinearBareDisplay/model.js.map +1 -1
- package/esm/LinearBasicDisplay/components/SetMaxHeight.d.ts +1 -2
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js +2 -5
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js.map +1 -1
- package/esm/LinearBasicDisplay/configSchema.d.ts +28 -1
- package/esm/LinearBasicDisplay/configSchema.js +0 -9
- package/esm/LinearBasicDisplay/configSchema.js.map +1 -1
- package/esm/LinearBasicDisplay/index.js +1 -1
- package/esm/LinearBasicDisplay/model.d.ts +76 -36
- package/esm/LinearBasicDisplay/model.js.map +1 -1
- package/esm/LinearGenomeView/components/CenterLine.d.ts +0 -1
- package/esm/LinearGenomeView/components/Cytobands.d.ts +22 -23
- package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +15 -17
- package/esm/LinearGenomeView/components/GetSequenceDialog.js.map +1 -1
- package/esm/LinearGenomeView/components/Gridlines.d.ts +0 -1
- package/esm/LinearGenomeView/components/Header.d.ts +0 -1
- package/esm/LinearGenomeView/components/HelpDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/ImportForm.d.ts +0 -1
- package/esm/LinearGenomeView/components/ImportForm.js +5 -8
- package/esm/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.d.ts +0 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.js +0 -4
- package/esm/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
- package/esm/LinearGenomeView/components/MiniControls.d.ts +0 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.js +2 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.js.map +1 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js +53 -52
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
- package/esm/LinearGenomeView/components/RubberbandSpan.d.ts +0 -1
- package/esm/LinearGenomeView/components/SearchBox.d.ts +0 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +5 -3
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +7 -83
- package/esm/LinearGenomeView/components/SearchResultsDialog.js.map +1 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +8 -0
- package/esm/LinearGenomeView/components/SearchResultsTable.js +77 -0
- package/esm/LinearGenomeView/components/SearchResultsTable.js.map +1 -0
- package/esm/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/TrackContainer.d.ts +0 -1
- package/esm/LinearGenomeView/components/TrackContainer.js +8 -2
- package/esm/LinearGenomeView/components/TrackContainer.js.map +1 -1
- package/esm/LinearGenomeView/components/TracksContainer.js +5 -7
- package/esm/LinearGenomeView/components/TracksContainer.js.map +1 -1
- package/esm/LinearGenomeView/components/VerticalGuide.d.ts +0 -1
- package/esm/LinearGenomeView/components/ZoomControls.d.ts +0 -1
- package/esm/LinearGenomeView/components/util.js +1 -1
- package/esm/LinearGenomeView/components/util.js.map +1 -1
- package/esm/LinearGenomeView/model.d.ts +49 -36
- package/esm/LinearGenomeView/model.js +122 -199
- package/esm/LinearGenomeView/model.js.map +1 -1
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -1
- package/esm/LinearGenomeView/util.d.ts +29 -0
- package/esm/LinearGenomeView/util.js +76 -0
- package/esm/LinearGenomeView/util.js.map +1 -1
- package/esm/index.d.ts +201 -106
- package/package.json +3 -3
- package/src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx +8 -28
- package/src/BaseLinearDisplay/components/TooLargeMessage.tsx +13 -11
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +148 -197
- package/src/BaseLinearDisplay/models/configSchema.ts +10 -0
- package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +19 -13
- package/src/BaseLinearDisplay/models/util.ts +43 -0
- package/src/LinearBareDisplay/index.ts +1 -0
- package/src/LinearBareDisplay/model.ts +1 -1
- package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +3 -7
- package/src/LinearBasicDisplay/configSchema.ts +0 -10
- package/src/LinearBasicDisplay/index.ts +1 -1
- package/src/LinearBasicDisplay/model.ts +1 -1
- package/src/LinearGenomeView/components/GetSequenceDialog.tsx +15 -25
- package/src/LinearGenomeView/components/ImportForm.tsx +4 -14
- package/src/LinearGenomeView/components/LinearGenomeView.tsx +0 -14
- package/src/LinearGenomeView/components/OverviewScalebar.tsx +2 -1
- package/src/LinearGenomeView/components/RefNameAutocomplete.tsx +122 -82
- package/src/LinearGenomeView/components/SearchResultsDialog.tsx +17 -112
- package/src/LinearGenomeView/components/SearchResultsTable.tsx +121 -0
- package/src/LinearGenomeView/components/TrackContainer.tsx +12 -3
- package/src/LinearGenomeView/components/TracksContainer.tsx +9 -6
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.tsx.snap +11 -11
- package/src/LinearGenomeView/components/util.ts +2 -1
- package/src/LinearGenomeView/index.test.ts +10 -12
- package/src/LinearGenomeView/model.ts +163 -236
- package/src/LinearGenomeView/util.ts +98 -0
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { getContainingView, getSession } from '@jbrowse/core/util';
|
|
2
|
+
import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
3
|
+
import { isAlive } from 'mobx-state-tree';
|
|
1
4
|
export function getDisplayStr(totalBytes) {
|
|
2
5
|
let displayBp;
|
|
3
6
|
if (Math.floor(totalBytes / 1000000) > 0) {
|
|
@@ -11,4 +14,31 @@ export function getDisplayStr(totalBytes) {
|
|
|
11
14
|
}
|
|
12
15
|
return displayBp;
|
|
13
16
|
}
|
|
17
|
+
// stabilize clipid under test for snapshot
|
|
18
|
+
export function getId(id, index) {
|
|
19
|
+
const isJest = typeof jest === 'undefined';
|
|
20
|
+
return `clip-${isJest ? id : 'jest'}-${index}`;
|
|
21
|
+
}
|
|
22
|
+
export async function getFeatureDensityStatsPre(self) {
|
|
23
|
+
const view = getContainingView(self);
|
|
24
|
+
const regions = view.staticBlocks.contentBlocks;
|
|
25
|
+
const { rpcManager } = getSession(self);
|
|
26
|
+
const { adapterConfig } = self;
|
|
27
|
+
if (!adapterConfig) {
|
|
28
|
+
// A track extending the base track might not have an adapter config
|
|
29
|
+
// e.g. Apollo tracks don't use adapters
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
32
|
+
const sessionId = getRpcSessionId(self);
|
|
33
|
+
return rpcManager.call(sessionId, 'CoreGetFeatureDensityStats', {
|
|
34
|
+
sessionId,
|
|
35
|
+
regions,
|
|
36
|
+
adapterConfig,
|
|
37
|
+
statusCallback: (message) => {
|
|
38
|
+
if (isAlive(self)) {
|
|
39
|
+
self.setMessage(message);
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
}
|
|
14
44
|
//# sourceMappingURL=util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/models/util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/models/util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAqB,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAgB5D,MAAM,UAAU,aAAa,CAAC,UAAkB;IAC9C,IAAI,SAAS,CAAA;IACb,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE;QACxC,SAAS,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,UAAU,GAAG,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;KAC7E;SAAM,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE;QAC5C,SAAS,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;KAC1E;SAAM;QACL,SAAS,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAA;KAC9C;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,KAAK,CAAC,EAAU,EAAE,KAAa;IAC7C,MAAM,MAAM,GAAG,OAAO,IAAI,KAAK,WAAW,CAAA;IAC1C,OAAO,QAAQ,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,KAAK,EAAE,CAAA;AAChD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,IAGC;IAED,MAAM,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAA0B,CAAA;IAC7D,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,aAAa,CAAA;IAE/C,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;IACvC,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,CAAA;IAC9B,IAAI,CAAC,aAAa,EAAE;QAClB,oEAAoE;QACpE,wCAAwC;QACxC,OAAO,EAAE,CAAA;KACV;IACD,MAAM,SAAS,GAAG,eAAe,CAAC,IAAI,CAAC,CAAA;IAEvC,OAAO,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,4BAA4B,EAAE;QAC9D,SAAS;QACT,OAAO;QACP,aAAa;QACb,cAAc,EAAE,CAAC,OAAe,EAAE,EAAE;YAClC,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE;gBACjB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;aACzB;QACH,CAAC;KACF,CAAiC,CAAA;AACpC,CAAC"}
|
|
@@ -1,3 +1,75 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration").
|
|
2
|
+
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
+
name: {
|
|
4
|
+
description: string;
|
|
5
|
+
type: string;
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
};
|
|
8
|
+
assemblyNames: {
|
|
9
|
+
description: string;
|
|
10
|
+
type: string;
|
|
11
|
+
defaultValue: string[];
|
|
12
|
+
};
|
|
13
|
+
description: {
|
|
14
|
+
description: string;
|
|
15
|
+
type: string;
|
|
16
|
+
defaultValue: string;
|
|
17
|
+
};
|
|
18
|
+
category: {
|
|
19
|
+
description: string;
|
|
20
|
+
type: string;
|
|
21
|
+
defaultValue: never[];
|
|
22
|
+
};
|
|
23
|
+
metadata: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
defaultValue: {};
|
|
27
|
+
};
|
|
28
|
+
adapter: import("mobx-state-tree").IAnyModelType;
|
|
29
|
+
textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
30
|
+
indexingAttributes: {
|
|
31
|
+
type: string;
|
|
32
|
+
description: string;
|
|
33
|
+
defaultValue: string[];
|
|
34
|
+
};
|
|
35
|
+
indexingFeatureTypesToExclude: {
|
|
36
|
+
type: string;
|
|
37
|
+
description: string;
|
|
38
|
+
defaultValue: string[];
|
|
39
|
+
};
|
|
40
|
+
textSearchAdapter: import("mobx-state-tree").IAnyModelType;
|
|
41
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
42
|
+
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
43
|
+
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
44
|
+
feature: {
|
|
45
|
+
type: string;
|
|
46
|
+
description: string;
|
|
47
|
+
defaultValue: {};
|
|
48
|
+
contextVariable: string[];
|
|
49
|
+
};
|
|
50
|
+
subfeatures: {
|
|
51
|
+
type: string;
|
|
52
|
+
description: string;
|
|
53
|
+
defaultValue: {};
|
|
54
|
+
contextVariable: string[];
|
|
55
|
+
};
|
|
56
|
+
depth: {
|
|
57
|
+
type: string;
|
|
58
|
+
defaultValue: number;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
62
|
+
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
63
|
+
config: {
|
|
64
|
+
type: string;
|
|
65
|
+
description: string;
|
|
66
|
+
defaultValue: {};
|
|
67
|
+
contextVariable: string[];
|
|
68
|
+
};
|
|
69
|
+
hideUris: {
|
|
70
|
+
type: string;
|
|
71
|
+
defaultValue: boolean;
|
|
72
|
+
};
|
|
73
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
74
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, "trackId">>;
|
|
3
75
|
export default configSchema;
|
|
@@ -1,3 +1,77 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration").
|
|
2
|
+
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
+
name: {
|
|
4
|
+
description: string;
|
|
5
|
+
type: string;
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
};
|
|
8
|
+
assemblyNames: {
|
|
9
|
+
description: string;
|
|
10
|
+
type: string; /**
|
|
11
|
+
* #baseConfiguration
|
|
12
|
+
*/
|
|
13
|
+
defaultValue: string[];
|
|
14
|
+
};
|
|
15
|
+
description: {
|
|
16
|
+
description: string;
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
};
|
|
20
|
+
category: {
|
|
21
|
+
description: string;
|
|
22
|
+
type: string;
|
|
23
|
+
defaultValue: never[];
|
|
24
|
+
};
|
|
25
|
+
metadata: {
|
|
26
|
+
type: string;
|
|
27
|
+
description: string;
|
|
28
|
+
defaultValue: {};
|
|
29
|
+
};
|
|
30
|
+
adapter: import("mobx-state-tree").IAnyModelType;
|
|
31
|
+
textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
32
|
+
indexingAttributes: {
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
defaultValue: string[];
|
|
36
|
+
};
|
|
37
|
+
indexingFeatureTypesToExclude: {
|
|
38
|
+
type: string;
|
|
39
|
+
description: string;
|
|
40
|
+
defaultValue: string[];
|
|
41
|
+
};
|
|
42
|
+
textSearchAdapter: import("mobx-state-tree").IAnyModelType;
|
|
43
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
44
|
+
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
45
|
+
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
46
|
+
feature: {
|
|
47
|
+
type: string;
|
|
48
|
+
description: string;
|
|
49
|
+
defaultValue: {};
|
|
50
|
+
contextVariable: string[];
|
|
51
|
+
};
|
|
52
|
+
subfeatures: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
defaultValue: {};
|
|
56
|
+
contextVariable: string[];
|
|
57
|
+
};
|
|
58
|
+
depth: {
|
|
59
|
+
type: string;
|
|
60
|
+
defaultValue: number;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
64
|
+
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
65
|
+
config: {
|
|
66
|
+
type: string;
|
|
67
|
+
description: string;
|
|
68
|
+
defaultValue: {};
|
|
69
|
+
contextVariable: string[];
|
|
70
|
+
};
|
|
71
|
+
hideUris: {
|
|
72
|
+
type: string;
|
|
73
|
+
defaultValue: boolean;
|
|
74
|
+
};
|
|
75
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
76
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, "trackId">>;
|
|
3
77
|
export default configSchema;
|
|
@@ -2,5 +2,32 @@ import PluginManager from '@jbrowse/core/PluginManager';
|
|
|
2
2
|
/**
|
|
3
3
|
* #config LinearBareDisplay
|
|
4
4
|
*/
|
|
5
|
-
declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration").
|
|
5
|
+
declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
|
+
/**
|
|
7
|
+
* #slot
|
|
8
|
+
*/
|
|
9
|
+
renderer: import("mobx-state-tree").IAnyModelType;
|
|
10
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
11
|
+
maxFeatureScreenDensity: {
|
|
12
|
+
type: string;
|
|
13
|
+
description: string;
|
|
14
|
+
defaultValue: number;
|
|
15
|
+
};
|
|
16
|
+
fetchSizeLimit: {
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: number;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
height: {
|
|
22
|
+
type: string;
|
|
23
|
+
defaultValue: number;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
mouseover: {
|
|
27
|
+
type: string;
|
|
28
|
+
description: string;
|
|
29
|
+
defaultValue: string;
|
|
30
|
+
contextVariable: string[];
|
|
31
|
+
};
|
|
32
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
6
33
|
export { configSchemaFactory };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearBareDisplay/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AAEjE,SAAS;AACT,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAA;AAElE,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAA;QACvD,OAAO,IAAI,WAAW,CAAC;YACrB,IAAI,EAAE,mBAAmB;YACzB,YAAY;YACZ,UAAU,EAAE,iBAAiB,CAAC,YAAY,CAAC;YAC3C,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,0BAA0B;SAC3C,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearBareDisplay/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AAEjE,SAAS;AACT,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAA;AAElE,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAA;QACvD,OAAO,IAAI,WAAW,CAAC;YACrB,IAAI,EAAE,mBAAmB;YACzB,YAAY;YACZ,WAAW,EAAE,sBAAsB;YACnC,UAAU,EAAE,iBAAiB,CAAC,YAAY,CAAC;YAC3C,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,0BAA0B;SAC3C,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration
|
|
2
|
+
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
3
|
/**
|
|
4
4
|
* #stateModel LinearBareDisplay
|
|
5
5
|
* extends `BaseLinearDisplay`
|
|
@@ -58,6 +58,31 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
58
58
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
59
59
|
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
60
60
|
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
61
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
62
|
+
maxFeatureScreenDensity: {
|
|
63
|
+
type: string;
|
|
64
|
+
description: string;
|
|
65
|
+
defaultValue: number;
|
|
66
|
+
};
|
|
67
|
+
fetchSizeLimit: {
|
|
68
|
+
type: string;
|
|
69
|
+
defaultValue: number;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
height: {
|
|
73
|
+
type: string;
|
|
74
|
+
defaultValue: number;
|
|
75
|
+
description: string;
|
|
76
|
+
}; /**
|
|
77
|
+
* #getter
|
|
78
|
+
*/
|
|
79
|
+
mouseover: {
|
|
80
|
+
type: string;
|
|
81
|
+
description: string;
|
|
82
|
+
defaultValue: string;
|
|
83
|
+
contextVariable: string[];
|
|
84
|
+
};
|
|
85
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
61
86
|
} & {
|
|
62
87
|
/**
|
|
63
88
|
* #property
|
|
@@ -66,7 +91,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
66
91
|
/**
|
|
67
92
|
* #property
|
|
68
93
|
*/
|
|
69
|
-
configuration:
|
|
94
|
+
configuration: AnyConfigurationSchemaType;
|
|
70
95
|
}, {
|
|
71
96
|
rendererTypeName: string;
|
|
72
97
|
error: unknown;
|
|
@@ -125,8 +150,8 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
125
150
|
message: string;
|
|
126
151
|
featureIdUnderMouse: string | undefined;
|
|
127
152
|
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
128
|
-
|
|
129
|
-
|
|
153
|
+
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
154
|
+
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
130
155
|
} & {
|
|
131
156
|
readonly height: number;
|
|
132
157
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
@@ -139,35 +164,32 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
139
164
|
} & {
|
|
140
165
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
141
166
|
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
142
|
-
getFeatureOverlapping(blockKey: string, x: number, y: number):
|
|
167
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
143
168
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
144
169
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
145
170
|
readonly currentBytesRequested: number;
|
|
146
171
|
readonly currentFeatureScreenDensity: number;
|
|
147
172
|
readonly maxFeatureScreenDensity: any;
|
|
148
|
-
readonly
|
|
173
|
+
readonly featureDensityStatsReady: boolean;
|
|
149
174
|
readonly maxAllowableBytes: number;
|
|
150
175
|
} & {
|
|
151
176
|
setMessage(message: string): void;
|
|
177
|
+
} & {
|
|
152
178
|
afterAttach(): void;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}): Promise<{}>;
|
|
158
|
-
setRegionStatsP(p?: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined): void;
|
|
159
|
-
setRegionStats(estimatedRegionStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
160
|
-
clearRegionStats(): void;
|
|
179
|
+
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
180
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
181
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
182
|
+
clearFeatureDensityStats(): void;
|
|
161
183
|
setHeight(displayHeight: number): number;
|
|
162
184
|
resizeHeight(distance: number): number;
|
|
163
185
|
setScrollTop(scrollTop: number): void;
|
|
164
|
-
|
|
186
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
165
187
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
166
188
|
setCurrBpPerPx(n: number): void;
|
|
167
189
|
deleteBlock(key: string): void;
|
|
168
190
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
169
191
|
clearFeatureSelection(): void;
|
|
170
|
-
setFeatureIdUnderMouse(feature
|
|
192
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
171
193
|
reload(): void;
|
|
172
194
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
173
195
|
} & {
|
|
@@ -175,18 +197,13 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
175
197
|
readonly regionTooLargeReason: string;
|
|
176
198
|
} & {
|
|
177
199
|
reload(): Promise<void>;
|
|
200
|
+
} & {
|
|
178
201
|
afterAttach(): void;
|
|
179
202
|
} & {
|
|
180
203
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
181
204
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): JSX.Element | null;
|
|
182
205
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
183
|
-
contextMenuItems():
|
|
184
|
-
label: string;
|
|
185
|
-
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
186
|
-
muiName: string;
|
|
187
|
-
};
|
|
188
|
-
onClick: () => void;
|
|
189
|
-
}[];
|
|
206
|
+
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
190
207
|
renderProps(): any;
|
|
191
208
|
} & {
|
|
192
209
|
renderSvg(opts: import("../LinearGenomeView").ExportSvgOptions & {
|
|
@@ -258,9 +275,35 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
258
275
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
259
276
|
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
260
277
|
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
278
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
279
|
+
maxFeatureScreenDensity: {
|
|
280
|
+
type: string;
|
|
281
|
+
description: string;
|
|
282
|
+
defaultValue: number;
|
|
283
|
+
};
|
|
284
|
+
fetchSizeLimit: {
|
|
285
|
+
type: string;
|
|
286
|
+
defaultValue: number;
|
|
287
|
+
description: string;
|
|
288
|
+
};
|
|
289
|
+
height: {
|
|
290
|
+
type: string;
|
|
291
|
+
defaultValue: number;
|
|
292
|
+
description: string;
|
|
293
|
+
}; /**
|
|
294
|
+
* #getter
|
|
295
|
+
*/
|
|
296
|
+
mouseover: {
|
|
297
|
+
type: string;
|
|
298
|
+
description: string;
|
|
299
|
+
defaultValue: string;
|
|
300
|
+
contextVariable: string[];
|
|
301
|
+
};
|
|
302
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
261
303
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
|
|
262
304
|
type: string;
|
|
263
305
|
id: string;
|
|
306
|
+
configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
|
|
264
307
|
rpcDriverName: string | undefined;
|
|
265
308
|
heightPreConfig: number | undefined;
|
|
266
309
|
userBpPerPxLimit: number | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigurationReference, } from '@jbrowse/core/configuration
|
|
1
|
+
import { ConfigurationReference, } from '@jbrowse/core/configuration';
|
|
2
2
|
import { getParentRenderProps } from '@jbrowse/core/util/tracks';
|
|
3
3
|
import { types } from 'mobx-state-tree';
|
|
4
4
|
import { BaseLinearDisplay } from '../BaseLinearDisplay';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/LinearBareDisplay/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,GACvB,MAAM,
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/LinearBareDisplay/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,GACvB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,YAAwC;IACxE,OAAO,KAAK;SACT,OAAO,CACN,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,CAAC,KAAK,CAAC;QACV;;WAEG;QACH,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC;QACxC;;WAEG;QACH,aAAa,EAAE,sBAAsB,CAAC,YAAY,CAAC;KACpD,CAAC,CACH;SAEA,KAAK,CAAC,IAAI,CAAC,EAAE;QACZ,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAA;QAC9C,OAAO;YACL;;eAEG;YACH,WAAW;gBACT,OAAO;oBACL,GAAG,gBAAgB,EAAE;oBACrB,GAAG,oBAAoB,CAAC,IAAI,CAAC;oBAC7B,aAAa,EAAE,IAAI,CAAC,aAAa;oBACjC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;iBACpC,CAAA;YACH,CAAC;YAED;;eAEG;YACH,IAAI,gBAAgB;gBAClB,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAA;YACzC,CAAC;SACF,CAAA;IACH,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -3,14 +3,11 @@ import { observer } from 'mobx-react';
|
|
|
3
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
4
4
|
import { Button, DialogActions, DialogContent, Typography, TextField, } from '@mui/material';
|
|
5
5
|
import { makeStyles } from 'tss-react/mui';
|
|
6
|
-
const useStyles = makeStyles()(
|
|
6
|
+
const useStyles = makeStyles()({
|
|
7
7
|
root: {
|
|
8
8
|
width: 500,
|
|
9
9
|
},
|
|
10
|
-
|
|
11
|
-
margin: theme.spacing(2),
|
|
12
|
-
},
|
|
13
|
-
}));
|
|
10
|
+
});
|
|
14
11
|
function SetMaxHeightDlg({ model, handleClose, }) {
|
|
15
12
|
const { classes } = useStyles();
|
|
16
13
|
const { maxHeight = '' } = model;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetMaxHeight.js","sourceRoot":"","sources":["../../../src/LinearBasicDisplay/components/SetMaxHeight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,UAAU,EACV,SAAS,GACV,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,MAAM,SAAS,GAAG,UAAU,EAAE,CAAC
|
|
1
|
+
{"version":3,"file":"SetMaxHeight.js","sourceRoot":"","sources":["../../../src/LinearBasicDisplay/components/SetMaxHeight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,UAAU,EACV,SAAS,GACV,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,MAAM,SAAS,GAAG,UAAU,EAAE,CAAC;IAC7B,IAAI,EAAE;QACJ,KAAK,EAAE,GAAG;KACX;CACF,CAAC,CAAA;AAEF,SAAS,eAAe,CAAC,EACvB,KAAK,EACL,WAAW,GAOZ;IACC,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,CAAA;IAC/B,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,KAAK,CAAA;IAChC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,SAAS,EAAE,CAAC,CAAA;IAE9C,OAAO,CACL,oBAAC,MAAM,IAAC,IAAI,QAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAC,gBAAgB;QACvD,oBAAC,aAAa,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI;YACpC,oBAAC,UAAU,qHAGE;YACb,oBAAC,SAAS,IACR,KAAK,EAAE,GAAG,EACV,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAC7C,WAAW,EAAC,iBAAiB,GAC7B;YACF,oBAAC,aAAa;gBACZ,oBAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,SAAS,EACf,IAAI,EAAC,QAAQ,EACb,SAAS,QACT,OAAO,EAAE,GAAG,EAAE;wBACZ,KAAK,CAAC,YAAY,CAChB,GAAG,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CACrD,CAAA;wBACD,WAAW,EAAE,CAAA;oBACf,CAAC,aAGM;gBACT,oBAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE,aAGrB,CACK,CACF,CACT,CACV,CAAA;AACH,CAAC;AAED,eAAe,QAAQ,CAAC,eAAe,CAAC,CAAA"}
|
|
@@ -2,5 +2,32 @@ import PluginManager from '@jbrowse/core/PluginManager';
|
|
|
2
2
|
/**
|
|
3
3
|
* #config LinearBasicDisplay
|
|
4
4
|
*/
|
|
5
|
-
declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration").
|
|
5
|
+
declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
|
+
/**
|
|
7
|
+
* #slot
|
|
8
|
+
*/
|
|
9
|
+
renderer: import("mobx-state-tree").IAnyModelType;
|
|
10
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
11
|
+
maxFeatureScreenDensity: {
|
|
12
|
+
type: string;
|
|
13
|
+
description: string;
|
|
14
|
+
defaultValue: number;
|
|
15
|
+
};
|
|
16
|
+
fetchSizeLimit: {
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: number;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
height: {
|
|
22
|
+
type: string;
|
|
23
|
+
defaultValue: number;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
mouseover: {
|
|
27
|
+
type: string;
|
|
28
|
+
description: string;
|
|
29
|
+
defaultValue: string;
|
|
30
|
+
contextVariable: string[];
|
|
31
|
+
};
|
|
32
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
6
33
|
export default configSchemaFactory;
|
|
@@ -5,15 +5,6 @@ import { baseLinearDisplayConfigSchema } from '../BaseLinearDisplay';
|
|
|
5
5
|
*/
|
|
6
6
|
function configSchemaFactory(pluginManager) {
|
|
7
7
|
return ConfigurationSchema('LinearBasicDisplay', {
|
|
8
|
-
/**
|
|
9
|
-
* #slot
|
|
10
|
-
*/
|
|
11
|
-
mouseover: {
|
|
12
|
-
type: 'string',
|
|
13
|
-
description: 'what to display in a given mouseover',
|
|
14
|
-
defaultValue: `jexl:get(feature,'name')`,
|
|
15
|
-
contextVariable: ['feature'],
|
|
16
|
-
},
|
|
17
8
|
/**
|
|
18
9
|
* #slot
|
|
19
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/LinearBasicDisplay/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AAEpE;;GAEG;AACH,SAAS,mBAAmB,CAAC,aAA4B;IACvD,OAAO,mBAAmB,CACxB,oBAAoB,EACpB;QACE;;WAEG;QACH,
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/LinearBasicDisplay/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AAEpE;;GAEG;AACH,SAAS,mBAAmB,CAAC,aAA4B;IACvD,OAAO,mBAAmB,CACxB,oBAAoB,EACpB;QACE;;WAEG;QACH,QAAQ,EAAE,aAAa,CAAC,yBAAyB,CAAC,UAAU,CAAC;KAC9D,EACD;QACE;;WAEG;QACH,iBAAiB,EAAE,6BAA6B;QAChD,eAAe,EAAE,IAAI;KACtB,CACF,CAAA;AACH,CAAC;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -8,7 +8,7 @@ export default (pluginManager) => {
|
|
|
8
8
|
const config = configSchema(pluginManager);
|
|
9
9
|
return new DisplayType({
|
|
10
10
|
name: 'LinearBasicDisplay',
|
|
11
|
-
displayName: 'Basic
|
|
11
|
+
displayName: 'Basic feature display',
|
|
12
12
|
configSchema: config,
|
|
13
13
|
stateModel: modelFactory(config),
|
|
14
14
|
trackType: 'FeatureTrack',
|