UNPKG

@playcanvas/web-components

Version:

Web Components for the PlayCanvas Engine

30 lines (29 loc) 1.02 kB
import { AsyncElement } from './async-element'; /** * The ModelElement interface provides properties and methods for manipulating * {@link https://developer.playcanvas.com/user-manual/web-components/tags/pc-model/ | `<pc-model>`} elements. * The ModelElement interface also inherits the properties and methods of the * {@link HTMLElement} interface. */ declare class ModelElement extends AsyncElement { private _asset; private _entity; connectedCallback(): void; disconnectedCallback(): void; private _instantiate; private _loadModel; private _unloadModel; /** * 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; static get observedAttributes(): string[]; attributeChangedCallback(name: string, _oldValue: string, newValue: string): void; } export { ModelElement };