@vitessce/scatterplot-embedding 3.9.5 → 3.9.7

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-CDWR6IMJ.js";
2
+ import { B as BaseDecoder } from "./index-BFIHjDqy.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -9773,6 +9773,7 @@ const FileType$1 = {
9773
9773
  // Neuroglancer
9774
9774
  // Precomputed (mesh) format
9775
9775
  OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
9776
+ OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
9776
9777
  // New file types to support old file types:
9777
9778
  // - cells.json
9778
9779
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -10004,6 +10005,7 @@ const ViewHelpMapping = {
10004
10005
  [FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$2.FEATURE_LABELS,
10005
10006
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$2.OBS_SEGMENTATIONS,
10006
10007
  [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$2.OBS_SEGMENTATIONS,
10008
+ [FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$2.OBS_POINTS,
10007
10009
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$2.IMAGE,
10008
10010
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
10009
10011
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
@@ -10223,6 +10225,8 @@ const ViewHelpMapping = {
10223
10225
  ];
10224
10226
  const COMPONENT_COORDINATION_TYPES = {
10225
10227
  [ViewType$1.NEUROGLANCER]: [
10228
+ CoordinationType$1.META_COORDINATION_SCOPES,
10229
+ CoordinationType$1.META_COORDINATION_SCOPES_BY,
10226
10230
  CoordinationType$1.DATASET,
10227
10231
  CoordinationType$1.SPATIAL_TARGET_X,
10228
10232
  CoordinationType$1.SPATIAL_TARGET_Y,
@@ -10244,7 +10248,26 @@ const COMPONENT_COORDINATION_TYPES = {
10244
10248
  CoordinationType$1.OBS_COLOR_ENCODING,
10245
10249
  CoordinationType$1.EMBEDDING_TYPE,
10246
10250
  CoordinationType$1.ADDITIONAL_OBS_SETS,
10247
- CoordinationType$1.TOOLTIPS_VISIBLE
10251
+ CoordinationType$1.TOOLTIPS_VISIBLE,
10252
+ CoordinationType$1.FILE_UID,
10253
+ CoordinationType$1.IMAGE_LAYER,
10254
+ CoordinationType$1.SEGMENTATION_LAYER,
10255
+ CoordinationType$1.IMAGE_CHANNEL,
10256
+ CoordinationType$1.SEGMENTATION_CHANNEL,
10257
+ CoordinationType$1.POINT_LAYER,
10258
+ CoordinationType$1.FEATURE_COLOR,
10259
+ CoordinationType$1.FEATURE_FILTER_MODE,
10260
+ CoordinationType$1.FEATURE_HIGHLIGHT,
10261
+ CoordinationType$1.FEATURE_SELECTION,
10262
+ CoordinationType$1.FEATURE_VALUE_COLORMAP,
10263
+ CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
10264
+ CoordinationType$1.SPATIAL_LAYER_COLOR,
10265
+ CoordinationType$1.SPATIAL_LAYER_OPACITY,
10266
+ CoordinationType$1.SPATIAL_LAYER_VISIBLE,
10267
+ CoordinationType$1.SPATIAL_CHANNEL_COLOR,
10268
+ CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
10269
+ CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
10270
+ CoordinationType$1.LEGEND_VISIBLE
10248
10271
  ],
10249
10272
  [ViewType$1.SCATTERPLOT]: [
10250
10273
  CoordinationType$1.DATASET,
@@ -11288,14 +11311,23 @@ z.object({
11288
11311
  z.object({
11289
11312
  // TODO: Should this explicitly specify sharded vs. unsharded?
11290
11313
  // Or can/should that be inferred from the data?
11291
- dimensionX: z.number(),
11292
- dimensionY: z.number(),
11293
- dimensionZ: z.number(),
11294
- dimensionUnit: z.enum(["nm", "um", "µm", "mm", "cm", "m"]),
11314
+ // Note: None of these make sense to specify at the file level, since they
11315
+ // are global camera settings that would apply to all layers.
11316
+ // Intead, initial values should be set via the usual coordination space mechanism,
11317
+ // and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
11318
+ // dimensionX: z.number(),
11319
+ // dimensionY: z.number(),
11320
+ // dimensionZ: z.number(),
11321
+ // dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
11295
11322
  // TODO: should the following be passed via coordination types instead?
11296
- projectionScale: z.number(),
11297
- position: z.array(z.number()).length(3),
11298
- projectionOrientation: z.array(z.number()).length(4)
11323
+ // projectionScale: z.number(),
11324
+ // position: z.array(z.number()).length(3),
11325
+ // projectionOrientation: z.array(z.number()).length(4),
11326
+ }).partial().nullable();
11327
+ z.object({
11328
+ projectionAnnotationSpacing: z.number(),
11329
+ 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."),
11330
+ 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.")
11299
11331
  }).partial().nullable();
11300
11332
  z.object({
11301
11333
  obsIndex: z.string(),
@@ -123422,22 +123454,22 @@ function addDecoder(cases, importFn) {
123422
123454
  }
123423
123455
  cases.forEach((c2) => registry$1.set(c2, importFn));
123424
123456
  }
123425
- addDecoder([void 0, 1], () => import("./raw-VHHlcd3d.js").then((m2) => m2.default));
123426
- addDecoder(5, () => import("./lzw-C2v0Vgro.js").then((m2) => m2.default));
123457
+ addDecoder([void 0, 1], () => import("./raw-EACDAQyt.js").then((m2) => m2.default));
123458
+ addDecoder(5, () => import("./lzw-gYw3lEmK.js").then((m2) => m2.default));
123427
123459
  addDecoder(6, () => {
123428
123460
  throw new Error("old style JPEG compression is not supported.");
123429
123461
  });
123430
- addDecoder(7, () => import("./jpeg-D1J3Yyuv.js").then((m2) => m2.default));
123431
- addDecoder([8, 32946], () => import("./deflate-CWfNPY8G.js").then((m2) => m2.default));
123432
- addDecoder(32773, () => import("./packbits-BdcRH7tW.js").then((m2) => m2.default));
123462
+ addDecoder(7, () => import("./jpeg-DHOm-lsS.js").then((m2) => m2.default));
123463
+ addDecoder([8, 32946], () => import("./deflate-CPKmTD_H.js").then((m2) => m2.default));
123464
+ addDecoder(32773, () => import("./packbits-C5YjAXWF.js").then((m2) => m2.default));
123433
123465
  addDecoder(
123434
123466
  34887,
123435
- () => import("./lerc-BPUie9tO.js").then(async (m2) => {
123467
+ () => import("./lerc-BNgwp9p4.js").then(async (m2) => {
123436
123468
  await m2.zstd.init();
123437
123469
  return m2;
123438
123470
  }).then((m2) => m2.default)
123439
123471
  );
123440
- addDecoder(50001, () => import("./webimage-DmwF48h3.js").then((m2) => m2.default));
123472
+ addDecoder(50001, () => import("./webimage-BZfJm-XR.js").then((m2) => m2.default));
123441
123473
  function decodeRowAcc(row, stride) {
123442
123474
  let length2 = row.length - stride;
123443
123475
  let offset2 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D, E } from "./index-CDWR6IMJ.js";
1
+ import { D, E } from "./index-BFIHjDqy.js";
2
2
  export {
3
3
  D as DualEmbeddingScatterplotSubscriber,
4
4
  E as EmbeddingScatterplotSubscriber
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CDWR6IMJ.js";
1
+ import { B as BaseDecoder } from "./index-BFIHjDqy.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-CDWR6IMJ.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-BFIHjDqy.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CDWR6IMJ.js";
1
+ import { B as BaseDecoder } from "./index-BFIHjDqy.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-CDWR6IMJ.js";
1
+ import { B as BaseDecoder } from "./index-BFIHjDqy.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-CDWR6IMJ.js";
1
+ import { B as BaseDecoder } from "./index-BFIHjDqy.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-CDWR6IMJ.js";
1
+ import { B as BaseDecoder } from "./index-BFIHjDqy.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/scatterplot-embedding",
3
- "version": "3.9.5",
3
+ "version": "3.9.7",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,13 +20,13 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "react-aria": "^3.28.0",
22
22
  "@turf/circle": "^7.2.0",
23
- "@vitessce/constants-internal": "3.9.5",
24
- "@vitessce/legend": "3.9.5",
25
- "@vitessce/scatterplot": "3.9.5",
26
- "@vitessce/sets-utils": "3.9.5",
27
- "@vitessce/styles": "3.9.5",
28
- "@vitessce/vit-s": "3.9.5",
29
- "@vitessce/utils": "3.9.5"
23
+ "@vitessce/styles": "3.9.7",
24
+ "@vitessce/constants-internal": "3.9.7",
25
+ "@vitessce/legend": "3.9.7",
26
+ "@vitessce/scatterplot": "3.9.7",
27
+ "@vitessce/sets-utils": "3.9.7",
28
+ "@vitessce/utils": "3.9.7",
29
+ "@vitessce/vit-s": "3.9.7"
30
30
  },
31
31
  "devDependencies": {
32
32
  "react": "18.3.1",