UNPKG

511 BTypeScriptView Raw
1import Path, { PathProps } from '../Path';
2export declare class RectShape {
3 r?: number | number[];
4 x: number;
5 y: number;
6 width: number;
7 height: number;
8}
9export interface RectProps extends PathProps {
10 shape?: Partial<RectShape>;
11}
12declare class Rect extends Path<RectProps> {
13 shape: RectShape;
14 constructor(opts?: RectProps);
15 getDefaultShape(): RectShape;
16 buildPath(ctx: CanvasRenderingContext2D, shape: RectShape): void;
17 isZeroArea(): boolean;
18}
19export default Rect;