/** * Shared geometry for charts drawn with depth. Every family recedes the same way: up and to the * right at about 30°, so a bar, a candle, a ring, and a funnel side by side share one light and * one camera. The front face always keeps the measured geometry; depth only adds paint behind it. */ /** The deepest a column recedes, in pixels. */ export declare const MAX_DEPTH = 14; /** Rise per unit of depth. */ export declare const DEPTH_SLOPE: number; /** Extra paint above the tallest front face; clips reserve this much headroom. */ export declare const MAX_RISE: number; /** Screen offset of the back face for a given depth. */ export declare function depthOffset(depth: number): { dx: number; dy: number; }; /** * Depth for a column of a given footprint. Tiny readings and dense charts get proportionately * less, never a false minimum. */ export declare function columnDepth(width: number, height: number): number; export interface PrismFaces { /** The front, left edge at `x`: the footprint minus the depth, so the prism fits its slot. */ front: string; /** The whole silhouette; drawn first in the side's shade, it also fills every seam. */ side: string; top: string | null; frontWidth: number; depth: number; rise: number; } /** * A square prism inside a `width`-wide footprint. The faces overlap underneath the front by a * pixel so antialiased edges never show the plot through a seam. */ export declare function prismFaces(x: number, y: number, width: number, height: number, depth?: number, showTop?: boolean): PrismFaces; /** * A prism for a column centered on `cx`, such as a range bar or a candle body. The front stays * centered on the reading, so the crosshair and any whisker or wick pass through its middle; * the depth extends to the right. */ export declare function centeredPrism(cx: number, y: number, width: number, height: number): PrismFaces;