source:
imaps-frontend/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js.flow
Last change on this file was d565449, checked in by , 4 weeks ago | |
---|---|
|
|
File size: 207 bytes |
Line | |
---|---|
1 | // @flow |
2 | import type { Placement } from '../enums'; |
3 | |
4 | export 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.