Added some missing type script definitions

This commit is contained in:
H.Alper Tuna 2018-05-18 22:33:32 +03:00 committed by GitHub
parent 5b747b9265
commit a299e87682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
konva.d.ts vendored
View File

@ -401,6 +401,7 @@ declare namespace Konva {
shadowOffsetY?: number;
shadowOpacity?: number;
shadowEnabled?: boolean;
shadowForStrokeEnabled?: boolean;
dash?: number[];
dashEnabled?: boolean;
perfectDrawEnabled?: boolean;
@ -483,12 +484,16 @@ declare namespace Konva {
lineCap(lineCap: string): this;
lineJoin(): string;
lineJoin(lineJoin: string): this;
perfectDrawEnabled(): boolean;
perfectDrawEnabled(perfectDrawEnabled: boolean): this;
sceneFunc(): Function;
sceneFunc(func: (con: Context) => {}): this;
shadowColor(): string;
shadowColor(shadowColor: string): this;
shadowEnabled(): boolean;
shadowEnabled(shadowEnabled: boolean): this;
shadowForStrokeEnabled(): boolean;
shadowForStrokeEnabled(shadowForStrokeEnabled: boolean): this;
shadowOffset(): Vector2d;
shadowOffset(shadowOffset: Vector2d): this;
shadowOffsetX(): number;