@vitessce/json 3.8.0 → 3.8.2

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-DaRjcRmk.js";
2
+ import { B as BaseDecoder } from "./index-C5QAFO8r.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -69,7 +69,7 @@ const ViewType$1 = {
69
69
  SCATTERPLOT: "scatterplot",
70
70
  SPATIAL: "spatial",
71
71
  SPATIAL_BETA: "spatialBeta",
72
- SPATIAL_ACCELERATED: "spatialAccelerated",
72
+ // SPATIAL_ACCELERATED: 'spatialAccelerated',
73
73
  HEATMAP: "heatmap",
74
74
  LAYER_CONTROLLER: "layerController",
75
75
  LAYER_CONTROLLER_BETA: "layerControllerBeta",
@@ -227,6 +227,9 @@ const FileType$1 = {
227
227
  OBS_SEGMENTATIONS_OME_TIFF: "obsSegmentations.ome-tiff",
228
228
  // GLB
229
229
  OBS_SEGMENTATIONS_GLB: "obsSegmentations.glb",
230
+ // Neuroglancer
231
+ // Precomputed (mesh) format
232
+ OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
230
233
  // New file types to support old file types:
231
234
  // - cells.json
232
235
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -451,6 +454,7 @@ const CoordinationType$1 = {
451
454
  [FileType$1.OBS_LABELS_MUDATA_ZARR]: DataType$2.OBS_LABELS,
452
455
  [FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$2.FEATURE_LABELS,
453
456
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$2.OBS_SEGMENTATIONS,
457
+ [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$2.OBS_SEGMENTATIONS,
454
458
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$2.IMAGE,
455
459
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
456
460
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
@@ -9981,6 +9985,18 @@ z.object({
9981
9985
  sceneScaleZ: z.number(),
9982
9986
  materialSide: z.enum(["front", "back"])
9983
9987
  }).partial().nullable();
9988
+ z.object({
9989
+ // TODO: Should this explicitly specify sharded vs. unsharded?
9990
+ // Or can/should that be inferred from the data?
9991
+ dimensionX: z.number(),
9992
+ dimensionY: z.number(),
9993
+ dimensionZ: z.number(),
9994
+ dimensionUnit: z.enum(["nm", "um", "µm", "mm", "cm", "m"]),
9995
+ // TODO: should the following be passed via coordination types instead?
9996
+ projectionScale: z.number(),
9997
+ position: z.array(z.number()).length(3),
9998
+ projectionOrientation: z.array(z.number()).length(4)
9999
+ }).partial().nullable();
9984
10000
  z.object({
9985
10001
  obsIndex: z.string(),
9986
10002
  obsEmbedding: z.array(z.string()).length(2)
@@ -137094,22 +137110,22 @@ async function getDecoder(fileDirectory) {
137094
137110
  const Decoder = await importFn();
137095
137111
  return new Decoder(fileDirectory);
137096
137112
  }
137097
- addDecoder([void 0, 1], () => import("./raw-DLxVEQnX.js").then((m) => m.default));
137098
- addDecoder(5, () => import("./lzw-BKGKZlvA.js").then((m) => m.default));
137113
+ addDecoder([void 0, 1], () => import("./raw-C2jlWuRY.js").then((m) => m.default));
137114
+ addDecoder(5, () => import("./lzw-9SxeqSou.js").then((m) => m.default));
137099
137115
  addDecoder(6, () => {
137100
137116
  throw new Error("old style JPEG compression is not supported.");
137101
137117
  });
137102
- addDecoder(7, () => import("./jpeg-DrAIvFu7.js").then((m) => m.default));
137103
- addDecoder([8, 32946], () => import("./deflate-jxCcST-U.js").then((m) => m.default));
137104
- addDecoder(32773, () => import("./packbits-PD3nxnN0.js").then((m) => m.default));
137118
+ addDecoder(7, () => import("./jpeg-BZFSrYFl.js").then((m) => m.default));
137119
+ addDecoder([8, 32946], () => import("./deflate-wbIJjQvn.js").then((m) => m.default));
137120
+ addDecoder(32773, () => import("./packbits-BRvtT912.js").then((m) => m.default));
137105
137121
  addDecoder(
137106
137122
  34887,
137107
- () => import("./lerc-LFVAZE-7.js").then(async (m) => {
137123
+ () => import("./lerc-CsaFLvsz.js").then(async (m) => {
137108
137124
  await m.zstd.init();
137109
137125
  return m;
137110
137126
  }).then((m) => m.default)
137111
137127
  );
137112
- addDecoder(50001, () => import("./webimage-q52vwMPe.js").then((m) => m.default));
137128
+ addDecoder(50001, () => import("./webimage-MhonL167.js").then((m) => m.default));
137113
137129
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
137114
137130
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
137115
137131
  }
@@ -155072,7 +155088,7 @@ class Location {
155072
155088
  }
155073
155089
  resolve(path) {
155074
155090
  let root2 = new URL(`file://${this.path.endsWith("/") ? this.path : `${this.path}/`}`);
155075
- return new Location(this.store, new URL(path, root2).pathname);
155091
+ return new Location(this.store, decodeURIComponent(new URL(path, root2).pathname));
155076
155092
  }
155077
155093
  }
155078
155094
  function root(store) {
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-DaRjcRmk.js";
1
+ import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-C5QAFO8r.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-DaRjcRmk.js";
1
+ import { B as BaseDecoder } from "./index-C5QAFO8r.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-DaRjcRmk.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-C5QAFO8r.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-DaRjcRmk.js";
1
+ import { B as BaseDecoder } from "./index-C5QAFO8r.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-DaRjcRmk.js";
1
+ import { B as BaseDecoder } from "./index-C5QAFO8r.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-DaRjcRmk.js";
1
+ import { B as BaseDecoder } from "./index-C5QAFO8r.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-DaRjcRmk.js";
1
+ import { B as BaseDecoder } from "./index-C5QAFO8r.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.8.0",
3
+ "version": "3.8.2",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,19 +18,19 @@
18
18
  "dependencies": {
19
19
  "d3-array": "^2.4.0",
20
20
  "lodash-es": "^4.17.21",
21
- "zarrita": "0.5.3",
21
+ "zarrita": "0.5.4",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/constants-internal": "3.8.0",
24
- "@vitessce/gl": "3.8.0",
25
- "@vitessce/globals": "3.8.0",
26
- "@vitessce/schemas": "3.8.0",
27
- "@vitessce/sets-utils": "3.8.0",
28
- "@vitessce/spatial-utils": "3.8.0",
29
- "@vitessce/utils": "3.8.0",
30
- "@vitessce/abstract": "3.8.0",
31
- "@vitessce/error": "3.8.0",
32
- "@vitessce/zarr-utils": "3.8.0",
33
- "@vitessce/config": "3.8.0"
23
+ "@vitessce/constants-internal": "3.8.2",
24
+ "@vitessce/gl": "3.8.2",
25
+ "@vitessce/globals": "3.8.2",
26
+ "@vitessce/schemas": "3.8.2",
27
+ "@vitessce/sets-utils": "3.8.2",
28
+ "@vitessce/spatial-utils": "3.8.2",
29
+ "@vitessce/utils": "3.8.2",
30
+ "@vitessce/abstract": "3.8.2",
31
+ "@vitessce/error": "3.8.2",
32
+ "@vitessce/zarr-utils": "3.8.2",
33
+ "@vitessce/config": "3.8.2"
34
34
  },
35
35
  "scripts": {
36
36
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",