export { judgingText } from "./judging.text.ts"; import type { JudgingOptions } from "./judging.types.ts"; /** What a drawing of an assignment is, and what was worked out to make it. */ export interface JudgingDrawing { svg: string; /** The picture's width and height in its own units (its viewBox). */ width: number; height: number; /** Whether the chart is drawn. */ chart: boolean; /** For every seat of every mat drawn: whether its name and ID are in the seat. A seat with nobody in it fits. */ cards: { mat: number; seat: string; fits: boolean; }[]; title: string; description: string; /** The broadcast view: where each mat's board is and where the part of the mat that is shown is and where the middle of its contest area is, in the picture's units (the board lies over neither). Empty for the plan view. */ boards: { mat: number; x: number; y: number; width: number; height: number; plan: { x: number; y: number; width: number; height: number; }; centre: { x: number; y: number; }; }[]; } /** The picture of an assignment and what was worked out to make it. `mode` `chart` is the chart alone (for beside a 3D view). */ export declare function judgingDrawing(options: JudgingOptions, mode?: "full" | "chart"): JudgingDrawing; /** * A judging assignment as one SVG string: for each mat, the judo area with a badge at each judge's seat and, where the name and ID fit in the seat, a card with both, and beside it the chart of seat, name and ID, whose rows * grow to hold every name whole. `style` is the style the areas are judged in (`kata`: five judges); `mats` the mat areas, each with its `label` (`Mat 1`, `Mat 2` when missing) and its `officials`, each a `seat`, a `name` * and an `id`. `mat` draws one mat alone (a tab); `chart` is `auto`, `always` or `never`; `focus: "bench"` shows the judges' bench close up so that the names in the seats are as large as they can be. Light and dark follow the * page; `judgingTable` is the same thing as a table. * @example * ```ts * import { drawJudging } from "@johnmorrisdotca/kyogijo-stadiums/judging"; * const svg = drawJudging({ * style: "kata", * mats: [{ label: "Mat 1", officials: [{ seat: 1, name: "Aiko Mori", id: "J-1042" }, { seat: "central", name: "Daniel Okafor", id: "J-0377" }] }], * }); * console.log(svg.startsWith("