@@ -32,10 +32,10 @@ export default defineComponent({
3232 width: currentWindowWidth .value ,
3333 level: currentWindowLevel .value ,
3434 }));
35- const data = props .representation .getInputDataSet ();
36- const distribution = data .computeHistogram (data .getBounds ());
37- const widthMin = computed (() => distribution .minimum || 0 );
38- const widthMax = computed (() => distribution .maximum || 0 );
35+ const data = computed (() => props .representation .getInputDataSet () );
36+ const distribution = computed (() => data .value . computeHistogram (data .value . getBounds () ));
37+ const widthMin = computed (() => distribution .value . minimum || 0 );
38+ const widthMax = computed (() => distribution .value . maximum || 0 );
3939 const selectedPreset = ref ();
4040 const windowLocked = computed (() => store .state .windowLocked .lock );
4141 const windowLockImage = computed (() => store .state .windowLocked .associatedImage );
@@ -71,8 +71,8 @@ export default defineComponent({
7171 function autoRange() {
7272 if (windowLocked .value ) return ;
7373 currentRange .value = [
74- Math .floor (distribution .minimum + distribution .sigma ),
75- Math .floor (distribution .maximum - distribution .sigma ),
74+ Math .floor (distribution .value . minimum + distribution . value .sigma ),
75+ Math .floor (distribution .value . maximum - distribution . value .sigma ),
7676 ];
7777 const ww = currentRange .value [1 ] - currentRange .value [0 ];
7878 const wl = currentRange .value [0 ] + Math .floor (ww / 2 );
0 commit comments