import type { Box } from './clip'; import type { Zoom } from './model'; import type { Viewport } from './scene'; import type { AxisLeaf, WorksheetModel } from './types'; /** The continuous axes under a point of the window, each with how far along its range the point is, from 0 to 1. */ export interface AxesAt { x?: { leaf: AxisLeaf; t: number; }; y?: { leaf: AxisLeaf; t: number; }; } /** * What a pointer at window position (px, py) can zoom: the value axes of the pane it is over. * Nothing outside the body, and nothing in a pane without a value axis, such as a table of text. */ export declare function axesAt(model: WorksheetModel, body: Box, viewport: Viewport, px: number, py: number): AxesAt; /** The range after zooming `from` by `factor` around the point at share `t` of it. Below 1 zooms in. */ export declare function zoomed(leaf: AxisLeaf, from: readonly [number, number], t: number, factor: number): [number, number]; /** The range after moving the axis by `pixels` on screen, in the direction its values grow. */ export declare function panned(leaf: AxisLeaf, from: readonly [number, number], pixels: number): [number, number]; /** `zoom` with the range of one axis replaced. Returning to the range the data asks for drops the entry. */ export declare function withRange(zoom: Zoom, leaf: AxisLeaf, range: [number, number]): Zoom;