UNPKG

@gravatar-com/hovercards

Version:
18 lines 801 B
export type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end'; type Options = Partial<{ placement: Placement; offset: number; autoFlip: boolean; autoShift: boolean; }>; /** * Computes and assigns the position of the card element. * * @param {HTMLElement} ref - The ref element. * @param {HTMLDivElement} card - The card element. * @param {Options} [options={}] - The placement, offset, auto-flip, and auto-shift options. * @return {void} */ export default function assignPosition(ref: HTMLElement, card: HTMLDivElement, { placement, offset, autoFlip, autoShift }?: Options): void; export {}; //# sourceMappingURL=assign-position.d.ts.map