UNPKG

konva

Version:

HTML5 2d canvas library.

28 lines (27 loc) 796 B
import type { ShapeConfig } from '../Shape.ts'; import { Shape } from '../Shape.ts'; import type { GetSet } from '../types.ts'; import type { Context } from '../Context.ts'; export interface ArcConfig extends ShapeConfig { angle: number; innerRadius: number; outerRadius: number; clockwise?: boolean; } export declare class Arc extends Shape<ArcConfig> { _sceneFunc(context: Context): void; getWidth(): number; getHeight(): number; setWidth(width: number): void; setHeight(height: number): void; getSelfRect(): { x: number; y: number; width: number; height: number; }; innerRadius: GetSet<number, this>; outerRadius: GetSet<number, this>; angle: GetSet<number, this>; clockwise: GetSet<boolean, this>; }