import { type Crowd, type CrowdStands } from "./crowd.ts"; import { type Cut } from "./venue.geom.ts"; import { type Upright } from "./turn.kit.ts"; import type { LedBoardOptions, LightingOptions, SurfaceOptions } from "./types.ts"; /** What can be asked of the venue. */ export interface VenueSettings { /** Roofs and canopies over the top tier of the stands: a canopy over the back of the top tier in the open, a lid over a hall. They give way to the eye as the walls do. Off by default. */ roof?: boolean; /** A retractable roof (a real venue's: BC Place's) drawn open, the fabric gathered into its pod, instead of closed over the opening. Closed by default. */ roofOpen?: boolean; /** The walls of a real venue's building (`crowd: { real: true }`), raised on its outline: they follow `roof` where left out (a roof and walls together, as before), and `walls: true` with `roof` off raises the walls alone, `roof: true` with `walls: false` the roof alone. */ walls?: boolean; /** Fill the empty places of the stands (the apron round the surface, the back of each bowl): on for a real venue's, off for the usual stands (where it is a tournament layout's hall that asks for it). */ fill?: boolean; /** * The LED boards: ribbon boards along the fascia between the seating levels (on the front of the one level a venue has, where there is no walk) and a scoreboard hung over the middle of the playing surface. `true` for both in the package's * colours, or `{ ribbon, scoreboard, colors, pattern, score }`. Generic content, never a logo, a sponsor or a real board's text. Off by default; it wins over the crowd's own `boards`, and `false` turns that one off. See `docs/boards.md`. */ boards?: boolean | LedBoardOptions; /** * The lighting: `"night"` (or `true`, or `{ preset: "night" }`) dims the seats, lights the surface with a pool of light round it, shows small lights along the aisles and the exits, makes the boards glow and lights the rim of the concourse. * Off by default; it wins over the crowd's own `lighting`, and `false` turns that one off. See `docs/venues.md`. */ lighting?: LightingOptions; /** How finely the curves are cut: `low` a facet to each corner, `auto` (the default) three, `high` six; an oval is 12, 28 or 56 facets round. */ detail?: Cut; } /** The settings a venue is built from: the asker's, and the prefix of the ids of what it draws, which the view gives. */ export interface VenueBuild extends VenueSettings { id: string; /** Leave the scoreboard hung over the middle out (a tournament hall has scoreboards of its own). */ noCentre?: boolean; /** The teams' colours the drawing has (a crowd's `home` and `away`, or a score's teams'): what a lighting's team colours are. */ team?: { home?: string; away?: string; }; } /** What the venue is made of: the things that stand, and the patterns they are drawn with (the contents of a `defs`). */ export interface Venue { items: Upright[]; defs: string; /** How far the venue reaches beyond the surface's box on its widest side, in feet: the ground the floor needs for it to stand on. 0 for none. */ reach: number; } export declare const NO_VENUE: Venue; /** How far the roof stands over the top row at its edge, in feet (ours: no rule gives it), and how far it reaches over the seats. */ export declare const ROOF: { readonly clearance: 26; readonly canopyReach: 0.62; readonly canopyDrop: 6; readonly lidRise: 26; }; /** The stands of a surface as planes: `undefined`-free, an empty venue when the options have no crowd (or the crowd is a hall's gallery, which `venue.room.ts` raises). */ export declare function standsVenue(o: SurfaceOptions, v: VenueBuild, lift: number): Venue; /** * The stands the model says (`crowdStands`, or the stands of a tournament layout's hall) as planes: what `standsVenue` makes of a surface's, for stands that were worked out some other way. `o` is the little of the * drawing's options it reads: the sport (whether a roof is a lid), the detail (`simple` is the plain crowd) and the ground (whose capacity sets the density). */ export declare function standsVenueOf(stands: CrowdStands, crowd: Crowd, o: Pick, v: VenueBuild, lift: number): Venue;