mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
Add missing frameRate SpriteConfig typing and Sprite documentation entry
This commit is contained in:
parent
a15b27bcf1
commit
ede310a19c
1
konva.d.ts
vendored
1
konva.d.ts
vendored
@ -956,6 +956,7 @@ declare namespace Konva {
|
|||||||
animations: any;
|
animations: any;
|
||||||
frameIndex?: number;
|
frameIndex?: number;
|
||||||
image: HTMLImageElement;
|
image: HTMLImageElement;
|
||||||
|
frameRate?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Sprite extends Shape {
|
class Sprite extends Shape {
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
* @param {Object} config.animations animation map
|
* @param {Object} config.animations animation map
|
||||||
* @param {Integer} [config.frameIndex] animation frame index
|
* @param {Integer} [config.frameIndex] animation frame index
|
||||||
* @param {Image} config.image image object
|
* @param {Image} config.image image object
|
||||||
|
* @param {Integer} [config.frameRate] animation frame rate
|
||||||
* @@shapeParams
|
* @@shapeParams
|
||||||
* @@nodeParams
|
* @@nodeParams
|
||||||
* @example
|
* @example
|
||||||
|
Loading…
Reference in New Issue
Block a user