Merge pull request #427 from marcinmajkowski/sprite-config-typings-fix

Add missing frameRate SpriteConfig typing and Sprite documentation entry
This commit is contained in:
Anton Lavrenov
2018-08-04 08:31:46 +07:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

1
konva.d.ts vendored
View File

@@ -956,6 +956,7 @@ declare namespace Konva {
animations: any;
frameIndex?: number;
image: HTMLImageElement;
frameRate?: number;
}
class Sprite extends Shape {

View File

@@ -10,6 +10,7 @@
* @param {Object} config.animations animation map
* @param {Integer} [config.frameIndex] animation frame index
* @param {Image} config.image image object
* @param {Integer} [config.frameRate] animation frame rate
* @@shapeParams
* @@nodeParams
* @example