import { type CircuitDrawing } from "./circuits.draw.ts"; import type { CircuitOptions } from "./circuits.types.ts"; import { type PresetTable } from "./turn.camera.ts"; import { type KyogijoTurn } from "./turn.dom.ts"; import { type Upright } from "./turn.kit.ts"; import { type TurnModel, type TurnSettings } from "./turn.model.ts"; /** * The four viewpoints of a circuit: straight down, the main camera high over the long side of the lap, the end-on view along it and the low corner. A lap is kilometres across and flat, so the eye is kept higher than * a single surface's. */ export declare const CIRCUIT_PRESETS: PresetTable; /** The size of a turn's marker and the height of its post, in thousandths of the drawing's longer side (a marker, sized to be read: nothing of this size stands at a corner). */ export declare const CIRCUIT_MARKER: Readonly<{ size: 30; post: 22; }>; /** The most planes a circuit's 3D view may have: its markers (three planes each), its pit building and nothing else. A test holds every circuit to it. */ export declare const CIRCUIT_PLANES_MAX = 120; /** * What stands up on a circuit's floor, in its plan's frame (feet): the pit building at its mapped height and each turn's number on a post over its badge's place beside the bend, the marker turned to face the eye and leaning * back to be read square on. `drawn` is the circuit's drawing (its badges are where the markers stand) and `thin` the width of a post. The 3D view of the circuit stands these, and a district with the circuit stands them where * it puts the circuit. */ export declare function circuitUprights(drawn: CircuitDrawing, thin: number): Upright[]; /** * A circuit as a 3D model: its drawing as the floor, the pit building standing on it at its mapped height, and a marker with each turn's number on a post over its bend. `settings.uprights: false` is the floor alone. * A `TurnModel` like any other: `turnMarkupOf` and `mountCircuitTurn` make a view of it. */ export declare function buildCircuitTurn(options: CircuitOptions, settings?: TurnSettings): TurnModel; /** * Mount a circuit as a 3D view in a container: the same view as `mountKyogijoTurn`'s, with the controls, the pointer, the keys and the auto-turn of every 3D view, over the circuit's drawing with its pit building and * the turns' numbers standing up. Where the browser cannot turn it, the flat drawing is shown. * @example * ```ts no-run * import { mountCircuitTurn } from "@johnmorrisdotca/kyogijo-stadiums/circuits"; * const view = mountCircuitTurn(document.querySelector("#lap")!, { circuit: "las-vegas" }, { preset: "corner" }); * view.set({ yaw: 40 }); * ``` */ export declare function mountCircuitTurn(host: HTMLElement, options: CircuitOptions, settings?: TurnSettings): KyogijoTurn; /** * A circuit as the markup of a 3D view, still until a page's script makes it turn: pure, so a server can make it. * @example * ```ts * import { circuitTurnMarkup } from "@johnmorrisdotca/kyogijo-stadiums/circuits"; * const html = circuitTurnMarkup({ circuit: "las-vegas" }, { preset: "broadcast" }); * console.log(html.includes('data-part="turn-17"'), html.includes("preserve-3d")); * // true false * ``` */ export declare function circuitTurnMarkup(options: CircuitOptions, settings?: TurnSettings): string;