@readium/navigator-html-injectables
Version:
An embeddable solution for connecting frames of HTML publications with a Readium Navigator
11 lines (10 loc) • 360 B
TypeScript
export interface Rect {
bottom: number;
height: number;
left: number;
right: number;
top: number;
width: number;
}
export declare function getClientRectsNoOverlap(range: Range, doNotMergeHorizontallyAlignedRects: boolean): Rect[];
export declare function rectContainsPoint(rect: Rect, x: number, y: number, tolerance: number): boolean;