1 | import type { IShapeDrawer } from "../Core/Interfaces/IShapeDrawer";
|
2 | import type { IParticle } from "../Core/Interfaces/IParticle";
|
3 | import type { IImage } from "../Core/Interfaces/IImage";
|
4 | import type { Container } from "../Core/Container";
|
5 | interface ContainerImage {
|
6 | id: string;
|
7 | images: IImage[];
|
8 | }
|
9 | export declare class ImageDrawer implements IShapeDrawer {
|
10 | images: ContainerImage[];
|
11 | constructor();
|
12 | getSidesCount(): number;
|
13 | getImages(container: Container): ContainerImage;
|
14 | addImage(container: Container, image: IImage): void;
|
15 | init(container: Container): Promise<void>;
|
16 | destroy(): void;
|
17 | private loadImageShape;
|
18 | draw(context: CanvasRenderingContext2D, particle: IParticle, radius: number, opacity: number): void;
|
19 | }
|
20 | export {};
|