@vitessce/heatmap 3.3.4 → 3.3.6

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-edc6cc12.js";
2
+ import { B as BaseDecoder } from "./index-18e85616.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -1302,9 +1302,6 @@ var pluralizeExports = pluralize$1.exports;
1302
1302
  const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
1303
1303
  plur.addPluralRule("glomerulus", "glomeruli");
1304
1304
  plur.addPluralRule("interstitium", "interstitia");
1305
- function fromEntries(iterable) {
1306
- return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
1307
- }
1308
1305
  function commaNumber(n2) {
1309
1306
  const nf = new Intl.NumberFormat("en-US");
1310
1307
  return nf.format(n2);
@@ -1349,8 +1346,9 @@ function getNextScope(prevScopes) {
1349
1346
  }
1350
1347
  const DEFAULT_DARK_COLOR = [50, 50, 50];
1351
1348
  const DEFAULT_LIGHT_COLOR$3 = [200, 200, 200];
1349
+ const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
1352
1350
  function getDefaultColor(theme) {
1353
- return theme === "dark" ? DEFAULT_DARK_COLOR : DEFAULT_LIGHT_COLOR$3;
1351
+ return theme === "dark" ? DEFAULT_DARK_COLOR : theme === "light" ? DEFAULT_LIGHT_COLOR$3 : DEFAULT_LIGHT2_COLOR;
1354
1352
  }
1355
1353
  const DEFAULT_GL_OPTIONS = { webgl2: true };
1356
1354
  function createDefaultUpdateCellsHover(componentName) {
@@ -10939,6 +10937,7 @@ const FileType$1 = {
10939
10937
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
10940
10938
  // AnnData
10941
10939
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
10940
+ OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
10942
10941
  OBS_SETS_ANNDATA_ZARR: "obsSets.anndata.zarr",
10943
10942
  OBS_EMBEDDING_ANNDATA_ZARR: "obsEmbedding.anndata.zarr",
10944
10943
  OBS_SPOTS_ANNDATA_ZARR: "obsSpots.anndata.zarr",
@@ -11665,7 +11664,7 @@ function configSchemaToVersion(zodSchema) {
11665
11664
  return zodSchema.shape.version._def.value;
11666
11665
  }
11667
11666
  ({
11668
- ...fromEntries(SCHEMA_HANDLERS.map(([zodSchema]) => {
11667
+ ...Object.fromEntries(SCHEMA_HANDLERS.map(([zodSchema]) => {
11669
11668
  const version2 = configSchemaToVersion(zodSchema);
11670
11669
  return [version2, zodSchema];
11671
11670
  })),
@@ -11741,6 +11740,9 @@ const annDataObsSets = z.array(z.object({
11741
11740
  ]),
11742
11741
  scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
11743
11742
  }));
11743
+ z.array(z.object({
11744
+ path: z.string()
11745
+ }));
11744
11746
  const annDataObsSpots = annDataObsm;
11745
11747
  const annDataObsPoints = annDataObsm;
11746
11748
  const annDataObsLocations = annDataObsm;
@@ -20673,19 +20675,19 @@ function _createClass$w(Constructor, protoProps, staticProps) {
20673
20675
  });
20674
20676
  return Constructor;
20675
20677
  }
20676
- function _setPrototypeOf$w(o2, p) {
20677
- _setPrototypeOf$w = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
20678
+ function _setPrototypeOf$v(o2, p) {
20679
+ _setPrototypeOf$v = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
20678
20680
  o3.__proto__ = p2;
20679
20681
  return o3;
20680
20682
  };
20681
- return _setPrototypeOf$w(o2, p);
20683
+ return _setPrototypeOf$v(o2, p);
20682
20684
  }
20683
- function _inheritsLoose$1(subClass, superClass) {
20685
+ function _inheritsLoose(subClass, superClass) {
20684
20686
  subClass.prototype = Object.create(superClass.prototype);
20685
20687
  subClass.prototype.constructor = subClass;
20686
- _setPrototypeOf$w(subClass, superClass);
20688
+ _setPrototypeOf$v(subClass, superClass);
20687
20689
  }
20688
- function _assertThisInitialized$w(self2) {
20690
+ function _assertThisInitialized$v(self2) {
20689
20691
  if (self2 === void 0) {
20690
20692
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
20691
20693
  }
@@ -20892,7 +20894,7 @@ var BaseStyleRule = /* @__PURE__ */ function() {
20892
20894
  return BaseStyleRule2;
20893
20895
  }();
20894
20896
  var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
20895
- _inheritsLoose$1(StyleRule2, _BaseStyleRule);
20897
+ _inheritsLoose(StyleRule2, _BaseStyleRule);
20896
20898
  function StyleRule2(key, style2, options) {
20897
20899
  var _this;
20898
20900
  _this = _BaseStyleRule.call(this, key, style2, options) || this;
@@ -20900,7 +20902,7 @@ var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
20900
20902
  if (selector2) {
20901
20903
  _this.selectorText = selector2;
20902
20904
  } else if (scoped !== false) {
20903
- _this.id = generateId(_assertThisInitialized$w(_assertThisInitialized$w(_this)), sheet);
20905
+ _this.id = generateId(_assertThisInitialized$v(_assertThisInitialized$v(_this)), sheet);
20904
20906
  _this.selectorText = "." + escape(_this.id);
20905
20907
  }
20906
20908
  return _this;
@@ -21130,7 +21132,7 @@ var pluginKeyframesRule = {
21130
21132
  }
21131
21133
  };
21132
21134
  var KeyframeRule = /* @__PURE__ */ function(_BaseStyleRule) {
21133
- _inheritsLoose$1(KeyframeRule2, _BaseStyleRule);
21135
+ _inheritsLoose(KeyframeRule2, _BaseStyleRule);
21134
21136
  function KeyframeRule2() {
21135
21137
  return _BaseStyleRule.apply(this, arguments) || this;
21136
21138
  }
@@ -24042,25 +24044,7 @@ function useIsFocusVisible() {
24042
24044
  ref
24043
24045
  };
24044
24046
  }
24045
- function _setPrototypeOf$v(o2, p) {
24046
- _setPrototypeOf$v = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
24047
- o3.__proto__ = p2;
24048
- return o3;
24049
- };
24050
- return _setPrototypeOf$v(o2, p);
24051
- }
24052
- function _inheritsLoose(subClass, superClass) {
24053
- subClass.prototype = Object.create(superClass.prototype);
24054
- subClass.prototype.constructor = subClass;
24055
- _setPrototypeOf$v(subClass, superClass);
24056
- }
24057
24047
  const TransitionGroupContext = React__default.createContext(null);
24058
- function _assertThisInitialized$v(self2) {
24059
- if (self2 === void 0) {
24060
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24061
- }
24062
- return self2;
24063
- }
24064
24048
  function getChildMapping(children2, mapFn) {
24065
24049
  var mapper = function mapper2(child) {
24066
24050
  return mapFn && isValidElement(child) ? mapFn(child) : child;
@@ -24209,7 +24193,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
24209
24193
  }
24210
24194
  if (this.mounted) {
24211
24195
  this.setState(function(state) {
24212
- var children2 = _extends$1({}, state.children);
24196
+ var children2 = _extends$2({}, state.children);
24213
24197
  delete children2[child.key];
24214
24198
  return {
24215
24199
  children: children2
@@ -24218,7 +24202,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
24218
24202
  }
24219
24203
  };
24220
24204
  _proto.render = function render() {
24221
- var _this$props = this.props, Component2 = _this$props.component, childFactory2 = _this$props.childFactory, props2 = _objectWithoutPropertiesLoose$1(_this$props, ["component", "childFactory"]);
24205
+ var _this$props = this.props, Component2 = _this$props.component, childFactory2 = _this$props.childFactory, props2 = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
24222
24206
  var contextValue = this.state.contextValue;
24223
24207
  var children2 = values(this.state.children).map(childFactory2);
24224
24208
  delete props2.appear;
@@ -131560,7 +131544,8 @@ const AXIS_MARGIN = 3;
131560
131544
  const AXIS_PADDING = 10;
131561
131545
  const THEME_TO_TEXT_COLOR = {
131562
131546
  dark: [224, 224, 224],
131563
- light: [64, 64, 64]
131547
+ light: [64, 64, 64],
131548
+ light2: [64, 64, 64]
131564
131549
  };
131565
131550
  const AXIS_FONT_FAMILY = "-apple-system, 'Helvetica Neue', Arial, sans-serif";
131566
131551
  const PIXELATED_TEXTURE_PARAMETERS = {
@@ -132663,16 +132648,16 @@ function addDecoder(cases, importFn) {
132663
132648
  }
132664
132649
  cases.forEach((c) => registry$1.set(c, importFn));
132665
132650
  }
132666
- addDecoder([void 0, 1], () => import("./raw-1b039310.js").then((m) => m.default));
132667
- addDecoder(5, () => import("./lzw-5206f32d.js").then((m) => m.default));
132651
+ addDecoder([void 0, 1], () => import("./raw-281b8e76.js").then((m) => m.default));
132652
+ addDecoder(5, () => import("./lzw-c8a11762.js").then((m) => m.default));
132668
132653
  addDecoder(6, () => {
132669
132654
  throw new Error("old style JPEG compression is not supported.");
132670
132655
  });
132671
- addDecoder(7, () => import("./jpeg-a2f977d0.js").then((m) => m.default));
132672
- addDecoder([8, 32946], () => import("./deflate-05e3ee40.js").then((m) => m.default));
132673
- addDecoder(32773, () => import("./packbits-5812e06c.js").then((m) => m.default));
132674
- addDecoder(34887, () => import("./lerc-0d65f0a5.js").then((m) => m.default));
132675
- addDecoder(50001, () => import("./webimage-199d4de9.js").then((m) => m.default));
132656
+ addDecoder(7, () => import("./jpeg-5104bd7b.js").then((m) => m.default));
132657
+ addDecoder([8, 32946], () => import("./deflate-20721e5b.js").then((m) => m.default));
132658
+ addDecoder(32773, () => import("./packbits-c1ce7870.js").then((m) => m.default));
132659
+ addDecoder(34887, () => import("./lerc-352d4a39.js").then((m) => m.default));
132660
+ addDecoder(50001, () => import("./webimage-8edff4f0.js").then((m) => m.default));
132676
132661
  function decodeRowAcc(row, stride) {
132677
132662
  let length2 = row.length - stride;
132678
132663
  let offset5 = 0;
@@ -143914,7 +143899,7 @@ class BitmaskLayer2 extends XRLayer {
143914
143899
  } = this.state;
143915
143900
  if (textures && model) {
143916
143901
  const scaleFactor = 1 / 2 ** (maxZoom - zoom);
143917
- const colors = fromEntries(range$5(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
143902
+ const colors = Object.fromEntries(range$5(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
143918
143903
  model.setUniforms(Object.assign({}, uniforms, {
143919
143904
  ...colors,
143920
143905
  // Bitmask image channel data textures
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, H } from "./index-edc6cc12.js";
1
+ import { a, H } from "./index-18e85616.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-edc6cc12.js";
1
+ import { B as BaseDecoder } from "./index-18e85616.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-edc6cc12.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-18e85616.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-edc6cc12.js";
1
+ import { B as BaseDecoder } from "./index-18e85616.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-edc6cc12.js";
1
+ import { B as BaseDecoder } from "./index-18e85616.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-edc6cc12.js";
1
+ import { B as BaseDecoder } from "./index-18e85616.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-edc6cc12.js";
1
+ import { B as BaseDecoder } from "./index-18e85616.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.3.4",
3
+ "version": "3.3.6",
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.3.4",
24
- "@vitessce/gl": "3.3.4",
25
- "@vitessce/legend": "3.3.4",
26
- "@vitessce/tooltip": "3.3.4",
27
- "@vitessce/sets-utils": "3.3.4",
28
- "@vitessce/utils": "3.3.4",
29
- "@vitessce/vit-s": "3.3.4",
30
- "@vitessce/workers": "3.3.4"
23
+ "@vitessce/constants-internal": "3.3.6",
24
+ "@vitessce/sets-utils": "3.3.6",
25
+ "@vitessce/gl": "3.3.6",
26
+ "@vitessce/legend": "3.3.6",
27
+ "@vitessce/tooltip": "3.3.6",
28
+ "@vitessce/utils": "3.3.6",
29
+ "@vitessce/vit-s": "3.3.6",
30
+ "@vitessce/workers": "3.3.6"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^5.16.4",