Gathering detailed insights and metrics for react-rnd-dragline-enhancement
Gathering detailed insights and metrics for react-rnd-dragline-enhancement
npm install react-rnd-dragline-enhancement
Typescript
Module System
Min. Node Version
Node Version
NPM Version
66.8
Supply Chain
84.8
Quality
74.5
Maintenance
100
Vulnerability
99.6
License
TypeScript (94.32%)
Less (3.21%)
HTML (2.48%)
Total Downloads
579
Last Day
1
Last Week
3
Last Month
15
Last Year
197
33 Stars
11 Commits
2 Forks
1 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
2.0.4
Package Id
react-rnd-dragline-enhancement@2.0.4
Unpacked Size
133.99 kB
Size
24.61 kB
File Count
20
NPM Version
9.5.0
Node Version
16.17.0
Publised On
17 Feb 2023
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-25%
3
Compared to previous week
Last month
15.4%
15
Compared to previous month
Last year
-48.4%
197
Compared to previous year
3
1
这是一个基于 react-rnd 实现的拖拽组件,在rnd的功能基础上增加了拖拽时显示辅助线及吸附的功能。
$ npm i react-rnd-dragline
or
$ yarn add react-rnd-dragline
DragArea
bounds: RndProps['bounds']
默认值为空 ""
拖拽边界,应用到所有DragItem上,也可以单独在DragItem上使用
guidelineColor: string
辅助线颜色,默认值:'#448ef7'
guidelineWidth: number
辅助线宽度,默认值:1
onAdsorb: boolean
是否开启吸附效果,默认值:ture
adsorbThreshold: number
吸附阈值,onAdsorb为ture时生效,默认值为:5
DragItem
继承 react-rnd
的所有属性,更多属性请参考 react-rnd
1import { DragArea, DragItem } from 'react-rnd-dragline'; 2import './index.less'; 3 4export default function IndexPage() { 5 return ( 6 <DragArea 7 bounds="body" 8 guidelineColor="red" 9 onAdsorb={true} 10 adsorbThreshold={5} 11 > 12 <DragItem> 13 <div className="t t1">a</div> 14 </DragItem> 15 <DragItem> 16 <div className="t t1">b</div> 17 </DragItem> 18 <DragItem> 19 <div className="t t2">c</div> 20 </DragItem> 21 <DragItem> 22 <div className="t t3">d</div> 23 </DragItem> 24 </DragArea> 25 ); 26} 27 28
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
26 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-13
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