Gathering detailed insights and metrics for @reactour/mask
Gathering detailed insights and metrics for @reactour/mask
Gathering detailed insights and metrics for @reactour/mask
Gathering detailed insights and metrics for @reactour/mask
npm install @reactour/mask
Typescript
Module System
Node Version
NPM Version
Leaving emotions…
Updated on Aug 12, 2022
Adding new step props: observables + highlight selectors
Updated on Jun 15, 2020
disableFocusLock + roundedMask
Updated on Apr 07, 2020
Custom Helper
Updated on Jan 18, 2019
Add close function into step
Updated on Dec 19, 2018
v1.10.0
Updated on Dec 18, 2018
TypeScript (66.41%)
MDX (16.74%)
JavaScript (14.65%)
CSS (2.2%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3,951 Stars
777 Commits
355 Forks
22 Watchers
4 Branches
47 Contributors
Updated on Jul 08, 2025
Latest Version
1.1.0
Package Id
@reactour/mask@1.1.0
Unpacked Size
17.31 kB
Size
4.68 kB
File Count
6
NPM Version
8.19.2
Node Version
18.12.1
Published on
Apr 27, 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
1
1
An SVG mask that cover all the window contents except the one specified by certain position and sizes values
1npm i -S @reactour/mask 2# or 3yarn add @reactour/mask
1import { Mask } from '@reactour/mask' 2 3function App() { 4 const sizes = { 5 width: 100, 6 height: 100, 7 top: 100, 8 left: 100, 9 } 10 11 return ( 12 <> 13 {/* ... */} 14 <Mask sizes={sizes} /> 15 </> 16 ) 17}
Mask
sizes: RectResult
1type RectResult = { 2 width: number 3 height: number 4 top: number 5 left: number 6 bottom?: number 7 right?: number 8}
Object containing size and position informations of where to position the Mask
className?: string
Class to apply to the Mask wrapper
highlightedAreaClassName?: string
Class to apply to the Highlighted area rect
padding?: number | number[]
Extra space to add in Mask calculations. Useful when calculating space from Element
bounding rect and want to add more space.
Single number sets same space for all sides, otherwise an Array sets [x, y]
or [top, x, bottom]
or [top, right, bottom, left]
.
wrapperPadding?: number | number[]
Extra space to add between viewport with and height.
Single number sets same space for all sides, otherwise an Array sets [x, y]
or [top, x, bottom]
or [top, right, bottom, left]
.
onClick?: MouseEventHandler<HTMLDivElement>
Click handler for the Mask except the highlighted area.
onClickHighlighted?: MouseEventHandler<SVGRectElement>
Click handler for the Highlighted area.
maskId?: string
String to be assigned to the <mask />
element, otherwise an automatic unique id is assigned.
clipId?: string
String to be assigned to the <clipPath />
element, otherwise an automatic unique id is assigned.
styles?: StylesObj
Prop to customize styles for the different parts of the Mask using a function that allows to extend the base styles an take advantage of some state props.
key | props |
---|---|
maskWrapper | |
maskArea | x , y , width , height |
maskRect | windowWidth , windowHeight , maskID |
clickArea | windowWidth , windowHeight , clipID |
highlightedArea | x , y , width , height |
1const styles = { 2 maskWrapper: (base) => ({ 3 ...base, 4 color: 'red', 5 }), 6 highlightedArea: (base, { x, y }) => ({ 7 ...base, 8 x: x + 10, 9 y: y + 10, 10 }), 11}
No vulnerabilities found.
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
10 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
Found 3/27 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
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
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