15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
import type { Point } from './Point.js';
|
|
import type { Rect } from './Rect.js';
|
|
export type PositionElements = {
|
|
anchor: HTMLElement;
|
|
floating: HTMLElement;
|
|
};
|
|
export type PositionRects = {
|
|
anchor: Rect;
|
|
floating: Rect;
|
|
};
|
|
export type Positions = PositionElements & {
|
|
placement: string;
|
|
};
|
|
export declare function computePosition({ anchor, floating, placement, }: Positions): Point;
|