@vitessce/ome-tiff 3.0.0 → 3.0.1

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-db8fde1e.js";
2
+ import { B as BaseDecoder } from "./index-4c175e8d.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -103744,16 +103744,16 @@ async function getDecoder(fileDirectory) {
103744
103744
  const Decoder = await importFn();
103745
103745
  return new Decoder(fileDirectory);
103746
103746
  }
103747
- addDecoder([void 0, 1], () => import("./raw-7cd07562.js").then((m) => m.default));
103748
- addDecoder(5, () => import("./lzw-3a92c53a.js").then((m) => m.default));
103747
+ addDecoder([void 0, 1], () => import("./raw-f373fd58.js").then((m) => m.default));
103748
+ addDecoder(5, () => import("./lzw-1598810c.js").then((m) => m.default));
103749
103749
  addDecoder(6, () => {
103750
103750
  throw new Error("old style JPEG compression is not supported.");
103751
103751
  });
103752
- addDecoder(7, () => import("./jpeg-7bfc9e09.js").then((m) => m.default));
103753
- addDecoder([8, 32946], () => import("./deflate-e43b81ec.js").then((m) => m.default));
103754
- addDecoder(32773, () => import("./packbits-1543f8f9.js").then((m) => m.default));
103755
- addDecoder(34887, () => import("./lerc-abcec38c.js").then((m) => m.default));
103756
- addDecoder(50001, () => import("./webimage-e665b382.js").then((m) => m.default));
103752
+ addDecoder(7, () => import("./jpeg-8c83320b.js").then((m) => m.default));
103753
+ addDecoder([8, 32946], () => import("./deflate-95a3c306.js").then((m) => m.default));
103754
+ addDecoder(32773, () => import("./packbits-2e2b917a.js").then((m) => m.default));
103755
+ addDecoder(34887, () => import("./lerc-7f552d7f.js").then((m) => m.default));
103756
+ addDecoder(50001, () => import("./webimage-2f8120c0.js").then((m) => m.default));
103757
103757
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
103758
103758
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
103759
103759
  }
