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.2 to 1.0.3

8

dist/index.es.js
import * as dicomParser from 'dicom-parser';
import { disable, displayImage, enable, getDefaultViewport, getEnabledElement, getStoredPixels, getViewport, internal, loadImage, pageToPixel, resize, setToPixelCoordinateSystem, setViewport } from 'cornerstone-core';
import { disable, displayImage, enable, getDefaultViewport, getDefaultViewportForImage, getEnabledElement, getStoredPixels, getViewport, internal, loadImage, pageToPixel, resize, setToPixelCoordinateSystem, setViewport } from 'cornerstone-core';
import * as cornerstone from 'cornerstone-core';

@@ -215,6 +215,10 @@ import { external } from 'cornerstone-wado-image-loader';

_this.onResize = function () {
if (!_this.state.enabledElement) {
if (!_this.state.enabledElement || !_this.state.image) {
return;
}
resize(_this.element);
var viewport = getDefaultViewportForImage(_this.element, _this.state.image);
_this.setState(produce(function (draft) {
draft.defaultViewport.scale = viewport.scale;
}));
};

@@ -221,0 +225,0 @@ return _this;

@@ -220,6 +220,10 @@ 'use strict';

_this.onResize = function () {
if (!_this.state.enabledElement) {
if (!_this.state.enabledElement || !_this.state.image) {
return;
}
cornerstone.resize(_this.element);
var viewport = cornerstone.getDefaultViewportForImage(_this.element, _this.state.image);
_this.setState(produce__default(function (draft) {
draft.defaultViewport.scale = viewport.scale;
}));
};

@@ -226,0 +230,0 @@ return _this;

{
"name": "@lunit/insight-viewer",
"version": "1.0.2",
"version": "1.0.3",
"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