@vitessce/scatterplot-embedding 3.3.5 → 3.3.7

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-84e77b55.js";
2
+ import { B as BaseDecoder } from "./index-dd2f112e.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -4458,8 +4458,9 @@ function getNextScope(prevScopes) {
4458
4458
  }
4459
4459
  const DEFAULT_DARK_COLOR = [50, 50, 50];
4460
4460
  const DEFAULT_LIGHT_COLOR$3 = [200, 200, 200];
4461
+ const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
4461
4462
  function getDefaultColor(theme) {
4462
- return theme === "dark" ? DEFAULT_DARK_COLOR : DEFAULT_LIGHT_COLOR$3;
4463
+ return theme === "dark" ? DEFAULT_DARK_COLOR : theme === "light" ? DEFAULT_LIGHT_COLOR$3 : DEFAULT_LIGHT2_COLOR;
4463
4464
  }
4464
4465
  const PALETTE = [
4465
4466
  [68, 119, 170],
@@ -11023,11 +11024,14 @@ const DataType$2 = {
11023
11024
  GENOMIC_PROFILES: "genomic-profiles",
11024
11025
  OBS_SPOTS: "obsSpots",
11025
11026
  OBS_POINTS: "obsPoints",
11026
- OBS_LOCATIONS: "obsLocations"
11027
+ OBS_LOCATIONS: "obsLocations",
11028
+ SAMPLE_SETS: "sampleSets",
11029
+ SAMPLE_EDGES: "sampleEdges"
11027
11030
  };
11028
11031
  const FileType$1 = {
11029
11032
  // Joint file types
11030
11033
  ANNDATA_ZARR: "anndata.zarr",
11034
+ ANNDATA_ZARR_ZIP: "anndata.zarr.zip",
11031
11035
  SPATIALDATA_ZARR: "spatialdata.zarr",
11032
11036
  // Atomic file types
11033
11037
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
@@ -11040,6 +11044,7 @@ const FileType$1 = {
11040
11044
  OBS_SEGMENTATIONS_JSON: "obsSegmentations.json",
11041
11045
  OBS_SETS_CSV: "obsSets.csv",
11042
11046
  OBS_SETS_JSON: "obsSets.json",
11047
+ SAMPLE_SETS_CSV: "sampleSets.csv",
11043
11048
  // OME-Zarr
11044
11049
  IMAGE_OME_ZARR: "image.ome-zarr",
11045
11050
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
@@ -11054,6 +11059,19 @@ const FileType$1 = {
11054
11059
  OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
11055
11060
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
11056
11061
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
11062
+ SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
11063
+ // AnnData - zipped
11064
+ OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
11065
+ OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
11066
+ OBS_SETS_ANNDATA_ZARR_ZIP: "obsSets.anndata.zarr.zip",
11067
+ OBS_EMBEDDING_ANNDATA_ZARR_ZIP: "obsEmbedding.anndata.zarr.zip",
11068
+ OBS_SPOTS_ANNDATA_ZARR_ZIP: "obsSpots.anndata.zarr.zip",
11069
+ OBS_POINTS_ANNDATA_ZARR_ZIP: "obsPoints.anndata.zarr.zip",
11070
+ OBS_LOCATIONS_ANNDATA_ZARR_ZIP: "obsLocations.anndata.zarr.zip",
11071
+ OBS_SEGMENTATIONS_ANNDATA_ZARR_ZIP: "obsSegmentations.anndata.zarr.zip",
11072
+ OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
11073
+ FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
11074
+ SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
11057
11075
  // SpatialData
11058
11076
  IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
11059
11077
  LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
@@ -11061,6 +11079,7 @@ const FileType$1 = {
11061
11079
  OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
11062
11080
  OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
11063
11081
  OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
11082
+ FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
11064
11083
  // TODO:
11065
11084
  // OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
11066
11085
  // OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
@@ -11217,7 +11236,10 @@ const CoordinationType$1 = {
11217
11236
  LEGEND_VISIBLE: "legendVisible",
11218
11237
  SPATIAL_CHANNEL_LABELS_VISIBLE: "spatialChannelLabelsVisible",
11219
11238
  SPATIAL_CHANNEL_LABELS_ORIENTATION: "spatialChannelLabelsOrientation",
11220
- SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize"
11239
+ SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize",
11240
+ // Multi-sample / comparative
11241
+ SAMPLE_TYPE: "sampleType",
11242
+ SAMPLE_SET_SELECTION: "sampleSetSelection"
11221
11243
  };
11222
11244
  const COMPONENT_COORDINATION_TYPES = {
11223
11245
  [ViewType$1.SCATTERPLOT]: [
@@ -11465,7 +11487,9 @@ const COMPONENT_COORDINATION_TYPES = {
11465
11487
  CoordinationType$1.OBS_SET_SELECTION,
11466
11488
  CoordinationType$1.OBS_SET_HIGHLIGHT,
11467
11489
  CoordinationType$1.OBS_SET_COLOR,
11468
- CoordinationType$1.ADDITIONAL_OBS_SETS
11490
+ CoordinationType$1.ADDITIONAL_OBS_SETS,
11491
+ CoordinationType$1.SAMPLE_TYPE,
11492
+ CoordinationType$1.SAMPLE_SET_SELECTION
11469
11493
  ],
11470
11494
  [ViewType$1.FEATURE_VALUE_HISTOGRAM]: [
11471
11495
  CoordinationType$1.DATASET,
@@ -11944,6 +11968,17 @@ z.object({
11944
11968
  scoreColumn: z.string().optional()
11945
11969
  }))
11946
11970
  });
11971
+ z.object({
11972
+ sampleIndex: z.string(),
11973
+ sampleSets: z.array(z.object({
11974
+ name: z.string(),
11975
+ column: z.union([
11976
+ z.string(),
11977
+ z.array(z.string())
11978
+ ]),
11979
+ scoreColumn: z.string().optional()
11980
+ }))
11981
+ });
11947
11982
  z.object({
11948
11983
  obsLabels: z.union([
11949
11984
  annDataObsLabels,
@@ -121316,16 +121351,16 @@ function addDecoder(cases, importFn) {
121316
121351
  }
121317
121352
  cases.forEach((c2) => registry$1.set(c2, importFn));
121318
121353
  }
121319
- addDecoder([void 0, 1], () => import("./raw-0c07377d.js").then((m2) => m2.default));
121320
- addDecoder(5, () => import("./lzw-c9ffecd4.js").then((m2) => m2.default));
121354
+ addDecoder([void 0, 1], () => import("./raw-4cbe3f30.js").then((m2) => m2.default));
121355
+ addDecoder(5, () => import("./lzw-26eb4bbc.js").then((m2) => m2.default));
121321
121356
  addDecoder(6, () => {
121322
121357
  throw new Error("old style JPEG compression is not supported.");
121323
121358
  });
121324
- addDecoder(7, () => import("./jpeg-be45146d.js").then((m2) => m2.default));
121325
- addDecoder([8, 32946], () => import("./deflate-ace56a0e.js").then((m2) => m2.default));
121326
- addDecoder(32773, () => import("./packbits-53dbd890.js").then((m2) => m2.default));
121327
- addDecoder(34887, () => import("./lerc-9cd3178c.js").then((m2) => m2.default));
121328
- addDecoder(50001, () => import("./webimage-d32ef5d0.js").then((m2) => m2.default));
121359
+ addDecoder(7, () => import("./jpeg-090adc7b.js").then((m2) => m2.default));
121360
+ addDecoder([8, 32946], () => import("./deflate-9b4303c6.js").then((m2) => m2.default));
121361
+ addDecoder(32773, () => import("./packbits-1f898d8f.js").then((m2) => m2.default));
121362
+ addDecoder(34887, () => import("./lerc-d85a1773.js").then((m2) => m2.default));
121363
+ addDecoder(50001, () => import("./webimage-9ad531da.js").then((m2) => m2.default));
121329
121364
  function decodeRowAcc(row, stride) {
121330
121365
  let length2 = row.length - stride;
121331
121366
  let offset5 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E } from "./index-84e77b55.js";
1
+ import { E } from "./index-dd2f112e.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-84e77b55.js";
1
+ import { B as BaseDecoder } from "./index-dd2f112e.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-84e77b55.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-dd2f112e.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-84e77b55.js";
1
+ import { B as BaseDecoder } from "./index-dd2f112e.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-84e77b55.js";
1
+ import { B as BaseDecoder } from "./index-dd2f112e.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-84e77b55.js";
1
+ import { B as BaseDecoder } from "./index-dd2f112e.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-84e77b55.js";
1
+ import { B as BaseDecoder } from "./index-dd2f112e.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-embedding",
3
- "version": "3.3.5",
3
+ "version": "3.3.7",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,12 +20,12 @@
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.3.5",
24
- "@vitessce/scatterplot": "3.3.5",
25
- "@vitessce/legend": "3.3.5",
26
- "@vitessce/sets-utils": "3.3.5",
27
- "@vitessce/utils": "3.3.5",
28
- "@vitessce/vit-s": "3.3.5"
23
+ "@vitessce/legend": "3.3.7",
24
+ "@vitessce/constants-internal": "3.3.7",
25
+ "@vitessce/sets-utils": "3.3.7",
26
+ "@vitessce/utils": "3.3.7",
27
+ "@vitessce/scatterplot": "3.3.7",
28
+ "@vitessce/vit-s": "3.3.7"
29
29
  },
30
30
  "devDependencies": {
31
31
  "react": "^18.0.0",