type fixes

This commit is contained in:
Anton Lavrenov 2018-12-18 12:19:51 -05:00
parent e1853e6e8b
commit 6de50d8ffd
2 changed files with 7 additions and 5 deletions

View File

@ -18,7 +18,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Changed
* getKerning TextPath API is deprecated. Use "kerningFunc" instead.
* `getKerning` TextPath API is deprecated. Use `kerningFunc` instead.
## [2.5.1][2018-11-08]

6
konva.d.ts vendored
View File

@ -324,9 +324,10 @@ declare namespace Konva {
getClassName(): string;
getClientRect(attrs?: {
skipTransform?: boolean;
relativeTo?: object;
skipShadow?: boolean;
skipStroke?: boolean;
relativeTo?: Konva.Node;
}): SizeConfig;
getContent(): HTMLDivElement;
getDepth(): number;
getHeight(): number;
getHitCanvas(): Canvas;
@ -666,6 +667,7 @@ declare namespace Konva {
setContainer(con: HTMLElement): void;
setHeight(height: number): void;
setWidth(width: number): void;
getContent(): HTMLDivElement;
}
interface LayerConfig extends ContainerConfig {