import { AppBase } from 'playcanvas'; import { AsyncElement } from './async-element'; /** * The AppElement interface provides properties and methods for manipulating * {@link https://developer.playcanvas.com/user-manual/web-components/tags/pc-app/ | ``} elements. * The AppElement interface also inherits the properties and methods of the * {@link HTMLElement} interface. */ declare class AppElement extends AsyncElement { /** * The canvas element. */ private _canvas; private _alpha; private _backend; private _antialias; private _depth; private _stencil; private _highResolution; private _hierarchyReady; private _picker; private _hasPointerListeners; private _hoveredEntity; private _pointerHandlers; /** * The PlayCanvas application instance. */ app: AppBase | null; /** * Creates a new AppElement instance. * * @ignore */ constructor(); connectedCallback(): Promise; disconnectedCallback(): void; _onWindowResize(): void; _pickerCreate(): void; _pickerDestroy(): void; private _getPickerCoordinates; _onPointerMove(event: PointerEvent): void; _onPointerDown(event: PointerEvent): void; _onPointerUp(event: PointerEvent): void; _onPointerListenerAdded(type: string): void; _onPointerListenerRemoved(type: string): void; /** * Sets the alpha flag. * @param value - The alpha flag. */ set alpha(value: boolean); /** * Gets the alpha flag. * @returns The alpha flag. */ get alpha(): boolean; /** * Sets the antialias flag. * @param value - The antialias flag. */ set antialias(value: boolean); /** * Gets the antialias flag. * @returns The antialias flag. */ get antialias(): boolean; /** * Sets the graphics backend. * @param value - The graphics backend ('webgpu', 'webgl2', or 'null'). */ set backend(value: 'webgpu' | 'webgl2' | 'null'); /** * Gets the graphics backend. * @returns The graphics backend. */ get backend(): "webgpu" | "webgl2" | "null"; /** * Sets the depth flag. * @param value - The depth flag. */ set depth(value: boolean); /** * Gets the depth flag. * @returns The depth flag. */ get depth(): boolean; /** * Gets the hierarchy ready flag. * @returns The hierarchy ready flag. * @ignore */ get hierarchyReady(): boolean; /** * Sets the high resolution flag. When true, the application will render at the device's * physical resolution. When false, the application will render at CSS resolution. * @param value - The high resolution flag. */ set highResolution(value: boolean); /** * Gets the high resolution flag. * @returns The high resolution flag. */ get highResolution(): boolean; /** * Sets the stencil flag. * @param value - The stencil flag. */ set stencil(value: boolean); /** * Gets the stencil flag. * @returns The stencil flag. */ get stencil(): boolean; static get observedAttributes(): string[]; attributeChangedCallback(name: string, _oldValue: string, newValue: string): void; } export { AppElement };