@vitessce/json 3.9.5 → 3.9.6

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-J0PKutT7.js";
2
+ import { B as BaseDecoder } from "./index-Byr21O5v.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -231,6 +231,7 @@ const FileType$1 = {
231
231
  // Neuroglancer
232
232
  // Precomputed (mesh) format
233
233
  OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
234
+ OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
234
235
  // New file types to support old file types:
235
236
  // - cells.json
236
237
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -459,6 +460,7 @@ const CoordinationType$1 = {
459
460
  [FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$2.FEATURE_LABELS,
460
461
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$2.OBS_SEGMENTATIONS,
461
462
  [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$2.OBS_SEGMENTATIONS,
463
+ [FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$2.OBS_POINTS,
462
464
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$2.IMAGE,
463
465
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
464
466
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
@@ -678,6 +680,8 @@ const CoordinationType$1 = {
678
680
  ];
679
681
  ({
680
682
  [ViewType$1.NEUROGLANCER]: [
683
+ CoordinationType$1.META_COORDINATION_SCOPES,
684
+ CoordinationType$1.META_COORDINATION_SCOPES_BY,
681
685
  CoordinationType$1.DATASET,
682
686
  CoordinationType$1.SPATIAL_TARGET_X,
683
687
  CoordinationType$1.SPATIAL_TARGET_Y,
@@ -699,7 +703,26 @@ const CoordinationType$1 = {
699
703
  CoordinationType$1.OBS_COLOR_ENCODING,
700
704
  CoordinationType$1.EMBEDDING_TYPE,
701
705
  CoordinationType$1.ADDITIONAL_OBS_SETS,
702
- CoordinationType$1.TOOLTIPS_VISIBLE
706
+ CoordinationType$1.TOOLTIPS_VISIBLE,
707
+ CoordinationType$1.FILE_UID,
708
+ CoordinationType$1.IMAGE_LAYER,
709
+ CoordinationType$1.SEGMENTATION_LAYER,
710
+ CoordinationType$1.IMAGE_CHANNEL,
711
+ CoordinationType$1.SEGMENTATION_CHANNEL,
712
+ CoordinationType$1.POINT_LAYER,
713
+ CoordinationType$1.FEATURE_COLOR,
714
+ CoordinationType$1.FEATURE_FILTER_MODE,
715
+ CoordinationType$1.FEATURE_HIGHLIGHT,
716
+ CoordinationType$1.FEATURE_SELECTION,
717
+ CoordinationType$1.FEATURE_VALUE_COLORMAP,
718
+ CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
719
+ CoordinationType$1.SPATIAL_LAYER_COLOR,
720
+ CoordinationType$1.SPATIAL_LAYER_OPACITY,
721
+ CoordinationType$1.SPATIAL_LAYER_VISIBLE,
722
+ CoordinationType$1.SPATIAL_CHANNEL_COLOR,
723
+ CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
724
+ CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
725
+ CoordinationType$1.LEGEND_VISIBLE
703
726
  ],
704
727
  [ViewType$1.SCATTERPLOT]: [
705
728
  CoordinationType$1.DATASET,
@@ -10038,14 +10061,23 @@ z.object({
10038
10061
  z.object({
10039
10062
  // TODO: Should this explicitly specify sharded vs. unsharded?
10040
10063
  // Or can/should that be inferred from the data?
10041
- dimensionX: z.number(),
10042
- dimensionY: z.number(),
10043
- dimensionZ: z.number(),
10044
- dimensionUnit: z.enum(["nm", "um", "µm", "mm", "cm", "m"]),
10064
+ // Note: None of these make sense to specify at the file level, since they
10065
+ // are global camera settings that would apply to all layers.
10066
+ // Intead, initial values should be set via the usual coordination space mechanism,
10067
+ // and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
10068
+ // dimensionX: z.number(),
10069
+ // dimensionY: z.number(),
10070
+ // dimensionZ: z.number(),
10071
+ // dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
10045
10072
  // TODO: should the following be passed via coordination types instead?
10046
- projectionScale: z.number(),
10047
- position: z.array(z.number()).length(3),
10048
- projectionOrientation: z.array(z.number()).length(4)
10073
+ // projectionScale: z.number(),
10074
+ // position: z.array(z.number()).length(3),
10075
+ // projectionOrientation: z.array(z.number()).length(4),
10076
+ }).partial().nullable();
10077
+ z.object({
10078
+ projectionAnnotationSpacing: z.number(),
10079
+ featureIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing feature IDs. For example, specify 'gene' to use prop_gene() in the Neuroglancer shader code."),
10080
+ pointIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing point IDs. For example, specify 'point_id' to use prop_point_id() in the Neuroglancer shader code.")
10049
10081
  }).partial().nullable();
10050
10082
  z.object({
10051
10083
  obsIndex: z.string(),
@@ -138936,22 +138968,22 @@ async function getDecoder(fileDirectory) {
138936
138968
  const Decoder = await importFn();
138937
138969
  return new Decoder(fileDirectory);
138938
138970
  }
138939
- addDecoder([void 0, 1], () => import("./raw-kLFs8YzW.js").then((m) => m.default));
138940
- addDecoder(5, () => import("./lzw-B0fxie31.js").then((m) => m.default));
138971
+ addDecoder([void 0, 1], () => import("./raw-ckIbnUSG.js").then((m) => m.default));
138972
+ addDecoder(5, () => import("./lzw-C_nrzgdz.js").then((m) => m.default));
138941
138973
  addDecoder(6, () => {
138942
138974
  throw new Error("old style JPEG compression is not supported.");
138943
138975
  });
138944
- addDecoder(7, () => import("./jpeg-BkNknj82.js").then((m) => m.default));
138945
- addDecoder([8, 32946], () => import("./deflate-C28--pD_.js").then((m) => m.default));
138946
- addDecoder(32773, () => import("./packbits-Dibwx2dV.js").then((m) => m.default));
138976
+ addDecoder(7, () => import("./jpeg-BwCqcpUL.js").then((m) => m.default));
138977
+ addDecoder([8, 32946], () => import("./deflate-CWbl0UM4.js").then((m) => m.default));
138978
+ addDecoder(32773, () => import("./packbits-CJn7UcMS.js").then((m) => m.default));
138947
138979
  addDecoder(
138948
138980
  34887,
138949
- () => import("./lerc-DCQhwywO.js").then(async (m) => {
138981
+ () => import("./lerc-DSIL5j0n.js").then(async (m) => {
138950
138982
  await m.zstd.init();
138951
138983
  return m;
138952
138984
  }).then((m) => m.default)
138953
138985
  );
138954
- addDecoder(50001, () => import("./webimage-DJW01emx.js").then((m) => m.default));
138986
+ addDecoder(50001, () => import("./webimage-DMa00n7i.js").then((m) => m.default));
138955
138987
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
138956
138988
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
138957
138989
  }
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-J0PKutT7.js";
1
+ import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-Byr21O5v.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-J0PKutT7.js";
1
+ import { B as BaseDecoder } from "./index-Byr21O5v.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-J0PKutT7.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-Byr21O5v.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-J0PKutT7.js";
1
+ import { B as BaseDecoder } from "./index-Byr21O5v.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-J0PKutT7.js";
1
+ import { B as BaseDecoder } from "./index-Byr21O5v.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-J0PKutT7.js";
1
+ import { B as BaseDecoder } from "./index-Byr21O5v.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-J0PKutT7.js";
1
+ import { B as BaseDecoder } from "./index-Byr21O5v.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.9.5",
3
+ "version": "3.9.6",
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.6.1",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/gl": "3.9.5",
24
- "@vitessce/globals": "3.9.5",
25
- "@vitessce/constants-internal": "3.9.5",
26
- "@vitessce/schemas": "3.9.5",
27
- "@vitessce/sets-utils": "3.9.5",
28
- "@vitessce/spatial-utils": "3.9.5",
29
- "@vitessce/utils": "3.9.5",
30
- "@vitessce/abstract": "3.9.5",
31
- "@vitessce/error": "3.9.5",
32
- "@vitessce/zarr-utils": "3.9.5",
33
- "@vitessce/config": "3.9.5"
23
+ "@vitessce/gl": "3.9.6",
24
+ "@vitessce/constants-internal": "3.9.6",
25
+ "@vitessce/globals": "3.9.6",
26
+ "@vitessce/sets-utils": "3.9.6",
27
+ "@vitessce/utils": "3.9.6",
28
+ "@vitessce/schemas": "3.9.6",
29
+ "@vitessce/spatial-utils": "3.9.6",
30
+ "@vitessce/error": "3.9.6",
31
+ "@vitessce/config": "3.9.6",
32
+ "@vitessce/zarr-utils": "3.9.6",
33
+ "@vitessce/abstract": "3.9.6"
34
34
  },
35
35
  "scripts": {
36
36
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",