diff --git a/konva.d.ts b/konva.d.ts index 6ac32a2e..b75d94b1 100644 --- a/konva.d.ts +++ b/konva.d.ts @@ -956,6 +956,7 @@ declare namespace Konva { animations: any; frameIndex?: number; image: HTMLImageElement; + frameRate?: number; } class Sprite extends Shape { diff --git a/src/shapes/Sprite.js b/src/shapes/Sprite.js index c7d8e5a8..5fe0c5ec 100644 --- a/src/shapes/Sprite.js +++ b/src/shapes/Sprite.js @@ -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