1 | import Path, { PathProps } from '../Path';
|
2 | import { VectorArray } from '../../core/vector';
|
3 | export declare class PolygonShape {
|
4 | points: VectorArray[];
|
5 | smooth?: number;
|
6 | smoothConstraint?: VectorArray[];
|
7 | }
|
8 | export interface PolygonProps extends PathProps {
|
9 | shape?: Partial<PolygonShape>;
|
10 | }
|
11 | declare class Polygon extends Path<PolygonProps> {
|
12 | shape: PolygonShape;
|
13 | constructor(opts?: PolygonProps);
|
14 | getDefaultShape(): PolygonShape;
|
15 | buildPath(ctx: CanvasRenderingContext2D, shape: PolygonShape): void;
|
16 | }
|
17 | export default Polygon;
|