Gathering detailed insights and metrics for react-img-editor-dk
Gathering detailed insights and metrics for react-img-editor-dk
Gathering detailed insights and metrics for react-img-editor-dk
Gathering detailed insights and metrics for react-img-editor-dk
npm install react-img-editor-dk
Typescript
Module System
Node Version
NPM Version
TypeScript (88.57%)
Less (8.74%)
JavaScript (2.68%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
116 Stars
116 Commits
20 Forks
3 Watchers
5 Branches
3 Contributors
Updated on Jul 11, 2025
Latest Version
1.0.29
Package Id
react-img-editor-dk@1.0.29
Unpacked Size
336.73 kB
Size
36.28 kB
File Count
121
NPM Version
8.19.4
Node Version
16.20.0
Published on
Jul 20, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
react-img-editor 是一个图像编辑器 react 组件,支持对图片进行裁剪、涂鸦、文字编辑、马赛克处理等操作,同时支持自定义插件和灵活的样式配置。
查看 demo
npm install react-img-editor -S
import ReactImgEditor from 'react-img-editor'
import 'react-img-editor/assets/index.css'
<ReactImgEditor src="https://www.w3schools.com/html/img_girl.jpg" />
属性 | 描述 | 类型 | 默认值 |
---|---|---|---|
src | 图片 url | string | - |
width | 画板宽度 | number? | 700 |
height | 画板高度 | number? | 500 |
style | 画板样式 | React.CSSProperties | - |
plugins | 自定义的插件 | Plugin[] | [] |
toolbar | 工具栏配置 | { items: string[] } | {items: ['pen', 'eraser', 'arrow', 'rect', 'circle', 'mosaic', 'text', ' |
getStage | 获取 KonvaJS 的 Stage 对象,可用于下载图片等操作 | (stage: any) => void | |
defaultPluginName | 默认选中的插件名称 | string? | - |
crossOrigin | 处理跨域图片 | string? | - |
开发
npm run start
http://localhost:8888/examples/simple.html
发布
npm run lint
npm run pub
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
Found 2/27 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
90 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More