@vitessce/vit-s 3.8.13 → 3.9.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.
- package/dist/index.js +37 -3
- package/dist-tsc/data-hooks-multilevel.d.ts +9 -0
- package/dist-tsc/data-hooks-multilevel.d.ts.map +1 -1
- package/dist-tsc/data-hooks-multilevel.js +23 -0
- package/dist-tsc/index.d.ts +1 -1
- package/dist-tsc/index.js +1 -1
- package/dist-tsc/state/hooks.js +1 -1
- package/package.json +12 -12
- package/src/data-hooks-multilevel.js +33 -0
- package/src/index.js +1 -0
- package/src/state/hooks.js +1 -1
package/dist/index.js
CHANGED
|
@@ -15989,6 +15989,7 @@ List.propTypes = {
|
|
|
15989
15989
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
15990
15990
|
};
|
|
15991
15991
|
const listItemTextClasses = generateUtilityClasses("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
15992
|
+
const listItemIconClasses = generateUtilityClasses("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
|
|
15992
15993
|
function getScrollbarSize(win = window) {
|
|
15993
15994
|
const documentWidth = win.document.documentElement.clientWidth;
|
|
15994
15995
|
return win.innerWidth - documentWidth;
|
|
@@ -16237,7 +16238,6 @@ MenuList.propTypes = {
|
|
|
16237
16238
|
variant: PropTypes.oneOf(["menu", "selectedMenu"])
|
|
16238
16239
|
};
|
|
16239
16240
|
const dividerClasses = generateUtilityClasses("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
|
|
16240
|
-
const listItemIconClasses = generateUtilityClasses("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
|
|
16241
16241
|
function getMenuItemUtilityClass(slot) {
|
|
16242
16242
|
return generateUtilityClass("MuiMenuItem", slot);
|
|
16243
16243
|
}
|
|
@@ -31258,6 +31258,7 @@ const CoordinationType$1 = {
|
|
|
31258
31258
|
OBS_SET_HIGHLIGHT: "obsSetHighlight",
|
|
31259
31259
|
OBS_SET_EXPANSION: "obsSetExpansion",
|
|
31260
31260
|
OBS_SET_COLOR: "obsSetColor",
|
|
31261
|
+
FEATURE_COLOR: "featureColor",
|
|
31261
31262
|
FEATURE_HIGHLIGHT: "featureHighlight",
|
|
31262
31263
|
FEATURE_SELECTION: "featureSelection",
|
|
31263
31264
|
FEATURE_SET_SELECTION: "featureSetSelection",
|
|
@@ -31837,6 +31838,8 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
31837
31838
|
CoordinationType$1.OBS_SET_FILTER,
|
|
31838
31839
|
CoordinationType$1.OBS_SET_HIGHLIGHT,
|
|
31839
31840
|
CoordinationType$1.OBS_SET_COLOR,
|
|
31841
|
+
CoordinationType$1.FEATURE_COLOR,
|
|
31842
|
+
CoordinationType$1.FEATURE_FILTER_MODE,
|
|
31840
31843
|
CoordinationType$1.FEATURE_HIGHLIGHT,
|
|
31841
31844
|
CoordinationType$1.FEATURE_SELECTION,
|
|
31842
31845
|
CoordinationType$1.FEATURE_VALUE_COLORMAP,
|
|
@@ -32051,6 +32054,8 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
32051
32054
|
CoordinationType$1.SPATIAL_SPOT_STROKE_WIDTH,
|
|
32052
32055
|
CoordinationType$1.SPATIAL_LAYER_COLOR,
|
|
32053
32056
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
32057
|
+
CoordinationType$1.FEATURE_COLOR,
|
|
32058
|
+
CoordinationType$1.FEATURE_FILTER_MODE,
|
|
32054
32059
|
CoordinationType$1.FEATURE_VALUE_COLORMAP,
|
|
32055
32060
|
CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
|
|
32056
32061
|
CoordinationType$1.FEATURE_SELECTION,
|
|
@@ -32270,7 +32275,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
32270
32275
|
CoordinationType$1.HIERARCHY_LEVELS
|
|
32271
32276
|
]
|
|
32272
32277
|
});
|
|
32273
|
-
const version = "3.
|
|
32278
|
+
const version = "3.9.0";
|
|
32274
32279
|
const META_VERSION = {
|
|
32275
32280
|
version
|
|
32276
32281
|
};
|
|
@@ -37295,7 +37300,7 @@ const AUXILIARY_COORDINATION_TYPES_MAP = {
|
|
|
37295
37300
|
spatialImageLayer: ["imageLayerCallbacks", "areLoadingImageChannels"],
|
|
37296
37301
|
spatialSegmentationLayer: ["segmentationLayerCallbacks", "areLoadingSegmentationChannels"],
|
|
37297
37302
|
spatialAcceleratedVolumeLoadingProgress: ["volumeLoadingProgress"],
|
|
37298
|
-
|
|
37303
|
+
spatialTiledPointsLoadingProgress: ["tiledPointsLoadingProgress"]
|
|
37299
37304
|
};
|
|
37300
37305
|
const mapCoordinationScopes = (coordinationScopes) => {
|
|
37301
37306
|
const newCoordinationScopes = {};
|
|
@@ -47148,6 +47153,34 @@ function usePointMultiObsLabels(coordinationScopes, coordinationScopesBy, loader
|
|
|
47148
47153
|
);
|
|
47149
47154
|
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
47150
47155
|
}
|
|
47156
|
+
function usePointMultiObsFeatureMatrixIndices(coordinationScopes, coordinationScopesBy, loaders, dataset) {
|
|
47157
|
+
const obsFeatureMatrixCoordination = useComplexCoordination(
|
|
47158
|
+
[
|
|
47159
|
+
// We currently do not specify obsType or featureValueType here,
|
|
47160
|
+
// since for points we are only interested in the var table
|
|
47161
|
+
// to get the info about each feature (gene).
|
|
47162
|
+
CoordinationType$1.FEATURE_TYPE
|
|
47163
|
+
],
|
|
47164
|
+
coordinationScopes,
|
|
47165
|
+
coordinationScopesBy,
|
|
47166
|
+
CoordinationType$1.POINT_LAYER
|
|
47167
|
+
);
|
|
47168
|
+
const matchOnObj = useMemo(
|
|
47169
|
+
() => obsFeatureMatrixCoordination[0],
|
|
47170
|
+
// imageCoordination reference changes each render,
|
|
47171
|
+
// use coordinationScopes and coordinationScopesBy which are
|
|
47172
|
+
// indirect dependencies here.
|
|
47173
|
+
[coordinationScopes, coordinationScopesBy]
|
|
47174
|
+
);
|
|
47175
|
+
const [indicesData, indicesDataStatus, indicesDataErrors] = useObsFeatureMatrixIndicesMultiLevel(
|
|
47176
|
+
loaders,
|
|
47177
|
+
dataset,
|
|
47178
|
+
false,
|
|
47179
|
+
matchOnObj,
|
|
47180
|
+
1
|
|
47181
|
+
);
|
|
47182
|
+
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
47183
|
+
}
|
|
47151
47184
|
function useSegmentationMultiObsLocations(coordinationScopes, coordinationScopesBy, loaders, dataset) {
|
|
47152
47185
|
const obsTypeCoordination = useComplexCoordinationSecondary(
|
|
47153
47186
|
[
|
|
@@ -47766,6 +47799,7 @@ export {
|
|
|
47766
47799
|
useObsSpotsData,
|
|
47767
47800
|
usePageModeView,
|
|
47768
47801
|
useStyles as usePlotOptionsStyles,
|
|
47802
|
+
usePointMultiObsFeatureMatrixIndices,
|
|
47769
47803
|
usePointMultiObsLabels,
|
|
47770
47804
|
useReady,
|
|
47771
47805
|
useRemoveImageChannelInMetaCoordinationScopes,
|
|
@@ -43,6 +43,15 @@ export function useSpotMultiObsFeatureMatrixIndices(coordinationScopes: object,
|
|
|
43
43
|
* @returns {array} [data, status, errors]
|
|
44
44
|
*/
|
|
45
45
|
export function usePointMultiObsLabels(coordinationScopes: object, coordinationScopesBy: object, loaders: object, dataset: string): array;
|
|
46
|
+
/**
|
|
47
|
+
* Wrapper around useObsFeatureMatrixIndicesMultiLevel.
|
|
48
|
+
* @param {object} coordinationScopes
|
|
49
|
+
* @param {object} coordinationScopesBy
|
|
50
|
+
* @param {object} loaders
|
|
51
|
+
* @param {string} dataset
|
|
52
|
+
* @returns {array} [indicesData, status, errors]
|
|
53
|
+
*/
|
|
54
|
+
export function usePointMultiObsFeatureMatrixIndices(coordinationScopes: object, coordinationScopesBy: object, loaders: object, dataset: string): array;
|
|
46
55
|
/**
|
|
47
56
|
* Wrapper around useObsLocationsMultiLevel.
|
|
48
57
|
* @param {object} coordinationScopes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-hooks-multilevel.d.ts","sourceRoot":"","sources":["../src/data-hooks-multilevel.js"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,yEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAsDjB;AAED;;;;;;;GAOG;AACH,iEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CA8CjB;AAED;;;;;;;GAOG;AACH,gFANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAyBjB;AAED;;;;;;;GAOG;AACH,wEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAwBjB;AAED;;;;;;;GAOG;AACH,2DANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAuBjB;AAED;;;;;;;GAOG;AACH,qEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAuBjB;AAED;;;;;;;GAOG;AACH,gEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAuBjB"}
|
|
1
|
+
{"version":3,"file":"data-hooks-multilevel.d.ts","sourceRoot":"","sources":["../src/data-hooks-multilevel.js"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,yEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAsDjB;AAED;;;;;;;GAOG;AACH,iEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CA8CjB;AAED;;;;;;;GAOG;AACH,gFANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAyBjB;AAED;;;;;;;GAOG;AACH,wEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAwBjB;AAED;;;;;;;GAOG;AACH,2DANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAuBjB;AAED;;;;;;;GAOG;AACH,yEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAyBjB;AAED;;;;;;;GAOG;AACH,qEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAuBjB;AAED;;;;;;;GAOG;AACH,gEANW,MAAM,wBACN,MAAM,WACN,MAAM,WACN,MAAM,GACJ,KAAK,CAuBjB"}
|
|
@@ -141,6 +141,29 @@ export function usePointMultiObsLabels(coordinationScopes, coordinationScopesBy,
|
|
|
141
141
|
const [indicesData, indicesDataStatus, indicesDataErrors] = useObsLabelsMultiLevel(loaders, dataset, false, matchOnObj, 1);
|
|
142
142
|
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
143
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Wrapper around useObsFeatureMatrixIndicesMultiLevel.
|
|
146
|
+
* @param {object} coordinationScopes
|
|
147
|
+
* @param {object} coordinationScopesBy
|
|
148
|
+
* @param {object} loaders
|
|
149
|
+
* @param {string} dataset
|
|
150
|
+
* @returns {array} [indicesData, status, errors]
|
|
151
|
+
*/
|
|
152
|
+
export function usePointMultiObsFeatureMatrixIndices(coordinationScopes, coordinationScopesBy, loaders, dataset) {
|
|
153
|
+
const obsFeatureMatrixCoordination = useComplexCoordination([
|
|
154
|
+
// We currently do not specify obsType or featureValueType here,
|
|
155
|
+
// since for points we are only interested in the var table
|
|
156
|
+
// to get the info about each feature (gene).
|
|
157
|
+
CoordinationType.FEATURE_TYPE,
|
|
158
|
+
], coordinationScopes, coordinationScopesBy, CoordinationType.POINT_LAYER);
|
|
159
|
+
const matchOnObj = useMemo(() => obsFeatureMatrixCoordination[0],
|
|
160
|
+
// imageCoordination reference changes each render,
|
|
161
|
+
// use coordinationScopes and coordinationScopesBy which are
|
|
162
|
+
// indirect dependencies here.
|
|
163
|
+
[coordinationScopes, coordinationScopesBy]);
|
|
164
|
+
const [indicesData, indicesDataStatus, indicesDataErrors] = useObsFeatureMatrixIndicesMultiLevel(loaders, dataset, false, matchOnObj, 1);
|
|
165
|
+
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
166
|
+
}
|
|
144
167
|
/**
|
|
145
168
|
* Wrapper around useObsLocationsMultiLevel.
|
|
146
169
|
* @param {object} coordinationScopes
|
package/dist-tsc/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { createOnDrop } from "./on-drop.js";
|
|
|
9
9
|
export { useReady, useUrls, useVitessceContainer, useDeckCanvasSize, useUint8ObsFeatureMatrix, useUint8FeatureSelection, useExpressionValueGetter, useGetObsMembership, useGetObsInfo, useClosestVitessceContainerSize, useWindowDimensions, useGridItemSize, useExpandedFeatureLabelsMap, useColumnNameMapping } from "./hooks.js";
|
|
10
10
|
export { useCoordinationScopes, useCoordinationScopesBy, useInitialCoordination, useCoordination, useComplexCoordination, useComplexCoordinationSecondary, useMultiCoordinationScopes, useMultiCoordinationScopesNonNull, useMultiCoordinationScopesSecondary, useMultiCoordinationScopesSecondaryNonNull, useMultiCoordinationValues, useMultiDatasetCoordination, useDatasetUids, useLoaders, useMergeCoordination, useMatchingLoader, useViewConfigStore, useViewConfigStoreApi, useViewConfig, useSetViewConfig, useComponentHover, useSetComponentHover, useComponentViewInfo, useSetComponentViewInfo, useWarning, useSetWarning, useAuxiliaryCoordination, useComponentLayout, useRemoveImageChannelInMetaCoordinationScopes, useAddImageChannelInMetaCoordinationScopes } from "./state/hooks.js";
|
|
11
11
|
export { useDescription, useImageData, useObsSetsData, useObsEmbeddingData, useFeatureSelection, useObsFeatureMatrixIndices, useSampleSetsData, useSampleEdgesData, useMultiObsLabels, useMultiObsSpots, useMultiObsPoints, useSpotMultiObsSets, useSpotMultiFeatureLabels, useMultiObsSegmentations, useMultiImages, useObsSpotsData, useObsPointsData, useObsLocationsData, useObsSegmentationsData, useNeighborhoodsData, useObsLabelsData, useObsFeatureMatrixData, useFeatureLabelsData, useGenomicProfilesData, useComparisonMetadata, useFeatureStatsData, useFeatureSetStatsData, useObsSetStatsData } from "./data-hooks.js";
|
|
12
|
-
export { usePointMultiObsLabels, useSpotMultiFeatureSelection, useSpotMultiObsFeatureMatrixIndices, useSegmentationMultiFeatureSelection, useSegmentationMultiObsFeatureMatrixIndices, useSegmentationMultiObsLocations, useSegmentationMultiObsSets } from "./data-hooks-multilevel.js";
|
|
12
|
+
export { usePointMultiObsLabels, usePointMultiObsFeatureMatrixIndices, useSpotMultiFeatureSelection, useSpotMultiObsFeatureMatrixIndices, useSegmentationMultiFeatureSelection, useSegmentationMultiObsFeatureMatrixIndices, useSegmentationMultiObsLocations, useSegmentationMultiObsSets } from "./data-hooks-multilevel.js";
|
|
13
13
|
export { CellColorEncodingOption, OptionsContainer, OptionSelect, usePlotOptionsStyles } from "./shared-plot-options/index.js";
|
|
14
14
|
export { useAsyncFunction, usePageModeView } from "./contexts.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist-tsc/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { PopperMenu } from './shared-mui/components.js';
|
|
|
6
6
|
export { useReady, useUrls, useVitessceContainer, useDeckCanvasSize, useUint8ObsFeatureMatrix, useUint8FeatureSelection, useExpressionValueGetter, useGetObsMembership, useGetObsInfo, useClosestVitessceContainerSize, useWindowDimensions, useGridItemSize, useExpandedFeatureLabelsMap, useColumnNameMapping, } from './hooks.js';
|
|
7
7
|
export { useCoordinationScopes, useCoordinationScopesBy, useInitialCoordination, useCoordination, useComplexCoordination, useComplexCoordinationSecondary, useMultiCoordinationScopes, useMultiCoordinationScopesNonNull, useMultiCoordinationScopesSecondary, useMultiCoordinationScopesSecondaryNonNull, useMultiCoordinationValues, useMultiDatasetCoordination, useDatasetUids, useLoaders, useMergeCoordination, useMatchingLoader, useViewConfigStore, useViewConfigStoreApi, useViewConfig, useSetViewConfig, useComponentHover, useSetComponentHover, useComponentViewInfo, useSetComponentViewInfo, useWarning, useSetWarning, useAuxiliaryCoordination, useComponentLayout, useRemoveImageChannelInMetaCoordinationScopes, useAddImageChannelInMetaCoordinationScopes, } from './state/hooks.js';
|
|
8
8
|
export { useDescription, useImageData, useObsSetsData, useObsEmbeddingData, useFeatureSelection, useObsFeatureMatrixIndices, useSampleSetsData, useSampleEdgesData, useMultiObsLabels, useMultiObsSpots, useMultiObsPoints, useSpotMultiObsSets, useSpotMultiFeatureLabels, useMultiObsSegmentations, useMultiImages, useObsSpotsData, useObsPointsData, useObsLocationsData, useObsSegmentationsData, useNeighborhoodsData, useObsLabelsData, useObsFeatureMatrixData, useFeatureLabelsData, useGenomicProfilesData, useComparisonMetadata, useFeatureStatsData, useFeatureSetStatsData, useObsSetStatsData, } from './data-hooks.js';
|
|
9
|
-
export { usePointMultiObsLabels, useSpotMultiFeatureSelection, useSpotMultiObsFeatureMatrixIndices, useSegmentationMultiFeatureSelection, useSegmentationMultiObsFeatureMatrixIndices, useSegmentationMultiObsLocations, useSegmentationMultiObsSets, } from './data-hooks-multilevel.js';
|
|
9
|
+
export { usePointMultiObsLabels, usePointMultiObsFeatureMatrixIndices, useSpotMultiFeatureSelection, useSpotMultiObsFeatureMatrixIndices, useSegmentationMultiFeatureSelection, useSegmentationMultiObsFeatureMatrixIndices, useSegmentationMultiObsLocations, useSegmentationMultiObsSets, } from './data-hooks-multilevel.js';
|
|
10
10
|
export { useHasLoader, } from './data-hook-utils.js';
|
|
11
11
|
export { CellColorEncodingOption, OptionsContainer, OptionSelect, usePlotOptionsStyles, } from './shared-plot-options/index.js';
|
|
12
12
|
export { logConfig } from './view-config-utils.js';
|
package/dist-tsc/state/hooks.js
CHANGED
|
@@ -862,7 +862,7 @@ const AUXILIARY_COORDINATION_TYPES_MAP = {
|
|
|
862
862
|
spatialImageLayer: ['imageLayerCallbacks', 'areLoadingImageChannels'],
|
|
863
863
|
spatialSegmentationLayer: ['segmentationLayerCallbacks', 'areLoadingSegmentationChannels'],
|
|
864
864
|
spatialAcceleratedVolumeLoadingProgress: ['volumeLoadingProgress'],
|
|
865
|
-
|
|
865
|
+
spatialTiledPointsLoadingProgress: ['tiledPointsLoadingProgress'],
|
|
866
866
|
};
|
|
867
867
|
/**
|
|
868
868
|
* The maps the coordination types of incoming scopes to new types
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/vit-s",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"react-error-boundary": "^5.0.0",
|
|
31
31
|
"@placemarkio/flat-drop-files": "^1.0.2",
|
|
32
32
|
"zarrita": "0.5.4",
|
|
33
|
-
"@vitessce/styles": "3.
|
|
34
|
-
"@vitessce/
|
|
35
|
-
"@vitessce/
|
|
36
|
-
"@vitessce/
|
|
37
|
-
"@vitessce/
|
|
38
|
-
"@vitessce/
|
|
39
|
-
"@vitessce/utils": "3.
|
|
40
|
-
"@vitessce/
|
|
41
|
-
"@vitessce/
|
|
42
|
-
"@vitessce/
|
|
33
|
+
"@vitessce/styles": "3.9.0",
|
|
34
|
+
"@vitessce/error": "3.9.0",
|
|
35
|
+
"@vitessce/constants-internal": "3.9.0",
|
|
36
|
+
"@vitessce/abstract": "3.9.0",
|
|
37
|
+
"@vitessce/utils": "3.9.0",
|
|
38
|
+
"@vitessce/schemas": "3.9.0",
|
|
39
|
+
"@vitessce/sets-utils": "3.9.0",
|
|
40
|
+
"@vitessce/plugins": "3.9.0",
|
|
41
|
+
"@vitessce/config": "3.9.0",
|
|
42
|
+
"@vitessce/globals": "3.9.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"react-dom": "18.3.1",
|
|
49
49
|
"vite": "^7.0.0",
|
|
50
50
|
"vitest": "^3.1.4",
|
|
51
|
-
"@vitessce/types": "3.
|
|
51
|
+
"@vitessce/types": "3.9.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
@@ -225,6 +225,39 @@ export function usePointMultiObsLabels(
|
|
|
225
225
|
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Wrapper around useObsFeatureMatrixIndicesMultiLevel.
|
|
230
|
+
* @param {object} coordinationScopes
|
|
231
|
+
* @param {object} coordinationScopesBy
|
|
232
|
+
* @param {object} loaders
|
|
233
|
+
* @param {string} dataset
|
|
234
|
+
* @returns {array} [indicesData, status, errors]
|
|
235
|
+
*/
|
|
236
|
+
export function usePointMultiObsFeatureMatrixIndices(
|
|
237
|
+
coordinationScopes, coordinationScopesBy, loaders, dataset,
|
|
238
|
+
) {
|
|
239
|
+
const obsFeatureMatrixCoordination = useComplexCoordination(
|
|
240
|
+
[
|
|
241
|
+
// We currently do not specify obsType or featureValueType here,
|
|
242
|
+
// since for points we are only interested in the var table
|
|
243
|
+
// to get the info about each feature (gene).
|
|
244
|
+
CoordinationType.FEATURE_TYPE,
|
|
245
|
+
],
|
|
246
|
+
coordinationScopes,
|
|
247
|
+
coordinationScopesBy,
|
|
248
|
+
CoordinationType.POINT_LAYER,
|
|
249
|
+
);
|
|
250
|
+
const matchOnObj = useMemo(() => obsFeatureMatrixCoordination[0],
|
|
251
|
+
// imageCoordination reference changes each render,
|
|
252
|
+
// use coordinationScopes and coordinationScopesBy which are
|
|
253
|
+
// indirect dependencies here.
|
|
254
|
+
[coordinationScopes, coordinationScopesBy]);
|
|
255
|
+
const [indicesData, indicesDataStatus, indicesDataErrors] = useObsFeatureMatrixIndicesMultiLevel(
|
|
256
|
+
loaders, dataset, false, matchOnObj, 1,
|
|
257
|
+
);
|
|
258
|
+
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
259
|
+
}
|
|
260
|
+
|
|
228
261
|
/**
|
|
229
262
|
* Wrapper around useObsLocationsMultiLevel.
|
|
230
263
|
* @param {object} coordinationScopes
|
package/src/index.js
CHANGED
package/src/state/hooks.js
CHANGED
|
@@ -983,7 +983,7 @@ const AUXILIARY_COORDINATION_TYPES_MAP = {
|
|
|
983
983
|
spatialImageLayer: ['imageLayerCallbacks', 'areLoadingImageChannels'],
|
|
984
984
|
spatialSegmentationLayer: ['segmentationLayerCallbacks', 'areLoadingSegmentationChannels'],
|
|
985
985
|
spatialAcceleratedVolumeLoadingProgress: ['volumeLoadingProgress'],
|
|
986
|
-
|
|
986
|
+
spatialTiledPointsLoadingProgress: ['tiledPointsLoadingProgress'],
|
|
987
987
|
};
|
|
988
988
|
|
|
989
989
|
/**
|