@dartbot/dartboard
Version:
Dartboard implemented as a vanilla web component
10 lines (9 loc) • 339 B
TypeScript
import { Theme } from '../theme';
import { Board } from './board';
/**
* Draw the sectors of the board.
* @param board Board dimensions
* @param theme Theme to use for drawing
* @param context HTML canvas context to draw to
*/
export declare const drawSectors: (board: Board, theme: Theme, context: CanvasRenderingContext2D) => void;