higlass 2.3.0 → 2.3.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/app/scripts/HiGlassComponent.jsx +20 -4
- package/dist/hglib.js +9 -7
- package/dist/hglib.min.js +42 -42
- package/dist/higlass.mjs +9 -7
- package/dist/package.json +3 -11
- package/package.json +3 -11
package/dist/higlass.mjs
CHANGED
|
@@ -12588,7 +12588,7 @@ const getXylofon = () => (
|
|
|
12588
12588
|
/** @type {const} */
|
|
12589
12589
|
[window, map$4((c) => c.charCodeAt(0))(
|
|
12590
12590
|
// @ts-expect-error - A global added by `vite.config.js`.
|
|
12591
|
-
"2.3.
|
|
12591
|
+
"2.3.1"
|
|
12592
12592
|
).map((number3) => number3 <= 999 ? `00${number3}`.slice(-3) : number3).join("")]
|
|
12593
12593
|
);
|
|
12594
12594
|
const gradient = (steps, width = 1, height = 100, fromX = 0, fromY = 0, toX = 0, toY = 100) => {
|
|
@@ -93769,7 +93769,7 @@ Object.assign(LruCache.prototype, {
|
|
|
93769
93769
|
toJSON,
|
|
93770
93770
|
toString: toString2
|
|
93771
93771
|
});
|
|
93772
|
-
const version = "2.3.
|
|
93772
|
+
const version = "2.3.1";
|
|
93773
93773
|
const configs = {
|
|
93774
93774
|
..._configs,
|
|
93775
93775
|
IS_TRACK_RANGE_SELECTABLE,
|
|
@@ -111032,6 +111032,8 @@ ${svgString}`;
|
|
|
111032
111032
|
const looseTracks = positionedTracksToAllTracks(view.tracks);
|
|
111033
111033
|
const annotationTracks = looseTracks.filter((x) => x.type === "horizontal-gene-annotations" || x.type === "vertical-gene-annotations" || x.type === "gene-annotations");
|
|
111034
111034
|
const chromSizesTracks = looseTracks.filter((x) => x.type === "horizontal-chromosome-labels" || x.type === "vertical-chromosome-labels" || x.type === "chromosome-labels");
|
|
111035
|
+
const uniqueAnnotationTilesets = new Set(annotationTracks.map((x) => x.tilesetUid));
|
|
111036
|
+
const uniqueChromSizesTilesets = new Set(chromSizesTracks.map((x) => x.tilesetUid));
|
|
111035
111037
|
const getGenomePositionSearchBox = (isFocused, onFocus) => /* @__PURE__ */ React__default.createElement(
|
|
111036
111038
|
GenomePositionSearchBox$1,
|
|
111037
111039
|
{
|
|
@@ -111039,10 +111041,10 @@ ${svgString}`;
|
|
|
111039
111041
|
ref: (c) => {
|
|
111040
111042
|
this.genomePositionSearchBoxes[view.uid] = c;
|
|
111041
111043
|
},
|
|
111042
|
-
autocompleteId: annotationTracks.length === 1 ? annotationTracks[0].tilesetUid : null,
|
|
111043
|
-
autocompleteServer: annotationTracks.length === 1 ? annotationTracks[0].server : null,
|
|
111044
|
-
chromInfoId: chromSizesTracks.length
|
|
111045
|
-
chromInfoServer: chromSizesTracks.length
|
|
111044
|
+
autocompleteId: annotationTracks.length >= 1 && uniqueAnnotationTilesets.size === 1 ? annotationTracks[0].tilesetUid : null,
|
|
111045
|
+
autocompleteServer: annotationTracks.length >= 1 && uniqueAnnotationTilesets.size === 1 ? annotationTracks[0].server : null,
|
|
111046
|
+
chromInfoId: chromSizesTracks.length && chromSizesTracks[0].tilesetUid || view.genomePositionSearchBox?.chromInfoId || null,
|
|
111047
|
+
chromInfoServer: chromSizesTracks.length && chromSizesTracks[0].server || view.genomePositionSearchBox?.chromInfoServer || null,
|
|
111046
111048
|
isFocused,
|
|
111047
111049
|
onFocus,
|
|
111048
111050
|
registerViewportChangedListener: (listener) => this.addScalesChangedListener(view.uid, view.uid, listener),
|
|
@@ -111050,7 +111052,7 @@ ${svgString}`;
|
|
|
111050
111052
|
setCenters: (centerX, centerY, k, animateTime) => this.setCenters[view.uid](centerX, centerY, k, false, animateTime),
|
|
111051
111053
|
trackSourceServers: this.state.viewConfig.trackSourceServers,
|
|
111052
111054
|
twoD: true,
|
|
111053
|
-
error: chromSizesTracks.length === 0 && "no chromosome track present" || chromSizesTracks.length >= 2 && "multiple chromosome tracks present" || annotationTracks.length >= 2 && "multiple annotation tracks present"
|
|
111055
|
+
error: chromSizesTracks.length === 0 && "no chromosome track present" || chromSizesTracks.length >= 2 && uniqueChromSizesTilesets.size > 1 && "multiple chromosome tracks present" || annotationTracks.length >= 2 && uniqueAnnotationTilesets.size > 1 && "multiple annotation tracks present"
|
|
111054
111056
|
}
|
|
111055
111057
|
);
|
|
111056
111058
|
const multiTrackHeader = this.isEditable() && !this.isViewHeaderDisabled() && !this.state.viewConfig.hideHeader ? /* @__PURE__ */ React__default.createElement(ViewHeader$1, {
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "higlass",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "HiGlass Hi-C / genomic / large data viewer",
|
|
5
5
|
"author": "Peter Kerpedjiev <pkerpedjiev@gmail.com>",
|
|
6
6
|
"main": "dist/hglib.js",
|
|
@@ -15,16 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"./dist/*": "./dist/*"
|
|
17
17
|
},
|
|
18
|
-
"files": [
|
|
19
|
-
|
|
20
|
-
"dist"
|
|
21
|
-
],
|
|
22
|
-
"keywords": [
|
|
23
|
-
"hi-c",
|
|
24
|
-
"genomics",
|
|
25
|
-
"matrix",
|
|
26
|
-
"tracks"
|
|
27
|
-
],
|
|
18
|
+
"files": ["app", "dist"],
|
|
19
|
+
"keywords": ["hi-c", "genomics", "matrix", "tracks"],
|
|
28
20
|
"scripts": {
|
|
29
21
|
"start": "vite",
|
|
30
22
|
"build": "tsc -p tsconfig.emit.json && node ./scripts/build.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "higlass",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "HiGlass Hi-C / genomic / large data viewer",
|
|
5
5
|
"author": "Peter Kerpedjiev <pkerpedjiev@gmail.com>",
|
|
6
6
|
"main": "dist/hglib.js",
|
|
@@ -15,16 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"./dist/*": "./dist/*"
|
|
17
17
|
},
|
|
18
|
-
"files": [
|
|
19
|
-
|
|
20
|
-
"dist"
|
|
21
|
-
],
|
|
22
|
-
"keywords": [
|
|
23
|
-
"hi-c",
|
|
24
|
-
"genomics",
|
|
25
|
-
"matrix",
|
|
26
|
-
"tracks"
|
|
27
|
-
],
|
|
18
|
+
"files": ["app", "dist"],
|
|
19
|
+
"keywords": ["hi-c", "genomics", "matrix", "tracks"],
|
|
28
20
|
"scripts": {
|
|
29
21
|
"start": "vite",
|
|
30
22
|
"build": "tsc -p tsconfig.emit.json && node ./scripts/build.mjs",
|