UNPKG

konva

Version:

HTML5 2d canvas library.

19 lines (18 loc) 586 B
import { Context } from '../Context.js'; import { Shape, ShapeConfig } from '../Shape.js'; import { GetSet } from '../types.js'; export interface StarConfig extends ShapeConfig { numPoints: number; innerRadius: number; outerRadius: number; } export declare class Star extends Shape<StarConfig> { _sceneFunc(context: Context): void; getWidth(): number; getHeight(): number; setWidth(width: number): void; setHeight(height: number): void; outerRadius: GetSet<number, this>; innerRadius: GetSet<number, this>; numPoints: GetSet<number, this>; }