@vitessce/json 3.6.12 → 3.6.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-SxljTded.js";
2
- import { B as BaseDecoder } from "./index-Dk8azeqY.js";
2
+ import { B as BaseDecoder } from "./index-C7YXFoIv.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -210,6 +210,7 @@ const FileType$1 = {
210
210
  OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
211
211
  FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
212
212
  OBS_POINTS_SPATIALDATA_ZARR: "obsPoints.spatialdata.zarr",
213
+ OBS_EMBEDDING_SPATIALDATA_ZARR: "obsEmbedding.spatialdata.zarr",
213
214
  // SpatialData - zipped
214
215
  IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
215
216
  LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
@@ -219,6 +220,7 @@ const FileType$1 = {
219
220
  OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
220
221
  FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
221
222
  OBS_POINTS_SPATIALDATA_ZARR_ZIP: "obsPoints.spatialdata.zarr.zip",
223
+ OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP: "obsEmbedding.spatialdata.zarr.zip",
222
224
  // MuData
223
225
  OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
224
226
  OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
@@ -466,6 +468,7 @@ const CoordinationType$1 = {
466
468
  [FileType$1.OBS_SETS_SPATIALDATA_ZARR]: DataType$2.OBS_SETS,
467
469
  [FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: DataType$2.FEATURE_LABELS,
468
470
  [FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: DataType$2.OBS_POINTS,
471
+ [FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: DataType$2.OBS_EMBEDDING,
469
472
  // For new file types to support old file types
470
473
  [FileType$1.OBS_EMBEDDING_CELLS_JSON]: DataType$2.OBS_EMBEDDING,
471
474
  [FileType$1.OBS_LOCATIONS_CELLS_JSON]: DataType$2.OBS_LOCATIONS,
@@ -642,6 +645,9 @@ const CoordinationType$1 = {
642
645
  },
643
646
  [FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: {
644
647
  zip: FileType$1.OBS_POINTS_SPATIALDATA_ZARR_ZIP
648
+ },
649
+ [FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: {
650
+ zip: FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP
645
651
  }
646
652
  });
647
653
  [
@@ -9956,6 +9962,16 @@ const obsSetsSpatialdataSchema = z.object({
9956
9962
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
9957
9963
  obsSets: annDataObsSetsArr
9958
9964
  });
9965
+ annDataObsEmbedding.extend({
9966
+ // We extend anndataObsEmbedding which already has properties like `dims` and `path`.
9967
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
9968
+ tablePath: z.string().optional().describe("The path to a table which contains the index for the set values.")
9969
+ });
9970
+ const obsEmbeddingSpatialdataSchemaConvenience = z.union([
9971
+ annDataObsEmbedding,
9972
+ // For convenience, allow an array of items with `embeddingType` properties.
9973
+ z.array(annDataConvenienceObsEmbeddingItem)
9974
+ ]);
9959
9975
  z.object({
9960
9976
  targetX: z.number(),
9961
9977
  targetY: z.number(),
@@ -10064,9 +10080,10 @@ z.object({
10064
10080
  // TODO: obsPoints
10065
10081
  // TODO: obsLocations
10066
10082
  obsSets: obsSetsSpatialdataSchema,
10067
- // TODO: obsEmbedding
10083
+ obsEmbedding: obsEmbeddingSpatialdataSchemaConvenience,
10068
10084
  // TODO: obsLabels
10069
10085
  // TODO: featureLabels
10086
+ // TODO: allow specifying tablePath and region at the top-level here.
10070
10087
  coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
10071
10088
  }).partial();
10072
10089
  z.object({
@@ -137096,22 +137113,22 @@ async function getDecoder(fileDirectory) {
137096
137113
  const Decoder = await importFn();
137097
137114
  return new Decoder(fileDirectory);
137098
137115
  }
137099
- addDecoder([void 0, 1], () => import("./raw-BkEHccvG.js").then((m) => m.default));
137100
- addDecoder(5, () => import("./lzw-CT-xPuVt.js").then((m) => m.default));
137116
+ addDecoder([void 0, 1], () => import("./raw-BT28vB2m.js").then((m) => m.default));
137117
+ addDecoder(5, () => import("./lzw-D5xWNXHf.js").then((m) => m.default));
137101
137118
  addDecoder(6, () => {
137102
137119
  throw new Error("old style JPEG compression is not supported.");
137103
137120
  });
137104
- addDecoder(7, () => import("./jpeg-CgKC8pvg.js").then((m) => m.default));
137105
- addDecoder([8, 32946], () => import("./deflate-BB-_i4AV.js").then((m) => m.default));
137106
- addDecoder(32773, () => import("./packbits-CxU7_ENa.js").then((m) => m.default));
137121
+ addDecoder(7, () => import("./jpeg-BQGtNkBb.js").then((m) => m.default));
137122
+ addDecoder([8, 32946], () => import("./deflate-RA5GBsWY.js").then((m) => m.default));
137123
+ addDecoder(32773, () => import("./packbits-C7fkYHsO.js").then((m) => m.default));
137107
137124
  addDecoder(
137108
137125
  34887,
137109
- () => import("./lerc-DHkuo7TO.js").then(async (m) => {
137126
+ () => import("./lerc-FyRDMldG.js").then(async (m) => {
137110
137127
  await m.zstd.init();
137111
137128
  return m;
137112
137129
  }).then((m) => m.default)
137113
137130
  );
137114
- addDecoder(50001, () => import("./webimage-BsYePjn2.js").then((m) => m.default));
137131
+ addDecoder(50001, () => import("./webimage-A55WzWd4.js").then((m) => m.default));
137115
137132
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
137116
137133
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
137117
137134
  }
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-Dk8azeqY.js";
1
+ import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-C7YXFoIv.js";
2
2
  export {
3
3
  C as CellsJsonAsObsEmbeddingLoader,
4
4
  d as CellsJsonAsObsLabelsLoader,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-Dk8azeqY.js";
1
+ import { B as BaseDecoder } from "./index-C7YXFoIv.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-Dk8azeqY.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-C7YXFoIv.js";
3
3
  var LercDecode = { exports: {} };
4
4
  var hasRequiredLercDecode;
5
5
  function requireLercDecode() {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-Dk8azeqY.js";
1
+ import { B as BaseDecoder } from "./index-C7YXFoIv.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-Dk8azeqY.js";
1
+ import { B as BaseDecoder } from "./index-C7YXFoIv.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-Dk8azeqY.js";
1
+ import { B as BaseDecoder } from "./index-C7YXFoIv.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-Dk8azeqY.js";
1
+ import { B as BaseDecoder } from "./index-C7YXFoIv.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/json",
3
- "version": "3.6.12",
3
+ "version": "3.6.14",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,17 +20,17 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "zarrita": "0.5.2",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/constants-internal": "3.6.12",
24
- "@vitessce/gl": "3.6.12",
25
- "@vitessce/globals": "3.6.12",
26
- "@vitessce/schemas": "3.6.12",
27
- "@vitessce/sets-utils": "3.6.12",
28
- "@vitessce/spatial-utils": "3.6.12",
29
- "@vitessce/utils": "3.6.12",
30
- "@vitessce/abstract": "3.6.12",
31
- "@vitessce/error": "3.6.12",
32
- "@vitessce/zarr-utils": "3.6.12",
33
- "@vitessce/config": "3.6.12"
23
+ "@vitessce/constants-internal": "3.6.14",
24
+ "@vitessce/gl": "3.6.14",
25
+ "@vitessce/globals": "3.6.14",
26
+ "@vitessce/schemas": "3.6.14",
27
+ "@vitessce/sets-utils": "3.6.14",
28
+ "@vitessce/spatial-utils": "3.6.14",
29
+ "@vitessce/utils": "3.6.14",
30
+ "@vitessce/abstract": "3.6.14",
31
+ "@vitessce/error": "3.6.14",
32
+ "@vitessce/zarr-utils": "3.6.14",
33
+ "@vitessce/config": "3.6.14"
34
34
  },
35
35
  "scripts": {
36
36
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",