@lunit/insight-viewer
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -257,10 +257,14 @@ import * as dicomParser from 'dicom-parser'; | ||
image.voiLUT = undefined; // remove VOI LUT for 'adjust' functionality | ||
displayImage(_this2.element, image); | ||
var viewport = getViewport(_this2.element); | ||
var defaultViewport = getDefaultViewportForImage(_this2.element, image); | ||
var initialScale = defaultViewport.scale; | ||
if (initialScale >= 1) { | ||
defaultViewport.scale = 1; | ||
} | ||
displayImage(_this2.element, image, defaultViewport); | ||
_this2.setState(produce(function (draft) { | ||
draft.enabledElement = getEnabledElement(_this2.element); | ||
draft.image = image; | ||
draft.viewport = viewport; | ||
draft.defaultViewport = viewport; | ||
draft.minScale = viewport.scale; | ||
draft.viewport = defaultViewport; | ||
draft.defaultViewport = defaultViewport; | ||
draft.minScale = defaultViewport.scale; | ||
draft.errorMsg = null; | ||
@@ -267,0 +271,0 @@ })); |
@@ -262,10 +262,14 @@ 'use strict'; | ||
image.voiLUT = undefined; // remove VOI LUT for 'adjust' functionality | ||
cornerstone.displayImage(_this2.element, image); | ||
var viewport = cornerstone.getViewport(_this2.element); | ||
var defaultViewport = cornerstone.getDefaultViewportForImage(_this2.element, image); | ||
var initialScale = defaultViewport.scale; | ||
if (initialScale >= 1) { | ||
defaultViewport.scale = 1; | ||
} | ||
cornerstone.displayImage(_this2.element, image, defaultViewport); | ||
_this2.setState(produce__default(function (draft) { | ||
draft.enabledElement = cornerstone.getEnabledElement(_this2.element); | ||
draft.image = image; | ||
draft.viewport = viewport; | ||
draft.defaultViewport = viewport; | ||
draft.minScale = viewport.scale; | ||
draft.viewport = defaultViewport; | ||
draft.defaultViewport = defaultViewport; | ||
draft.minScale = defaultViewport.scale; | ||
draft.errorMsg = null; | ||
@@ -272,0 +276,0 @@ })); |
{ | ||
"name": "@lunit/insight-viewer", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A React component for DICOM images", | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49054
1165