import Shape from './shape'; import { ArcOptions } from '../models/painter'; class Arc extends Shape { draw(): void { const { x = 0, y = 0, r = 0, startAngle = 0, endAngle = Math.PI * 2, anticlockwise = false, } = this.config as ArcOptions; this.ctx.beginPath(); if (startAngle !== endAngle) { this.ctx.arc(x, y, r, startAngle, endAngle, anticlockwise); } this.ctx.stroke(); } } export default Arc;