MCPcopy
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

2import { type Variation, type Placement } from '../enums';
3
4export default function getVariation(placement: Placement): ?Variation {
5 return (placement.split('-')[1]: any);
6}

Callers 6

computeOffsetsFunction · 0.85
computeAutoPlacementFunction · 0.85
preventOverflowFunction · 0.85
computeStylesFunction · 0.85
flipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected