@vitessce/json 3.6.10 → 3.6.12

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-SxljTded.js";
2
- import { B as BaseDecoder } from "./index-D2yFM0Ax.js";
2
+ import { B as BaseDecoder } from "./index-Dk8azeqY.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -135325,7 +135325,8 @@ const PIXELATED_TEXTURE_PARAMETERS = {
135325
135325
  const GLSL_COLORMAPS = [
135326
135326
  "plasma",
135327
135327
  "viridis",
135328
- "jet"
135328
+ "jet",
135329
+ "greys"
135329
135330
  ];
135330
135331
  const GLSL_COLORMAP_DEFAULT = "plasma";
135331
135332
  const COLORMAP_SHADER_PLACEHOLDER = "COLORMAP_FUNC";
@@ -137095,22 +137096,22 @@ async function getDecoder(fileDirectory) {
137095
137096
  const Decoder = await importFn();
137096
137097
  return new Decoder(fileDirectory);
137097
137098
  }
137098
- addDecoder([void 0, 1], () => import("./raw-uN_cumDY.js").then((m) => m.default));
137099
- addDecoder(5, () => import("./lzw-CscKL06f.js").then((m) => m.default));
137099
+ addDecoder([void 0, 1], () => import("./raw-BkEHccvG.js").then((m) => m.default));
137100
+ addDecoder(5, () => import("./lzw-CT-xPuVt.js").then((m) => m.default));
137100
137101
  addDecoder(6, () => {
137101
137102
  throw new Error("old style JPEG compression is not supported.");
137102
137103
  });
137103
- addDecoder(7, () => import("./jpeg-DLyTBIoB.js").then((m) => m.default));
137104
- addDecoder([8, 32946], () => import("./deflate-DstPPSeQ.js").then((m) => m.default));
137105
- addDecoder(32773, () => import("./packbits-D3LeL8FE.js").then((m) => m.default));
137104
+ addDecoder(7, () => import("./jpeg-CgKC8pvg.js").then((m) => m.default));
137105
+ addDecoder([8, 32946], () => import("./deflate-BB-_i4AV.js").then((m) => m.default));
137106
+ addDecoder(32773, () => import("./packbits-CxU7_ENa.js").then((m) => m.default));
137106
137107
  addDecoder(
137107
137108
  34887,
137108
- () => import("./lerc-C3NYZ4w9.js").then(async (m) => {
137109
+ () => import("./lerc-DHkuo7TO.js").then(async (m) => {
137109
137110
  await m.zstd.init();
137110
137111
  return m;
137111
137112
  }).then((m) => m.default)
137112
137113
  );
137113
- addDecoder(50001, () => import("./webimage-CsEP6b6I.js").then((m) => m.default));
137114
+ addDecoder(50001, () => import("./webimage-BsYePjn2.js").then((m) => m.default));
137114
137115
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
137115
137116
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
137116
137117
  }
@@ -154128,8 +154129,14 @@ function coordinateTransformationsToMatrix(coordinateTransformations, axes) {
154128
154129
  }
154129
154130
  } else if (spatialOutputAxes.length === 2) {
154130
154131
  const nextMat = new Matrix4().fromArray([
154131
- ...filteredAffine[0],
154132
- ...filteredAffine[1],
154132
+ filteredAffine[0][0],
154133
+ filteredAffine[0][1],
154134
+ 0,
154135
+ filteredAffine[0][2],
154136
+ filteredAffine[1][0],
154137
+ filteredAffine[1][1],
154138
+ 0,
154139
+ filteredAffine[1][2],
154133
154140
  0,
154134
154141
  0,
154135
154142
  1,
@@ -154145,6 +154152,7 @@ function coordinateTransformationsToMatrix(coordinateTransformations, axes) {
154145
154152
  const swapMat = new Matrix4().fromArray(swapMatNested.flat());
154146
154153
  mat = mat.multiplyLeft(swapMat);
154147
154154
  }
154155
+ mat = mat.transpose();
154148
154156
  } else {
154149
154157
  throw new Error("Affine transformation must have 2 or 3 rows.");
154150
154158
  }
@@ -154171,6 +154179,9 @@ function coordinateTransformationsToMatrix(coordinateTransformations, axes) {
154171
154179
  }
154172
154180
  });
154173
154181
  }
154182
+ if (mat.some((value) => Number.isNaN(value))) {
154183
+ throw new Error("Matrix contains NaN values");
154184
+ }
154174
154185
  return mat;
154175
154186
  }
154176
154187
  class NodeNotFoundError extends Error {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-D2yFM0Ax.js";
1
+ import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-Dk8azeqY.js";
2
2
  export {
3
3
  C as CellsJsonAsObsEmbeddingLoader,
4
4
  d as CellsJsonAsObsLabelsLoader,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-D2yFM0Ax.js";
1
+ import { B as BaseDecoder } from "./index-Dk8azeqY.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-D2yFM0Ax.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-Dk8azeqY.js";
3
3
  var LercDecode = { exports: {} };
4
4
  var hasRequiredLercDecode;
5
5
  function requireLercDecode() {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-D2yFM0Ax.js";
1
+ import { B as BaseDecoder } from "./index-Dk8azeqY.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-D2yFM0Ax.js";
1
+ import { B as BaseDecoder } from "./index-Dk8azeqY.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-D2yFM0Ax.js";
1
+ import { B as BaseDecoder } from "./index-Dk8azeqY.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-D2yFM0Ax.js";
1
+ import { B as BaseDecoder } from "./index-Dk8azeqY.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/json",
3
- "version": "3.6.10",
3
+ "version": "3.6.12",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,17 +20,17 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "zarrita": "0.5.2",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/constants-internal": "3.6.10",
24
- "@vitessce/gl": "3.6.10",
25
- "@vitessce/globals": "3.6.10",
26
- "@vitessce/schemas": "3.6.10",
27
- "@vitessce/sets-utils": "3.6.10",
28
- "@vitessce/spatial-utils": "3.6.10",
29
- "@vitessce/utils": "3.6.10",
30
- "@vitessce/abstract": "3.6.10",
31
- "@vitessce/error": "3.6.10",
32
- "@vitessce/zarr-utils": "3.6.10",
33
- "@vitessce/config": "3.6.10"
23
+ "@vitessce/constants-internal": "3.6.12",
24
+ "@vitessce/gl": "3.6.12",
25
+ "@vitessce/globals": "3.6.12",
26
+ "@vitessce/schemas": "3.6.12",
27
+ "@vitessce/sets-utils": "3.6.12",
28
+ "@vitessce/spatial-utils": "3.6.12",
29
+ "@vitessce/utils": "3.6.12",
30
+ "@vitessce/abstract": "3.6.12",
31
+ "@vitessce/error": "3.6.12",
32
+ "@vitessce/zarr-utils": "3.6.12",
33
+ "@vitessce/config": "3.6.12"
34
34
  },
35
35
  "scripts": {
36
36
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",