UNPKG

605 BTypeScriptView Raw
1import Path, { PathProps } from '../Path';
2export declare class SectorShape {
3 cx: number;
4 cy: number;
5 r0: number;
6 r: number;
7 startAngle: number;
8 endAngle: number;
9 clockwise: boolean;
10 cornerRadius: number | number[];
11}
12export interface SectorProps extends PathProps {
13 shape?: Partial<SectorShape>;
14}
15declare class Sector extends Path<SectorProps> {
16 shape: SectorShape;
17 constructor(opts?: SectorProps);
18 getDefaultShape(): SectorShape;
19 buildPath(ctx: CanvasRenderingContext2D, shape: SectorShape): void;
20 isZeroArea(): boolean;
21}
22export default Sector;