Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lunit/insight-viewer

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lunit/insight-viewer - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

14

dist/index.es.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc