UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 2.28 kB
import{_ as e}from"../../../chunks/tslib.es6.js";import r from"../../../Graphic.js";import{isNone as t}from"../../../core/maybe.js";import{initial as o}from"../../../core/reactiveUtils.js";import{property as s}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/accessorSupport/ensureType.js";import"../../../core/arrayUtils.js";import{subclass as i}from"../../../core/accessorSupport/decorators/subclass.js";import{I3SMeshView3D as a}from"./I3SMeshView3D.js";import{DrapeTargetType as n}from"./interfaces.js";import{LayerView3D as p}from"./LayerView3D.js";import{updatingProgress as l}from"../support/updatingProperties.js";import c from"../../layers/LayerView.js";const d=.2;let m=class extends(a(p(c))){constructor(){super(...arguments),this.type="integrated-mesh-3d",this._elevationContext="im",this._isIntegratedMesh=!0,this._supportsLabeling=!1,this.drapeTargetType=n.WithoutRasterImage}get i3slayer(){return this.layer}get updatingProgressValue(){return this._controller?.updatingProgress??0}get lodFactor(){return this.view?.qualitySettings?.sceneService?.integratedMesh?.lodFactor??1}get progressiveLoadFactor(){return this.lodFactor>=1?d:1}get layerPopupEnabled(){return!1}initialize(){this.updatingHandles.add((()=>this.layer.modifications),(()=>this._loadModifications()),o),this.view.basemapTerrain.overlayManager.registerDrapeTarget(this)}destroy(){this.view.basemapTerrain.overlayManager.unregisterDrapeTarget(this)}_createLayerGraphic(){const e=new r;return e.layer=this.layer,e.sourceLayer=this.layer,e}canResume(){return super.canResume()&&(!this._controller||this._controller.rootNodeVisible)}_loadModifications(){if(this.handles.remove("modifications"),t(this.layer.modifications))return void(this._modifications=[]);const e=this.layer.modifications;this.handles.add(this.updatingHandles.addOnCollectionChange((()=>e),(()=>this._modifications=e.toArray()),o),"modifications")}};e([s()],m.prototype,"layer",void 0),e([s()],m.prototype,"i3slayer",null),e([s(l)],m.prototype,"updatingProgress",void 0),e([s()],m.prototype,"updatingProgressValue",null),e([s()],m.prototype,"lodFactor",null),e([s({readOnly:!0})],m.prototype,"progressiveLoadFactor",null),m=e([i("esri.views.3d.layers.SceneLayerView3D")],m);const u=m;export{u as default};