@vitessce/layer-controller 3.2.2 → 3.3.0

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-68f84e2a.js";
2
- import { B as BaseDecoder } from "./index-a79502da.js";
2
+ import { B as BaseDecoder } from "./index-b51c005e.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -16837,6 +16837,7 @@ const DataType$2 = {
16837
16837
  const FileType$1 = {
16838
16838
  // Joint file types
16839
16839
  ANNDATA_ZARR: "anndata.zarr",
16840
+ SPATIALDATA_ZARR: "spatialdata.zarr",
16840
16841
  // Atomic file types
16841
16842
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
16842
16843
  OBS_SPOTS_CSV: "obsSpots.csv",
@@ -16859,6 +16860,16 @@ const FileType$1 = {
16859
16860
  OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
16860
16861
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
16861
16862
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
16863
+ // SpatialData
16864
+ IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
16865
+ LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
16866
+ SHAPES_SPATIALDATA_ZARR: "shapes.spatialdata.zarr",
16867
+ OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
16868
+ OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
16869
+ OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
16870
+ // TODO:
16871
+ // OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
16872
+ // OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
16862
16873
  // MuData
16863
16874
  OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
16864
16875
  OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
@@ -27522,9 +27533,30 @@ z.object({
27522
27533
  offsetsUrl: z.string().optional(),
27523
27534
  coordinateTransformations: omeCoordinateTransformations.optional()
27524
27535
  });
27525
- z.object({
27536
+ const imageOmeZarrSchema = z.object({
27526
27537
  coordinateTransformations: omeCoordinateTransformations.optional()
27527
27538
  });
27539
+ imageOmeZarrSchema.extend({
27540
+ path: z.string()
27541
+ });
27542
+ z.object({
27543
+ path: z.string()
27544
+ });
27545
+ z.object({
27546
+ path: z.string()
27547
+ });
27548
+ z.object({
27549
+ path: z.string(),
27550
+ tablePath: z.string().optional().describe("The path to a table which annotates the spots. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected.")
27551
+ });
27552
+ annDataObsFeatureMatrix.extend({
27553
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
27554
+ });
27555
+ z.object({
27556
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
27557
+ tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
27558
+ obsSets: annDataObsSets
27559
+ });
27528
27560
  z.object({
27529
27561
  obsIndex: z.string(),
27530
27562
  obsEmbedding: z.array(z.string()).length(2)
@@ -34082,9 +34114,9 @@ const schemePlasma = [[13, 8, 135], [16, 7, 136], [19, 7, 137], [22, 7, 138], [2
34082
34114
  function rgbSpline(spline) {
34083
34115
  return (colors) => {
34084
34116
  const n2 = colors.length;
34085
- let r2 = new Array(n2);
34086
- let g2 = new Array(n2);
34087
- let b = new Array(n2);
34117
+ const r2 = new Array(n2);
34118
+ const g2 = new Array(n2);
34119
+ const b = new Array(n2);
34088
34120
  let i2;
34089
34121
  let color;
34090
34122
  for (i2 = 0; i2 < n2; ++i2) {
@@ -34093,10 +34125,10 @@ function rgbSpline(spline) {
34093
34125
  g2[i2] = color[1] || 0;
34094
34126
  b[i2] = color[2] || 0;
34095
34127
  }
34096
- r2 = spline(r2);
34097
- g2 = spline(g2);
34098
- b = spline(b);
34099
- return (t2) => [r2(t2), g2(t2), b(t2)];
34128
+ const rFunc = spline(r2);
34129
+ const gFunc = spline(g2);
34130
+ const bFunc = spline(b);
34131
+ return (t2) => [rFunc(t2), gFunc(t2), bFunc(t2)];
34100
34132
  };
34101
34133
  }
34102
34134
  function basis(values2) {
@@ -135596,16 +135628,16 @@ function addDecoder(cases, importFn) {
135596
135628
  }
135597
135629
  cases.forEach((c) => registry$1.set(c, importFn));
135598
135630
  }
135599
- addDecoder([void 0, 1], () => import("./raw-af4639cb.js").then((m) => m.default));
135600
- addDecoder(5, () => import("./lzw-b6a080bc.js").then((m) => m.default));
135631
+ addDecoder([void 0, 1], () => import("./raw-dbd5f758.js").then((m) => m.default));
135632
+ addDecoder(5, () => import("./lzw-1b172fa4.js").then((m) => m.default));
135601
135633
  addDecoder(6, () => {
135602
135634
  throw new Error("old style JPEG compression is not supported.");
135603
135635
  });
135604
- addDecoder(7, () => import("./jpeg-f13e87d5.js").then((m) => m.default));
135605
- addDecoder([8, 32946], () => import("./deflate-822f733b.js").then((m) => m.default));
135606
- addDecoder(32773, () => import("./packbits-fbb728f4.js").then((m) => m.default));
135607
- addDecoder(34887, () => import("./lerc-e0b9e6f7.js").then((m) => m.default));
135608
- addDecoder(50001, () => import("./webimage-cf240654.js").then((m) => m.default));
135636
+ addDecoder(7, () => import("./jpeg-32ca4e37.js").then((m) => m.default));
135637
+ addDecoder([8, 32946], () => import("./deflate-804156cd.js").then((m) => m.default));
135638
+ addDecoder(32773, () => import("./packbits-84f5534a.js").then((m) => m.default));
135639
+ addDecoder(34887, () => import("./lerc-be957c97.js").then((m) => m.default));
135640
+ addDecoder(50001, () => import("./webimage-d64061e3.js").then((m) => m.default));
135609
135641
  function decodeRowAcc(row, stride) {
135610
135642
  let length2 = row.length - stride;
135611
135643
  let offset4 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, L, V, d, c, e, f, b, h, u } from "./index-a79502da.js";
1
+ import { a, L, V, d, c, e, f, b, h, u } from "./index-b51c005e.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-a79502da.js";
1
+ import { B as BaseDecoder } from "./index-b51c005e.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-a79502da.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-b51c005e.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-a79502da.js";
1
+ import { B as BaseDecoder } from "./index-b51c005e.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-a79502da.js";
1
+ import { B as BaseDecoder } from "./index-b51c005e.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-a79502da.js";
1
+ import { B as BaseDecoder } from "./index-b51c005e.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-a79502da.js";
1
+ import { B as BaseDecoder } from "./index-b51c005e.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/layer-controller",
3
- "version": "3.2.2",
3
+ "version": "3.3.0",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -21,11 +21,11 @@
21
21
  "lodash-es": "^4.17.21",
22
22
  "math.gl": "^3.5.6",
23
23
  "react-aria": "^3.28.0",
24
- "@vitessce/gl": "3.2.2",
25
- "@vitessce/constants-internal": "3.2.2",
26
- "@vitessce/spatial-utils": "3.2.2",
27
- "@vitessce/utils": "3.2.2",
28
- "@vitessce/vit-s": "3.2.2"
24
+ "@vitessce/constants-internal": "3.3.0",
25
+ "@vitessce/gl": "3.3.0",
26
+ "@vitessce/spatial-utils": "3.3.0",
27
+ "@vitessce/utils": "3.3.0",
28
+ "@vitessce/vit-s": "3.3.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "react": "^18.0.0",