From ede310a19c30c62484d976396d124b433d1c041b Mon Sep 17 00:00:00 2001 From: Marcin Majkowski Date: Fri, 3 Aug 2018 23:36:49 +0200 Subject: [PATCH] Add missing frameRate SpriteConfig typing and Sprite documentation entry --- konva.d.ts | 1 + src/shapes/Sprite.js | 1 + 2 files changed, 2 insertions(+) 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