@vitessce/heatmap 3.4.2 → 3.4.4

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.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { B as BaseDecoder } from "./index-ad2c1b49.js";
2
+ import { B as BaseDecoder } from "./index-21b8a1b1.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -30744,7 +30744,8 @@ function Legend(props) {
30744
30744
  g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", 0).attr("y", y2).text(levelZeroName).style("font-size", "9px").style("fill", foregroundColor);
30745
30745
  y2 += titleHeight;
30746
30746
  setPaths.forEach((setPath) => {
30747
- const setColor = obsSetColor.find((d) => isEqual$1(d.path, setPath)).color;
30747
+ var _a2;
30748
+ const setColor = ((_a2 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$1(d.path, setPath))) == null ? void 0 : _a2.color) || getDefaultColor(theme);
30748
30749
  g2.append("rect").attr("x", 0).attr("y", y2).attr("width", rectHeight).attr("height", rectHeight).attr("fill", `rgb(${setColor[0]},${setColor[1]},${setColor[2]})`);
30749
30750
  g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", rectHeight + rectMarginX).attr("y", y2).text(setPath.at(-1)).style("font-size", "9px").style("fill", foregroundColor);
30750
30751
  y2 += rectHeight + rectMarginY;
@@ -30779,7 +30780,8 @@ function Legend(props) {
30779
30780
  spatialChannelColor,
30780
30781
  obsSetColor,
30781
30782
  obsSetSelection,
30782
- isSetColor
30783
+ isSetColor,
30784
+ theme
30783
30785
  ]);
30784
30786
  return jsxRuntimeExports.jsx("div", { className: clsx(classes.legend, {
30785
30787
  [classes.legendRelative]: positionRelative,
@@ -132733,16 +132735,16 @@ function addDecoder(cases, importFn) {
132733
132735
  }
132734
132736
  cases.forEach((c) => registry$1.set(c, importFn));
132735
132737
  }
132736
- addDecoder([void 0, 1], () => import("./raw-ceeff7f1.js").then((m) => m.default));
132737
- addDecoder(5, () => import("./lzw-dbfbb422.js").then((m) => m.default));
132738
+ addDecoder([void 0, 1], () => import("./raw-662c18e8.js").then((m) => m.default));
132739
+ addDecoder(5, () => import("./lzw-2c17a24e.js").then((m) => m.default));
132738
132740
  addDecoder(6, () => {
132739
132741
  throw new Error("old style JPEG compression is not supported.");
132740
132742
  });
132741
- addDecoder(7, () => import("./jpeg-8fcd9411.js").then((m) => m.default));
132742
- addDecoder([8, 32946], () => import("./deflate-4a058401.js").then((m) => m.default));
132743
- addDecoder(32773, () => import("./packbits-dfeab3cb.js").then((m) => m.default));
132744
- addDecoder(34887, () => import("./lerc-b84e7547.js").then((m) => m.default));
132745
- addDecoder(50001, () => import("./webimage-16a642d3.js").then((m) => m.default));
132743
+ addDecoder(7, () => import("./jpeg-7bbd9f0d.js").then((m) => m.default));
132744
+ addDecoder([8, 32946], () => import("./deflate-5c32d399.js").then((m) => m.default));
132745
+ addDecoder(32773, () => import("./packbits-1ac395ed.js").then((m) => m.default));
132746
+ addDecoder(34887, () => import("./lerc-f38f8fa8.js").then((m) => m.default));
132747
+ addDecoder(50001, () => import("./webimage-c0919c2b.js").then((m) => m.default));
132746
132748
  function decodeRowAcc(row, stride) {
132747
132749
  let length2 = row.length - stride;
132748
132750
  let offset5 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, H } from "./index-ad2c1b49.js";
1
+ import { a, H } from "./index-21b8a1b1.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-ad2c1b49.js";
1
+ import { B as BaseDecoder } from "./index-21b8a1b1.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-ad2c1b49.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-21b8a1b1.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-ad2c1b49.js";
1
+ import { B as BaseDecoder } from "./index-21b8a1b1.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-ad2c1b49.js";
1
+ import { B as BaseDecoder } from "./index-21b8a1b1.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-ad2c1b49.js";
1
+ import { B as BaseDecoder } from "./index-21b8a1b1.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-ad2c1b49.js";
1
+ import { B as BaseDecoder } from "./index-21b8a1b1.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/heatmap",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,14 +20,14 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "uuid": "^9.0.0",
22
22
  "react-aria": "^3.28.0",
23
- "@vitessce/constants-internal": "3.4.2",
24
- "@vitessce/gl": "3.4.2",
25
- "@vitessce/legend": "3.4.2",
26
- "@vitessce/sets-utils": "3.4.2",
27
- "@vitessce/utils": "3.4.2",
28
- "@vitessce/workers": "3.4.2",
29
- "@vitessce/vit-s": "3.4.2",
30
- "@vitessce/tooltip": "3.4.2"
23
+ "@vitessce/constants-internal": "3.4.4",
24
+ "@vitessce/gl": "3.4.4",
25
+ "@vitessce/legend": "3.4.4",
26
+ "@vitessce/sets-utils": "3.4.4",
27
+ "@vitessce/tooltip": "3.4.4",
28
+ "@vitessce/utils": "3.4.4",
29
+ "@vitessce/vit-s": "3.4.4",
30
+ "@vitessce/workers": "3.4.4"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^5.16.4",