source: imaps-frontend/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.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: 207 bytes
Line 
1// @flow
2import type { Placement } from '../enums';
3
4export default function getMainAxisFromPlacement(
5 placement: Placement
6): 'x' | 'y' {
7 return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
8}
Note: See TracBrowser for help on using the repository browser.