@vitessce/json 3.4.12 → 3.5.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-819ce366.js";
2
+ import { B as BaseDecoder } from "./index-d55d3dac.js";
3
3
  import "@vitessce/vit-s";
4
4
  import "react";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -82,7 +82,8 @@ const ViewType$1 = {
82
82
  OBS_SET_FEATURE_VALUE_DISTRIBUTION: "obsSetFeatureValueDistribution",
83
83
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
84
84
  DOT_PLOT: "dotPlot",
85
- FEATURE_BAR_PLOT: "featureBarPlot"
85
+ FEATURE_BAR_PLOT: "featureBarPlot",
86
+ BIOMARKER_SELECT: "biomarkerSelect"
86
87
  };
87
88
  const DataType$2 = {
88
89
  OBS_LABELS: "obsLabels",
@@ -121,6 +122,9 @@ const FileType$1 = {
121
122
  // OME-Zarr
122
123
  IMAGE_OME_ZARR: "image.ome-zarr",
123
124
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
125
+ // OME-Zarr - Zipped
126
+ IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
127
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
124
128
  // AnnData
125
129
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
126
130
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
@@ -8868,24 +8872,29 @@ const imageOmeZarrSchema = z.object({
8868
8872
  imageOmeZarrSchema.extend({
8869
8873
  obsTypesFromChannelNames: z.boolean().optional()
8870
8874
  });
8871
- const imageSpatialdataSchema = imageOmeZarrSchema.extend({
8872
- path: z.string()
8875
+ const imageSpatialdataSchema = z.object({
8876
+ path: z.string(),
8877
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
8873
8878
  });
8874
8879
  const obsSegmentationsSpatialdataSchema = z.object({
8875
- // TODO: should this also extend the imageOmeZarrSchema?
8876
8880
  // TODO: should this be renamed labelsSpatialdataSchema?
8877
8881
  // TODO: support obsTypesFromChannelNames?
8878
- path: z.string()
8882
+ path: z.string(),
8883
+ tablePath: z.string().optional().describe("The path to a table which annotates the labels. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected."),
8884
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
8879
8885
  });
8880
8886
  z.object({
8881
- path: z.string()
8887
+ path: z.string(),
8888
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the coordinates. If not provided, the "global" coordinate system is assumed.')
8882
8889
  });
8883
8890
  const obsSpotsSpatialdataSchema = z.object({
8884
8891
  path: z.string(),
8885
- 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.")
8892
+ 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."),
8893
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the coordinates and radii. If not provided, the "global" coordinate system is assumed.')
8886
8894
  });
8887
8895
  const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
8888
- region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
8896
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
8897
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
8889
8898
  });
8890
8899
  const obsSetsSpatialdataSchema = z.object({
8891
8900
  region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
@@ -8986,15 +8995,21 @@ anndataZarrSchema.extend({
8986
8995
  z.object({
8987
8996
  // TODO: should `image` be a special schema
8988
8997
  // to allow specifying fileUid (like for embeddingType)?
8998
+ // TODO: allow multiple images
8989
8999
  image: imageSpatialdataSchema,
8990
9000
  // TODO: should this be a special schema
8991
9001
  // to allow specifying fileUid (like for embeddingType)?
9002
+ // TODO: allow multiple labels
8992
9003
  labels: obsSegmentationsSpatialdataSchema,
8993
9004
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
8994
9005
  obsSpots: obsSpotsSpatialdataSchema,
8995
9006
  // TODO: obsPoints
8996
9007
  // TODO: obsLocations
8997
- obsSets: obsSetsSpatialdataSchema
9008
+ obsSets: obsSetsSpatialdataSchema,
9009
+ // TODO: obsEmbedding
9010
+ // TODO: obsLabels
9011
+ // TODO: featureLabels
9012
+ coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
8998
9013
  }).partial();
8999
9014
  z.object({
9000
9015
  obsLabelsTypes: z.array(z.string()).optional(),
@@ -100181,7 +100196,7 @@ keysShim.shim = function shimObjectKeys() {
100181
100196
  return Object.keys || keysShim;
100182
100197
  };
100183
100198
  var objectKeys$1 = keysShim;
100184
- var shams$2 = function hasSymbols() {
100199
+ var shams$1 = function hasSymbols() {
100185
100200
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
100186
100201
  return false;
100187
100202
  }
@@ -100226,9 +100241,9 @@ var shams$2 = function hasSymbols() {
100226
100241
  }
100227
100242
  return true;
100228
100243
  };
100229
- var hasSymbols$4 = shams$2;
100230
- var shams$1 = function hasToStringTagShams() {
100231
- return hasSymbols$4() && !!Symbol.toStringTag;
100244
+ var hasSymbols$3 = shams$1;
100245
+ var shams = function hasToStringTagShams() {
100246
+ return hasSymbols$3() && !!Symbol.toStringTag;
100232
100247
  };
100233
100248
  var esErrors = Error;
100234
100249
  var _eval = EvalError;
@@ -100238,8 +100253,8 @@ var syntax = SyntaxError;
100238
100253
  var type = TypeError;
100239
100254
  var uri = URIError;
100240
100255
  var origSymbol = typeof Symbol !== "undefined" && Symbol;
100241
- var hasSymbolSham = shams$2;
100242
- var hasSymbols$3 = function hasNativeSymbols() {
100256
+ var hasSymbolSham = shams$1;
100257
+ var hasSymbols$2 = function hasNativeSymbols() {
100243
100258
  if (typeof origSymbol !== "function") {
100244
100259
  return false;
100245
100260
  }
@@ -100255,11 +100270,12 @@ var hasSymbols$3 = function hasNativeSymbols() {
100255
100270
  return hasSymbolSham();
100256
100271
  };
100257
100272
  var test = {
100273
+ __proto__: null,
100258
100274
  foo: {}
100259
100275
  };
100260
100276
  var $Object$1 = Object;
100261
100277
  var hasProto$1 = function hasProto() {
100262
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object$1);
100278
+ return { __proto__: test }.foo === test.foo && !(test instanceof $Object$1);
100263
100279
  };
100264
100280
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
100265
100281
  var toStr$2 = Object.prototype.toString;
@@ -100374,7 +100390,7 @@ var ThrowTypeError = $gOPD$2 ? function() {
100374
100390
  }
100375
100391
  }
100376
100392
  }() : throwTypeError;
100377
- var hasSymbols$2 = hasSymbols$3();
100393
+ var hasSymbols$1 = hasSymbols$2();
100378
100394
  var hasProto2 = hasProto$1();
100379
100395
  var getProto$1 = Object.getPrototypeOf || (hasProto2 ? function(x2) {
100380
100396
  return x2.__proto__;
@@ -100386,7 +100402,7 @@ var INTRINSICS = {
100386
100402
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
100387
100403
  "%Array%": Array,
100388
100404
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
100389
- "%ArrayIteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
100405
+ "%ArrayIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
100390
100406
  "%AsyncFromSyncIteratorPrototype%": undefined$1,
100391
100407
  "%AsyncFunction%": needsEval,
100392
100408
  "%AsyncGenerator%": needsEval,
@@ -100417,10 +100433,10 @@ var INTRINSICS = {
100417
100433
  "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
100418
100434
  "%isFinite%": isFinite,
100419
100435
  "%isNaN%": isNaN,
100420
- "%IteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
100436
+ "%IteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
100421
100437
  "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
100422
100438
  "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
100423
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$2 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
100439
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
100424
100440
  "%Math%": Math,
100425
100441
  "%Number%": Number,
100426
100442
  "%Object%": Object,
@@ -100433,11 +100449,11 @@ var INTRINSICS = {
100433
100449
  "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
100434
100450
  "%RegExp%": RegExp,
100435
100451
  "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
100436
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$2 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
100452
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
100437
100453
  "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
100438
100454
  "%String%": String,
100439
- "%StringIteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
100440
- "%Symbol%": hasSymbols$2 ? Symbol : undefined$1,
100455
+ "%StringIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
100456
+ "%Symbol%": hasSymbols$1 ? Symbol : undefined$1,
100441
100457
  "%SyntaxError%": $SyntaxError$1,
100442
100458
  "%ThrowTypeError%": ThrowTypeError,
100443
100459
  "%TypedArray%": TypedArray$1,
@@ -100806,7 +100822,7 @@ var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
100806
100822
  }
100807
100823
  return intrinsic;
100808
100824
  };
100809
- var hasToStringTag$2 = shams$1();
100825
+ var hasToStringTag$2 = shams();
100810
100826
  var callBound$1 = callBound$2;
100811
100827
  var $toString$1 = callBound$1("Object.prototype.toString");
100812
100828
  var isStandardArguments = function isArguments2(value) {
@@ -100851,7 +100867,7 @@ hasPropertyDescriptors2.hasArrayLengthDefineBug = function hasArrayLengthDefineB
100851
100867
  };
100852
100868
  var hasPropertyDescriptors_1 = hasPropertyDescriptors2;
100853
100869
  var keys2 = objectKeys$1;
100854
- var hasSymbols$1 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
100870
+ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
100855
100871
  var toStr$1 = Object.prototype.toString;
100856
100872
  var concat = Array.prototype.concat;
100857
100873
  var defineDataProperty2 = defineDataProperty$1;
@@ -100878,7 +100894,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
100878
100894
  var defineProperties = function(object2, map2) {
100879
100895
  var predicates = arguments.length > 2 ? arguments[2] : {};
100880
100896
  var props = keys2(map2);
100881
- if (hasSymbols$1) {
100897
+ if (hasSymbols2) {
100882
100898
  props = concat.call(props, Object.getOwnPropertySymbols(map2));
100883
100899
  }
100884
100900
  for (var i2 = 0; i2 < props.length; i2 += 1) {
@@ -100929,10 +100945,6 @@ define$2(polyfill$1, {
100929
100945
  shim: shim$2
100930
100946
  });
100931
100947
  var objectIs = polyfill$1;
100932
- var hasSymbols2 = shams$2;
100933
- var shams = function hasToStringTagShams2() {
100934
- return hasSymbols2() && !!Symbol.toStringTag;
100935
- };
100936
100948
  var callBound = callBound$2;
100937
100949
  var hasToStringTag$1 = shams();
100938
100950
  var has;
@@ -101139,7 +101151,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
101139
101151
  };
101140
101152
  var toStr = Object.prototype.toString;
101141
101153
  var dateClass = "[object Date]";
101142
- var hasToStringTag = shams$1();
101154
+ var hasToStringTag = shams();
101143
101155
  var isDateObject = function isDateObject2(value) {
101144
101156
  if (typeof value !== "object" || value === null) {
101145
101157
  return false;
@@ -135066,16 +135078,16 @@ async function getDecoder(fileDirectory) {
135066
135078
  const Decoder = await importFn();
135067
135079
  return new Decoder(fileDirectory);
135068
135080
  }
135069
- addDecoder([void 0, 1], () => import("./raw-eb767b0e.js").then((m) => m.default));
135070
- addDecoder(5, () => import("./lzw-16f68724.js").then((m) => m.default));
135081
+ addDecoder([void 0, 1], () => import("./raw-eb81714a.js").then((m) => m.default));
135082
+ addDecoder(5, () => import("./lzw-1570af86.js").then((m) => m.default));
135071
135083
  addDecoder(6, () => {
135072
135084
  throw new Error("old style JPEG compression is not supported.");
135073
135085
  });
135074
- addDecoder(7, () => import("./jpeg-32bca2cd.js").then((m) => m.default));
135075
- addDecoder([8, 32946], () => import("./deflate-b93d431c.js").then((m) => m.default));
135076
- addDecoder(32773, () => import("./packbits-d2498095.js").then((m) => m.default));
135077
- addDecoder(34887, () => import("./lerc-4ba8e84e.js").then((m) => m.default));
135078
- addDecoder(50001, () => import("./webimage-8d3fba71.js").then((m) => m.default));
135086
+ addDecoder(7, () => import("./jpeg-48992c30.js").then((m) => m.default));
135087
+ addDecoder([8, 32946], () => import("./deflate-58b908e0.js").then((m) => m.default));
135088
+ addDecoder(32773, () => import("./packbits-773a0731.js").then((m) => m.default));
135089
+ addDecoder(34887, () => import("./lerc-62158a51.js").then((m) => m.default));
135090
+ addDecoder(50001, () => import("./webimage-f760ad83.js").then((m) => m.default));
135079
135091
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
135080
135092
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
135081
135093
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-819ce366.js";
1
+ import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-d55d3dac.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-819ce366.js";
1
+ import { B as BaseDecoder } from "./index-d55d3dac.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  const dctZigZag = new Int32Array([
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-819ce366.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-d55d3dac.js";
3
3
  import "@vitessce/vit-s";
4
4
  import "react";
5
5
  var LercDecode = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-819ce366.js";
1
+ import { B as BaseDecoder } from "./index-d55d3dac.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-819ce366.js";
1
+ import { B as BaseDecoder } from "./index-d55d3dac.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-819ce366.js";
1
+ import { B as BaseDecoder } from "./index-d55d3dac.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-819ce366.js";
1
+ import { B as BaseDecoder } from "./index-d55d3dac.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class WebImageDecoder extends BaseDecoder {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitessce/json",
3
- "version": "3.4.12",
4
- "author": "Gehlenborg Lab",
3
+ "version": "3.5.0",
4
+ "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
7
7
  "type": "git",
@@ -20,15 +20,15 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "zarrita": "0.4.0-next.16",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/constants-internal": "3.4.12",
24
- "@vitessce/gl": "3.4.12",
25
- "@vitessce/schemas": "3.4.12",
26
- "@vitessce/sets-utils": "3.4.12",
27
- "@vitessce/spatial-utils": "3.4.12",
28
- "@vitessce/utils": "3.4.12",
29
- "@vitessce/vit-s": "3.4.12",
30
- "@vitessce/zarr-utils": "3.4.12",
31
- "@vitessce/config": "3.4.12"
23
+ "@vitessce/constants-internal": "3.5.0",
24
+ "@vitessce/gl": "3.5.0",
25
+ "@vitessce/schemas": "3.5.0",
26
+ "@vitessce/sets-utils": "3.5.0",
27
+ "@vitessce/spatial-utils": "3.5.0",
28
+ "@vitessce/utils": "3.5.0",
29
+ "@vitessce/vit-s": "3.5.0",
30
+ "@vitessce/zarr-utils": "3.5.0",
31
+ "@vitessce/config": "3.5.0"
32
32
  },
33
33
  "scripts": {
34
34
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",