12345 |
- /*
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- See https://js.arcgis.com/4.25/esri/copyright.txt for details.
- */
- import{_ as e}from"../../chunks/tslib.es6.js";import t from"../../core/Collection.js";import{referenceSetter as o}from"../../core/collectionUtils.js";import{JSONSupport as s}from"../../core/JSONSupport.js";import{clone as i}from"../../core/lang.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import{Integer as c}from"../../core/accessorSupport/ensureType.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import a from"./VoxelDynamicSection.js";import n from"./VoxelSlice.js";var p;let m=p=class extends s{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(t.ofType(n)),this.dynamicSections=new(t.ofType(a))}set slices(e){this._set("slices",o(e,this._get("slices"),t.ofType(n)))}set dynamicSections(e){this._set("dynamicSections",o(e,this._get("dynamicSections"),t.ofType(a)))}clone(){return new p({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:i(this.slices),dynamicSections:i(this.dynamicSections)})}};e([r({type:c,json:{write:{enabled:!0,isRequired:!0}}})],m.prototype,"volumeId",void 0),e([r({type:Number,json:{default:1,write:!0}})],m.prototype,"verticalExaggeration",void 0),e([r({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],m.prototype,"exaggerationMode",void 0),e([r({type:Number,json:{default:0,write:!0}})],m.prototype,"verticalOffset",void 0),e([r({type:t.ofType(n),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],m.prototype,"slices",null),e([r({type:t.ofType(a),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],m.prototype,"dynamicSections",null),m=p=e([l("esri.layers.voxel.VoxelVolumeStyle")],m);const d=m;export{d as default};
|