UNPKG

@playcanvas/web-components

Version:

Web Components for the PlayCanvas Engine

33 lines (32 loc) 1.3 kB
import { Color, StandardMaterial } from 'playcanvas'; /** * The MaterialElement interface provides properties and methods for manipulating * {@link https://developer.playcanvas.com/user-manual/web-components/tags/pc-material/ | `<pc-material>`} elements. * The MaterialElement interface also inherits the properties and methods of the * {@link HTMLElement} interface. */ declare class MaterialElement extends HTMLElement { private _diffuse; private _diffuseMap; private _metalnessMap; private _normalMap; private _roughnessMap; material: StandardMaterial | null; createMaterial(): void; disconnectedCallback(): void; setMap(map: string, property: 'diffuseMap' | 'metalnessMap' | 'normalMap' | 'glossMap'): void; set diffuse(value: Color); get diffuse(): Color; set diffuseMap(value: string); get diffuseMap(): string; set metalnessMap(value: string); get metalnessMap(): string; set normalMap(value: string); get normalMap(): string; set roughnessMap(value: string); get roughnessMap(): string; static get(id: string): StandardMaterial | null | undefined; static get observedAttributes(): string[]; attributeChangedCallback(name: string, _oldValue: string, newValue: string): void; } export { MaterialElement };