@vitessce/json 3.4.12 → 3.4.14

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-819ce366.js";
2
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
3
3
  import "@vitessce/vit-s";
4
4
  import "react";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -121,6 +121,9 @@ const FileType$1 = {
121
121
  // OME-Zarr
122
122
  IMAGE_OME_ZARR: "image.ome-zarr",
123
123
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
124
+ // OME-Zarr - Zipped
125
+ IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
126
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
124
127
  // AnnData
125
128
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
126
129
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
@@ -8868,24 +8871,29 @@ const imageOmeZarrSchema = z.object({
8868
8871
  imageOmeZarrSchema.extend({
8869
8872
  obsTypesFromChannelNames: z.boolean().optional()
8870
8873
  });
8871
- const imageSpatialdataSchema = imageOmeZarrSchema.extend({
8872
- path: z.string()
8874
+ const imageSpatialdataSchema = z.object({
8875
+ path: z.string(),
8876
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
8873
8877
  });
8874
8878
  const obsSegmentationsSpatialdataSchema = z.object({
8875
- // TODO: should this also extend the imageOmeZarrSchema?
8876
8879
  // TODO: should this be renamed labelsSpatialdataSchema?
8877
8880
  // TODO: support obsTypesFromChannelNames?
8878
- path: z.string()
8881
+ path: z.string(),
8882
+ tablePath: z.string().optional().describe("The path to a table which annotates the labels. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected."),
8883
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
8879
8884
  });
8880
8885
  z.object({
8881
- path: z.string()
8886
+ path: z.string(),
8887
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the coordinates. If not provided, the "global" coordinate system is assumed.')
8882
8888
  });
8883
8889
  const obsSpotsSpatialdataSchema = z.object({
8884
8890
  path: z.string(),
8885
- tablePath: z.string().optional().describe("The path to a table which annotates the spots. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected.")
8891
+ tablePath: z.string().optional().describe("The path to a table which annotates the spots. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected."),
8892
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the coordinates and radii. If not provided, the "global" coordinate system is assumed.')
8886
8893
  });
8887
8894
  const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
8888
- region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
8895
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
8896
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
8889
8897
  });
8890
8898
  const obsSetsSpatialdataSchema = z.object({
8891
8899
  region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
@@ -8986,15 +8994,21 @@ anndataZarrSchema.extend({
8986
8994
  z.object({
8987
8995
  // TODO: should `image` be a special schema
8988
8996
  // to allow specifying fileUid (like for embeddingType)?
8997
+ // TODO: allow multiple images
8989
8998
  image: imageSpatialdataSchema,
8990
8999
  // TODO: should this be a special schema
8991
9000
  // to allow specifying fileUid (like for embeddingType)?
9001
+ // TODO: allow multiple labels
8992
9002
  labels: obsSegmentationsSpatialdataSchema,
8993
9003
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
8994
9004
  obsSpots: obsSpotsSpatialdataSchema,
8995
9005
  // TODO: obsPoints
8996
9006
  // TODO: obsLocations
8997
- obsSets: obsSetsSpatialdataSchema
9007
+ obsSets: obsSetsSpatialdataSchema,
9008
+ // TODO: obsEmbedding
9009
+ // TODO: obsLabels
9010
+ // TODO: featureLabels
9011
+ coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
8998
9012
  }).partial();
8999
9013
  z.object({
9000
9014
  obsLabelsTypes: z.array(z.string()).optional(),
@@ -135066,16 +135080,16 @@ async function getDecoder(fileDirectory) {
135066
135080
  const Decoder = await importFn();
135067
135081
  return new Decoder(fileDirectory);
135068
135082
  }
135069
- addDecoder([void 0, 1], () => import("./raw-eb767b0e.js").then((m) => m.default));
135070
- addDecoder(5, () => import("./lzw-16f68724.js").then((m) => m.default));
135083
+ addDecoder([void 0, 1], () => import("./raw-decbdf5c.js").then((m) => m.default));
135084
+ addDecoder(5, () => import("./lzw-075f5e38.js").then((m) => m.default));
135071
135085
  addDecoder(6, () => {
135072
135086
  throw new Error("old style JPEG compression is not supported.");
135073
135087
  });
135074
- addDecoder(7, () => import("./jpeg-32bca2cd.js").then((m) => m.default));
135075
- addDecoder([8, 32946], () => import("./deflate-b93d431c.js").then((m) => m.default));
135076
- addDecoder(32773, () => import("./packbits-d2498095.js").then((m) => m.default));
135077
- addDecoder(34887, () => import("./lerc-4ba8e84e.js").then((m) => m.default));
135078
- addDecoder(50001, () => import("./webimage-8d3fba71.js").then((m) => m.default));
135088
+ addDecoder(7, () => import("./jpeg-d1c37d52.js").then((m) => m.default));
135089
+ addDecoder([8, 32946], () => import("./deflate-b240049e.js").then((m) => m.default));
135090
+ addDecoder(32773, () => import("./packbits-135befe2.js").then((m) => m.default));
135091
+ addDecoder(34887, () => import("./lerc-3106f6b1.js").then((m) => m.default));
135092
+ addDecoder(50001, () => import("./webimage-d7a7fdd3.js").then((m) => m.default));
135079
135093
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
135080
135094
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
135081
135095
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-819ce366.js";
1
+ import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-819ce366.js";
1
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
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-819ce366.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-b9583b8b.js";
3
3
  import "@vitessce/vit-s";
4
4
  import "react";
5
5
  var LercDecode = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-819ce366.js";
1
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-819ce366.js";
1
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-819ce366.js";
1
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-819ce366.js";
1
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class WebImageDecoder extends BaseDecoder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/json",
3
- "version": "3.4.12",
3
+ "version": "3.4.14",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,15 +20,15 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "zarrita": "0.4.0-next.16",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/constants-internal": "3.4.12",
24
- "@vitessce/gl": "3.4.12",
25
- "@vitessce/schemas": "3.4.12",
26
- "@vitessce/sets-utils": "3.4.12",
27
- "@vitessce/spatial-utils": "3.4.12",
28
- "@vitessce/utils": "3.4.12",
29
- "@vitessce/vit-s": "3.4.12",
30
- "@vitessce/zarr-utils": "3.4.12",
31
- "@vitessce/config": "3.4.12"
23
+ "@vitessce/constants-internal": "3.4.14",
24
+ "@vitessce/gl": "3.4.14",
25
+ "@vitessce/schemas": "3.4.14",
26
+ "@vitessce/sets-utils": "3.4.14",
27
+ "@vitessce/spatial-utils": "3.4.14",
28
+ "@vitessce/utils": "3.4.14",
29
+ "@vitessce/vit-s": "3.4.14",
30
+ "@vitessce/zarr-utils": "3.4.14",
31
+ "@vitessce/config": "3.4.14"
32
32
  },
33
33
  "scripts": {
34
34
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",