@vitessce/ome-tiff 3.5.10 → 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-ea2cb64e.js";
2
+ import { B as BaseDecoder } from "./index-d7c87a3c.js";
3
3
  import "react";
4
4
  class DeflateDecoder extends BaseDecoder {
5
5
  decodeBlock(buffer) {
@@ -108022,8 +108022,15 @@ class SelectionLayer extends CompositeLayer {
108022
108022
  if (!nodePolygonContainsSelectedPolygon && !nodePolygonWithinSelectedPolygon && !nodePolygonOverlapsSelectedPolgyon) {
108023
108023
  return true;
108024
108024
  }
108025
- if (node.data && booleanPointInPolygon$1(point$1([].slice.call(getObsCoords(node.data))), selectedPolygon)) {
108026
- pickingInfos.push(node.data);
108025
+ if (node.data) {
108026
+ let current = node;
108027
+ while (current) {
108028
+ const pointCoords = [].slice.call(getObsCoords(current.data));
108029
+ if (booleanPointInPolygon$1(point$1(pointCoords), selectedPolygon)) {
108030
+ pickingInfos.push(current.data);
108031
+ }
108032
+ current = current.next;
108033
+ }
108027
108034
  }
108028
108035
  return false;
108029
108036
  });
@@ -109880,16 +109887,16 @@ async function getDecoder(fileDirectory) {
109880
109887
  const Decoder = await importFn();
109881
109888
  return new Decoder(fileDirectory);
109882
109889
  }
109883
- addDecoder([void 0, 1], () => import("./raw-3d61b60b.js").then((m) => m.default));
109884
- addDecoder(5, () => import("./lzw-567e09a9.js").then((m) => m.default));
109890
+ addDecoder([void 0, 1], () => import("./raw-686dedf7.js").then((m) => m.default));
109891
+ addDecoder(5, () => import("./lzw-143df53c.js").then((m) => m.default));
109885
109892
  addDecoder(6, () => {
109886
109893
  throw new Error("old style JPEG compression is not supported.");
109887
109894
  });
109888
- addDecoder(7, () => import("./jpeg-1f66a792.js").then((m) => m.default));
109889
- addDecoder([8, 32946], () => import("./deflate-e7f1ec76.js").then((m) => m.default));
109890
- addDecoder(32773, () => import("./packbits-5e197cc5.js").then((m) => m.default));
109891
- addDecoder(34887, () => import("./lerc-55208569.js").then((m) => m.default));
109892
- addDecoder(50001, () => import("./webimage-313c9bd8.js").then((m) => m.default));
109895
+ addDecoder(7, () => import("./jpeg-84d6e012.js").then((m) => m.default));
109896
+ addDecoder([8, 32946], () => import("./deflate-d27ac528.js").then((m) => m.default));
109897
+ addDecoder(32773, () => import("./packbits-04b6ae2c.js").then((m) => m.default));
109898
+ addDecoder(34887, () => import("./lerc-4f2b751f.js").then((m) => m.default));
109899
+ addDecoder(50001, () => import("./webimage-7c9385c3.js").then((m) => m.default));
109893
109900
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
109894
109901
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
109895
109902
  }
@@ -143884,9 +143891,6 @@ function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
143884
143891
  sizes.push(unit(`${zSize} ${zUnit}`.replace("µ", "u")));
143885
143892
  }
143886
143893
  const scale2 = sizes.map((i2) => divide(i2, unit("1 um")));
143887
- if (!sizes[0].equals(sizes[1])) {
143888
- scale2[1] = divide(sizes[1], sizes[0]);
143889
- }
143890
143894
  if (!scale2[2]) {
143891
143895
  scale2[2] = 1;
143892
143896
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c, b, O } from "./index-ea2cb64e.js";
1
+ import { c, b, O } from "./index-d7c87a3c.js";
2
2
  import "react";
3
3
  export {
4
4
  c as OmeTiffAsObsSegmentationsLoader,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-ea2cb64e.js";
1
+ import { B as BaseDecoder } from "./index-d7c87a3c.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, L as LercParameters, a as LercAddCompression } from "./index-ea2cb64e.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-d7c87a3c.js";
3
3
  import "react";
4
4
  var LercDecode = { exports: {} };
5
5
  (function(module) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-ea2cb64e.js";
1
+ import { B as BaseDecoder } from "./index-d7c87a3c.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-ea2cb64e.js";
1
+ import { B as BaseDecoder } from "./index-d7c87a3c.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-ea2cb64e.js";
1
+ import { B as BaseDecoder } from "./index-d7c87a3c.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-ea2cb64e.js";
1
+ import { B as BaseDecoder } from "./index-d7c87a3c.js";
2
2
  import "react";
3
3
  class WebImageDecoder extends BaseDecoder {
4
4
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/ome-tiff",
3
- "version": "3.5.10",
3
+ "version": "3.5.12",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,14 +18,14 @@
18
18
  "dependencies": {
19
19
  "d3-array": "^2.4.0",
20
20
  "lodash-es": "^4.17.21",
21
- "@vitessce/abstract": "3.5.10",
22
- "@vitessce/constants-internal": "3.5.10",
23
- "@vitessce/config": "3.5.10",
24
- "@vitessce/gl": "3.5.10",
25
- "@vitessce/sets-utils": "3.5.10",
26
- "@vitessce/spatial-utils": "3.5.10",
27
- "@vitessce/image-utils": "3.5.10",
28
- "@vitessce/utils": "3.5.10"
21
+ "@vitessce/abstract": "3.5.12",
22
+ "@vitessce/constants-internal": "3.5.12",
23
+ "@vitessce/config": "3.5.12",
24
+ "@vitessce/gl": "3.5.12",
25
+ "@vitessce/sets-utils": "3.5.12",
26
+ "@vitessce/spatial-utils": "3.5.12",
27
+ "@vitessce/image-utils": "3.5.12",
28
+ "@vitessce/utils": "3.5.12"
29
29
  },
30
30
  "scripts": {
31
31
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",