@vitessce/config 3.3.4 → 3.3.5
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/index.js +3 -5
- package/dist-tsc/VitessceConfig.js +3 -3
- package/package.json +3 -3
- package/src/VitessceConfig.js +3 -3
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ const FileType = {
|
|
|
18
18
|
OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
|
|
19
19
|
// AnnData
|
|
20
20
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
|
|
21
|
+
OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
|
|
21
22
|
OBS_SETS_ANNDATA_ZARR: "obsSets.anndata.zarr",
|
|
22
23
|
OBS_EMBEDDING_ANNDATA_ZARR: "obsEmbedding.anndata.zarr",
|
|
23
24
|
OBS_SPOTS_ANNDATA_ZARR: "obsSpots.anndata.zarr",
|
|
@@ -552,9 +553,6 @@ var pluralizeExports = pluralize.exports;
|
|
|
552
553
|
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
553
554
|
plur.addPluralRule("glomerulus", "glomeruli");
|
|
554
555
|
plur.addPluralRule("interstitium", "interstitia");
|
|
555
|
-
function fromEntries(iterable) {
|
|
556
|
-
return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
|
|
557
|
-
}
|
|
558
556
|
function getNextScope(prevScopes) {
|
|
559
557
|
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
560
558
|
const nextCharIndices = [0];
|
|
@@ -1300,10 +1298,10 @@ class VitessceConfig {
|
|
|
1300
1298
|
return {
|
|
1301
1299
|
...this.config,
|
|
1302
1300
|
datasets: this.config.datasets.map((d) => d.toJSON()),
|
|
1303
|
-
coordinationSpace: fromEntries(
|
|
1301
|
+
coordinationSpace: Object.fromEntries(
|
|
1304
1302
|
Object.entries(this.config.coordinationSpace).map(([cType, cScopes]) => [
|
|
1305
1303
|
cType,
|
|
1306
|
-
fromEntries(
|
|
1304
|
+
Object.fromEntries(
|
|
1307
1305
|
Object.entries(cScopes).map(([cScopeName, cScope]) => [
|
|
1308
1306
|
cScopeName,
|
|
1309
1307
|
cScope.cValue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
2
2
|
import { CoordinationType } from '@vitessce/constants-internal';
|
|
3
|
-
import {
|
|
3
|
+
import { getNextScope, createPrefixedGetNextScopeNumeric } from '@vitessce/utils';
|
|
4
4
|
/**
|
|
5
5
|
* Class representing a file within a Vitessce config dataset.
|
|
6
6
|
*/
|
|
@@ -882,9 +882,9 @@ export class VitessceConfig {
|
|
|
882
882
|
return {
|
|
883
883
|
...this.config,
|
|
884
884
|
datasets: this.config.datasets.map(d => d.toJSON()),
|
|
885
|
-
coordinationSpace: fromEntries(Object.entries(this.config.coordinationSpace).map(([cType, cScopes]) => ([
|
|
885
|
+
coordinationSpace: Object.fromEntries(Object.entries(this.config.coordinationSpace).map(([cType, cScopes]) => ([
|
|
886
886
|
cType,
|
|
887
|
-
fromEntries(Object.entries(cScopes).map(([cScopeName, cScope]) => ([
|
|
887
|
+
Object.fromEntries(Object.entries(cScopes).map(([cScopeName, cScope]) => ([
|
|
888
888
|
cScopeName,
|
|
889
889
|
cScope.cValue,
|
|
890
890
|
]))),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/config",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.5",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"dist-tsc"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@vitessce/
|
|
20
|
-
"@vitessce/
|
|
19
|
+
"@vitessce/utils": "3.3.5",
|
|
20
|
+
"@vitessce/constants-internal": "3.3.5"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"bundle": "pnpm exec vite build -c ../../scripts/vite.config.js",
|
package/src/VitessceConfig.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
2
2
|
import { CoordinationType } from '@vitessce/constants-internal';
|
|
3
|
-
import {
|
|
3
|
+
import { getNextScope, createPrefixedGetNextScopeNumeric } from '@vitessce/utils';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Class representing a file within a Vitessce config dataset.
|
|
@@ -954,10 +954,10 @@ export class VitessceConfig {
|
|
|
954
954
|
return {
|
|
955
955
|
...this.config,
|
|
956
956
|
datasets: this.config.datasets.map(d => d.toJSON()),
|
|
957
|
-
coordinationSpace: fromEntries(
|
|
957
|
+
coordinationSpace: Object.fromEntries(
|
|
958
958
|
Object.entries(this.config.coordinationSpace).map(([cType, cScopes]) => ([
|
|
959
959
|
cType,
|
|
960
|
-
fromEntries(
|
|
960
|
+
Object.fromEntries(
|
|
961
961
|
Object.entries(cScopes).map(([cScopeName, cScope]) => ([
|
|
962
962
|
cScopeName,
|
|
963
963
|
cScope.cValue,
|