UNPKG

@playcanvas/web-components

Version:

Web Components for the PlayCanvas Engine

104 lines (103 loc) 2.69 kB
import { Color, Scene, Vec3 } from 'playcanvas'; import { AsyncElement } from './async-element'; /** * The SceneElement interface provides properties and methods for manipulating * {@link https://developer.playcanvas.com/user-manual/web-components/tags/pc-scene/ | `<pc-scene>`} elements. * The SceneElement interface also inherits the properties and methods of the * {@link HTMLElement} interface. */ declare class SceneElement extends AsyncElement { /** * The fog type of the scene. */ private _fog; /** * The color of the fog. */ private _fogColor; /** * The density of the fog. */ private _fogDensity; /** * The start distance of the fog. */ private _fogStart; /** * The end distance of the fog. */ private _fogEnd; /** * The gravity of the scene. */ private _gravity; /** * The PlayCanvas scene instance. */ scene: Scene | null; connectedCallback(): Promise<void>; updateSceneSettings(): void; /** * Sets the fog type of the scene. * @param value - The fog type. */ set fog(value: string); /** * Gets the fog type of the scene. * @returns The fog type. */ get fog(): string; /** * Sets the fog color of the scene. * @param value - The fog color. */ set fogColor(value: Color); /** * Gets the fog color of the scene. * @returns The fog color. */ get fogColor(): Color; /** * Sets the fog density of the scene. * @param value - The fog density. */ set fogDensity(value: number); /** * Gets the fog density of the scene. * @returns The fog density. */ get fogDensity(): number; /** * Sets the fog start distance of the scene. * @param value - The fog start distance. */ set fogStart(value: number); /** * Gets the fog start distance of the scene. * @returns The fog start distance. */ get fogStart(): number; /** * Sets the fog end distance of the scene. * @param value - The fog end distance. */ set fogEnd(value: number); /** * Gets the fog end distance of the scene. * @returns The fog end distance. */ get fogEnd(): number; /** * Sets the gravity of the scene. * @param value - The gravity. */ set gravity(value: Vec3); /** * Gets the gravity of the scene. * @returns The gravity. */ get gravity(): Vec3; static get observedAttributes(): string[]; attributeChangedCallback(name: string, _oldValue: string, newValue: string): void; } export { SceneElement };