higlass 2.2.0 → 2.2.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/LeftAxisTrack.js +12 -0
- package/app/scripts/configs/tracks-info.js +2 -1
- package/app/scripts/options-info.js +5 -0
- package/dist/app/scripts/options-info.d.ts +176 -171
- package/dist/app/scripts/plugins/available-for-plugins.d.ts +13 -0
- package/dist/hglib.js +15 -4
- package/dist/hglib.min.js +23 -23
- package/dist/higlass.mjs +15 -4
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/higlass.mjs
CHANGED
|
@@ -12599,9 +12599,10 @@ const TRACKS_INFO = [osm, {
|
|
|
12599
12599
|
orientation: "1d-vertical",
|
|
12600
12600
|
name: "Left Axis",
|
|
12601
12601
|
thumbnail: svgVertical1DAxisIcon,
|
|
12602
|
-
availableOptions: ["minWidth"],
|
|
12602
|
+
availableOptions: ["minWidth", "reverseAxis"],
|
|
12603
12603
|
defaultOptions: {
|
|
12604
|
-
minWidth: 100
|
|
12604
|
+
minWidth: 100,
|
|
12605
|
+
reverseAxis: false
|
|
12605
12606
|
}
|
|
12606
12607
|
}, {
|
|
12607
12608
|
type: "top-axis",
|
|
@@ -13782,7 +13783,7 @@ const getXylofon = () => (
|
|
|
13782
13783
|
/** @type {const} */
|
|
13783
13784
|
[window, map$5((c) => c.charCodeAt(0))(
|
|
13784
13785
|
// @ts-expect-error - A global added by `vite.config.js`.
|
|
13785
|
-
"2.2.
|
|
13786
|
+
"2.2.1"
|
|
13786
13787
|
).map((number3) => number3 <= 999 ? `00${number3}`.slice(-3) : number3).join("")]
|
|
13787
13788
|
);
|
|
13788
13789
|
const gradient = (steps, width2 = 1, height2 = 100, fromX = 0, fromY = 0, toX = 0, toY = 100) => {
|
|
@@ -65575,6 +65576,10 @@ const OPTIONS_INFO = {
|
|
|
65575
65576
|
name: "Axis Margin",
|
|
65576
65577
|
inlineOptions: sizesInPx([0, 10, 20, 30, 40, 50, 100, 200, 400], "px")
|
|
65577
65578
|
},
|
|
65579
|
+
reverseAxis: {
|
|
65580
|
+
name: "Reverse Axis",
|
|
65581
|
+
inlineOptions: YES_NO
|
|
65582
|
+
},
|
|
65578
65583
|
colorbarPosition: {
|
|
65579
65584
|
name: "Colorbar Position",
|
|
65580
65585
|
inlineOptions: {
|
|
@@ -78935,6 +78940,12 @@ let LeftAxisTrack = /* @__PURE__ */ function(_SVGTrack) {
|
|
|
78935
78940
|
key: "draw",
|
|
78936
78941
|
value: function draw() {
|
|
78937
78942
|
this.axis.scale(this._yScale);
|
|
78943
|
+
if (this.options.reverseAxis === "yes" || this.options.reverseAxis === true) {
|
|
78944
|
+
const defaultFormat = format$1(",");
|
|
78945
|
+
this.axis.tickFormat((d) => defaultFormat(-d));
|
|
78946
|
+
} else {
|
|
78947
|
+
this.axis.tickFormat(null);
|
|
78948
|
+
}
|
|
78938
78949
|
this.gAxis.call(this.axis);
|
|
78939
78950
|
return this;
|
|
78940
78951
|
}
|
|
@@ -90330,7 +90341,7 @@ Object.assign(LruCache.prototype, {
|
|
|
90330
90341
|
toJSON,
|
|
90331
90342
|
toString: toString2
|
|
90332
90343
|
});
|
|
90333
|
-
const version = "2.2.
|
|
90344
|
+
const version = "2.2.1";
|
|
90334
90345
|
const configs = {
|
|
90335
90346
|
..._configs,
|
|
90336
90347
|
IS_TRACK_RANGE_SELECTABLE,
|
package/dist/package.json
CHANGED