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

react-cornerstone-viewport-hooks

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cornerstone-viewport-hooks

react cornerstone viewport component (with hooks)

  • 1.9.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

react-cornerstone-viewport-hooks

react cornerstone viewport component (with hooks)

NPM JavaScript Style Guide

This repository is functionally equivalent to https://github.com/cornerstonejs/react-cornerstone-viewport with the major differences being that this component uses react hooks under the hood and does not support all the features that the original component does at the moment.

Feature parity is planned and the props should be API compatible as much as possible.

Please check the source for more information.

Install

npm install --save react-cornerstone-viewport-hooks

Usage

import {
  ReactCornerstoneViewportHooks,
  ReactCornerstoneViewportHooksHelpers,
  RectangleRoiUniqueTool,
} from "react-cornerstone-viewport-hooks";

import "react-cornerstone-viewport-hooks/dist/index.css";

const {
  TOOL_NAMES,
  getToolState,
  setInitialToolState,
} = ReactCornerstoneViewportHooksHelpers;

Development

Bootstrapped via create-react-library.

Publish

All you need to do is to update the code and push commits to master. Thereafter create a version via npm and publish. The publish command will take care of updating the dist folder and uploading it.

npm version <patch, minor, major> # creates git tag
npm publish
git push
git push --tags

License

MIT © wheresvic

FAQs

Package last updated on 22 Nov 2022

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