import type { JudgingOptions } from "./judging.types.ts"; import { type KyogijoTurn } from "./turn.dom.ts"; import { type PresetTable } from "./turn.camera.ts"; import { type TurnModel, type TurnSettings } from "./turn.model.ts"; /** How high things stand, in metres (ours: no rule gives them): the table's top, a chair's seat, a name card on the table, the sign over it. */ export declare const JUDGING_HEIGHTS: Readonly<{ table: 0.75; chair: 0.45; card: 0.95; sign: 0.7; signAbove: 0.25; post: 1; }>; /** * The four viewpoints of a judging view. A card stands upright, so a high eye squashes its type: the broadcast view is from the mat side, so that the judges' table is at the far side and the cards face the eye, at a * pitch where the type is still two thirds as tall as it is wide; the others are as every surface's but for the pitch of the corner and the end. */ export declare const JUDGING_PRESETS: PresetTable; /** * A judging assignment as a 3D model: the judo floor with every mat's judges' chairs and table, a name card on the table at each seat that has a name and fits one, a number badge at the others, and the mat's name on a sign. * A `TurnModel` like any other: `turnMarkupOf` and `mountJudgingTurn` make a view of it. `mat` in the options builds one mat alone (a tab); without it the mats stand side by side. */ export declare function buildJudgingTurn(options: JudgingOptions, settings?: TurnSettings): TurnModel; /** * Mount a judging assignment 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 judo floor with each mat's judges' * table, the name cards on it and the mat's name over it. Where the browser cannot turn it, the flat picture with its chart is shown. * @example * ```ts no-run * import { mountJudgingTurn } from "@johnmorrisdotca/kyogijo-stadiums/judging"; * const view = mountJudgingTurn(document.querySelector("#mat")!, { style: "kata", mats: [{ officials: [{ seat: 1, name: "Aiko Mori", id: "J-1042" }] }] }); * view.set({ yaw: 40 }); * ``` */ export declare function mountJudgingTurn(host: HTMLElement, options: JudgingOptions, settings?: TurnSettings): KyogijoTurn; /** A judging assignment 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 judgingTurnMarkup(options: JudgingOptions, settings?: TurnSettings): string;