@vitessce/scatterplot-embedding 3.6.13 → 3.6.14
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.
- package/dist/{deflate-D8XXpIHo.js → deflate-D0elCq7r.js} +1 -1
- package/dist/{index-BWwrctZk.js → index-DX6lR9Aw.js} +27 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-Cr4SB03o.js → jpeg-CMxusqDo.js} +1 -1
- package/dist/{lerc-DPVW-T-N.js → lerc-B-TFCcX_.js} +1 -1
- package/dist/{lzw-BUQlEYLS.js → lzw-C54W6l8V.js} +1 -1
- package/dist/{packbits-BdoLIRfv.js → packbits-x7cn6KOF.js} +1 -1
- package/dist/{raw-C_kh447x.js → raw-5P3ZwohC.js} +1 -1
- package/dist/{webimage-CjiYMJXR.js → webimage-DvDxXJLL.js} +1 -1
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-
|
|
2
|
+
import { B as BaseDecoder } from "./index-DX6lR9Aw.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -9687,6 +9687,7 @@ const FileType$1 = {
|
|
|
9687
9687
|
OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
|
|
9688
9688
|
FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
|
|
9689
9689
|
OBS_POINTS_SPATIALDATA_ZARR: "obsPoints.spatialdata.zarr",
|
|
9690
|
+
OBS_EMBEDDING_SPATIALDATA_ZARR: "obsEmbedding.spatialdata.zarr",
|
|
9690
9691
|
// SpatialData - zipped
|
|
9691
9692
|
IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
|
|
9692
9693
|
LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
|
|
@@ -9696,6 +9697,7 @@ const FileType$1 = {
|
|
|
9696
9697
|
OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
|
|
9697
9698
|
FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
|
|
9698
9699
|
OBS_POINTS_SPATIALDATA_ZARR_ZIP: "obsPoints.spatialdata.zarr.zip",
|
|
9700
|
+
OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP: "obsEmbedding.spatialdata.zarr.zip",
|
|
9699
9701
|
// MuData
|
|
9700
9702
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
9701
9703
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
@@ -9946,6 +9948,7 @@ const ViewHelpMapping = {
|
|
|
9946
9948
|
[FileType$1.OBS_SETS_SPATIALDATA_ZARR]: DataType$2.OBS_SETS,
|
|
9947
9949
|
[FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: DataType$2.FEATURE_LABELS,
|
|
9948
9950
|
[FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: DataType$2.OBS_POINTS,
|
|
9951
|
+
[FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: DataType$2.OBS_EMBEDDING,
|
|
9949
9952
|
// For new file types to support old file types
|
|
9950
9953
|
[FileType$1.OBS_EMBEDDING_CELLS_JSON]: DataType$2.OBS_EMBEDDING,
|
|
9951
9954
|
[FileType$1.OBS_LOCATIONS_CELLS_JSON]: DataType$2.OBS_LOCATIONS,
|
|
@@ -10122,6 +10125,9 @@ const ViewHelpMapping = {
|
|
|
10122
10125
|
},
|
|
10123
10126
|
[FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: {
|
|
10124
10127
|
zip: FileType$1.OBS_POINTS_SPATIALDATA_ZARR_ZIP
|
|
10128
|
+
},
|
|
10129
|
+
[FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: {
|
|
10130
|
+
zip: FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP
|
|
10125
10131
|
}
|
|
10126
10132
|
});
|
|
10127
10133
|
[
|
|
@@ -11169,6 +11175,16 @@ const obsSetsSpatialdataSchema = z.object({
|
|
|
11169
11175
|
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
11170
11176
|
obsSets: annDataObsSetsArr
|
|
11171
11177
|
});
|
|
11178
|
+
annDataObsEmbedding.extend({
|
|
11179
|
+
// We extend anndataObsEmbedding which already has properties like `dims` and `path`.
|
|
11180
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
11181
|
+
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values.")
|
|
11182
|
+
});
|
|
11183
|
+
const obsEmbeddingSpatialdataSchemaConvenience = z.union([
|
|
11184
|
+
annDataObsEmbedding,
|
|
11185
|
+
// For convenience, allow an array of items with `embeddingType` properties.
|
|
11186
|
+
z.array(annDataConvenienceObsEmbeddingItem)
|
|
11187
|
+
]);
|
|
11172
11188
|
z.object({
|
|
11173
11189
|
targetX: z.number(),
|
|
11174
11190
|
targetY: z.number(),
|
|
@@ -11277,9 +11293,10 @@ z.object({
|
|
|
11277
11293
|
// TODO: obsPoints
|
|
11278
11294
|
// TODO: obsLocations
|
|
11279
11295
|
obsSets: obsSetsSpatialdataSchema,
|
|
11280
|
-
|
|
11296
|
+
obsEmbedding: obsEmbeddingSpatialdataSchemaConvenience,
|
|
11281
11297
|
// TODO: obsLabels
|
|
11282
11298
|
// TODO: featureLabels
|
|
11299
|
+
// TODO: allow specifying tablePath and region at the top-level here.
|
|
11283
11300
|
coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
|
|
11284
11301
|
}).partial();
|
|
11285
11302
|
z.object({
|
|
@@ -123306,22 +123323,22 @@ function addDecoder(cases, importFn) {
|
|
|
123306
123323
|
}
|
|
123307
123324
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
123308
123325
|
}
|
|
123309
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
123310
|
-
addDecoder(5, () => import("./lzw-
|
|
123326
|
+
addDecoder([void 0, 1], () => import("./raw-5P3ZwohC.js").then((m2) => m2.default));
|
|
123327
|
+
addDecoder(5, () => import("./lzw-C54W6l8V.js").then((m2) => m2.default));
|
|
123311
123328
|
addDecoder(6, () => {
|
|
123312
123329
|
throw new Error("old style JPEG compression is not supported.");
|
|
123313
123330
|
});
|
|
123314
|
-
addDecoder(7, () => import("./jpeg-
|
|
123315
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
123316
|
-
addDecoder(32773, () => import("./packbits-
|
|
123331
|
+
addDecoder(7, () => import("./jpeg-CMxusqDo.js").then((m2) => m2.default));
|
|
123332
|
+
addDecoder([8, 32946], () => import("./deflate-D0elCq7r.js").then((m2) => m2.default));
|
|
123333
|
+
addDecoder(32773, () => import("./packbits-x7cn6KOF.js").then((m2) => m2.default));
|
|
123317
123334
|
addDecoder(
|
|
123318
123335
|
34887,
|
|
123319
|
-
() => import("./lerc-
|
|
123336
|
+
() => import("./lerc-B-TFCcX_.js").then(async (m2) => {
|
|
123320
123337
|
await m2.zstd.init();
|
|
123321
123338
|
return m2;
|
|
123322
123339
|
}).then((m2) => m2.default)
|
|
123323
123340
|
);
|
|
123324
|
-
addDecoder(50001, () => import("./webimage-
|
|
123341
|
+
addDecoder(50001, () => import("./webimage-DvDxXJLL.js").then((m2) => m2.default));
|
|
123325
123342
|
function decodeRowAcc(row, stride) {
|
|
123326
123343
|
let length2 = row.length - stride;
|
|
123327
123344
|
let offset2 = 0;
|
|
@@ -153226,6 +153243,8 @@ function Legend(props) {
|
|
|
153226
153243
|
featureSelectionLabelRawStr = "Sum of features";
|
|
153227
153244
|
} else if (featureAggregationStrategy === "mean") {
|
|
153228
153245
|
featureSelectionLabelRawStr = "Mean of features";
|
|
153246
|
+
} else {
|
|
153247
|
+
featureSelectionLabelRawStr = featureSelectionLabelRaw == null ? void 0 : featureSelectionLabelRaw[0];
|
|
153229
153248
|
}
|
|
153230
153249
|
const combinedMissing = combineMissings(missing, featureAggregationStrategy);
|
|
153231
153250
|
const featureSelectionLabel = combinedMissing ? `${featureSelectionLabelRawStr} (${Math.round(combinedMissing * 100)}% NaN)` : featureSelectionLabelRawStr;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-DX6lR9Aw.js";
|
|
3
3
|
const LercParameters = {
|
|
4
4
|
AddCompression: 1
|
|
5
5
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/scatterplot-embedding",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.14",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"react-aria": "^3.28.0",
|
|
22
22
|
"@turf/circle": "^7.2.0",
|
|
23
|
-
"@vitessce/styles": "3.6.
|
|
24
|
-
"@vitessce/constants-internal": "3.6.
|
|
25
|
-
"@vitessce/legend": "3.6.
|
|
26
|
-
"@vitessce/scatterplot": "3.6.
|
|
27
|
-
"@vitessce/sets-utils": "3.6.
|
|
28
|
-
"@vitessce/utils": "3.6.
|
|
29
|
-
"@vitessce/vit-s": "3.6.
|
|
23
|
+
"@vitessce/styles": "3.6.14",
|
|
24
|
+
"@vitessce/constants-internal": "3.6.14",
|
|
25
|
+
"@vitessce/legend": "3.6.14",
|
|
26
|
+
"@vitessce/scatterplot": "3.6.14",
|
|
27
|
+
"@vitessce/sets-utils": "3.6.14",
|
|
28
|
+
"@vitessce/utils": "3.6.14",
|
|
29
|
+
"@vitessce/vit-s": "3.6.14"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"react": "^18.0.0",
|