We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7adcd97 + e6b1f0b commit 8b2b3eaCopy full SHA for 8b2b3ea
1 file changed
src/composables/useWindowingConfig.ts
@@ -19,9 +19,11 @@ export function useWindowingConfig(
19
});
20
21
const generateComputed = (prop: 'width' | 'level') => {
22
+ // show all-black image with W/L of (1, 2^32-1) until slices load in and we get a valid window/level
23
+ const defaultValue = prop === 'width' ? 1 : 2 ** 32 - 1;
24
return computed({
25
get: () => {
- return config.value?.[prop] ?? 0;
26
+ return config.value?.[prop] ?? defaultValue;
27
},
28
set: (val) => {
29
const imageIdVal = unref(imageID);
0 commit comments