
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
react-cropview
Advanced tools
A React component providing a cropped view for large contents and making it draggable.
A React component providing a cropped view for large contents and making it draggable.
NOTICE: This module is still alpha quality.
npm install --save react-cropview
Please check out example directory.
It's very simple. Just wrap your content with <CropView>
component.
import CropView from 'react-cropview';
// ...
render() {
return <div>
<Cropview width={320} height={240}>
<img src="large.jpg" alt="image" />
</Cropview>
</div>:
}
<Cropview />
name
(string
):width
(string
|number
) [required] :height
(string
|number
) [required] :constraint
(boolean
): Prevent over dragging. Default is true
.centering
(boolean
): Centering content in default. Default is true
.measureOn
(string
): hover
or mount
. Default is mount
.npm install
npm run build
npm start
Open http://localhost:8080/webpack-dev-server/
for auto-reloading.
If you want to debug with React Dev Tools, http://localhost:8080/
will be preferred.
See the Releases page on GitHub.
MIT
Yuki Kodama / @kuy
FAQs
A React component providing a cropped view for large contents and making it draggable.
The npm package react-cropview receives a total of 13 weekly downloads. As such, react-cropview popularity was classified as not popular.
We found that react-cropview 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.