mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
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:
parent
2e1e48d440
commit
0312d2b4d4
11
konva.d.ts
vendored
11
konva.d.ts
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user