1 | import Path, { PathProps } from '../Path';
|
2 | export declare class RectShape {
|
3 | r?: number | number[];
|
4 | x: number;
|
5 | y: number;
|
6 | width: number;
|
7 | height: number;
|
8 | }
|
9 | export interface RectProps extends PathProps {
|
10 | shape?: Partial<RectShape>;
|
11 | }
|
12 | declare 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 | }
|
19 | export default Rect;
|