@vitessce/spatial-utils 3.5.11 → 3.5.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-68f84e2a.js";
2
- import { B as BaseDecoder } from "./index-5cecf73a.js";
2
+ import { B as BaseDecoder } from "./index-d69469a9.js";
3
3
  import "react";
4
4
  class DeflateDecoder extends BaseDecoder {
5
5
  decodeBlock(buffer) {
@@ -125716,16 +125716,16 @@ function addDecoder(cases, importFn) {
125716
125716
  }
125717
125717
  cases.forEach((c) => registry$2.set(c, importFn));
125718
125718
  }
125719
- addDecoder([void 0, 1], () => import("./raw-7d52f1b0.js").then((m) => m.default));
125720
- addDecoder(5, () => import("./lzw-662fbb52.js").then((m) => m.default));
125719
+ addDecoder([void 0, 1], () => import("./raw-a653b43b.js").then((m) => m.default));
125720
+ addDecoder(5, () => import("./lzw-3f280cbb.js").then((m) => m.default));
125721
125721
  addDecoder(6, () => {
125722
125722
  throw new Error("old style JPEG compression is not supported.");
125723
125723
  });
125724
- addDecoder(7, () => import("./jpeg-1271c3d4.js").then((m) => m.default));
125725
- addDecoder([8, 32946], () => import("./deflate-d5372581.js").then((m) => m.default));
125726
- addDecoder(32773, () => import("./packbits-25cbe04e.js").then((m) => m.default));
125727
- addDecoder(34887, () => import("./lerc-7457d5a3.js").then((m) => m.default));
125728
- addDecoder(50001, () => import("./webimage-244abcbd.js").then((m) => m.default));
125724
+ addDecoder(7, () => import("./jpeg-e53ed070.js").then((m) => m.default));
125725
+ addDecoder([8, 32946], () => import("./deflate-016629a0.js").then((m) => m.default));
125726
+ addDecoder(32773, () => import("./packbits-4f66ac8d.js").then((m) => m.default));
125727
+ addDecoder(34887, () => import("./lerc-8bb755c4.js").then((m) => m.default));
125728
+ addDecoder(50001, () => import("./webimage-914786f2.js").then((m) => m.default));
125729
125729
  function decodeRowAcc(row, stride) {
125730
125730
  let length2 = row.length - stride;
125731
125731
  let offset = 0;
@@ -140370,9 +140370,6 @@ function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
140370
140370
  sizes.push(unit(`${zSize} ${zUnit}`.replace("µ", "u")));
140371
140371
  }
140372
140372
  const scale2 = sizes.map((i2) => divide(i2, unit("1 um")));
140373
- if (!sizes[0].equals(sizes[1])) {
140374
- scale2[1] = divide(sizes[1], sizes[0]);
140375
- }
140376
140373
  if (!scale2[2]) {
140377
140374
  scale2[2] = 1;
140378
140375
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D, e, a, b, c, d, E, G, Z, A, r, n, C, z, x, l, m, y, w, h, q, u, o, i, f, j, k, t, s, p, v } from "./index-5cecf73a.js";
1
+ import { D, e, a, b, c, d, E, G, Z, A, r, n, C, z, x, l, m, y, w, h, q, u, o, i, f, j, k, t, s, p, v } from "./index-d69469a9.js";
2
2
  import "react";
3
3
  export {
4
4
  D as DEFAULT_CELLS_LAYER,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-5cecf73a.js";
1
+ import { B as BaseDecoder } from "./index-d69469a9.js";
2
2
  import "react";
3
3
  const dctZigZag = new Int32Array([
4
4
  0,
@@ -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-5cecf73a.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-d69469a9.js";
3
3
  import "react";
4
4
  const LercParameters = {
5
5
  Version: 0,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-5cecf73a.js";
1
+ import { B as BaseDecoder } from "./index-d69469a9.js";
2
2
  import "react";
3
3
  const MIN_BITS = 9;
4
4
  const CLEAR_CODE = 256;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-5cecf73a.js";
1
+ import { B as BaseDecoder } from "./index-d69469a9.js";
2
2
  import "react";
3
3
  class PackbitsDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-5cecf73a.js";
1
+ import { B as BaseDecoder } from "./index-d69469a9.js";
2
2
  import "react";
3
3
  class RawDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-5cecf73a.js";
1
+ import { B as BaseDecoder } from "./index-d69469a9.js";
2
2
  import "react";
3
3
  class WebImageDecoder extends BaseDecoder {
4
4
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../src/spatial.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,4CAJW,MAAM,SACN,MAAM,GAAG,SAAS,GAChB,MAAM,CAMlB;AAoCD;;;;GAIG;AACH,8BAHW,MAAM,YACN,KAAK,GAAC,IAAI,WAiBpB;AAID,sHAkCC;AAiHD;;GAEG;AACH,qCAFW,KAAK,CAAE,MAAM,CAAC,WAKxB;AAED;;;;;;GAMG;AACH,gDALW,MAAM,eAEJ,MAAM,EAAE,CAuCpB;AAED;;;;;;;;;GASG;AACH,gEAJW,MAAM,EAAE,sBAER,CAAC,MAAM,EAAE,GAAC,IAAI,CAAC,+CAuEzB;AASD;;;IAuBC;AAED,uDAQC;AAED;;;;;;;;GAQG;AACH,6EANW,MAAM,EAAE,GAAC,SAAS,QAElB,MAAM,EAAE,GAAC,SAAS,GAEhB,OAAO,CA4CnB;AAED,6CAOC;AAED;;;;;;;;;GASG;AACH,8EANW,MAAM,EAAE,GAAC,SAAS,YAGlB,MAAM,EAAE,GACN,MAAM,EAAE,CAoDpB;AAvfM;;;;;EAYN;AAEM,yEAkBN;wBAnDuB,SAAS"}
1
+ {"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../src/spatial.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,4CAJW,MAAM,SACN,MAAM,GAAG,SAAS,GAChB,MAAM,CAMlB;AAoCD;;;;GAIG;AACH,8BAHW,MAAM,YACN,KAAK,GAAC,IAAI,WAiBpB;AAID,sHAmCC;AAiHD;;GAEG;AACH,qCAFW,KAAK,CAAE,MAAM,CAAC,WAKxB;AAED;;;;;;GAMG;AACH,gDALW,MAAM,eAEJ,MAAM,EAAE,CAuCpB;AAED;;;;;;;;;GASG;AACH,gEAJW,MAAM,EAAE,sBAER,CAAC,MAAM,EAAE,GAAC,IAAI,CAAC,+CAuEzB;AASD;;;IAuBC;AAED,uDAQC;AAED;;;;;;;;GAQG;AACH,6EANW,MAAM,EAAE,GAAC,SAAS,QAElB,MAAM,EAAE,GAAC,SAAS,GAEhB,OAAO,CA4CnB;AAED,6CAOC;AAED;;;;;;;;;GASG;AACH,8EANW,MAAM,EAAE,GAAC,SAAS,YAGlB,MAAM,EAAE,GACN,MAAM,EAAE,CAoDpB;AAxfM;;;;;EAYN;AAEM,yEAkBN;wBAnDuB,SAAS"}
@@ -81,10 +81,11 @@ export function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
81
81
  const scale = sizes.map(i => divide(i, unit('1 um')));
82
82
  // TODO: is this still needed
83
83
  // sizes are special objects with own equals method - see `unit` in declaration
84
- if (!sizes[0].equals(sizes[1])) {
85
- // Handle scaling in the Y direction for non-square pixels
86
- scale[1] = divide(sizes[1], sizes[0]);
87
- }
84
+ // This messess the dimensions when the x & y are little different (e.g., for the geomx data)
85
+ // if (!sizes[0].equals(sizes[1])) {
86
+ // // Handle scaling in the Y direction for non-square pixels
87
+ // scale[1] = divide(sizes[1], sizes[0]);
88
+ // }
88
89
  // END TODO: is this still needed
89
90
  // Add in z dimension needed for Matrix4 scale API.
90
91
  if (!scale[2]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/spatial-utils",
3
- "version": "3.5.11",
3
+ "version": "3.5.12",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,11 +20,11 @@
20
20
  "zarrita": "0.4.0",
21
21
  "math.gl": "^3.5.6",
22
22
  "mathjs": "^9.2.0",
23
- "@vitessce/gl": "3.5.11",
24
- "@vitessce/utils": "3.5.11",
25
- "@vitessce/zarr-utils": "3.5.11",
26
- "@vitessce/constants-internal": "3.5.11",
27
- "@vitessce/globals": "3.5.11"
23
+ "@vitessce/gl": "3.5.12",
24
+ "@vitessce/utils": "3.5.12",
25
+ "@vitessce/zarr-utils": "3.5.12",
26
+ "@vitessce/constants-internal": "3.5.12",
27
+ "@vitessce/globals": "3.5.12"
28
28
  },
29
29
  "scripts": {
30
30
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
package/src/spatial.js CHANGED
@@ -95,10 +95,11 @@ export function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
95
95
 
96
96
  // TODO: is this still needed
97
97
  // sizes are special objects with own equals method - see `unit` in declaration
98
- if (!sizes[0].equals(sizes[1])) {
99
- // Handle scaling in the Y direction for non-square pixels
100
- scale[1] = divide(sizes[1], sizes[0]);
101
- }
98
+ // This messess the dimensions when the x & y are little different (e.g., for the geomx data)
99
+ // if (!sizes[0].equals(sizes[1])) {
100
+ // // Handle scaling in the Y direction for non-square pixels
101
+ // scale[1] = divide(sizes[1], sizes[0]);
102
+ // }
102
103
  // END TODO: is this still needed
103
104
 
104
105
  // Add in z dimension needed for Matrix4 scale API.