@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.93 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as e}from"tslib";import t from"../../core/Collection.js";import{referenceSetter as o}from"../../core/collectionUtils.js";import{JSONSupport as i}from"../../core/JSONSupport.js";import{clone as s}from"../../core/lang.js";import{property as r,subclass as c}from"../../core/accessorSupport/decorators.js";import{Integer as l}from"../../core/accessorSupport/ensureType.js";import n from"./VoxelDynamicSection.js";import a from"./VoxelSlice.js";var p;let d=p=class extends i{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(t.ofType(a)),this.dynamicSections=new(t.ofType(n))}set slices(e){this._set("slices",o(e,this._get("slices"),t.ofType(a)))}set dynamicSections(e){this._set("dynamicSections",o(e,this._get("dynamicSections"),t.ofType(n)))}clone(){return new p({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:s(this.slices),dynamicSections:s(this.dynamicSections)})}};e([r({type:l,json:{write:{enabled:!0,isRequired:!0}}})],d.prototype,"volumeId",void 0),e([r({type:Number,json:{default:1,write:!0}})],d.prototype,"verticalExaggeration",void 0),e([r({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],d.prototype,"exaggerationMode",void 0),e([r({type:Number,json:{default:0,write:!0}})],d.prototype,"verticalOffset",void 0),e([r({type:t.ofType(a),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],d.prototype,"slices",null),e([r({type:t.ofType(n),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],d.prototype,"dynamicSections",null),d=p=e([c("esri.layers.voxel.VoxelVolumeStyle")],d);export{d as default};