UNPKG

konva

Version:

HTML5 2d canvas library.

20 lines (19 loc) 631 B
import type { Context } from '../Context.ts'; import type { ShapeConfig } from '../Shape.ts'; import { Shape } from '../Shape.ts'; import type { GetSet } from '../types.ts'; 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>; }