source: imaps-frontend/node_modules/konva/lib/Tween.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[d565449]1import { Animation } from './Animation.js';
2import { Node, NodeConfig } from './Node.js';
3declare class TweenEngine {
4 prop: string;
5 propFunc: Function;
6 begin: number;
7 _pos: number;
8 duration: number;
9 prevPos: number;
10 yoyo: boolean;
11 _time: number;
12 _position: number;
13 _startTime: number;
14 _finish: number;
15 func: Function;
16 _change: number;
17 state: number;
18 onPlay: Function;
19 onReverse: Function;
20 onPause: Function;
21 onReset: Function;
22 onFinish: Function;
23 onUpdate: Function;
24 constructor(prop: any, propFunc: any, func: any, begin: any, finish: any, duration: any, yoyo: any);
25 fire(str: any): void;
26 setTime(t: any): void;
27 getTime(): number;
28 setPosition(p: any): void;
29 getPosition(t: any): any;
30 play(): void;
31 reverse(): void;
32 seek(t: any): void;
33 reset(): void;
34 finish(): void;
35 update(): void;
36 onEnterFrame(): void;
37 pause(): void;
38 getTimer(): number;
39}
40export interface TweenConfig extends NodeConfig {
41 onFinish?: Function;
42 onUpdate?: Function;
43 duration?: number;
44 node: Node;
45}
46export declare class Tween {
47 static attrs: {};
48 static tweens: {};
49 node: Node;
50 anim: Animation;
51 tween: TweenEngine;
52 _id: number;
53 onFinish: Function | undefined;
54 onReset: Function | undefined;
55 onUpdate: Function | undefined;
56 constructor(config: TweenConfig);
57 _addAttr(key: any, end: any): void;
58 _tweenFunc(i: any): void;
59 _addListeners(): void;
60 play(): this;
61 reverse(): this;
62 reset(): this;
63 seek(t: any): this;
64 pause(): this;
65 finish(): this;
66 destroy(): void;
67}
68export declare const Easings: {
69 BackEaseIn(t: any, b: any, c: any, d: any): any;
70 BackEaseOut(t: any, b: any, c: any, d: any): any;
71 BackEaseInOut(t: any, b: any, c: any, d: any): any;
72 ElasticEaseIn(t: any, b: any, c: any, d: any, a: any, p: any): any;
73 ElasticEaseOut(t: any, b: any, c: any, d: any, a: any, p: any): any;
74 ElasticEaseInOut(t: any, b: any, c: any, d: any, a: any, p: any): any;
75 BounceEaseOut(t: any, b: any, c: any, d: any): any;
76 BounceEaseIn(t: any, b: any, c: any, d: any): any;
77 BounceEaseInOut(t: any, b: any, c: any, d: any): any;
78 EaseIn(t: any, b: any, c: any, d: any): any;
79 EaseOut(t: any, b: any, c: any, d: any): any;
80 EaseInOut(t: any, b: any, c: any, d: any): any;
81 StrongEaseIn(t: any, b: any, c: any, d: any): any;
82 StrongEaseOut(t: any, b: any, c: any, d: any): any;
83 StrongEaseInOut(t: any, b: any, c: any, d: any): any;
84 Linear(t: any, b: any, c: any, d: any): any;
85};
86export {};
Note: See TracBrowser for help on using the repository browser.