@vitessce/vit-s 3.6.7 → 3.6.9
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 +1386 -883
- package/dist-tsc/TitleInfo.d.ts.map +1 -1
- package/dist-tsc/TitleInfo.js +28 -7
- package/dist-tsc/VitS.d.ts.map +1 -1
- package/dist-tsc/VitS.js +11 -2
- package/dist-tsc/data-hook-utils.d.ts +6 -12
- package/dist-tsc/data-hook-utils.d.ts.map +1 -1
- package/dist-tsc/data-hook-utils.js +11 -38
- package/dist-tsc/data-hooks-multilevel-utils.d.ts +51 -5
- package/dist-tsc/data-hooks-multilevel-utils.d.ts.map +1 -1
- package/dist-tsc/data-hooks-multilevel-utils.js +68 -42
- package/dist-tsc/data-hooks-multilevel.d.ts +63 -7
- package/dist-tsc/data-hooks-multilevel.d.ts.map +1 -1
- package/dist-tsc/data-hooks-multilevel.js +70 -14
- package/dist-tsc/data-hooks.d.ts +275 -34
- package/dist-tsc/data-hooks.d.ts.map +1 -1
- package/dist-tsc/data-hooks.js +282 -53
- package/dist-tsc/hooks.js +1 -1
- package/dist-tsc/vitessce-grid-utils.d.ts.map +1 -1
- package/dist-tsc/vitessce-grid-utils.js +9 -4
- package/package.json +12 -11
- package/src/TitleInfo.js +64 -3
- package/src/VitS.js +11 -1
- package/src/data-hook-utils.js +10 -44
- package/src/data-hooks-multilevel-utils.js +66 -48
- package/src/data-hooks-multilevel.js +70 -14
- package/src/data-hooks.js +285 -57
- package/src/hooks.js +1 -1
- package/src/vitessce-grid-utils.js +9 -4
|
@@ -13,6 +13,14 @@ import {
|
|
|
13
13
|
} from './data-hooks-multilevel-utils.js';
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Wrapper around useFeatureSelectionMultiLevel.
|
|
18
|
+
* @param {object} coordinationScopes
|
|
19
|
+
* @param {object} coordinationScopesBy
|
|
20
|
+
* @param {object} loaders
|
|
21
|
+
* @param {string} dataset
|
|
22
|
+
* @returns {array} [featureData, loadedSelections, extents, normData, featureStatus, errors]
|
|
23
|
+
*/
|
|
16
24
|
export function useSegmentationMultiFeatureSelection(
|
|
17
25
|
coordinationScopes, coordinationScopesBy, loaders, dataset,
|
|
18
26
|
) {
|
|
@@ -60,13 +68,21 @@ export function useSegmentationMultiFeatureSelection(
|
|
|
60
68
|
JSON.stringify(useMemoDependency.length > 0 ? useMemoDependency : [null]),
|
|
61
69
|
]);
|
|
62
70
|
const [
|
|
63
|
-
featureData, loadedSelections, extents, normData, featureStatus,
|
|
71
|
+
featureData, loadedSelections, extents, normData, featureStatus, errors,
|
|
64
72
|
] = useFeatureSelectionMultiLevel(
|
|
65
73
|
loaders, dataset, false, matchOnObj, selections, 2,
|
|
66
74
|
);
|
|
67
|
-
return [featureData, loadedSelections, extents, normData, featureStatus];
|
|
75
|
+
return [featureData, loadedSelections, extents, normData, featureStatus, errors];
|
|
68
76
|
}
|
|
69
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Wrapper around useFeatureSelectionMultiLevel.
|
|
80
|
+
* @param {object} coordinationScopes
|
|
81
|
+
* @param {object} coordinationScopesBy
|
|
82
|
+
* @param {object} loaders
|
|
83
|
+
* @param {string} dataset
|
|
84
|
+
* @returns {array} [featureData, loadedSelections, extents, normData, featureStatus, errors]
|
|
85
|
+
*/
|
|
70
86
|
export function useSpotMultiFeatureSelection(
|
|
71
87
|
coordinationScopes, coordinationScopesBy, loaders, dataset,
|
|
72
88
|
) {
|
|
@@ -106,13 +122,21 @@ export function useSpotMultiFeatureSelection(
|
|
|
106
122
|
.flatMap(layerVal => layerVal.featureSelection),
|
|
107
123
|
]);
|
|
108
124
|
const [
|
|
109
|
-
featureData, loadedSelections, extents, normData, featureStatus,
|
|
125
|
+
featureData, loadedSelections, extents, normData, featureStatus, errors,
|
|
110
126
|
] = useFeatureSelectionMultiLevel(
|
|
111
127
|
loaders, dataset, false, matchOnObj, selections, 1,
|
|
112
128
|
);
|
|
113
|
-
return [featureData, loadedSelections, extents, normData, featureStatus];
|
|
129
|
+
return [featureData, loadedSelections, extents, normData, featureStatus, errors];
|
|
114
130
|
}
|
|
115
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Wrapper around useObsFeatureMatrixIndicesMultiLevel.
|
|
134
|
+
* @param {object} coordinationScopes
|
|
135
|
+
* @param {object} coordinationScopesBy
|
|
136
|
+
* @param {object} loaders
|
|
137
|
+
* @param {string} dataset
|
|
138
|
+
* @returns {array} [indicesData, status, errors]
|
|
139
|
+
*/
|
|
116
140
|
export function useSegmentationMultiObsFeatureMatrixIndices(
|
|
117
141
|
coordinationScopes, coordinationScopesBy, loaders, dataset,
|
|
118
142
|
) {
|
|
@@ -132,12 +156,20 @@ export function useSegmentationMultiObsFeatureMatrixIndices(
|
|
|
132
156
|
// use coordinationScopes and coordinationScopesBy which are
|
|
133
157
|
// indirect dependencies here.
|
|
134
158
|
[coordinationScopes, coordinationScopesBy]);
|
|
135
|
-
const [indicesData, indicesDataStatus] = useObsFeatureMatrixIndicesMultiLevel(
|
|
159
|
+
const [indicesData, indicesDataStatus, indicesDataErrors] = useObsFeatureMatrixIndicesMultiLevel(
|
|
136
160
|
loaders, dataset, false, matchOnObj, 2,
|
|
137
161
|
);
|
|
138
|
-
return [indicesData, indicesDataStatus];
|
|
162
|
+
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
139
163
|
}
|
|
140
164
|
|
|
165
|
+
/**
|
|
166
|
+
* Wrapper around useObsFeatureMatrixIndicesMultiLevel.
|
|
167
|
+
* @param {object} coordinationScopes
|
|
168
|
+
* @param {object} coordinationScopesBy
|
|
169
|
+
* @param {object} loaders
|
|
170
|
+
* @param {string} dataset
|
|
171
|
+
* @returns {array} [indicesData, status, errors]
|
|
172
|
+
*/
|
|
141
173
|
export function useSpotMultiObsFeatureMatrixIndices(
|
|
142
174
|
coordinationScopes, coordinationScopesBy, loaders, dataset,
|
|
143
175
|
) {
|
|
@@ -156,12 +188,20 @@ export function useSpotMultiObsFeatureMatrixIndices(
|
|
|
156
188
|
// use coordinationScopes and coordinationScopesBy which are
|
|
157
189
|
// indirect dependencies here.
|
|
158
190
|
[coordinationScopes, coordinationScopesBy]);
|
|
159
|
-
const [indicesData, indicesDataStatus] = useObsFeatureMatrixIndicesMultiLevel(
|
|
191
|
+
const [indicesData, indicesDataStatus, indicesDataErrors] = useObsFeatureMatrixIndicesMultiLevel(
|
|
160
192
|
loaders, dataset, false, matchOnObj, 1,
|
|
161
193
|
);
|
|
162
|
-
return [indicesData, indicesDataStatus];
|
|
194
|
+
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
163
195
|
}
|
|
164
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Wrapper around useObsLabelsMultiLevel.
|
|
199
|
+
* @param {object} coordinationScopes
|
|
200
|
+
* @param {object} coordinationScopesBy
|
|
201
|
+
* @param {object} loaders
|
|
202
|
+
* @param {string} dataset
|
|
203
|
+
* @returns {array} [data, status, errors]
|
|
204
|
+
*/
|
|
165
205
|
export function usePointMultiObsLabels(
|
|
166
206
|
coordinationScopes, coordinationScopesBy, loaders, dataset,
|
|
167
207
|
) {
|
|
@@ -179,12 +219,20 @@ export function usePointMultiObsLabels(
|
|
|
179
219
|
// use coordinationScopes and coordinationScopesBy which are
|
|
180
220
|
// indirect dependencies here.
|
|
181
221
|
[coordinationScopes, coordinationScopesBy]);
|
|
182
|
-
const [indicesData, indicesDataStatus] = useObsLabelsMultiLevel(
|
|
222
|
+
const [indicesData, indicesDataStatus, indicesDataErrors] = useObsLabelsMultiLevel(
|
|
183
223
|
loaders, dataset, false, matchOnObj, 1,
|
|
184
224
|
);
|
|
185
|
-
return [indicesData, indicesDataStatus];
|
|
225
|
+
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
186
226
|
}
|
|
187
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Wrapper around useObsLocationsMultiLevel.
|
|
230
|
+
* @param {object} coordinationScopes
|
|
231
|
+
* @param {object} coordinationScopesBy
|
|
232
|
+
* @param {object} loaders
|
|
233
|
+
* @param {string} dataset
|
|
234
|
+
* @returns {array} [data, status, errors]
|
|
235
|
+
*/
|
|
188
236
|
export function useSegmentationMultiObsLocations(
|
|
189
237
|
coordinationScopes, coordinationScopesBy, loaders, dataset,
|
|
190
238
|
) {
|
|
@@ -202,12 +250,20 @@ export function useSegmentationMultiObsLocations(
|
|
|
202
250
|
// use coordinationScopes and coordinationScopesBy which are
|
|
203
251
|
// indirect dependencies here.
|
|
204
252
|
[coordinationScopes, coordinationScopesBy]);
|
|
205
|
-
const [indicesData, indicesDataStatus] = useObsLocationsMultiLevel(
|
|
253
|
+
const [indicesData, indicesDataStatus, indicesDataErrors] = useObsLocationsMultiLevel(
|
|
206
254
|
loaders, dataset, false, matchOnObj, 2,
|
|
207
255
|
);
|
|
208
|
-
return [indicesData, indicesDataStatus];
|
|
256
|
+
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
209
257
|
}
|
|
210
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Wrapper around useObsSetsMultiLevel.
|
|
261
|
+
* @param {object} coordinationScopes
|
|
262
|
+
* @param {object} coordinationScopesBy
|
|
263
|
+
* @param {object} loaders
|
|
264
|
+
* @param {string} dataset
|
|
265
|
+
* @returns {array} [data, status, errors]
|
|
266
|
+
*/
|
|
211
267
|
export function useSegmentationMultiObsSets(
|
|
212
268
|
coordinationScopes, coordinationScopesBy, loaders, dataset,
|
|
213
269
|
) {
|
|
@@ -225,8 +281,8 @@ export function useSegmentationMultiObsSets(
|
|
|
225
281
|
// use coordinationScopes and coordinationScopesBy which are
|
|
226
282
|
// indirect dependencies here.
|
|
227
283
|
[coordinationScopes, coordinationScopesBy]);
|
|
228
|
-
const [indicesData, indicesDataStatus] = useObsSetsMultiLevel(
|
|
284
|
+
const [indicesData, indicesDataStatus, indicesDataErrors] = useObsSetsMultiLevel(
|
|
229
285
|
loaders, dataset, false, matchOnObj, 2,
|
|
230
286
|
);
|
|
231
|
-
return [indicesData, indicesDataStatus];
|
|
287
|
+
return [indicesData, indicesDataStatus, indicesDataErrors];
|
|
232
288
|
}
|