@lunit/insight-viewer
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -169,4 +169,4 @@ import * as dicomParser from 'dicom-parser'; | ||
_this.setState(produce(function (draft) { | ||
draft.viewport.voi.windowWidth += dx * 2; | ||
draft.viewport.voi.windowCenter += dy * 2; | ||
draft.viewport.voi.windowWidth = Math.max(draft.viewport.voi.windowWidth + dx * 2, 1); | ||
draft.viewport.voi.windowCenter = Math.max(draft.viewport.voi.windowCenter + dy * 2, 1); | ||
})); | ||
@@ -173,0 +173,0 @@ } else if (_this.props.controlState.mouseMode === 'pan') { |
@@ -174,4 +174,4 @@ 'use strict'; | ||
_this.setState(produce__default(function (draft) { | ||
draft.viewport.voi.windowWidth += dx * 2; | ||
draft.viewport.voi.windowCenter += dy * 2; | ||
draft.viewport.voi.windowWidth = Math.max(draft.viewport.voi.windowWidth + dx * 2, 1); | ||
draft.viewport.voi.windowCenter = Math.max(draft.viewport.voi.windowCenter + dy * 2, 1); | ||
})); | ||
@@ -178,0 +178,0 @@ } else if (_this.props.controlState.mouseMode === 'pan') { |
{ | ||
"name": "@lunit/insight-viewer", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"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
48644