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.
@@ -1581,6 +1581,19 @@ declare const _default: {
1581
1581
  name: string;
1582
1582
  inlineOptions: any;
1583
1583
  };
1584
+ reverseAxis: {
1585
+ name: string;
1586
+ inlineOptions: {
1587
+ yes: {
1588
+ name: string;
1589
+ value: boolean;
1590
+ };
1591
+ no: {
1592
+ name: string;
1593
+ value: boolean;
1594
+ };
1595
+ };
1596
+ };
1584
1597
  colorbarPosition: {
1585
1598
  name: string;
1586
1599
  inlineOptions: {
package/dist/hglib.js CHANGED
@@ -12617,9 +12617,10 @@
12617
12617
  orientation: "1d-vertical",
12618
12618
  name: "Left Axis",
12619
12619
  thumbnail: svgVertical1DAxisIcon,
12620
- availableOptions: ["minWidth"],
12620
+ availableOptions: ["minWidth", "reverseAxis"],
12621
12621
  defaultOptions: {
12622
- minWidth: 100
12622
+ minWidth: 100,
12623
+ reverseAxis: false
12623
12624
  }
12624
12625
  }, {
12625
12626
  type: "top-axis",
@@ -13800,7 +13801,7 @@
13800
13801
  /** @type {const} */
13801
13802
  [window, map$5((c) => c.charCodeAt(0))(
13802
13803
  // @ts-expect-error - A global added by `vite.config.js`.
13803
- "2.2.0"
13804
+ "2.2.1"
13804
13805
  ).map((number3) => number3 <= 999 ? `00${number3}`.slice(-3) : number3).join("")]
13805
13806
  );
13806
13807
  const gradient = (steps, width = 1, height = 100, fromX = 0, fromY = 0, toX = 0, toY = 100) => {
@@ -65593,6 +65594,10 @@
65593
65594
  name: "Axis Margin",
65594
65595
  inlineOptions: sizesInPx([0, 10, 20, 30, 40, 50, 100, 200, 400], "px")
65595
65596
  },
65597
+ reverseAxis: {
65598
+ name: "Reverse Axis",
65599
+ inlineOptions: YES_NO
65600
+ },
65596
65601
  colorbarPosition: {
65597
65602
  name: "Colorbar Position",
65598
65603
  inlineOptions: {
@@ -78953,6 +78958,12 @@ ${x}` : x, "");
78953
78958
  key: "draw",
78954
78959
  value: function draw() {
78955
78960
  this.axis.scale(this._yScale);
78961
+ if (this.options.reverseAxis === "yes" || this.options.reverseAxis === true) {
78962
+ const defaultFormat = format$1(",");
78963
+ this.axis.tickFormat((d) => defaultFormat(-d));
78964
+ } else {
78965
+ this.axis.tickFormat(null);
78966
+ }
78956
78967
  this.gAxis.call(this.axis);
78957
78968
  return this;
78958
78969
  }
@@ -90348,7 +90359,7 @@ ${x}` : x, "");
90348
90359
  toJSON,
90349
90360
  toString
90350
90361
  });
90351
- const version = "2.2.0";
90362
+ const version = "2.2.1";
90352
90363
  const configs = {
90353
90364
  ..._configs,
90354
90365
  IS_TRACK_RANGE_SELECTABLE,