UNPKG

@dartbot/dartboard

Version:

Dartboard implemented as a vanilla web component

10 lines (9 loc) 349 B
import { Theme } from '../theme'; import { Board } from '../utils'; /** * 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.Board, theme: Theme, context: CanvasRenderingContext2D) => void;