import { type ReplayBoardState } from "./replay.board.ts"; import { type ReplayGroup } from "./replay.ts"; import type { ReplayLook, ReplayObject, ReplayTeam, ReplayTimeline } from "./replay.types.ts"; import { type Plane } from "./turn.kit.ts"; import type { TurnModel } from "./turn.model.ts"; import type { ScoreOptions, SurfaceOptions } from "./types.ts"; /** Who stands up on a 3D view: the players and the officials. The ball and the puck stay on the floor. */ export declare const STANDING: readonly ReplayTeam[]; /** Whether a group of the replay stays on the floor of a 3D view: the trails, the passes, the shots, the goals and the ball do, and the players, their numbers and the officials stand up. */ export declare const keepOnFloor: (group: Pick) => boolean; /** The settings a 3D replay takes beyond the flat replay's look: `stand: false` keeps the players flat on the floor, as the flat replay draws them. */ export interface TurnReplayLook extends ReplayLook { stand?: boolean; /** `false` leaves a scoreboard hung over the surface as the options made it; by default it shows the replay's score, period and clock (`replayBoard`). */ board?: boolean; } /** * The size of a disc, in feet: a share of the playing surface's diagonal (the area the view is fitted to, not the ground or the building round it), so that it reads on a rink and on a pitch * alike (about 6.5 feet on a hockey rink, 12 on a soccer pitch), times the look's `scale`. It is a mark, not a person: its size says nothing of a player's height. */ export declare function discSize(area: { w: number; h: number; }, look?: ReplayLook): number; /** The playing surface of a model, in feet: what stands on it says, else the whole floor. */ export declare const playingArea: (model: Pick) => { w: number; h: number; }; /** The custom properties a floor drawing sets on its root (the teams' colours among them): the discs stand outside that SVG and take the same. */ export declare function floorVars(floor: string): string; /** What is drawn on a disc of `d` feet: the flat replay's mark for the side, and the number over it, in the drawing's own classes so that they take its colours, light and dark. */ export declare function discMarkup(o: Pick, d: number, sport: string, theme: string | undefined, vars: string): string; /** The plane of one disc: a billboard that leans to face the eye, its lower edge on the floor when it stands, its middle over (x, y). */ export declare function discPlane(o: Pick, x: number, y: number, d: number, lift: number, svg: string): Plane; /** Put a disc over a new place on the floor, as `discPlane` does: the plane is the caller's, changed in place, so that a page moving many does not make new ones. */ export declare function moveDisc(plane: Plane, x: number, y: number, d: number, lift: number): void; /** A replay laid on a 3D view's model: what `replayTurnModel` gives back. */ export interface TurnReplayModel { model: TurnModel; /** The disc of each one standing, by id, and whether it is on the surface at the time. */ discs: Map; /** The disc's size, in feet. */ size: number; /** The options the floor was drawn with, its `id` among them. */ floorOptions: SurfaceOptions | ScoreOptions; /** What the hung scoreboard shows at the time, when the model has one and the look lets the replay drive it. */ board?: ReplayBoardState; } /** The floor's options for a replay: the model's own, and an id of its own, so that the replay's groups are found in it. */ export declare const replayFloorOptions: (model: Pick) => SurfaceOptions | ScoreOptions; /** * A 3D view's model with a replay on it at a time: the floor drawn as the replay's frame (without the players when they stand), and a disc for each player and official the timeline * tracks, after the model's own planes. One that is not on the surface at the time is still a plane, and says so (`on`), so that the elements stay the same while it plays. Pure. */ export declare function replayTurnModel(model: TurnModel, timeline: ReplayTimeline, t: number, look?: TurnReplayLook): TurnReplayModel; /** A number for a test or a page that wants to know where a disc stands: its middle on the floor, in feet. */ export declare const discAt: (plane: Plane) => string;