/** * Pixel range along one canvas axis in which drawn content can be visible. */ export type VisibleRange = { min: number; max: number; }; /** * Range along one canvas axis in which content can still be visible, widened * by `margin` on both sides for strokes and overflow padding. `undefined` when * the canvas size is unknown, in which case callers draw everything. */ export declare function getVisibleRange(canvasSize: number, margin: number): VisibleRange | undefined; /** * True when no part of the span from `start` to `start + size` reaches into * `range`. `size` can be negative. Zoomed-in charts hold many such spans, and * skipping them saves drawing them for nothing. */ export declare function isOutsideRange(start: number, size: number, range: VisibleRange): boolean; /** * True when a point lies outside the canvas. Points on the edges count as on * the canvas, and so do points with a `NaN` coordinate. */ export declare function isPointOffCanvas(x: number, y: number, canvasWidth: number, canvasHeight: number): boolean; //# sourceMappingURL=visible-range.d.ts.map