import { ObservationMark, ObservationScene } from './observations-card'; /** One grid cell for a prism layout: everything but its geometry. */ export interface PrismCell extends Omit, 'x' | 'y' | 'width' | 'height' | 'shape' | 'prism'> { column: number; row: number; /** Position of the value in the domain, 0 to 1; ignored for missing and future cells. */ share: number; } export interface PrismGridOptions { /** The tallest cell rises this many cell lengths above the floor. Default 5. */ rise?: number; /** Space between neighbouring prisms as a share of a cell, 0 to 0.6. Default 0.2. */ gap?: number; } /** * Columns recede shallowly to the right and rows more steeply toward the viewer, so a long grid * reads as a low street rather than a steep isometric strip. */ export declare const COLUMN_AXIS: readonly [number, number]; export declare const ROW_AXIS: readonly [number, number]; /** Screen offset of a floor point `x` along the columns and `y` along the rows, `z` up. */ export declare const project: (x: number, y: number, z?: number) => readonly [number, number]; /** * Stands a grid of cells up as square prisms seen from above and in front. Height and color both * carry the value; missing cells keep a low slab on the floor and future cells lie flat as * outlines. Column labels run along the front edge, row labels along the right end. */ export declare function prismGridLayout(cells: readonly PrismCell[], columns: number, rows: number, width: number, height: number, { rise, gap, columnLabels, rowLabels, note, }: PrismGridOptions & { columnLabels?: readonly { column: number; text: string; }[]; rowLabels?: readonly { row: number; text: string; }[]; note?: string; }): ObservationScene; /** A prism described on the floor: its footprint in floor units, where it starts and how tall. */ export interface FloorPrism extends Omit, 'x' | 'y' | 'width' | 'height' | 'shape' | 'prism'> { footprint: readonly (readonly [number, number])[]; /** Height of its floor and of the prism itself, in floor units. */ base: number; rise: number; depth: number; wave: number; } /** Scales a set of floor prisms to fill the card, centred, and turns each into a prism mark. */ export declare function fitFloorPrisms(items: readonly FloorPrism[], width: number, height: number, { headroom, below }?: { headroom?: number; below?: number; }): { marks: ObservationMark[]; scale: number; width: number; height: number; toScreen: (x: number, y: number, z?: number) => readonly [number, number]; };