import { type DistrictOptions, type DistrictPlan } from "./district.ts"; import { type PresetTable } from "./turn.camera.ts"; import { type KyogijoTurn } from "./turn.dom.ts"; import { type TurnModel, type TurnSettings } from "./turn.model.ts"; /** What can be asked of a district's 3D view beyond a surface's: `roof` and `roofOpen` for every venue that has one (as `venue: { roof, roofOpen }` of a single venue's view). */ export type DistrictTurnSettings = TurnSettings; /** The four viewpoints of a district, turned with the map: the main camera looks from the south over the district (north at the top of the page), the end-on view from the west and the low corner from the south-west. */ export declare function districtPresets(plan: Pick): PresetTable; /** * A district as a 3D model: the floor is the district's flat plan with each venue's building only, and on it stands each venue as it stands on its own (turned about the middle of its surface and moved to its place in the * district), with a name over each where the district has labels. A `TurnModel` like any other: `turnMarkupOf` and `mountDistrictTurn` make a view of it. */ export declare function buildDistrictTurn(options: DistrictOptions, settings?: DistrictTurnSettings): TurnModel; /** * Mount a district 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 district's plan with each venue standing on it. * @example * ```ts no-run * import { mountDistrictTurn } from "@johnmorrisdotca/kyogijo-stadiums/district"; * const view = mountDistrictTurn(document.querySelector("#city")!, { venues: ["bc-place", "rogers-arena"] }, { preset: "broadcast" }); * view.set({ yaw: 40 }); * ``` */ export declare function mountDistrictTurn(host: HTMLElement, options: DistrictOptions, settings?: DistrictTurnSettings): KyogijoTurn; /** A district as the markup of a 3D view, still until a page's script makes it turn: pure, so a server can make it. */ export declare function districtTurnMarkup(options: DistrictOptions, settings?: DistrictTurnSettings): string; /** The distance in feet that a number of metres is: what a test or a caller needs to compare the plan with the ground. */ export declare const feetOf: (metres: number) => number;