@vitessce/scatterplot-gating 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-Ql5pqNV2.js";
2
+ import { B as BaseDecoder } from "./index-BMdSKuQV.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -9654,6 +9654,7 @@ const FileType$1 = {
9654
9654
  // Neuroglancer
9655
9655
  // Precomputed (mesh) format
9656
9656
  OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
9657
+ OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
9657
9658
  // New file types to support old file types:
9658
9659
  // - cells.json
9659
9660
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -9885,6 +9886,7 @@ const ViewHelpMapping = {
9885
9886
  [FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$2.FEATURE_LABELS,
9886
9887
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$2.OBS_SEGMENTATIONS,
9887
9888
  [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$2.OBS_SEGMENTATIONS,
9889
+ [FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$2.OBS_POINTS,
9888
9890
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$2.IMAGE,
9889
9891
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
9890
9892
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
@@ -10104,6 +10106,8 @@ const ViewHelpMapping = {
10104
10106
  ];
10105
10107
  const COMPONENT_COORDINATION_TYPES = {
10106
10108
  [ViewType$1.NEUROGLANCER]: [
10109
+ CoordinationType$1.META_COORDINATION_SCOPES,
10110
+ CoordinationType$1.META_COORDINATION_SCOPES_BY,
10107
10111
  CoordinationType$1.DATASET,
10108
10112
  CoordinationType$1.SPATIAL_TARGET_X,
10109
10113
  CoordinationType$1.SPATIAL_TARGET_Y,
@@ -10125,7 +10129,26 @@ const COMPONENT_COORDINATION_TYPES = {
10125
10129
  CoordinationType$1.OBS_COLOR_ENCODING,
10126
10130
  CoordinationType$1.EMBEDDING_TYPE,
10127
10131
  CoordinationType$1.ADDITIONAL_OBS_SETS,
10128
- CoordinationType$1.TOOLTIPS_VISIBLE
10132
+ CoordinationType$1.TOOLTIPS_VISIBLE,
10133
+ CoordinationType$1.FILE_UID,
10134
+ CoordinationType$1.IMAGE_LAYER,
10135
+ CoordinationType$1.SEGMENTATION_LAYER,
10136
+ CoordinationType$1.IMAGE_CHANNEL,
10137
+ CoordinationType$1.SEGMENTATION_CHANNEL,
10138
+ CoordinationType$1.POINT_LAYER,
10139
+ CoordinationType$1.FEATURE_COLOR,
10140
+ CoordinationType$1.FEATURE_FILTER_MODE,
10141
+ CoordinationType$1.FEATURE_HIGHLIGHT,
10142
+ CoordinationType$1.FEATURE_SELECTION,
10143
+ CoordinationType$1.FEATURE_VALUE_COLORMAP,
10144
+ CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
10145
+ CoordinationType$1.SPATIAL_LAYER_COLOR,
10146
+ CoordinationType$1.SPATIAL_LAYER_OPACITY,
10147
+ CoordinationType$1.SPATIAL_LAYER_VISIBLE,
10148
+ CoordinationType$1.SPATIAL_CHANNEL_COLOR,
10149
+ CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
10150
+ CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
10151
+ CoordinationType$1.LEGEND_VISIBLE
10129
10152
  ],
10130
10153
  [ViewType$1.SCATTERPLOT]: [
10131
10154
  CoordinationType$1.DATASET,
@@ -11169,14 +11192,23 @@ z.object({
11169
11192
  z.object({
11170
11193
  // TODO: Should this explicitly specify sharded vs. unsharded?
11171
11194
  // Or can/should that be inferred from the data?
11172
- dimensionX: z.number(),
11173
- dimensionY: z.number(),
11174
- dimensionZ: z.number(),
11175
- dimensionUnit: z.enum(["nm", "um", "µm", "mm", "cm", "m"]),
11195
+ // Note: None of these make sense to specify at the file level, since they
11196
+ // are global camera settings that would apply to all layers.
11197
+ // Intead, initial values should be set via the usual coordination space mechanism,
11198
+ // and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
11199
+ // dimensionX: z.number(),
11200
+ // dimensionY: z.number(),
11201
+ // dimensionZ: z.number(),
11202
+ // dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
11176
11203
  // TODO: should the following be passed via coordination types instead?
11177
- projectionScale: z.number(),
11178
- position: z.array(z.number()).length(3),
11179
- projectionOrientation: z.array(z.number()).length(4)
11204
+ // projectionScale: z.number(),
11205
+ // position: z.array(z.number()).length(3),
11206
+ // projectionOrientation: z.array(z.number()).length(4),
11207
+ }).partial().nullable();
11208
+ z.object({
11209
+ projectionAnnotationSpacing: z.number(),
11210
+ 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."),
11211
+ 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.")
11180
11212
  }).partial().nullable();
11181
11213
  z.object({
11182
11214
  obsIndex: z.string(),
@@ -123170,22 +123202,22 @@ function addDecoder(cases, importFn) {
123170
123202
  }
123171
123203
  cases.forEach((c2) => registry$1.set(c2, importFn));
123172
123204
  }
123173
- addDecoder([void 0, 1], () => import("./raw-DZ2dgMxC.js").then((m2) => m2.default));
123174
- addDecoder(5, () => import("./lzw-DionziOn.js").then((m2) => m2.default));
123205
+ addDecoder([void 0, 1], () => import("./raw-wYb3ZGxb.js").then((m2) => m2.default));
123206
+ addDecoder(5, () => import("./lzw-SA-ZlYmR.js").then((m2) => m2.default));
123175
123207
  addDecoder(6, () => {
123176
123208
  throw new Error("old style JPEG compression is not supported.");
123177
123209
  });
123178
- addDecoder(7, () => import("./jpeg-bgX-bByk.js").then((m2) => m2.default));
123179
- addDecoder([8, 32946], () => import("./deflate-CB-Tvyu_.js").then((m2) => m2.default));
123180
- addDecoder(32773, () => import("./packbits-CZgMnfAG.js").then((m2) => m2.default));
123210
+ addDecoder(7, () => import("./jpeg-DvOa1fe1.js").then((m2) => m2.default));
123211
+ addDecoder([8, 32946], () => import("./deflate-Bp74AFds.js").then((m2) => m2.default));
123212
+ addDecoder(32773, () => import("./packbits-B0FfztNr.js").then((m2) => m2.default));
123181
123213
  addDecoder(
123182
123214
  34887,
123183
- () => import("./lerc-Dmtdab7J.js").then(async (m2) => {
123215
+ () => import("./lerc-KuJmBgM7.js").then(async (m2) => {
123184
123216
  await m2.zstd.init();
123185
123217
  return m2;
123186
123218
  }).then((m2) => m2.default)
123187
123219
  );
123188
- addDecoder(50001, () => import("./webimage-DTYWvPuC.js").then((m2) => m2.default));
123220
+ addDecoder(50001, () => import("./webimage-DJVHUOGE.js").then((m2) => m2.default));
123189
123221
  function decodeRowAcc(row, stride) {
123190
123222
  let length2 = row.length - stride;
123191
123223
  let offset2 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G } from "./index-Ql5pqNV2.js";
1
+ import { G } from "./index-BMdSKuQV.js";
2
2
  export {
3
3
  G as GatingSubscriber
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-Ql5pqNV2.js";
1
+ import { B as BaseDecoder } from "./index-BMdSKuQV.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-Ql5pqNV2.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-BMdSKuQV.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-Ql5pqNV2.js";
1
+ import { B as BaseDecoder } from "./index-BMdSKuQV.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-Ql5pqNV2.js";
1
+ import { B as BaseDecoder } from "./index-BMdSKuQV.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-Ql5pqNV2.js";
1
+ import { B as BaseDecoder } from "./index-BMdSKuQV.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-Ql5pqNV2.js";
1
+ import { B as BaseDecoder } from "./index-BMdSKuQV.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-gating",
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": {
@@ -19,12 +19,12 @@
19
19
  "d3-array": "^2.4.0",
20
20
  "lodash-es": "^4.17.21",
21
21
  "react-aria": "^3.28.0",
22
- "@vitessce/styles": "3.9.5",
23
- "@vitessce/scatterplot": "3.9.5",
24
- "@vitessce/sets-utils": "3.9.5",
25
- "@vitessce/constants-internal": "3.9.5",
26
- "@vitessce/utils": "3.9.5",
27
- "@vitessce/vit-s": "3.9.5"
22
+ "@vitessce/constants-internal": "3.9.7",
23
+ "@vitessce/scatterplot": "3.9.7",
24
+ "@vitessce/styles": "3.9.7",
25
+ "@vitessce/sets-utils": "3.9.7",
26
+ "@vitessce/vit-s": "3.9.7",
27
+ "@vitessce/utils": "3.9.7"
28
28
  },
29
29
  "devDependencies": {
30
30
  "react": "18.3.1",