UNPKG

@playcanvas/web-components

Version:

Web Components for the PlayCanvas Engine

53 lines (52 loc) 1.61 kB
import { ParticleSystemComponent } from 'playcanvas'; import { ComponentElement } from './component'; /** * The ParticleSystemComponentElement interface provides properties and methods for manipulating * {@link https://developer.playcanvas.com/user-manual/web-components/tags/pc-particles/ | `<pc-particles>`} elements. * The ParticleSystemComponentElement interface also inherits the properties and methods of the * {@link HTMLElement} interface. * * @category Components */ declare class ParticleSystemComponentElement extends ComponentElement { private _asset; /** @ignore */ constructor(); getInitialComponentData(): object; /** * Gets the underlying PlayCanvas particle system component. * @returns The particle system component. */ get component(): ParticleSystemComponent | null; private applyConfig; private _loadAsset; /** * Sets the id of the `pc-asset` to use for the model. * @param value - The asset ID. */ set asset(value: string); /** * Gets the id of the `pc-asset` to use for the model. * @returns The asset ID. */ get asset(): string; /** * Starts playing the particle system */ play(): void; /** * Pauses the particle system */ pause(): void; /** * Resets the particle system */ reset(): void; /** * Stops the particle system */ stop(): void; static get observedAttributes(): string[]; attributeChangedCallback(name: string, _oldValue: string, newValue: string): void; } export { ParticleSystemComponentElement };