@vitessce/statistical-plots 3.9.4 → 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-BdzAC4Cq.js";
2
+ import { B as BaseDecoder } from "./index-C1rdPiFE.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -197,6 +197,7 @@ const FileType$1 = {
197
197
  // Neuroglancer
198
198
  // Precomputed (mesh) format
199
199
  OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
200
+ OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
200
201
  // New file types to support old file types:
201
202
  // - cells.json
202
203
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -437,6 +438,7 @@ const ViewHelpMapping = {
437
438
  [FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$2.FEATURE_LABELS,
438
439
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$2.OBS_SEGMENTATIONS,
439
440
  [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$2.OBS_SEGMENTATIONS,
441
+ [FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$2.OBS_POINTS,
440
442
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$2.IMAGE,
441
443
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
442
444
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
@@ -656,6 +658,8 @@ const ViewHelpMapping = {
656
658
  ];
657
659
  const COMPONENT_COORDINATION_TYPES = {
658
660
  [ViewType$1.NEUROGLANCER]: [
661
+ CoordinationType$1.META_COORDINATION_SCOPES,
662
+ CoordinationType$1.META_COORDINATION_SCOPES_BY,
659
663
  CoordinationType$1.DATASET,
660
664
  CoordinationType$1.SPATIAL_TARGET_X,
661
665
  CoordinationType$1.SPATIAL_TARGET_Y,
@@ -677,7 +681,26 @@ const COMPONENT_COORDINATION_TYPES = {
677
681
  CoordinationType$1.OBS_COLOR_ENCODING,
678
682
  CoordinationType$1.EMBEDDING_TYPE,
679
683
  CoordinationType$1.ADDITIONAL_OBS_SETS,
680
- CoordinationType$1.TOOLTIPS_VISIBLE
684
+ CoordinationType$1.TOOLTIPS_VISIBLE,
685
+ CoordinationType$1.FILE_UID,
686
+ CoordinationType$1.IMAGE_LAYER,
687
+ CoordinationType$1.SEGMENTATION_LAYER,
688
+ CoordinationType$1.IMAGE_CHANNEL,
689
+ CoordinationType$1.SEGMENTATION_CHANNEL,
690
+ CoordinationType$1.POINT_LAYER,
691
+ CoordinationType$1.FEATURE_COLOR,
692
+ CoordinationType$1.FEATURE_FILTER_MODE,
693
+ CoordinationType$1.FEATURE_HIGHLIGHT,
694
+ CoordinationType$1.FEATURE_SELECTION,
695
+ CoordinationType$1.FEATURE_VALUE_COLORMAP,
696
+ CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
697
+ CoordinationType$1.SPATIAL_LAYER_COLOR,
698
+ CoordinationType$1.SPATIAL_LAYER_OPACITY,
699
+ CoordinationType$1.SPATIAL_LAYER_VISIBLE,
700
+ CoordinationType$1.SPATIAL_CHANNEL_COLOR,
701
+ CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
702
+ CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
703
+ CoordinationType$1.LEGEND_VISIBLE
681
704
  ],
682
705
  [ViewType$1.SCATTERPLOT]: [
683
706
  CoordinationType$1.DATASET,
@@ -11544,14 +11567,23 @@ z.object({
11544
11567
  z.object({
11545
11568
  // TODO: Should this explicitly specify sharded vs. unsharded?
11546
11569
  // Or can/should that be inferred from the data?
11547
- dimensionX: z.number(),
11548
- dimensionY: z.number(),
11549
- dimensionZ: z.number(),
11550
- dimensionUnit: z.enum(["nm", "um", "µm", "mm", "cm", "m"]),
11570
+ // Note: None of these make sense to specify at the file level, since they
11571
+ // are global camera settings that would apply to all layers.
11572
+ // Intead, initial values should be set via the usual coordination space mechanism,
11573
+ // and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
11574
+ // dimensionX: z.number(),
11575
+ // dimensionY: z.number(),
11576
+ // dimensionZ: z.number(),
11577
+ // dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
11551
11578
  // TODO: should the following be passed via coordination types instead?
11552
- projectionScale: z.number(),
11553
- position: z.array(z.number()).length(3),
11554
- projectionOrientation: z.array(z.number()).length(4)
11579
+ // projectionScale: z.number(),
11580
+ // position: z.array(z.number()).length(3),
11581
+ // projectionOrientation: z.array(z.number()).length(4),
11582
+ }).partial().nullable();
11583
+ z.object({
11584
+ projectionAnnotationSpacing: z.number(),
11585
+ 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."),
11586
+ 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.")
11555
11587
  }).partial().nullable();
11556
11588
  z.object({
11557
11589
  obsIndex: z.string(),
@@ -179827,22 +179859,22 @@ function addDecoder(cases2, importFn) {
179827
179859
  }
179828
179860
  cases2.forEach((c2) => registry$1.set(c2, importFn));
179829
179861
  }
179830
- addDecoder([void 0, 1], () => import("./raw-B0uYXVYf.js").then((m2) => m2.default));
179831
- addDecoder(5, () => import("./lzw-BwDPLy3M.js").then((m2) => m2.default));
179862
+ addDecoder([void 0, 1], () => import("./raw-BD6IgsG_.js").then((m2) => m2.default));
179863
+ addDecoder(5, () => import("./lzw-DKcG65Pr.js").then((m2) => m2.default));
179832
179864
  addDecoder(6, () => {
179833
179865
  throw new Error("old style JPEG compression is not supported.");
179834
179866
  });
179835
- addDecoder(7, () => import("./jpeg-eKmOr--c.js").then((m2) => m2.default));
179836
- addDecoder([8, 32946], () => import("./deflate-DD-Jz2qv.js").then((m2) => m2.default));
179837
- addDecoder(32773, () => import("./packbits-DldZz8Fa.js").then((m2) => m2.default));
179867
+ addDecoder(7, () => import("./jpeg-C04l-b7s.js").then((m2) => m2.default));
179868
+ addDecoder([8, 32946], () => import("./deflate-ld0vMy9u.js").then((m2) => m2.default));
179869
+ addDecoder(32773, () => import("./packbits-yEiLjB_6.js").then((m2) => m2.default));
179838
179870
  addDecoder(
179839
179871
  34887,
179840
- () => import("./lerc-Bvt14Cst.js").then(async (m2) => {
179872
+ () => import("./lerc-CwNw9uz4.js").then(async (m2) => {
179841
179873
  await m2.zstd.init();
179842
179874
  return m2;
179843
179875
  }).then((m2) => m2.default)
179844
179876
  );
179845
- addDecoder(50001, () => import("./webimage-BXiR6Y9m.js").then((m2) => m2.default));
179877
+ addDecoder(50001, () => import("./webimage-B5WMLVfj.js").then((m2) => m2.default));
179846
179878
  function decodeRowAcc(row, stride) {
179847
179879
  let length2 = row.length - stride;
179848
179880
  let offset2 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b, f, C, e, a, i, D, h, E, F, c, d, T, V } from "./index-BdzAC4Cq.js";
1
+ import { b, f, C, e, a, i, D, h, E, F, c, d, T, V } from "./index-C1rdPiFE.js";
2
2
  export {
3
3
  b as CellSetCompositionBarPlotSubscriber,
4
4
  f as CellSetExpressionPlot,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BdzAC4Cq.js";
1
+ import { B as BaseDecoder } from "./index-C1rdPiFE.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 } from "./index-BdzAC4Cq.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-C1rdPiFE.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BdzAC4Cq.js";
1
+ import { B as BaseDecoder } from "./index-C1rdPiFE.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-BdzAC4Cq.js";
1
+ import { B as BaseDecoder } from "./index-C1rdPiFE.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-BdzAC4Cq.js";
1
+ import { B as BaseDecoder } from "./index-C1rdPiFE.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-BdzAC4Cq.js";
1
+ import { B as BaseDecoder } from "./index-C1rdPiFE.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/statistical-plots",
3
- "version": "3.9.4",
3
+ "version": "3.9.6",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -28,13 +28,13 @@
28
28
  "react-aria": "^3.28.0",
29
29
  "internmap": "^2.0.3",
30
30
  "uuid": "^9.0.0",
31
- "@vitessce/constants-internal": "3.9.4",
32
- "@vitessce/styles": "3.9.4",
33
- "@vitessce/sets-utils": "3.9.4",
34
- "@vitessce/utils": "3.9.4",
35
- "@vitessce/vega": "3.9.4",
36
- "@vitessce/vit-s": "3.9.4",
37
- "@vitessce/gl": "3.9.4"
31
+ "@vitessce/styles": "3.9.6",
32
+ "@vitessce/sets-utils": "3.9.6",
33
+ "@vitessce/constants-internal": "3.9.6",
34
+ "@vitessce/vega": "3.9.6",
35
+ "@vitessce/utils": "3.9.6",
36
+ "@vitessce/gl": "3.9.6",
37
+ "@vitessce/vit-s": "3.9.6"
38
38
  },
39
39
  "devDependencies": {
40
40
  "react": "18.3.1",