@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.5 kB
JavaScript
import{_ as e}from"../../../chunks/tslib.es6.js";import r from"../../../core/Evented.js";import{HandleOwnerMixin as t}from"../../../core/HandleOwner.js";import{IdentifiableMixin as s}from"../../../core/Identifiable.js";import{EsriPromiseMixin as i}from"../../../core/Promise.js";import{property as o}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/accessorSupport/ensureType.js";import"../../../core/arrayUtils.js";import{subclass as p}from"../../../core/accessorSupport/decorators/subclass.js";const l=(l,n)=>{let u=class extends(i(t(s(r.EventedMixin(l))))){constructor(e){super(e),this.sublayer=null,this.parent=null,this.view=null}initialize(){}get suspended(){return!this.canResume()}get updating(){return!this.suspended&&this.isUpdating()}get visible(){return!!this.sublayer?.visible}set visible(e){this._overrideIfSome("visible",e)}get fullOpacity(){const e=e=>null!=e?e:1;return e(this.get("sublayer.opacity"))*e(this.get("parent.fullOpacity"))}canResume(){return!this.parent?.suspended&&this.view?.ready&&this.visible||!1}isUpdating(){return!1}};return e([o()],u.prototype,"sublayer",void 0),e([o()],u.prototype,"parent",void 0),e([o({readOnly:!0})],u.prototype,"suspended",null),e([o({type:Boolean,readOnly:!0})],u.prototype,"updating",null),e([o()],u.prototype,"view",void 0),e([o()],u.prototype,"visible",null),e([o()],u.prototype,"fullOpacity",null),u=e([p("esri.views.3d.layers.BuildingSublayerView3D")],u),u};export{l as BuildingSublayerView3DMixin};