File size: 931 Bytes
670a607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// import * as Phaser from 'phaser';
import BaseShape from '../../../plugins/gameobjects/shape/shapes/BaseShapes';

export default Base;

declare namespace Base {

    interface IConfig {
        x?: number, y?: number,
        width?: number, height?: number,
        color?: number,

        duration?: number,
        start?: boolean,

        ease?: string,
    }

}

declare class Base extends BaseShape {
    constructor(
        scene: Phaser.Scene,
        config?: Base.IConfig
    )

    start(duration?: number): this;
    pause(): this;
    resume(): this;
    stop(): this;
    readonly isRunning: boolean;

    setValue(t: number): this;
    value: number;

    setColor(color: number): this;
    color: number;

    setDuration(duration: number): this;
    duration: this;

    setEase(ease: string): this;
    ease: string;

    readonly centerX: number;
    readonly centerY: number;
    readonly radius: number;
}