@@ -148006,9 +148006,6 @@ class OmeTiffLoader extends AbstractTwoStepLoader {
148006
148006
  async load() {
148007
148007
  const { url, requestInit: requestInit2 } = this;
148008
148008
  const { coordinateTransformations: coordinateTransformationsFromOptions } = this.options || {};
148009
- const urls = [
148010
- [url, "image"]
148011
- ];
148012
148009
  const offsets = await this.loadOffsets();
148013
148010
  const loader = await loadOmeTiff(url, { offsets, headers: requestInit2 == null ? void 0 : requestInit2.headers });
148014
148011
  const {
@@ -148040,6 +148037,9 @@ class OmeTiffLoader extends AbstractTwoStepLoader {
148040
148037
  }
148041
148038
  } : {}
148042
148039
  };
148040
+ const urls = [
148041
+ { url, name: image2.name }
148042
+ ];
148043
148043
  const imagesWithLoaderCreators = [
148044
148044
  {
148045
148045
  ...image2,
@@ -148087,7 +148087,6 @@ class OmeTiffAsObsSegmentationsLoader extends OmeTiffLoader {
148087
148087
  PhysicalSizeYUnit
148088
148088
  }
148089
148089
  } = loader.metadata;
148090
- const urls = [url, "OME-TIFF"];
148091
148090
  const transformMatrixFromOptions = coordinateTransformationsToMatrix(
148092
148091
  coordinateTransformationsFromOptions,
148093
148092
  getNgffAxesForTiff(DimensionOrder)
@@ -148107,6 +148106,7 @@ class OmeTiffAsObsSegmentationsLoader extends OmeTiffLoader {
148107
148106
  } : {}
148108
148107
  }
148109
148108
  };
148109
+ const urls = [{ url, name: image2.name }];
148110
148110
  const imagesWithLoaderCreators = [
148111
148111
  {
148112
148112
  ...image2,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c, b, O } from "./index-db8fde1e.js";
1
+ import { c, b, O } from "./index-4c175e8d.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-db8fde1e.js";
1
+ import { B as BaseDecoder } from "./index-4c175e8d.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  const dctZigZag = new Int32Array([
@@ -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-db8fde1e.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-4c175e8d.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  var LercDecode = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-db8fde1e.js";
1
+ import { B as BaseDecoder } from "./index-4c175e8d.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-db8fde1e.js";
1
+ import { B as BaseDecoder } from "./index-4c175e8d.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-db8fde1e.js";
1
+ import { B as BaseDecoder } from "./index-4c175e8d.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-db8fde1e.js";
1
+ import { B as BaseDecoder } from "./index-4c175e8d.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  class WebImageDecoder extends BaseDecoder {
@@ -9,8 +9,6 @@ export default class OmeTiffAsObsSegmentationsLoader extends OmeTiffLoader {
9
9
  const offsets = await this.loadOffsets();
10
10
  const loader = await viv.loadOmeTiff(url, { offsets, headers: requestInit?.headers });
11
11
  const { Name: imageName, Pixels: { Channels, DimensionOrder, PhysicalSizeX, PhysicalSizeXUnit, PhysicalSizeY, PhysicalSizeYUnit, }, } = loader.metadata;
12
- // Get image name and URL tuples.
13
- const urls = [url, 'OME-TIFF'];
14
12
  const transformMatrixFromOptions = coordinateTransformationsToMatrix(coordinateTransformationsFromOptions, getNgffAxesForTiff(DimensionOrder));
15
13
  const usePhysicalSizeScaling = (PhysicalSizeX
16
14
  && PhysicalSizeXUnit
@@ -30,6 +28,8 @@ export default class OmeTiffAsObsSegmentationsLoader extends OmeTiffLoader {
30
28
  } : {}),
31
29
  },
32
30
  };
31
+ // Get image name and URL tuples.
32
+ const urls = [{ url, name: image.name }];
33
33
  // Add a loaderCreator function for each image layer.
34
34
  const imagesWithLoaderCreators = [
35
35
  {
@@ -17,10 +17,6 @@ export default class OmeTiffLoader extends AbstractTwoStepLoader {
17
17
  async load() {
18
18
  const { url, requestInit } = this;
19
19
  const { coordinateTransformations: coordinateTransformationsFromOptions } = this.options || {};
20
- // Get image name and URL tuples.
21
- const urls = [
22
- [url, 'image'],
23
- ];
24
20
  const offsets = await this.loadOffsets();
25
21
  const loader = await viv.loadOmeTiff(url, { offsets, headers: requestInit?.headers });
26
22
  const { Name: imageName, Pixels: { Channels, DimensionOrder, PhysicalSizeX, PhysicalSizeXUnit, PhysicalSizeY, PhysicalSizeYUnit, }, } = loader.metadata;
@@ -44,6 +40,10 @@ export default class OmeTiffLoader extends AbstractTwoStepLoader {
44
40
  },
45
41
  } : {}),
46
42
  };
43
+ // Get image name and URL tuples.
44
+ const urls = [
45
+ { url, name: image.name },
46
+ ];
47
47
  // Add a loaderCreator function for each image layer.
48
48
  const imagesWithLoaderCreators = [
49
49
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/ome-tiff",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -19,19 +19,19 @@
19
19
  "ajv": "^6.10.0",
20
20
  "d3-array": "^2.4.0",
21
21
  "lodash-es": "^4.17.21",
22
- "@vitessce/constants-internal": "3.0.0",
23
- "@vitessce/gl": "3.0.0",
24
- "@vitessce/sets-utils": "3.0.0",
25
- "@vitessce/spatial-utils": "3.0.0",
26
- "@vitessce/utils": "3.0.0",
27
- "@vitessce/vit-s": "3.0.0"
22
+ "@vitessce/constants-internal": "3.0.1",
23
+ "@vitessce/gl": "3.0.1",
24
+ "@vitessce/sets-utils": "3.0.1",
25
+ "@vitessce/spatial-utils": "3.0.1",
26
+ "@vitessce/utils": "3.0.1",
27
+ "@vitessce/vit-s": "3.0.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "ajv": "^6.10.0"
31
31
  },
32
32
  "scripts": {
33
33
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
34
- "test": "pnpm exec vitest --run -r ../../../ --dir ."
34
+ "test": "pnpm exec vitest --run"
35
35
  },
36
36
  "module": "dist/index.js",
37
37
  "exports": {
@@ -25,9 +25,6 @@ export default class OmeTiffAsObsSegmentationsLoader extends OmeTiffLoader {
25
25
  },
26
26
  } = loader.metadata;
27
27
 
28
- // Get image name and URL tuples.
29
- const urls = [url, 'OME-TIFF'];
30
-
31
28
  const transformMatrixFromOptions = coordinateTransformationsToMatrix(
32
29
  coordinateTransformationsFromOptions, getNgffAxesForTiff(DimensionOrder),
33
30
  );
@@ -54,6 +51,9 @@ export default class OmeTiffAsObsSegmentationsLoader extends OmeTiffLoader {
54
51
  },
55
52
  };
56
53
 
54
+ // Get image name and URL tuples.
55
+ const urls = [{ url, name: image.name }];
56
+
57
57
  // Add a loaderCreator function for each image layer.
58
58
  const imagesWithLoaderCreators = [
59
59
  {
@@ -24,11 +24,6 @@ export default class OmeTiffLoader extends AbstractTwoStepLoader {
24
24
  const { url, requestInit } = this;
25
25
  const { coordinateTransformations: coordinateTransformationsFromOptions } = this.options || {};
26
26
 
27
- // Get image name and URL tuples.
28
- const urls = [
29
- [url, 'image'],
30
- ];
31
-
32
27
  const offsets = await this.loadOffsets();
33
28
  const loader = await viv.loadOmeTiff(url, { offsets, headers: requestInit?.headers });
34
29
  const {
@@ -70,6 +65,11 @@ export default class OmeTiffLoader extends AbstractTwoStepLoader {
70
65
  } : {}),
71
66
  };
72
67
 
68
+ // Get image name and URL tuples.
69
+ const urls = [
70
+ { url, name: image.name },
71
+ ];
72
+
73
73
  // Add a loaderCreator function for each image layer.
74
74
  const imagesWithLoaderCreators = [
75
75
  {