@vitessce/json 3.6.11 → 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-On7xyq2-.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;
@@ -137096,22 +137096,22 @@ async function getDecoder(fileDirectory) {
137096
137096
  const Decoder = await importFn();
137097
137097
  return new Decoder(fileDirectory);
137098
137098
  }
137099
- addDecoder([void 0, 1], () => import("./raw-CLUlqBdi.js").then((m) => m.default));
137100
- addDecoder(5, () => import("./lzw-Cms0ISXL.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));
137101
137101
  addDecoder(6, () => {
137102
137102
  throw new Error("old style JPEG compression is not supported.");
137103
137103
  });
137104
- addDecoder(7, () => import("./jpeg-DQD3bdns.js").then((m) => m.default));
137105
- addDecoder([8, 32946], () => import("./deflate-rcktAdjY.js").then((m) => m.default));
137106
- addDecoder(32773, () => import("./packbits-Bw6OKzSj.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));
137107
137107
  addDecoder(
137108
137108
  34887,
137109
- () => import("./lerc-DZTRZwBP.js").then(async (m) => {
137109
+ () => import("./lerc-DHkuo7TO.js").then(async (m) => {
137110
137110
  await m.zstd.init();
137111
137111
  return m;
137112
137112
  }).then((m) => m.default)
137113
137113
  );
137114
- addDecoder(50001, () => import("./webimage-B1LpLIxa.js").then((m) => m.default));
137114
+ addDecoder(50001, () => import("./webimage-BsYePjn2.js").then((m) => m.default));
137115
137115
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
137116
137116
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
137117
137117
  }
@@ -154129,8 +154129,14 @@ function coordinateTransformationsToMatrix(coordinateTransformations, axes) {
154129
154129
  }
154130
154130
  } else if (spatialOutputAxes.length === 2) {
154131
154131
  const nextMat = new Matrix4().fromArray([
154132
- ...filteredAffine[0],
154133
- ...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],
154134
154140
  0,
154135
154141
  0,
154136
154142
  1,
@@ -154146,6 +154152,7 @@ function coordinateTransformationsToMatrix(coordinateTransformations, axes) {
154146
154152
  const swapMat = new Matrix4().fromArray(swapMatNested.flat());
154147
154153
  mat = mat.multiplyLeft(swapMat);
154148
154154
  }
154155
+ mat = mat.transpose();
154149
154156
  } else {
154150
154157
  throw new Error("Affine transformation must have 2 or 3 rows.");
154151
154158
  }
@@ -154172,6 +154179,9 @@ function coordinateTransformationsToMatrix(coordinateTransformations, axes) {
154172
154179
  }
154173
154180
  });
154174
154181
  }
154182
+ if (mat.some((value) => Number.isNaN(value))) {
154183
+ throw new Error("Matrix contains NaN values");
154184
+ }
154175
154185
  return mat;
154176
154186
  }
154177
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-On7xyq2-.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-On7xyq2-.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-On7xyq2-.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-On7xyq2-.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-On7xyq2-.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-On7xyq2-.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-On7xyq2-.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.11",
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.11",
24
- "@vitessce/gl": "3.6.11",
25
- "@vitessce/globals": "3.6.11",
26
- "@vitessce/schemas": "3.6.11",
27
- "@vitessce/sets-utils": "3.6.11",
28
- "@vitessce/spatial-utils": "3.6.11",
29
- "@vitessce/utils": "3.6.11",
30
- "@vitessce/abstract": "3.6.11",
31
- "@vitessce/error": "3.6.11",
32
- "@vitessce/zarr-utils": "3.6.11",
33
- "@vitessce/config": "3.6.11"
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",