Add missing frameRate SpriteConfig typing and Sprite documentation entry

This commit is contained in:
Marcin Majkowski 2018-08-03 23:36:49 +02:00
parent a15b27bcf1
commit ede310a19c
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