Initial commit
This commit is contained in:
30
node_modules/konva/lib/shapes/Sprite.d.ts
generated
vendored
Normal file
30
node_modules/konva/lib/shapes/Sprite.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import { Shape, ShapeConfig } from '../Shape';
|
||||
import { Animation } from '../Animation';
|
||||
import { GetSet } from '../types';
|
||||
export interface SpriteConfig extends ShapeConfig {
|
||||
animation: string;
|
||||
animations: any;
|
||||
frameIndex?: number;
|
||||
image: HTMLImageElement;
|
||||
frameRate?: number;
|
||||
}
|
||||
export declare class Sprite extends Shape<SpriteConfig> {
|
||||
_updated: boolean;
|
||||
anim: Animation;
|
||||
interval: any;
|
||||
constructor(config: any);
|
||||
_sceneFunc(context: any): void;
|
||||
_hitFunc(context: any): void;
|
||||
_useBufferCanvas(): boolean;
|
||||
_setInterval(): void;
|
||||
start(): void;
|
||||
stop(): void;
|
||||
isRunning(): boolean;
|
||||
_updateIndex(): void;
|
||||
frameIndex: GetSet<number, this>;
|
||||
animation: GetSet<string, this>;
|
||||
image: GetSet<CanvasImageSource, this>;
|
||||
animations: GetSet<any, this>;
|
||||
frameOffsets: GetSet<any, this>;
|
||||
frameRate: GetSet<number, this>;
|
||||
}
|
||||
Reference in New Issue
Block a user