@lunit/insight-viewer
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -219,5 +219,7 @@ import * as dicomParser from 'dicom-parser'; | ||
resize(_this.element); | ||
var viewport = getDefaultViewportForImage(_this.element, _this.state.image); | ||
var viewport = getViewport(_this.element); | ||
var defaultViewport = getDefaultViewportForImage(_this.element, _this.state.image); | ||
_this.setState(produce(function (draft) { | ||
draft.defaultViewport.scale = viewport.scale; | ||
draft.viewport = viewport; | ||
draft.defaultViewport.scale = defaultViewport.scale; | ||
})); | ||
@@ -224,0 +226,0 @@ }; |
@@ -224,5 +224,7 @@ 'use strict'; | ||
cornerstone.resize(_this.element); | ||
var viewport = cornerstone.getDefaultViewportForImage(_this.element, _this.state.image); | ||
var viewport = cornerstone.getViewport(_this.element); | ||
var defaultViewport = cornerstone.getDefaultViewportForImage(_this.element, _this.state.image); | ||
_this.setState(produce__default(function (draft) { | ||
draft.defaultViewport.scale = viewport.scale; | ||
draft.viewport = viewport; | ||
draft.defaultViewport.scale = defaultViewport.scale; | ||
})); | ||
@@ -229,0 +231,0 @@ }; |
{ | ||
"name": "@lunit/insight-viewer", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"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
48462
1157