@vitessce/json 4.1.1 → 4.1.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-n1UDJDAC.js";
2
+ import { B as BaseDecoder } from "./index-CM5yHoIK.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -240,6 +240,7 @@ const FileType$1 = {
240
240
  // Precomputed (mesh) format
241
241
  OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
242
242
  OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
243
+ OBS_LOCATIONS_NG_ANNOTATIONS: "obsLocations.ng-annotations",
243
244
  // New file types to support old file types:
244
245
  // - cells.json
245
246
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -485,6 +486,7 @@ const CoordinationType$1 = {
485
486
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$2.OBS_SEGMENTATIONS,
486
487
  [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$2.OBS_SEGMENTATIONS,
487
488
  [FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$2.OBS_POINTS,
489
+ [FileType$1.OBS_LOCATIONS_NG_ANNOTATIONS]: DataType$2.OBS_LOCATIONS,
488
490
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$2.IMAGE,
489
491
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
490
492
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
@@ -939,7 +941,8 @@ const CoordinationType$1 = {
939
941
  CoordinationType$1.ANNOTATION_OVERLAY_VISIBLE,
940
942
  CoordinationType$1.ANNOTATION_TRANSITION_DURATION,
941
943
  CoordinationType$1.ANNOTATION_EDITABLE,
942
- CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM
944
+ CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM,
945
+ CoordinationType$1.SPATIAL_CHANNELS_SORT_ORDER
943
946
  ],
944
947
  [ViewType$1.SPATIAL_BETA]: [
945
948
  CoordinationType$1.META_COORDINATION_SCOPES,
@@ -1157,7 +1160,8 @@ const CoordinationType$1 = {
1157
1160
  CoordinationType$1.SPATIAL_ROTATION_Z,
1158
1161
  CoordinationType$1.SPATIAL_ROTATION_ORBIT,
1159
1162
  CoordinationType$1.SPATIAL_ORBIT_AXIS,
1160
- CoordinationType$1.PHOTOMETRIC_INTERPRETATION
1163
+ CoordinationType$1.PHOTOMETRIC_INTERPRETATION,
1164
+ CoordinationType$1.SPATIAL_CHANNELS_SORT_ORDER
1161
1165
  ],
1162
1166
  [ViewType$1.LAYER_CONTROLLER_BETA]: [
1163
1167
  CoordinationType$1.META_COORDINATION_SCOPES,
@@ -10168,14 +10172,15 @@ z.object({
10168
10172
  subsources: z.record(z.boolean()).describe("Subsources are the individual data components of a source (e.g. meshes, skeletons, etc.). Each entry explicitly enables or disables a subsource.").optional(),
10169
10173
  enableDefaultSubsources: z.boolean().describe("When true (default), automatically loads all subsources (defined in mesh metadata), when false loads what is explicitly enabled in `subsources`.").optional()
10170
10174
  }).partial().nullable();
10175
+ const ngAnnotationTransformSchema = z.object({
10176
+ matrix: z.array(z.array(z.number())),
10177
+ outputDimensions: z.record(z.tuple([z.number(), z.string()]))
10178
+ }).optional().describe("A coordinate transformation matrix to apply to the annotation layer source to map annotation coordinates to the global coordinate space.");
10171
10179
  z.object({
10172
10180
  projectionAnnotationSpacing: z.number(),
10173
10181
  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."),
10174
10182
  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."),
10175
- transform: z.object({
10176
- matrix: z.array(z.array(z.number())),
10177
- outputDimensions: z.record(z.tuple([z.number(), z.string()]))
10178
- }).optional().describe("A coordinate transformation matrix to apply to the annotation layer source to map annotation coordinates to the global coordinate space."),
10183
+ transform: ngAnnotationTransformSchema,
10179
10184
  // Note: See comments in neuroglancer-sorger.js
10180
10185
  // We may remove these in the future, pending clarification
10181
10186
  // to questions in the tissue-map-tools repo
@@ -10184,6 +10189,14 @@ z.object({
10184
10189
  quantitativeColorProp: z.string().optional(),
10185
10190
  quantitativeColorMax: z.number().optional()
10186
10191
  }).partial().nullable();
10192
+ z.object({
10193
+ projectionAnnotationSpacing: z.number(),
10194
+ transform: ngAnnotationTransformSchema,
10195
+ segmentIdProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty holding the mesh segment ID (e.g. 'cell_id'). Defaults to 'id' when the annotation info declares it."),
10196
+ // Used when the corresponding segmentation channel uses obsColorEncoding 'geneSelection'.
10197
+ quantitativeColorProp: z.string().optional(),
10198
+ quantitativeColorMax: z.number().optional()
10199
+ }).partial().nullable();
10187
10200
  z.object({
10188
10201
  obsIndex: z.string(),
10189
10202
  obsEmbedding: z.array(z.string()).length(2)
@@ -133595,22 +133608,22 @@ async function getDecoder(fileDirectory) {
133595
133608
  const Decoder = await importFn();
133596
133609
  return new Decoder(fileDirectory);
133597
133610
  }
133598
- addDecoder([void 0, 1], () => import("./raw-C41mEEq1.js").then((m) => m.default));
133599
- addDecoder(5, () => import("./lzw-DY9PEFkn.js").then((m) => m.default));
133611
+ addDecoder([void 0, 1], () => import("./raw-BlNN0QGL.js").then((m) => m.default));
133612
+ addDecoder(5, () => import("./lzw-BBMYR2e_.js").then((m) => m.default));
133600
133613
  addDecoder(6, () => {
133601
133614
  throw new Error("old style JPEG compression is not supported.");
133602
133615
  });
133603
- addDecoder(7, () => import("./jpeg-548JNFXA.js").then((m) => m.default));
133604
- addDecoder([8, 32946], () => import("./deflate-CqUjMell.js").then((m) => m.default));
133605
- addDecoder(32773, () => import("./packbits-Dhy4-kGH.js").then((m) => m.default));
133616
+ addDecoder(7, () => import("./jpeg-Bs2YKyFc.js").then((m) => m.default));
133617
+ addDecoder([8, 32946], () => import("./deflate-D8TRA83z.js").then((m) => m.default));
133618
+ addDecoder(32773, () => import("./packbits-EP82_Hll.js").then((m) => m.default));
133606
133619
  addDecoder(
133607
133620
  34887,
133608
- () => import("./lerc-BWRR_ELq.js").then(async (m) => {
133621
+ () => import("./lerc-CcQhbLiP.js").then(async (m) => {
133609
133622
  await m.zstd.init();
133610
133623
  return m;
133611
133624
  }).then((m) => m.default)
133612
133625
  );
133613
- addDecoder(50001, () => import("./webimage-BWnXHQIU.js").then((m) => m.default));
133626
+ addDecoder(50001, () => import("./webimage-DSecj4MX.js").then((m) => m.default));
133614
133627
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
133615
133628
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
133616
133629
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-n1UDJDAC.js";
1
+ import { A, C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-CM5yHoIK.js";
2
2
  export {
3
3
  A as AnnotationStoryJsonLoader,
4
4
  C as CellsJsonAsObsEmbeddingLoader,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-n1UDJDAC.js";
1
+ import { B as BaseDecoder } from "./index-CM5yHoIK.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-n1UDJDAC.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-CM5yHoIK.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-n1UDJDAC.js";
1
+ import { B as BaseDecoder } from "./index-CM5yHoIK.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-n1UDJDAC.js";
1
+ import { B as BaseDecoder } from "./index-CM5yHoIK.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-n1UDJDAC.js";
1
+ import { B as BaseDecoder } from "./index-CM5yHoIK.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-n1UDJDAC.js";
1
+ import { B as BaseDecoder } from "./index-CM5yHoIK.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": "4.1.1",
3
+ "version": "4.1.2",
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.7.5",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/gl": "4.1.1",
24
- "@vitessce/constants-internal": "4.1.1",
25
- "@vitessce/globals": "4.1.1",
26
- "@vitessce/schemas": "4.1.1",
27
- "@vitessce/sets-utils": "4.1.1",
28
- "@vitessce/spatial-utils": "4.1.1",
29
- "@vitessce/abstract": "4.1.1",
30
- "@vitessce/zarr-utils": "4.1.1",
31
- "@vitessce/error": "4.1.1",
32
- "@vitessce/utils": "4.1.1",
33
- "@vitessce/config": "4.1.1"
23
+ "@vitessce/constants-internal": "4.1.2",
24
+ "@vitessce/schemas": "4.1.2",
25
+ "@vitessce/gl": "4.1.2",
26
+ "@vitessce/sets-utils": "4.1.2",
27
+ "@vitessce/globals": "4.1.2",
28
+ "@vitessce/spatial-utils": "4.1.2",
29
+ "@vitessce/utils": "4.1.2",
30
+ "@vitessce/abstract": "4.1.2",
31
+ "@vitessce/error": "4.1.2",
32
+ "@vitessce/config": "4.1.2",
33
+ "@vitessce/zarr-utils": "4.1.2"
34
34
  },
35
35
  "scripts": {
36
36
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",