UNPKG

@linzjs/step-ag-grid

Version:

[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) > Reusable [ag-grid](https://www.ag-grid.com/) component for LINZ / Toitū te whenua.

20 lines (19 loc) 659 B
import { MutableRefObject } from 'react'; import { MenuDirection } from '../types'; import { getPositionHelpers } from './getPositionHelpers'; export interface placeLeftorRightParams { anchorRect: DOMRect; placeLeftorRightY: number; placeLeftX: number; placeRightX: number; arrowRef: MutableRefObject<HTMLElement | null>; arrow?: boolean; direction: MenuDirection; position: 'auto' | 'anchor' | 'initial'; } export declare const placeLeftorRight: (props: ReturnType<typeof getPositionHelpers> & placeLeftorRightParams) => { arrowY: number | undefined; x: number; y: number; computedDirection: MenuDirection; };