1 | import type { Container } from "./Container";
|
2 | import type { IDimension } from "./Interfaces/IDimension";
|
3 | import type { IRgb } from "./Interfaces/Colors";
|
4 | import type { ICoordinates } from "./Interfaces/ICoordinates";
|
5 | import type { IParticle } from "./Interfaces/IParticle";
|
6 | import type { IContainerPlugin } from "./Interfaces/IContainerPlugin";
|
7 | import type { ILink } from "./Interfaces/ILink";
|
8 | import type { Particle } from "./Particle";
|
9 | import type { IDelta } from "./Interfaces/IDelta";
|
10 | export declare class Canvas {
|
11 | private readonly container;
|
12 | element?: HTMLCanvasElement;
|
13 | readonly size: IDimension;
|
14 | resizeFactor?: IDimension;
|
15 | private context;
|
16 | private generatedCanvas;
|
17 | private coverColor?;
|
18 | private trailFillColor?;
|
19 | private originalStyle?;
|
20 | constructor(container: Container);
|
21 | init(): void;
|
22 | loadCanvas(canvas: HTMLCanvasElement, generatedCanvas?: boolean): void;
|
23 | destroy(): void;
|
24 | paint(): void;
|
25 | clear(): void;
|
26 | windowResize(): void;
|
27 | resize(): void;
|
28 | drawConnectLine(p1: IParticle, p2: IParticle): void;
|
29 | drawGrabLine(particle: IParticle, lineColor: IRgb, opacity: number, mousePos: ICoordinates): void;
|
30 | drawParticleShadow(particle: Particle, mousePos: ICoordinates): void;
|
31 | drawLinkTriangle(p1: IParticle, link1: ILink, link2: ILink): void;
|
32 | drawLinkLine(p1: IParticle, link: ILink): void;
|
33 | drawParticle(particle: Particle, delta: IDelta): void;
|
34 | drawParticleLinks(particle: Particle): void;
|
35 | drawPlugin(plugin: IContainerPlugin, delta: IDelta): void;
|
36 | drawLight(mousePos: ICoordinates): void;
|
37 | private paintBase;
|
38 | private lineStyle;
|
39 | private initBackground;
|
40 | }
|