@vitessce/spatial-utils 3.5.11 → 3.6.0

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,4 @@
1
- import { B as BaseDecoder } from "./index-5cecf73a.js";
2
- import "react";
1
+ import { B as BaseDecoder } from "./index-Bh7EATmb.js";
3
2
  class RawDecoder extends BaseDecoder {
4
3
  decodeBlock(buffer) {
5
4
  return buffer;
@@ -1,5 +1,4 @@
1
- import { B as BaseDecoder } from "./index-5cecf73a.js";
2
- import "react";
1
+ import { B as BaseDecoder } from "./index-Bh7EATmb.js";
3
2
  class WebImageDecoder extends BaseDecoder {
4
3
  constructor() {
5
4
  super();
@@ -1,11 +1,8 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
4
  var _a;
8
- import { z as zlibSync, u as unzlibSync } from "./browser-122c4c35.js";
5
+ import { z as zlibSync, u as unzlibSync } from "./browser-CwsEWr7C.js";
9
6
  var Zlib = (_a = class {
10
7
  constructor(level = 1) {
11
8
  __publicField(this, "level");
@@ -1,11 +1,8 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
4
  var _a;
8
- import { _ as __toBinary } from "./chunk-INHXZS53-bee20a28.js";
5
+ import { _ as __toBinary } from "./chunk-INHXZS53-DHVJiuU3.js";
9
6
  var zstd_codec = (() => {
10
7
  var _a2;
11
8
  typeof document != "undefined" ? (_a2 = document.currentScript) == null ? void 0 : _a2.src : void 0;
@@ -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.6.0",
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.6.0",
24
+ "@vitessce/utils": "3.6.0",
25
+ "@vitessce/zarr-utils": "3.6.0",
26
+ "@vitessce/constants-internal": "3.6.0",
27
+ "@vitessce/globals": "3.6.0"
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.