source: imaps-frontend/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js.flow

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 269 bytes
Line 
1// @flow
2import type { Placement } from '../enums';
3
4const hash = { start: 'end', end: 'start' };
5
6export default function getOppositeVariationPlacement(
7 placement: Placement
8): Placement {
9 return (placement.replace(/start|end/g, matched => hash[matched]): any);
10}
Note: See TracBrowser for help on using the repository browser.