@vitessce/scatterplot-gating 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-73600fb1.js";
2
+ import { B as BaseDecoder } from "./index-ffb8adc6.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -10927,6 +10927,7 @@ const DataType$2 = {
10927
10927
  const FileType$1 = {
10928
10928
  // Joint file types
10929
10929
  ANNDATA_ZARR: "anndata.zarr",
10930
+ SPATIALDATA_ZARR: "spatialdata.zarr",
10930
10931
  // Atomic file types
10931
10932
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
10932
10933
  OBS_SPOTS_CSV: "obsSpots.csv",
@@ -10949,6 +10950,16 @@ const FileType$1 = {
10949
10950
  OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
10950
10951
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
10951
10952
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
10953
+ // SpatialData
10954
+ IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
10955
+ LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
10956
+ SHAPES_SPATIALDATA_ZARR: "shapes.spatialdata.zarr",
10957
+ OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
10958
+ OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
10959
+ OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
10960
+ // TODO:
10961
+ // OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
10962
+ // OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
10952
10963
  // MuData
10953
10964
  OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
10954
10965
  OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
@@ -11750,9 +11761,30 @@ z.object({
11750
11761
  offsetsUrl: z.string().optional(),
11751
11762
  coordinateTransformations: omeCoordinateTransformations.optional()
11752
11763
  });
11753
- z.object({
11764
+ const imageOmeZarrSchema = z.object({
11754
11765
  coordinateTransformations: omeCoordinateTransformations.optional()
11755
11766
  });
11767
+ imageOmeZarrSchema.extend({
11768
+ path: z.string()
11769
+ });
11770
+ z.object({
11771
+ path: z.string()
11772
+ });
11773
+ z.object({
11774
+ path: z.string()
11775
+ });
11776
+ z.object({
11777
+ path: z.string(),
11778
+ 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.")
11779
+ });
11780
+ annDataObsFeatureMatrix.extend({
11781
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
11782
+ });
11783
+ z.object({
11784
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
11785
+ tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
11786
+ obsSets: annDataObsSets
11787
+ });
11756
11788
  z.object({
11757
11789
  obsIndex: z.string(),
11758
11790
  obsEmbedding: z.array(z.string()).length(2)
@@ -18472,9 +18504,9 @@ const schemePlasma = [[13, 8, 135], [16, 7, 136], [19, 7, 137], [22, 7, 138], [2
18472
18504
  function rgbSpline(spline) {
18473
18505
  return (colors) => {
18474
18506
  const n2 = colors.length;
18475
- let r2 = new Array(n2);
18476
- let g2 = new Array(n2);
18477
- let b = new Array(n2);
18507
+ const r2 = new Array(n2);
18508
+ const g2 = new Array(n2);
18509
+ const b = new Array(n2);
18478
18510
  let i2;
18479
18511
  let color;
18480
18512
  for (i2 = 0; i2 < n2; ++i2) {
@@ -18483,10 +18515,10 @@ function rgbSpline(spline) {
18483
18515
  g2[i2] = color[1] || 0;
18484
18516
  b[i2] = color[2] || 0;
18485
18517
  }
18486
- r2 = spline(r2);
18487
- g2 = spline(g2);
18488
- b = spline(b);
18489
- return (t2) => [r2(t2), g2(t2), b(t2)];
18518
+ const rFunc = spline(r2);
18519
+ const gFunc = spline(g2);
18520
+ const bFunc = spline(b);
18521
+ return (t2) => [rFunc(t2), gFunc(t2), bFunc(t2)];
18490
18522
  };
18491
18523
  }
18492
18524
  function basis(values2) {
@@ -121094,16 +121126,16 @@ function addDecoder(cases, importFn) {
121094
121126
  }
121095
121127
  cases.forEach((c2) => registry$1.set(c2, importFn));
121096
121128
  }
121097
- addDecoder([void 0, 1], () => import("./raw-1b8265a8.js").then((m2) => m2.default));
121098
- addDecoder(5, () => import("./lzw-66141aea.js").then((m2) => m2.default));
121129
+ addDecoder([void 0, 1], () => import("./raw-d8d40fca.js").then((m2) => m2.default));
121130
+ addDecoder(5, () => import("./lzw-5c97cf9e.js").then((m2) => m2.default));
121099
121131
  addDecoder(6, () => {
121100
121132
  throw new Error("old style JPEG compression is not supported.");
121101
121133
  });
121102
- addDecoder(7, () => import("./jpeg-d36cd1e8.js").then((m2) => m2.default));
121103
- addDecoder([8, 32946], () => import("./deflate-34407526.js").then((m2) => m2.default));
121104
- addDecoder(32773, () => import("./packbits-2838880b.js").then((m2) => m2.default));
121105
- addDecoder(34887, () => import("./lerc-e5940768.js").then((m2) => m2.default));
121106
- addDecoder(50001, () => import("./webimage-ae3e1d5b.js").then((m2) => m2.default));
121134
+ addDecoder(7, () => import("./jpeg-b7775743.js").then((m2) => m2.default));
121135
+ addDecoder([8, 32946], () => import("./deflate-db1c8f5b.js").then((m2) => m2.default));
121136
+ addDecoder(32773, () => import("./packbits-3e7a20be.js").then((m2) => m2.default));
121137
+ addDecoder(34887, () => import("./lerc-8db218c1.js").then((m2) => m2.default));
121138
+ addDecoder(50001, () => import("./webimage-adb9e0d3.js").then((m2) => m2.default));
121107
121139
  function decodeRowAcc(row, stride) {
121108
121140
  let length2 = row.length - stride;
121109
121141
  let offset5 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G } from "./index-73600fb1.js";
1
+ import { G } from "./index-ffb8adc6.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-73600fb1.js";
1
+ import { B as BaseDecoder } from "./index-ffb8adc6.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-73600fb1.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-ffb8adc6.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-73600fb1.js";
1
+ import { B as BaseDecoder } from "./index-ffb8adc6.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-73600fb1.js";
1
+ import { B as BaseDecoder } from "./index-ffb8adc6.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-73600fb1.js";
1
+ import { B as BaseDecoder } from "./index-ffb8adc6.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-73600fb1.js";
1
+ import { B as BaseDecoder } from "./index-ffb8adc6.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/scatterplot-gating",
3
- "version": "3.2.2",
3
+ "version": "3.3.0",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,11 +20,11 @@
20
20
  "d3-array": "^2.4.0",
21
21
  "lodash-es": "^4.17.21",
22
22
  "react-aria": "^3.28.0",
23
- "@vitessce/constants-internal": "3.2.2",
24
- "@vitessce/scatterplot": "3.2.2",
25
- "@vitessce/sets-utils": "3.2.2",
26
- "@vitessce/utils": "3.2.2",
27
- "@vitessce/vit-s": "3.2.2"
23
+ "@vitessce/constants-internal": "3.3.0",
24
+ "@vitessce/scatterplot": "3.3.0",
25
+ "@vitessce/sets-utils": "3.3.0",
26
+ "@vitessce/utils": "3.3.0",
27
+ "@vitessce/vit-s": "3.3.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "react": "^18.0.0",