Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/floating-ui/floating-ui
/ getVariation
Function
getVariation
src/utils/getVariation.js:4–6 ·
view source on GitHub ↗
(placement: Placement)
Source
from the content-addressed store, hash-verified
2
import
{
type
Variation,
type
Placement } from
'../enums'
;
3
4
export
default
function
getVariation(placement: Placement): ?Variation {
5
return
(placement.split(
'-'
)[1]: any);
6
}
Callers
6
getVariation.test.js
File · 0.85
computeOffsets
Function · 0.85
computeAutoPlacement
Function · 0.85
preventOverflow
Function · 0.85
computeStyles
Function · 0.85
flip
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected