UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.44 kB
import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Evented.js";import{property as n}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/accessorSupport/ensureType.js";import"../../../core/arrayUtils.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import o from"../../../webscene/VirtualLighting.js";var a;let i=a=class extends(t.EventedMixin(o)){constructor(e){super(e),this.ambientOcclusionEnabled=!1,this.waterReflectionEnabled=!1,this.cameraTrackingEnabled=!0}clone(){return new a({...this.cloneConstructProperties(),ambientOcclusionEnabled:this.ambientOcclusionEnabled,waterReflectionEnabled:this.waterReflectionEnabled,cameraTrackingEnabled:this.cameraTrackingEnabled})}static fromWebsceneLighting(e){return new a(e.cloneConstructProperties())}cloneWithWebsceneLighting(e){const t=this.clone();return t.directShadowsEnabled=e.directShadowsEnabled,t}cloneNonPersistentConstructProperties(){return{ambientOcclusionEnabled:this.ambientOcclusionEnabled,waterReflectionEnabled:this.waterReflectionEnabled,cameraTrackingEnabled:this.cameraTrackingEnabled}}};e([n({type:Boolean})],i.prototype,"ambientOcclusionEnabled",void 0),e([n({type:Boolean})],i.prototype,"waterReflectionEnabled",void 0),e([n({type:Boolean})],i.prototype,"cameraTrackingEnabled",void 0),i=a=e([r("esri.views.3d.environment.VirtualLighting")],i);const c=i;export{c as default};