37087-vm/staticfiles/@popperjs/core/lib/utils/getOppositeVariationPlacement.js.flow
2025-12-20 09:53:29 +00:00

11 lines
269 B
Plaintext

// @flow
import type { Placement } from '../enums';
const hash = { start: 'end', end: 'start' };
export default function getOppositeVariationPlacement(
placement: Placement
): Placement {
return (placement.replace(/start|end/g, matched => hash[matched]): any);
}