Add some missing definisions

This commit is contained in:
MaxGraey 2018-06-19 13:53:15 +03:00
parent 8f658a67ce
commit d2b2dd2f66

6
konva.d.ts vendored
View File

@ -202,8 +202,8 @@ declare namespace Konva {
): Node[]; ): Node[];
fire(eventType: string, evt?: any, bubble?: boolean): this; fire(eventType: string, evt?: any, bubble?: boolean): this;
getAbsoluteOpacity(): number; getAbsoluteOpacity(): number;
getAbsolutePosition(): Vector2d; getAbsolutePosition(top?: Container): Vector2d;
getAbsoluteTransform(): Transform; getAbsoluteTransform(top?: Container): Transform;
getAbsoluteZIndex(): number; getAbsoluteZIndex(): number;
getAncestors(): Collection; getAncestors(): Collection;
getAttr(attr: string): any; getAttr(attr: string): any;
@ -423,6 +423,7 @@ declare namespace Konva {
dash(dash: number[]): this; dash(dash: number[]): this;
dashEnabled(): boolean; dashEnabled(): boolean;
dashEnabled(dashEnabled: boolean): this; dashEnabled(dashEnabled: boolean): this;
drawHit(canvas?: Canvas, top?: Container, caching?: boolean): this;
drawHitFromCache(alphaThreshold: number): this; drawHitFromCache(alphaThreshold: number): this;
fill(): string; fill(): string;
fill(fill: string): this; fill(fill: string): this;
@ -484,6 +485,7 @@ declare namespace Konva {
fillPatternY(y: number): this; fillPatternY(y: number): this;
fillPriority(): string; fillPriority(): string;
fillPriority(priority: string): this; fillPriority(priority: string): this;
getSelfRect(): SizeConfig;
hasFill(): boolean; hasFill(): boolean;
hasShadow(): boolean; hasShadow(): boolean;
hasStroke(): boolean; hasStroke(): boolean;