@vitessce/vit-s 3.7.0 → 3.8.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 +29 -13
- package/dist-tsc/state/spatial-reducers.d.ts.map +1 -1
- package/dist-tsc/state/spatial-reducers.js +13 -0
- package/dist-tsc/state/spatial-reducers.test.js +12 -0
- package/package.json +14 -14
- package/src/state/spatial-reducers.js +13 -0
- package/src/state/spatial-reducers.test.js +12 -2
package/dist/index.js
CHANGED
|
@@ -28493,7 +28493,7 @@ const OrderedLogLevels = [
|
|
|
28493
28493
|
LogLevel.ERROR
|
|
28494
28494
|
];
|
|
28495
28495
|
const DEFAULT_DEBUG_MODE = false;
|
|
28496
|
-
const DEFAULT_LOG_LEVEL = LogLevel.
|
|
28496
|
+
const DEFAULT_LOG_LEVEL = LogLevel.INFO;
|
|
28497
28497
|
let GLOBAL_DEBUG_MODE = DEFAULT_DEBUG_MODE;
|
|
28498
28498
|
function getDebugMode() {
|
|
28499
28499
|
return GLOBAL_DEBUG_MODE;
|
|
@@ -30994,6 +30994,7 @@ const ViewType$1 = {
|
|
|
30994
30994
|
SCATTERPLOT: "scatterplot",
|
|
30995
30995
|
SPATIAL: "spatial",
|
|
30996
30996
|
SPATIAL_BETA: "spatialBeta",
|
|
30997
|
+
SPATIAL_ACCELERATED: "spatialAccelerated",
|
|
30997
30998
|
HEATMAP: "heatmap",
|
|
30998
30999
|
LAYER_CONTROLLER: "layerController",
|
|
30999
31000
|
LAYER_CONTROLLER_BETA: "layerControllerBeta",
|
|
@@ -31290,6 +31291,8 @@ const CoordinationType$1 = {
|
|
|
31290
31291
|
// Could be per-image-layer
|
|
31291
31292
|
SPATIAL_TARGET_RESOLUTION: "spatialTargetResolution",
|
|
31292
31293
|
// Per-spatial-layer
|
|
31294
|
+
SPATIAL_MAX_RESOLUTION: "spatialMaxResolution",
|
|
31295
|
+
// Per-image-channel (for spatial-accelerated)
|
|
31293
31296
|
// For clipping plane sliders
|
|
31294
31297
|
SPATIAL_SLICE_X: "spatialSliceX",
|
|
31295
31298
|
SPATIAL_SLICE_Y: "spatialSliceY",
|
|
@@ -31608,6 +31611,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
31608
31611
|
CoordinationType$1.SPATIAL_ROTATION_Y,
|
|
31609
31612
|
CoordinationType$1.SPATIAL_ROTATION_Z,
|
|
31610
31613
|
CoordinationType$1.SPATIAL_AXIS_FIXED,
|
|
31614
|
+
CoordinationType$1.SPATIAL_ROTATION_ORBIT,
|
|
31611
31615
|
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
31612
31616
|
CoordinationType$1.SPATIAL_ZOOM,
|
|
31613
31617
|
CoordinationType$1.OBS_FILTER,
|
|
@@ -31615,14 +31619,11 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
31615
31619
|
CoordinationType$1.OBS_SET_SELECTION,
|
|
31616
31620
|
CoordinationType$1.OBS_SET_FILTER,
|
|
31617
31621
|
CoordinationType$1.OBS_SET_HIGHLIGHT,
|
|
31618
|
-
CoordinationType$1.OBS_SET_COLOR,
|
|
31619
31622
|
CoordinationType$1.OBS_TYPE,
|
|
31620
|
-
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
31621
31623
|
CoordinationType$1.OBS_SET_COLOR,
|
|
31622
31624
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
31623
|
-
CoordinationType$1.OBS_SET_SELECTION,
|
|
31624
31625
|
CoordinationType$1.EMBEDDING_TYPE,
|
|
31625
|
-
CoordinationType$1.
|
|
31626
|
+
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
31626
31627
|
CoordinationType$1.TOOLTIPS_VISIBLE
|
|
31627
31628
|
],
|
|
31628
31629
|
[ViewType$1.SCATTERPLOT]: [
|
|
@@ -31842,6 +31843,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
31842
31843
|
CoordinationType$1.SPATIAL_RENDERING_MODE,
|
|
31843
31844
|
CoordinationType$1.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
31844
31845
|
CoordinationType$1.SPATIAL_TARGET_RESOLUTION,
|
|
31846
|
+
CoordinationType$1.SPATIAL_MAX_RESOLUTION,
|
|
31845
31847
|
CoordinationType$1.SPATIAL_SLICE_X,
|
|
31846
31848
|
CoordinationType$1.SPATIAL_SLICE_Y,
|
|
31847
31849
|
CoordinationType$1.SPATIAL_SLICE_Z,
|
|
@@ -32015,6 +32017,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
32015
32017
|
CoordinationType$1.SPATIAL_RENDERING_MODE,
|
|
32016
32018
|
CoordinationType$1.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
32017
32019
|
CoordinationType$1.SPATIAL_TARGET_RESOLUTION,
|
|
32020
|
+
CoordinationType$1.SPATIAL_MAX_RESOLUTION,
|
|
32018
32021
|
CoordinationType$1.SPATIAL_SLICE_X,
|
|
32019
32022
|
CoordinationType$1.SPATIAL_SLICE_Y,
|
|
32020
32023
|
CoordinationType$1.SPATIAL_SLICE_Z,
|
|
@@ -32243,7 +32246,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
32243
32246
|
CoordinationType$1.HIERARCHY_LEVELS
|
|
32244
32247
|
]
|
|
32245
32248
|
});
|
|
32246
|
-
const version = "3.
|
|
32249
|
+
const version = "3.8.0";
|
|
32247
32250
|
const META_VERSION = {
|
|
32248
32251
|
version
|
|
32249
32252
|
};
|
|
@@ -33947,7 +33950,7 @@ function removeImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw,
|
|
|
33947
33950
|
};
|
|
33948
33951
|
}
|
|
33949
33952
|
function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, layerScope, coordinationSpace) {
|
|
33950
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C;
|
|
33953
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G;
|
|
33951
33954
|
const metaCoordinationScopes = coordinationSpace[CoordinationType$1.META_COORDINATION_SCOPES];
|
|
33952
33955
|
const metaCoordinationScopesBy = coordinationSpace[CoordinationType$1.META_COORDINATION_SCOPES_BY];
|
|
33953
33956
|
let newMetaCoordinationScopes = metaCoordinationScopes;
|
|
@@ -33971,6 +33974,7 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
|
|
|
33971
33974
|
const nextWindowScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$1.SPATIAL_CHANNEL_WINDOW] || {}));
|
|
33972
33975
|
const nextVisibleScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$1.SPATIAL_CHANNEL_VISIBLE] || {}));
|
|
33973
33976
|
const nextOpacityScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$1.SPATIAL_CHANNEL_OPACITY] || {}));
|
|
33977
|
+
const nextMaxResolutionScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$1.SPATIAL_MAX_RESOLUTION] || {}));
|
|
33974
33978
|
newCoordinationSpace = {
|
|
33975
33979
|
...coordinationSpace,
|
|
33976
33980
|
[CoordinationType$1.IMAGE_CHANNEL]: {
|
|
@@ -33997,6 +34001,10 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
|
|
|
33997
34001
|
[CoordinationType$1.SPATIAL_CHANNEL_OPACITY]: {
|
|
33998
34002
|
...coordinationSpace[CoordinationType$1.SPATIAL_CHANNEL_OPACITY],
|
|
33999
34003
|
[nextOpacityScope]: 1
|
|
34004
|
+
},
|
|
34005
|
+
[CoordinationType$1.SPATIAL_MAX_RESOLUTION]: {
|
|
34006
|
+
...coordinationSpace[CoordinationType$1.SPATIAL_MAX_RESOLUTION],
|
|
34007
|
+
[nextOpacityScope]: 1
|
|
34000
34008
|
}
|
|
34001
34009
|
};
|
|
34002
34010
|
if (hasPerLayerChannels) {
|
|
@@ -34032,6 +34040,10 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
|
|
|
34032
34040
|
[CoordinationType$1.SPATIAL_CHANNEL_OPACITY]: {
|
|
34033
34041
|
...(_r = (_q = metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScopeBy]) == null ? void 0 : _q[CoordinationType$1.IMAGE_CHANNEL]) == null ? void 0 : _r[CoordinationType$1.SPATIAL_CHANNEL_OPACITY],
|
|
34034
34042
|
[nextChannelScope]: nextOpacityScope
|
|
34043
|
+
},
|
|
34044
|
+
[CoordinationType$1.SPATIAL_MAX_RESOLUTION]: {
|
|
34045
|
+
...(_t = (_s = metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScopeBy]) == null ? void 0 : _s[CoordinationType$1.IMAGE_CHANNEL]) == null ? void 0 : _t[CoordinationType$1.SPATIAL_MAX_RESOLUTION],
|
|
34046
|
+
[nextChannelScope]: nextMaxResolutionScope
|
|
34035
34047
|
}
|
|
34036
34048
|
}
|
|
34037
34049
|
}
|
|
@@ -34049,26 +34061,30 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
|
|
|
34049
34061
|
[channelMetaScope]: {
|
|
34050
34062
|
...metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScope],
|
|
34051
34063
|
[CoordinationType$1.IMAGE_CHANNEL]: {
|
|
34052
|
-
...(
|
|
34064
|
+
...(_u = metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScope]) == null ? void 0 : _u[CoordinationType$1.IMAGE_CHANNEL],
|
|
34053
34065
|
[CoordinationType$1.SPATIAL_TARGET_C]: {
|
|
34054
|
-
...(
|
|
34066
|
+
...(_w = (_v = metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScope]) == null ? void 0 : _v[CoordinationType$1.IMAGE_CHANNEL]) == null ? void 0 : _w[CoordinationType$1.SPATIAL_TARGET_C],
|
|
34055
34067
|
[nextChannelScope]: nextTargetCScope
|
|
34056
34068
|
},
|
|
34057
34069
|
[CoordinationType$1.SPATIAL_CHANNEL_COLOR]: {
|
|
34058
|
-
...(
|
|
34070
|
+
...(_y = (_x = metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScope]) == null ? void 0 : _x[CoordinationType$1.IMAGE_CHANNEL]) == null ? void 0 : _y[CoordinationType$1.SPATIAL_CHANNEL_COLOR],
|
|
34059
34071
|
[nextChannelScope]: nextColorScope
|
|
34060
34072
|
},
|
|
34061
34073
|
[CoordinationType$1.SPATIAL_CHANNEL_WINDOW]: {
|
|
34062
|
-
...(
|
|
34074
|
+
...(_A = (_z = metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScope]) == null ? void 0 : _z[CoordinationType$1.IMAGE_CHANNEL]) == null ? void 0 : _A[CoordinationType$1.SPATIAL_CHANNEL_WINDOW],
|
|
34063
34075
|
[nextChannelScope]: nextWindowScope
|
|
34064
34076
|
},
|
|
34065
34077
|
[CoordinationType$1.SPATIAL_CHANNEL_VISIBLE]: {
|
|
34066
|
-
...(
|
|
34078
|
+
...(_C = (_B = metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScope]) == null ? void 0 : _B[CoordinationType$1.IMAGE_CHANNEL]) == null ? void 0 : _C[CoordinationType$1.SPATIAL_CHANNEL_VISIBLE],
|
|
34067
34079
|
[nextChannelScope]: nextVisibleScope
|
|
34068
34080
|
},
|
|
34069
34081
|
[CoordinationType$1.SPATIAL_CHANNEL_OPACITY]: {
|
|
34070
|
-
...(
|
|
34082
|
+
...(_E = (_D = metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScope]) == null ? void 0 : _D[CoordinationType$1.IMAGE_CHANNEL]) == null ? void 0 : _E[CoordinationType$1.SPATIAL_CHANNEL_OPACITY],
|
|
34071
34083
|
[nextChannelScope]: nextOpacityScope
|
|
34084
|
+
},
|
|
34085
|
+
[CoordinationType$1.SPATIAL_MAX_RESOLUTION]: {
|
|
34086
|
+
...(_G = (_F = metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScope]) == null ? void 0 : _F[CoordinationType$1.IMAGE_CHANNEL]) == null ? void 0 : _G[CoordinationType$1.SPATIAL_MAX_RESOLUTION],
|
|
34087
|
+
[nextChannelScope]: nextMaxResolutionScope
|
|
34072
34088
|
}
|
|
34073
34089
|
}
|
|
34074
34090
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spatial-reducers.d.ts","sourceRoot":"","sources":["../../src/state/spatial-reducers.js"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,iDALW,GAAC,qBACD,GAAC,aACD,MAAM,GACJ,MAAM,GAAC,SAAS,CAuB5B;AAED;;;;;;;;;;GAUG;AACH,mDAPW,GAAC,qBACD,GAAC,eACD,MAAM,aACN,MAAM,WACN,MAAM,GACJ,MAAM,GAAC,SAAS,CAuB5B;AAGD,8JA4DC;AAED,
|
|
1
|
+
{"version":3,"file":"spatial-reducers.d.ts","sourceRoot":"","sources":["../../src/state/spatial-reducers.js"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,iDALW,GAAC,qBACD,GAAC,aACD,MAAM,GACJ,MAAM,GAAC,SAAS,CAuB5B;AAED;;;;;;;;;;GAUG;AACH,mDAPW,GAAC,qBACD,GAAC,eACD,MAAM,aACN,MAAM,WACN,MAAM,GACJ,MAAM,GAAC,SAAS,CAuB5B;AAGD,8JA4DC;AAED,wIA0KC"}
|
|
@@ -138,6 +138,7 @@ export function addImageChannelInMetaCoordinationScopesHelper(coordinationScopes
|
|
|
138
138
|
const nextWindowScope = getNextScope(Object.keys(coordinationSpace[CoordinationType.SPATIAL_CHANNEL_WINDOW] || {}));
|
|
139
139
|
const nextVisibleScope = getNextScope(Object.keys(coordinationSpace[CoordinationType.SPATIAL_CHANNEL_VISIBLE] || {}));
|
|
140
140
|
const nextOpacityScope = getNextScope(Object.keys(coordinationSpace[CoordinationType.SPATIAL_CHANNEL_OPACITY] || {}));
|
|
141
|
+
const nextMaxResolutionScope = getNextScope(Object.keys(coordinationSpace[CoordinationType.SPATIAL_MAX_RESOLUTION] || {}));
|
|
141
142
|
newCoordinationSpace = {
|
|
142
143
|
...coordinationSpace,
|
|
143
144
|
[CoordinationType.IMAGE_CHANNEL]: {
|
|
@@ -164,6 +165,10 @@ export function addImageChannelInMetaCoordinationScopesHelper(coordinationScopes
|
|
|
164
165
|
...coordinationSpace[CoordinationType.SPATIAL_CHANNEL_OPACITY],
|
|
165
166
|
[nextOpacityScope]: 1,
|
|
166
167
|
},
|
|
168
|
+
[CoordinationType.SPATIAL_MAX_RESOLUTION]: {
|
|
169
|
+
...coordinationSpace[CoordinationType.SPATIAL_MAX_RESOLUTION],
|
|
170
|
+
[nextOpacityScope]: 1,
|
|
171
|
+
},
|
|
167
172
|
};
|
|
168
173
|
if (hasPerLayerChannels) {
|
|
169
174
|
// Per-layer channels case.
|
|
@@ -200,6 +205,10 @@ export function addImageChannelInMetaCoordinationScopesHelper(coordinationScopes
|
|
|
200
205
|
...metaCoordinationScopesBy?.[channelMetaScopeBy]?.[CoordinationType.IMAGE_CHANNEL]?.[CoordinationType.SPATIAL_CHANNEL_OPACITY],
|
|
201
206
|
[nextChannelScope]: nextOpacityScope,
|
|
202
207
|
},
|
|
208
|
+
[CoordinationType.SPATIAL_MAX_RESOLUTION]: {
|
|
209
|
+
...metaCoordinationScopesBy?.[channelMetaScopeBy]?.[CoordinationType.IMAGE_CHANNEL]?.[CoordinationType.SPATIAL_MAX_RESOLUTION],
|
|
210
|
+
[nextChannelScope]: nextMaxResolutionScope,
|
|
211
|
+
},
|
|
203
212
|
},
|
|
204
213
|
},
|
|
205
214
|
};
|
|
@@ -239,6 +248,10 @@ export function addImageChannelInMetaCoordinationScopesHelper(coordinationScopes
|
|
|
239
248
|
...metaCoordinationScopesBy?.[channelMetaScope]?.[CoordinationType.IMAGE_CHANNEL]?.[CoordinationType.SPATIAL_CHANNEL_OPACITY],
|
|
240
249
|
[nextChannelScope]: nextOpacityScope,
|
|
241
250
|
},
|
|
251
|
+
[CoordinationType.SPATIAL_MAX_RESOLUTION]: {
|
|
252
|
+
...metaCoordinationScopesBy?.[channelMetaScope]?.[CoordinationType.IMAGE_CHANNEL]?.[CoordinationType.SPATIAL_MAX_RESOLUTION],
|
|
253
|
+
[nextChannelScope]: nextMaxResolutionScope,
|
|
254
|
+
},
|
|
242
255
|
},
|
|
243
256
|
},
|
|
244
257
|
};
|
|
@@ -928,6 +928,9 @@ describe('spatial-reducers.js', () => {
|
|
|
928
928
|
},
|
|
929
929
|
},
|
|
930
930
|
imageChannel: {
|
|
931
|
+
spatialMaxResolution: {
|
|
932
|
+
A: 'A',
|
|
933
|
+
},
|
|
931
934
|
spatialTargetC: {
|
|
932
935
|
R: 'imageR',
|
|
933
936
|
G: 'imageG',
|
|
@@ -982,6 +985,9 @@ describe('spatial-reducers.js', () => {
|
|
|
982
985
|
B: 'B',
|
|
983
986
|
A: '__dummy__',
|
|
984
987
|
},
|
|
988
|
+
spatialMaxResolution: {
|
|
989
|
+
A: 1,
|
|
990
|
+
},
|
|
985
991
|
spatialTargetC: {
|
|
986
992
|
imageR: 0,
|
|
987
993
|
imageG: 1,
|
|
@@ -1249,6 +1255,9 @@ describe('spatial-reducers.js', () => {
|
|
|
1249
1255
|
},
|
|
1250
1256
|
},
|
|
1251
1257
|
imageChannel: {
|
|
1258
|
+
spatialMaxResolution: {
|
|
1259
|
+
A: 'A',
|
|
1260
|
+
},
|
|
1252
1261
|
spatialTargetC: {
|
|
1253
1262
|
R: 'imageR',
|
|
1254
1263
|
G: 'imageG',
|
|
@@ -1303,6 +1312,9 @@ describe('spatial-reducers.js', () => {
|
|
|
1303
1312
|
B: 'B',
|
|
1304
1313
|
A: '__dummy__',
|
|
1305
1314
|
},
|
|
1315
|
+
spatialMaxResolution: {
|
|
1316
|
+
A: 1,
|
|
1317
|
+
},
|
|
1306
1318
|
spatialTargetC: {
|
|
1307
1319
|
imageR: 0,
|
|
1308
1320
|
imageG: 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/vit-s",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -28,25 +28,25 @@
|
|
|
28
28
|
"zustand": "^5.0.4",
|
|
29
29
|
"react-aria": "^3.28.0",
|
|
30
30
|
"react-error-boundary": "^5.0.0",
|
|
31
|
-
"@vitessce/styles": "3.
|
|
32
|
-
"@vitessce/abstract": "3.
|
|
33
|
-
"@vitessce/error": "3.
|
|
34
|
-
"@vitessce/constants-internal": "3.
|
|
35
|
-
"@vitessce/plugins": "3.
|
|
36
|
-
"@vitessce/
|
|
37
|
-
"@vitessce/
|
|
38
|
-
"@vitessce/
|
|
39
|
-
"@vitessce/
|
|
40
|
-
"@vitessce/globals": "3.
|
|
31
|
+
"@vitessce/styles": "3.8.0",
|
|
32
|
+
"@vitessce/abstract": "3.8.0",
|
|
33
|
+
"@vitessce/error": "3.8.0",
|
|
34
|
+
"@vitessce/constants-internal": "3.8.0",
|
|
35
|
+
"@vitessce/plugins": "3.8.0",
|
|
36
|
+
"@vitessce/schemas": "3.8.0",
|
|
37
|
+
"@vitessce/utils": "3.8.0",
|
|
38
|
+
"@vitessce/sets-utils": "3.8.0",
|
|
39
|
+
"@vitessce/config": "3.8.0",
|
|
40
|
+
"@vitessce/globals": "3.8.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@testing-library/jest-dom": "^6.6.3",
|
|
44
44
|
"@testing-library/react": "^16.3.0",
|
|
45
|
-
"react": "
|
|
46
|
-
"react-dom": "
|
|
45
|
+
"react": "18.3.1",
|
|
46
|
+
"react-dom": "18.3.1",
|
|
47
47
|
"vite": "^7.0.0",
|
|
48
48
|
"vitest": "^3.1.4",
|
|
49
|
-
"@vitessce/types": "3.
|
|
49
|
+
"@vitessce/types": "3.8.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
@@ -176,6 +176,7 @@ export function addImageChannelInMetaCoordinationScopesHelper(coordinationScopes
|
|
|
176
176
|
const nextWindowScope = getNextScope(Object.keys(coordinationSpace[CoordinationType.SPATIAL_CHANNEL_WINDOW] || {}));
|
|
177
177
|
const nextVisibleScope = getNextScope(Object.keys(coordinationSpace[CoordinationType.SPATIAL_CHANNEL_VISIBLE] || {}));
|
|
178
178
|
const nextOpacityScope = getNextScope(Object.keys(coordinationSpace[CoordinationType.SPATIAL_CHANNEL_OPACITY] || {}));
|
|
179
|
+
const nextMaxResolutionScope = getNextScope(Object.keys(coordinationSpace[CoordinationType.SPATIAL_MAX_RESOLUTION] || {}));
|
|
179
180
|
|
|
180
181
|
newCoordinationSpace = {
|
|
181
182
|
...coordinationSpace,
|
|
@@ -203,6 +204,10 @@ export function addImageChannelInMetaCoordinationScopesHelper(coordinationScopes
|
|
|
203
204
|
...coordinationSpace[CoordinationType.SPATIAL_CHANNEL_OPACITY],
|
|
204
205
|
[nextOpacityScope]: 1,
|
|
205
206
|
},
|
|
207
|
+
[CoordinationType.SPATIAL_MAX_RESOLUTION]: {
|
|
208
|
+
...coordinationSpace[CoordinationType.SPATIAL_MAX_RESOLUTION],
|
|
209
|
+
[nextOpacityScope]: 1,
|
|
210
|
+
},
|
|
206
211
|
};
|
|
207
212
|
|
|
208
213
|
if (hasPerLayerChannels) {
|
|
@@ -240,6 +245,10 @@ export function addImageChannelInMetaCoordinationScopesHelper(coordinationScopes
|
|
|
240
245
|
...metaCoordinationScopesBy?.[channelMetaScopeBy]?.[CoordinationType.IMAGE_CHANNEL]?.[CoordinationType.SPATIAL_CHANNEL_OPACITY],
|
|
241
246
|
[nextChannelScope]: nextOpacityScope,
|
|
242
247
|
},
|
|
248
|
+
[CoordinationType.SPATIAL_MAX_RESOLUTION]: {
|
|
249
|
+
...metaCoordinationScopesBy?.[channelMetaScopeBy]?.[CoordinationType.IMAGE_CHANNEL]?.[CoordinationType.SPATIAL_MAX_RESOLUTION],
|
|
250
|
+
[nextChannelScope]: nextMaxResolutionScope,
|
|
251
|
+
},
|
|
243
252
|
},
|
|
244
253
|
},
|
|
245
254
|
};
|
|
@@ -278,6 +287,10 @@ export function addImageChannelInMetaCoordinationScopesHelper(coordinationScopes
|
|
|
278
287
|
...metaCoordinationScopesBy?.[channelMetaScope]?.[CoordinationType.IMAGE_CHANNEL]?.[CoordinationType.SPATIAL_CHANNEL_OPACITY],
|
|
279
288
|
[nextChannelScope]: nextOpacityScope,
|
|
280
289
|
},
|
|
290
|
+
[CoordinationType.SPATIAL_MAX_RESOLUTION]: {
|
|
291
|
+
...metaCoordinationScopesBy?.[channelMetaScope]?.[CoordinationType.IMAGE_CHANNEL]?.[CoordinationType.SPATIAL_MAX_RESOLUTION],
|
|
292
|
+
[nextChannelScope]: nextMaxResolutionScope,
|
|
293
|
+
},
|
|
281
294
|
},
|
|
282
295
|
},
|
|
283
296
|
};
|
|
@@ -972,6 +972,9 @@ describe('spatial-reducers.js', () => {
|
|
|
972
972
|
},
|
|
973
973
|
},
|
|
974
974
|
imageChannel: {
|
|
975
|
+
spatialMaxResolution: {
|
|
976
|
+
A: 'A',
|
|
977
|
+
},
|
|
975
978
|
spatialTargetC: {
|
|
976
979
|
R: 'imageR',
|
|
977
980
|
G: 'imageG',
|
|
@@ -1026,7 +1029,9 @@ describe('spatial-reducers.js', () => {
|
|
|
1026
1029
|
B: 'B',
|
|
1027
1030
|
A: '__dummy__',
|
|
1028
1031
|
},
|
|
1029
|
-
|
|
1032
|
+
spatialMaxResolution: {
|
|
1033
|
+
A: 1,
|
|
1034
|
+
},
|
|
1030
1035
|
spatialTargetC: {
|
|
1031
1036
|
imageR: 0,
|
|
1032
1037
|
imageG: 1,
|
|
@@ -1298,6 +1303,9 @@ describe('spatial-reducers.js', () => {
|
|
|
1298
1303
|
},
|
|
1299
1304
|
},
|
|
1300
1305
|
imageChannel: {
|
|
1306
|
+
spatialMaxResolution: {
|
|
1307
|
+
A: 'A',
|
|
1308
|
+
},
|
|
1301
1309
|
spatialTargetC: {
|
|
1302
1310
|
R: 'imageR',
|
|
1303
1311
|
G: 'imageG',
|
|
@@ -1352,7 +1360,9 @@ describe('spatial-reducers.js', () => {
|
|
|
1352
1360
|
B: 'B',
|
|
1353
1361
|
A: '__dummy__',
|
|
1354
1362
|
},
|
|
1355
|
-
|
|
1363
|
+
spatialMaxResolution: {
|
|
1364
|
+
A: 1,
|
|
1365
|
+
},
|
|
1356
1366
|
spatialTargetC: {
|
|
1357
1367
|
imageR: 0,
|
|
1358
1368
|
imageG: 1,
|