@dartbot/dartboard
Version:
Dartboard implemented as a vanilla web component
11 lines (10 loc) • 401 B
TypeScript
import { Theme } from '../theme';
import { PolarPoint } from '../utils';
import { Board } from './board';
/**
* Draw a dartboard to the canvas
* @param board Board dimensions
* @param theme Theme to style the board
* @param context Canvas context to draw the board to
*/
export declare const drawBoard: (board: Board, theme: Theme, hits: PolarPoint[], context: CanvasRenderingContext2D) => void;