Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ mod
Function
mod
packages/react-stately/src/color/useColorWheelState.ts:81–83 ·
view source on GitHub ↗
(n: number, m: number)
Source
from the content-addressed store, hash-verified
79
}
80
81
function
mod(n: number, m: number) {
82
return
((n % m) + m) % m;
83
}
84
85
function
roundDown(v: number) {
86
let
r = Math.floor(v);
Callers
3
setHue
Function · 0.70
increment
Function · 0.70
decrement
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected