1 | import Path, { PathProps } from '../Path';
|
2 | export 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 | }
|
12 | export interface SectorProps extends PathProps {
|
13 | shape?: Partial<SectorShape>;
|
14 | }
|
15 | declare 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 | }
|
22 | export default Sector;
|