@fluritheme/spider
Version:
A tiny, expressive spider for your website. Delicate webs that follow DOM layers, blinking eyes, and playful pointer reactions.
12 lines • 607 B
TypeScript
import type { Box, Point } from './geometry.js';
export interface PageObject {
element: HTMLElement;
box: Box;
path: Path2D;
center: Point;
}
export declare function elementMatrix(element: HTMLElement, win: Window): DOMMatrix;
/** Cache geometry, including 2D rotations inherited through nested stacking contexts. */
export declare function pageObjects(doc: Document, win: Window, selector: string): PageObject[];
export declare function outsideObjects(ctx: CanvasRenderingContext2D, objects: readonly PageObject[], width: number, height: number): void;
//# sourceMappingURL=objects.d.ts.map