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

A React component for DICOM images

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
increased by30.79%
Maintainers
1
Weekly downloads
 
Created
Source

insight-viewer

A React component for DICOM images

JavaScript Style Guide

Install

You need to add NPM_TOKEN to your environment variables. Please ask the token to @syyu.

export NPM_TOKEN="00000000-0000-0000-0000-000000000000"

Use Yarn instead of npm.

yarn add @lunit/insight-viewer

Usage

import React, { Component } from 'react'

import Viewer, { HeatmapLayer, MagnifyLayer } from '@lunit/insight-viewer'

class Example extends Component {
  constructor (props) {
    super(props)
    this.state = {
      controls: {
        mouseMode: 'pan',
        invert: false,
        fliped: false
      },
      resetFlag: false,
      imageId: 'wadouri:[dicom file uri]',
      heatmapEnabled: false,
      posMap: [[]],
      threshold: 0.1,
      magnifyEnabled: false
    }
  }
  render () {
    return (
      <Viewer imageId={this.state.imageId} controlState={this.state.controls}
        resetFlag={this.state.resetFlag}>
        <HeatmapLayer enabled={this.state.heatmapEnabled}
          posMap={this.state.posMap} threshold={this.state.threshold} />
        <MagnifyLayer enabled={this.state.magnifyEnabled} />
      </Viewer>
    )
  }
}

See Insight MMG for more usages.

Author

@syyu

FAQs

Package last updated on 30 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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