/** * A point in 2D space. */ export declare class Point { readonly x: number; readonly y: number; constructor(x: number, y: number); } /** * Combination of position and size. */ export declare class Layout { /** * Construct from the current bounding box of a DOM element. */ static from(element: HTMLElement): Layout; readonly top: number; readonly left: number; readonly right: number; readonly bottom: number; constructor(data: Pick); width(): number; height(): number; midpoint(): Point; } export type BorderName = 'top' | 'left' | 'right' | 'bottom'; /** * Transform configuration for both axises in 2D space. */ export interface TransformConfig { x: TransformAxisConfig; y: TransformAxisConfig; } /** * Transform configuration for a single 2D axis. */ export declare class TransformAxisConfig { origin: number; scale: number; translate: number; constructor(data: Omit); /** * Apply the transform to a value on the same axis. */ apply(value: number): number; } //# sourceMappingURL=projection-core.d.ts.map