UNPKG

@flodlc/nebula

Version:

Including configurable Stars, Nebulas, Comets, Planets and Suns. Nebula comes with a vanilla JS and a React wrapper. Compatible with SSR

23 lines (22 loc) 544 B
import { SystemConfig } from "../types"; export declare class Nebula { private config; private element; private readonly bgCanvas; private readonly canvas; private cancelAnimations; private coloration?; private stars; private comets; private planets; constructor({ config, element, }: { config: SystemConfig; element: HTMLElement; }); private onResize; private styleCanvas; setConfig(config: SystemConfig): void; private init; draw(): void; destroy(): void; }