/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/Clonable","../../core/Collection","../../core/collectionUtils","../../core/JSONSupport","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass","./VoxelDynamicSection","./VoxelSlice"],(function(e,t,o,r,i,s,c,n,l,a,p,y,d){"use strict";let u=function(t){function o(e){var o;return(o=t.call(this,e)||this).volumeId=0,o.verticalExaggeration=1,o.exaggerationMode="scale-height",o.verticalOffset=0,o.slices=new r,o.dynamicSections=new r,o}return e._inheritsLoose(o,t),e._createClass(o,[{key:"slices",set:function(e){this._set("slices",i.referenceSetter(e,this._get("slices"),r.ofType(d)))}},{key:"dynamicSections",set:function(e){this._set("dynamicSections",i.referenceSetter(e,this._get("dynamicSections"),r.ofType(y)))}}]),o}(o.ClonableMixin(s.JSONSupport));t.__decorate([c.property({type:a.Integer,json:{write:{enabled:!0,isRequired:!0}}})],u.prototype,"volumeId",void 0),t.__decorate([c.property({type:Number,json:{default:1,write:!0}})],u.prototype,"verticalExaggeration",void 0),t.__decorate([c.property({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],u.prototype,"exaggerationMode",void 0),t.__decorate([c.property({type:Number,json:{default:0,write:!0}})],u.prototype,"verticalOffset",void 0),t.__decorate([c.property({type:r.ofType(d),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],u.prototype,"slices",null),t.__decorate([c.property({type:r.ofType(y),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],u.prototype,"dynamicSections",null),u=t.__decorate([p.subclass("esri.layers.support.VoxelVolumeStyle")],u);return u}));
