UNPKG

954 BTypeScriptView Raw
1import type { Container } from "../Container";
2import type { Particle } from "../Particle";
3import type { IDelta } from "../Interfaces/IDelta";
4import { IParticleValueAnimation } from "../Interfaces/IParticleValueAnimation";
5import { IColorAnimation } from "../../Options/Interfaces/IColorAnimation";
6export declare class Updater {
7 private readonly container;
8 private readonly particle;
9 constructor(container: Container, particle: Particle);
10 update(delta: IDelta): void;
11 private updateLife;
12 private updateOpacity;
13 private updateSize;
14 private updateAngle;
15 private updateColor;
16 private updateStrokeColor;
17 updateColorValue(particle: Particle, delta: IDelta, value: IParticleValueAnimation<number>, valueAnimation: IColorAnimation, max: number, decrease: boolean): void;
18 private updateOutModes;
19 private updateOutMode;
20 private fixOutOfCanvasPosition;
21 private updateBounce;
22 private bounceNone;
23}