@vitessce/vit-s 3.7.1 → 3.8.1
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 +27 -9
- 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",
|
|
@@ -31840,6 +31843,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
31840
31843
|
CoordinationType$1.SPATIAL_RENDERING_MODE,
|
|
31841
31844
|
CoordinationType$1.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
31842
31845
|
CoordinationType$1.SPATIAL_TARGET_RESOLUTION,
|
|
31846
|
+
CoordinationType$1.SPATIAL_MAX_RESOLUTION,
|
|
31843
31847
|
CoordinationType$1.SPATIAL_SLICE_X,
|
|
31844
31848
|
CoordinationType$1.SPATIAL_SLICE_Y,
|
|
31845
31849
|
CoordinationType$1.SPATIAL_SLICE_Z,
|
|
@@ -32013,6 +32017,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
32013
32017
|
CoordinationType$1.SPATIAL_RENDERING_MODE,
|
|
32014
32018
|
CoordinationType$1.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
32015
32019
|
CoordinationType$1.SPATIAL_TARGET_RESOLUTION,
|
|
32020
|
+
CoordinationType$1.SPATIAL_MAX_RESOLUTION,
|
|
32016
32021
|
CoordinationType$1.SPATIAL_SLICE_X,
|
|
32017
32022
|
CoordinationType$1.SPATIAL_SLICE_Y,
|
|
32018
32023
|
CoordinationType$1.SPATIAL_SLICE_Z,
|
|
@@ -32241,7 +32246,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
32241
32246
|
CoordinationType$1.HIERARCHY_LEVELS
|
|
32242
32247
|
]
|
|
32243
32248
|
});
|
|
32244
|
-
const version = "3.
|
|
32249
|
+
const version = "3.8.1";
|
|
32245
32250
|
const META_VERSION = {
|
|
32246
32251
|
version
|
|
32247
32252
|
};
|
|
@@ -33945,7 +33950,7 @@ function removeImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw,
|
|
|
33945
33950
|
};
|
|
33946
33951
|
}
|
|
33947
33952
|
function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, layerScope, coordinationSpace) {
|
|
33948
|
-
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;
|
|
33949
33954
|
const metaCoordinationScopes = coordinationSpace[CoordinationType$1.META_COORDINATION_SCOPES];
|
|
33950
33955
|
const metaCoordinationScopesBy = coordinationSpace[CoordinationType$1.META_COORDINATION_SCOPES_BY];
|
|
33951
33956
|
let newMetaCoordinationScopes = metaCoordinationScopes;
|
|
@@ -33969,6 +33974,7 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
|
|
|
33969
33974
|
const nextWindowScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$1.SPATIAL_CHANNEL_WINDOW] || {}));
|
|
33970
33975
|
const nextVisibleScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$1.SPATIAL_CHANNEL_VISIBLE] || {}));
|
|
33971
33976
|
const nextOpacityScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$1.SPATIAL_CHANNEL_OPACITY] || {}));
|
|
33977
|
+
const nextMaxResolutionScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$1.SPATIAL_MAX_RESOLUTION] || {}));
|
|
33972
33978
|
newCoordinationSpace = {
|
|
33973
33979
|
...coordinationSpace,
|
|
33974
33980
|
[CoordinationType$1.IMAGE_CHANNEL]: {
|
|
@@ -33995,6 +34001,10 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
|
|
|
33995
34001
|
[CoordinationType$1.SPATIAL_CHANNEL_OPACITY]: {
|
|
33996
34002
|
...coordinationSpace[CoordinationType$1.SPATIAL_CHANNEL_OPACITY],
|
|
33997
34003
|
[nextOpacityScope]: 1
|
|
34004
|
+
},
|
|
34005
|
+
[CoordinationType$1.SPATIAL_MAX_RESOLUTION]: {
|
|
34006
|
+
...coordinationSpace[CoordinationType$1.SPATIAL_MAX_RESOLUTION],
|
|
34007
|
+
[nextOpacityScope]: 1
|
|
33998
34008
|
}
|
|
33999
34009
|
};
|
|
34000
34010
|
if (hasPerLayerChannels) {
|
|
@@ -34030,6 +34040,10 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
|
|
|
34030
34040
|
[CoordinationType$1.SPATIAL_CHANNEL_OPACITY]: {
|
|
34031
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],
|
|
34032
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
|
|
34033
34047
|
}
|
|
34034
34048
|
}
|
|
34035
34049
|
}
|
|
@@ -34047,26 +34061,30 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
|
|
|
34047
34061
|
[channelMetaScope]: {
|
|
34048
34062
|
...metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScope],
|
|
34049
34063
|
[CoordinationType$1.IMAGE_CHANNEL]: {
|
|
34050
|
-
...(
|
|
34064
|
+
...(_u = metaCoordinationScopesBy == null ? void 0 : metaCoordinationScopesBy[channelMetaScope]) == null ? void 0 : _u[CoordinationType$1.IMAGE_CHANNEL],
|
|
34051
34065
|
[CoordinationType$1.SPATIAL_TARGET_C]: {
|
|
34052
|
-
...(
|
|
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],
|
|
34053
34067
|
[nextChannelScope]: nextTargetCScope
|
|
34054
34068
|
},
|
|
34055
34069
|
[CoordinationType$1.SPATIAL_CHANNEL_COLOR]: {
|
|
34056
|
-
...(
|
|
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],
|
|
34057
34071
|
[nextChannelScope]: nextColorScope
|
|
34058
34072
|
},
|
|
34059
34073
|
[CoordinationType$1.SPATIAL_CHANNEL_WINDOW]: {
|
|
34060
|
-
...(
|
|
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],
|
|
34061
34075
|
[nextChannelScope]: nextWindowScope
|
|
34062
34076
|
},
|
|
34063
34077
|
[CoordinationType$1.SPATIAL_CHANNEL_VISIBLE]: {
|
|
34064
|
-
...(
|
|
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],
|
|
34065
34079
|
[nextChannelScope]: nextVisibleScope
|
|
34066
34080
|
},
|
|
34067
34081
|
[CoordinationType$1.SPATIAL_CHANNEL_OPACITY]: {
|
|
34068
|
-
...(
|
|
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],
|
|
34069
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
|
|
34070
34088
|
}
|
|
34071
34089
|
}
|
|
34072
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.1",
|
|
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/schemas": "3.
|
|
37
|
-
"@vitessce/utils": "3.
|
|
38
|
-
"@vitessce/sets-utils": "3.
|
|
39
|
-
"@vitessce/config": "3.
|
|
40
|
-
"@vitessce/globals": "3.
|
|
31
|
+
"@vitessce/styles": "3.8.1",
|
|
32
|
+
"@vitessce/abstract": "3.8.1",
|
|
33
|
+
"@vitessce/error": "3.8.1",
|
|
34
|
+
"@vitessce/constants-internal": "3.8.1",
|
|
35
|
+
"@vitessce/plugins": "3.8.1",
|
|
36
|
+
"@vitessce/schemas": "3.8.1",
|
|
37
|
+
"@vitessce/utils": "3.8.1",
|
|
38
|
+
"@vitessce/sets-utils": "3.8.1",
|
|
39
|
+
"@vitessce/config": "3.8.1",
|
|
40
|
+
"@vitessce/globals": "3.8.1"
|
|
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.1"
|
|
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,
|