@vitessce/sets-utils 3.3.4 → 3.3.6

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2426,9 +2426,6 @@ var pluralizeExports = pluralize.exports;
2426
2426
  const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
2427
2427
  plur.addPluralRule("glomerulus", "glomeruli");
2428
2428
  plur.addPluralRule("interstitium", "interstitia");
2429
- function fromEntries(iterable) {
2430
- return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
2431
- }
2432
2429
  function capitalize(word) {
2433
2430
  return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
2434
2431
  }
@@ -2463,8 +2460,9 @@ function getNextScope(prevScopes) {
2463
2460
  }
2464
2461
  const DEFAULT_DARK_COLOR = [50, 50, 50];
2465
2462
  const DEFAULT_LIGHT_COLOR = [200, 200, 200];
2463
+ const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
2466
2464
  function getDefaultColor(theme) {
2467
- return theme === "dark" ? DEFAULT_DARK_COLOR : DEFAULT_LIGHT_COLOR;
2465
+ return theme === "dark" ? DEFAULT_DARK_COLOR : theme === "light" ? DEFAULT_LIGHT_COLOR : DEFAULT_LIGHT2_COLOR;
2468
2466
  }
2469
2467
  const PALETTE = [
2470
2468
  [68, 119, 170],
@@ -9050,6 +9048,7 @@ const FileType$1 = {
9050
9048
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
9051
9049
  // AnnData
9052
9050
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
9051
+ OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
9053
9052
  OBS_SETS_ANNDATA_ZARR: "obsSets.anndata.zarr",
9054
9053
  OBS_EMBEDDING_ANNDATA_ZARR: "obsEmbedding.anndata.zarr",
9055
9054
  OBS_SPOTS_ANNDATA_ZARR: "obsSpots.anndata.zarr",
@@ -9406,7 +9405,7 @@ function configSchemaToVersion(zodSchema) {
9406
9405
  return zodSchema.shape.version._def.value;
9407
9406
  }
9408
9407
  ({
9409
- ...fromEntries(SCHEMA_HANDLERS.map(([zodSchema]) => {
9408
+ ...Object.fromEntries(SCHEMA_HANDLERS.map(([zodSchema]) => {
9410
9409
  const version = configSchemaToVersion(zodSchema);
9411
9410
  return [version, zodSchema];
9412
9411
  })),
@@ -9482,6 +9481,9 @@ const annDataObsSets = z.array(z.object({
9482
9481
  ]),
9483
9482
  scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
9484
9483
  }));
9484
+ z.array(z.object({
9485
+ path: z.string()
9486
+ }));
9485
9487
  const annDataObsSpots = annDataObsm;
9486
9488
  const annDataObsPoints = annDataObsm;
9487
9489
  const annDataObsLocations = annDataObsm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/sets-utils",
3
- "version": "3.3.4",
3
+ "version": "3.3.6",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -25,8 +25,8 @@
25
25
  "lodash-es": "^4.17.21",
26
26
  "tinycolor2": "^1.4.1",
27
27
  "uuid": "^9.0.0",
28
- "@vitessce/schemas": "3.3.4",
29
- "@vitessce/utils": "3.3.4"
28
+ "@vitessce/schemas": "3.3.6",
29
+ "@vitessce/utils": "3.3.6"
30
30
  },
31
31
  "scripts": {
32
32
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",