@vitessce/image-utils 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-895079ae.js";
2
+ import { B as BaseDecoder } from "./index-7cd9a821.js";
3
3
  import "react";
4
4
  class DeflateDecoder extends BaseDecoder {
5
5
  decodeBlock(buffer) {
@@ -124378,8 +124378,15 @@ class SelectionLayer extends CompositeLayer {
124378
124378
  if (!nodePolygonContainsSelectedPolygon && !nodePolygonWithinSelectedPolygon && !nodePolygonOverlapsSelectedPolgyon) {
124379
124379
  return true;
124380
124380
  }
124381
- if (node2.data && booleanPointInPolygon$1(point$1([].slice.call(getObsCoords(node2.data))), selectedPolygon)) {
124382
- pickingInfos.push(node2.data);
124381
+ if (node2.data) {
124382
+ let current = node2;
124383
+ while (current) {
124384
+ const pointCoords = [].slice.call(getObsCoords(current.data));
124385
+ if (booleanPointInPolygon$1(point$1(pointCoords), selectedPolygon)) {
124386
+ pickingInfos.push(current.data);
124387
+ }
124388
+ current = current.next;
124389
+ }
124383
124390
  }
124384
124391
  return false;
124385
124392
  });
@@ -125557,16 +125564,16 @@ function addDecoder(cases, importFn) {
125557
125564
  }
125558
125565
  cases.forEach((c) => registry$1.set(c, importFn));
125559
125566
  }
125560
- addDecoder([void 0, 1], () => import("./raw-be48f963.js").then((m) => m.default));
125561
- addDecoder(5, () => import("./lzw-b8bc714f.js").then((m) => m.default));
125567
+ addDecoder([void 0, 1], () => import("./raw-03199f90.js").then((m) => m.default));
125568
+ addDecoder(5, () => import("./lzw-a121adc1.js").then((m) => m.default));
125562
125569
  addDecoder(6, () => {
125563
125570
  throw new Error("old style JPEG compression is not supported.");
125564
125571
  });
125565
- addDecoder(7, () => import("./jpeg-538d6217.js").then((m) => m.default));
125566
- addDecoder([8, 32946], () => import("./deflate-db077ef9.js").then((m) => m.default));
125567
- addDecoder(32773, () => import("./packbits-94f00132.js").then((m) => m.default));
125568
- addDecoder(34887, () => import("./lerc-b87bdc1b.js").then((m) => m.default));
125569
- addDecoder(50001, () => import("./webimage-66c7a27c.js").then((m) => m.default));
125572
+ addDecoder(7, () => import("./jpeg-e6befff5.js").then((m) => m.default));
125573
+ addDecoder([8, 32946], () => import("./deflate-1b7f84df.js").then((m) => m.default));
125574
+ addDecoder(32773, () => import("./packbits-896bb499.js").then((m) => m.default));
125575
+ addDecoder(34887, () => import("./lerc-3f737256.js").then((m) => m.default));
125576
+ addDecoder(50001, () => import("./webimage-1e977884.js").then((m) => m.default));
125570
125577
  function decodeRowAcc(row, stride) {
125571
125578
  let length2 = row.length - stride;
125572
125579
  let offset = 0;
@@ -139906,9 +139913,6 @@ function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
139906
139913
  sizes.push(unit(`${zSize} ${zUnit}`.replace("µ", "u")));
139907
139914
  }
139908
139915
  const scale2 = sizes.map((i2) => divide(i2, unit("1 um")));
139909
- if (!sizes[0].equals(sizes[1])) {
139910
- scale2[1] = divide(sizes[1], sizes[0]);
139911
- }
139912
139916
  if (!scale2[2]) {
139913
139917
  scale2[2] = 1;
139914
139918
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I } from "./index-895079ae.js";
1
+ import { I } from "./index-7cd9a821.js";
2
2
  import "react";
3
3
  export {
4
4
  I as ImageWrapper
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-895079ae.js";
1
+ import { B as BaseDecoder } from "./index-7cd9a821.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-895079ae.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-7cd9a821.js";
3
3
  import "react";
4
4
  const LercParameters = {
5
5
  Version: 0,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-895079ae.js";
1
+ import { B as BaseDecoder } from "./index-7cd9a821.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-895079ae.js";
1
+ import { B as BaseDecoder } from "./index-7cd9a821.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-895079ae.js";
1
+ import { B as BaseDecoder } from "./index-7cd9a821.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-895079ae.js";
1
+ import { B as BaseDecoder } from "./index-7cd9a821.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/image-utils",
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": {
@@ -17,10 +17,10 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "@hms-dbmi/viv": "~0.16.0",
20
- "@vitessce/types": "3.5.10",
21
- "@vitessce/spatial-utils": "3.5.10",
22
- "@vitessce/utils": "3.5.10",
23
- "@vitessce/globals": "3.5.10"
20
+ "@vitessce/types": "3.5.12",
21
+ "@vitessce/spatial-utils": "3.5.12",
22
+ "@vitessce/utils": "3.5.12",
23
+ "@vitessce/globals": "3.5.12"
24
24
  },
25
25
  "devDependencies": {
26
26
  "vite": "^4.3.0",