Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-cornerstone-viewport-hooks
Advanced tools
react cornerstone viewport component (with hooks)
react cornerstone viewport component (with hooks)
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.
npm install --save react-cornerstone-viewport-hooks
import {
ReactCornerstoneViewportHooks,
ReactCornerstoneViewportHooksHelpers,
RectangleRoiUniqueTool,
} from "react-cornerstone-viewport-hooks";
import "react-cornerstone-viewport-hooks/dist/index.css";
const {
TOOL_NAMES,
getToolState,
setInitialToolState,
} = ReactCornerstoneViewportHooksHelpers;
Bootstrapped via create-react-library
.
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
MIT © wheresvic
FAQs
react cornerstone viewport component (with hooks)
The npm package react-cornerstone-viewport-hooks receives a total of 1 weekly downloads. As such, react-cornerstone-viewport-hooks popularity was classified as not popular.
We found that react-cornerstone-viewport-hooks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.