@jbrowse/plugin-linear-genome-view 2.12.0 → 2.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BaseLinearDisplay/components/Block.js +3 -3
- package/dist/BaseLinearDisplay/components/BlockMsg.js +1 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +22 -24
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +2 -2
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +1 -1
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.js +1 -1
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js +1 -1
- package/dist/BaseLinearDisplay/models/renderSvg.js +1 -2
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +4 -4
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +1 -2
- package/dist/BaseLinearDisplay/models/util.js +3 -4
- package/dist/BasicTrack/index.js +1 -1
- package/dist/FeatureTrack/index.js +1 -1
- package/dist/LaunchLinearGenomeView/index.js +1 -1
- package/dist/LinearBareDisplay/configSchema.js +1 -2
- package/dist/LinearBareDisplay/index.js +1 -1
- package/dist/LinearBareDisplay/model.d.ts +26 -33
- package/dist/LinearBareDisplay/model.js +1 -2
- package/dist/LinearBasicDisplay/index.js +1 -1
- package/dist/LinearBasicDisplay/model.d.ts +52 -53
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js +3 -4
- package/dist/LinearGenomeView/components/RubberbandSpan.js +1 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +1 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.js +1 -1
- package/dist/LinearGenomeView/components/hooks.d.ts +2 -2
- package/dist/LinearGenomeView/components/hooks.js +3 -4
- package/dist/LinearGenomeView/components/util.js +4 -5
- package/dist/LinearGenomeView/index.js +1 -1
- package/dist/LinearGenomeView/model.d.ts +10 -10
- package/dist/LinearGenomeView/model.js +2 -2
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +2 -2
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/util.js +1 -2
- package/dist/LinearGenomeView/util.d.ts +3 -3
- package/dist/LinearGenomeView/util.js +4 -5
- package/dist/index.d.ts +74 -2237
- package/dist/searchUtils.js +5 -6
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +22 -24
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +2 -2
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +4 -4
- package/esm/LinearBareDisplay/model.d.ts +26 -33
- package/esm/LinearBasicDisplay/model.d.ts +52 -53
- package/esm/LinearGenomeView/components/hooks.d.ts +2 -2
- package/esm/LinearGenomeView/model.d.ts +10 -10
- package/esm/LinearGenomeView/util.d.ts +3 -3
- package/esm/index.d.ts +74 -2237
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = SVGTrackLabel;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
8
9
|
const util_1 = require("@jbrowse/core/util");
|
|
@@ -14,4 +15,3 @@ function SVGTrackLabel({ trackLabels, trackName, fontSize, trackLabelOffset, x,
|
|
|
14
15
|
const name = (0, util_1.coarseStripHTML)(trackName);
|
|
15
16
|
return trackLabels !== 'none' ? (react_1.default.createElement("g", null, trackLabels === 'left' ? (react_1.default.createElement("text", { x: trackLabelOffset - 40, y: 20, fill: fill, fontSize: fontSize, dominantBaseline: "hanging", textAnchor: "end" }, name)) : (react_1.default.createElement("text", { x: x + xoff, y: yoff, fill: fill, fontSize: fontSize, dominantBaseline: "hanging" }, name)))) : null;
|
|
16
17
|
}
|
|
17
|
-
exports.default = SVGTrackLabel;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = SVGTracks;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
8
9
|
const util_1 = require("@jbrowse/core/util");
|
|
@@ -26,4 +27,3 @@ function SVGTracks({ displayResults, model, offset, textHeight, fontSize, trackL
|
|
|
26
27
|
react_1.default.createElement(SVGTrackLabel_1.default, { trackName: trackName, fontSize: fontSize, trackLabels: trackLabels, trackLabelOffset: trackLabelOffset, x: x })));
|
|
27
28
|
})));
|
|
28
29
|
}
|
|
29
|
-
exports.default = SVGTracks;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.totalHeight =
|
|
3
|
+
exports.totalHeight = totalHeight;
|
|
4
4
|
const util_1 = require("@jbrowse/core/util");
|
|
5
5
|
function totalHeight(tracks, textHeight, trackLabels) {
|
|
6
6
|
return (0, util_1.sum)(tracks.map(t => t.displays[0].height +
|
|
7
7
|
(['none', 'left'].includes(trackLabels) ? 0 : textHeight)));
|
|
8
8
|
}
|
|
9
|
-
exports.totalHeight = totalHeight;
|
|
@@ -23,9 +23,9 @@ export declare function makeTicks(start: number, end: number, bpPerPx: number, e
|
|
|
23
23
|
export declare function generateLocations(regions: ParsedLocString[] | undefined, assemblyManager: AssemblyManager, assemblyName?: string): Promise<{
|
|
24
24
|
assemblyName: string;
|
|
25
25
|
parentRegion: import("@jbrowse/core/assemblyManager/assembly").BasicRegion;
|
|
26
|
-
end?: number
|
|
27
|
-
start?: number
|
|
28
|
-
reversed?: boolean
|
|
26
|
+
end?: number;
|
|
27
|
+
start?: number;
|
|
28
|
+
reversed?: boolean;
|
|
29
29
|
refName: string;
|
|
30
30
|
}[]>;
|
|
31
31
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.chooseGridPitch = chooseGridPitch;
|
|
4
|
+
exports.makeTicks = makeTicks;
|
|
5
|
+
exports.generateLocations = generateLocations;
|
|
6
|
+
exports.parseLocStrings = parseLocStrings;
|
|
4
7
|
const util_1 = require("@jbrowse/core/util");
|
|
5
8
|
/**
|
|
6
9
|
* Given a scale ( bp/px ) and minimum distances (px) between major and minor
|
|
@@ -33,7 +36,6 @@ function chooseGridPitch(scale, minMajorPitchPx, minMinorPitchPx) {
|
|
|
33
36
|
}
|
|
34
37
|
return { majorPitch, minorPitch };
|
|
35
38
|
}
|
|
36
|
-
exports.chooseGridPitch = chooseGridPitch;
|
|
37
39
|
function makeTicks(start, end, bpPerPx, emitMajor = true, emitMinor = true) {
|
|
38
40
|
const gridPitch = chooseGridPitch(bpPerPx, 60, 15);
|
|
39
41
|
let minBase = start;
|
|
@@ -64,7 +66,6 @@ function makeTicks(start, end, bpPerPx, emitMajor = true, emitMinor = true) {
|
|
|
64
66
|
}
|
|
65
67
|
return ticks;
|
|
66
68
|
}
|
|
67
|
-
exports.makeTicks = makeTicks;
|
|
68
69
|
/**
|
|
69
70
|
* Generate location objects for a set of parsed locstrings, which includes
|
|
70
71
|
* translating the refNames to assembly-canonical refNames and adding the
|
|
@@ -102,7 +103,6 @@ async function generateLocations(regions = [], assemblyManager, assemblyName) {
|
|
|
102
103
|
};
|
|
103
104
|
}));
|
|
104
105
|
}
|
|
105
|
-
exports.generateLocations = generateLocations;
|
|
106
106
|
/**
|
|
107
107
|
* Parses locString or space separated set of locStrings into location objects
|
|
108
108
|
* Example inputs:
|
|
@@ -141,4 +141,3 @@ function parseLocStrings(input, assemblyName, isValidRefName) {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
exports.parseLocStrings = parseLocStrings;
|