media-chrome
Version:
Custom elements (web components) for making audio and video player controls that look great in your website or app.
15 lines (14 loc) • 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;