Update Arc @ Ring definition

Ok. So adding properties and methods to ArcConfig and Arc directly extending ShapeConfig / Shape according to sources
This commit is contained in:
ChamNouki 2017-05-19 08:15:36 +02:00 committed by GitHub
parent 2e1e48d440
commit 0312d2b4d4

11
konva.d.ts vendored
View File

@ -561,16 +561,23 @@ declare module Konva {
outerRadius(outerRadius: number): Ring;
}
interface ArcConfig extends RingConfig {
interface ArcConfig extends ShapeConfig {
angle: number;
innerRadius: number;
outerRadius: number;
clockwise?: boolean;
}
class Arc extends Ring {
class Arc extends Shape {
constructor(ArcConfig: ArcConfig);
angle(): number;
angle(angle: number): Ring;
clockwise(): boolean;
clockwise(clockwise: boolean): Arc;
innerRadius(): number;
innerRadius(innerRadius: number): Arc;
outerRadius(): number;
outerRadius(outerRadius: number): Arc;
}
interface CircleConfig extends ShapeConfig {