UNPKG

text-particle

Version:
19 lines (18 loc) 618 B
import { ParticleConfig } from "../../effect"; import { Particle } from "../../particle"; import { Renderer } from "../renderer"; export declare class CanvasRenderer extends Renderer { protected root: HTMLCanvasElement; protected config: ParticleConfig; private ctx; constructor(root: HTMLCanvasElement, config: ParticleConfig); resize(): void; render(particles: Particle[], config: ParticleConfig): void; private singleDraw; private _singleDraw; private updateDrawStyle; /** * We can improve drawing performance if the user sets the color */ private batchDraw; }