/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as r}from"tslib";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as i,subclass as t}from"../../core/accessorSupport/decorators.js";import o from"./VoxelIrregularSpacing.js";import s from"./VoxelRegularSpacing.js";let a=class extends e{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};r([i({type:o,json:{write:!0}})],a.prototype,"irregularSpacing",void 0),r([i({type:Boolean,json:{write:!0}})],a.prototype,"isPositiveUp",void 0),r([i({type:Boolean,json:{write:!0}})],a.prototype,"isWrappedDateLine",void 0),r([i({type:String,json:{write:!0}})],a.prototype,"label",void 0),r([i({type:String,json:{write:!0}})],a.prototype,"name",void 0),r([i({type:String,json:{write:!0}})],a.prototype,"quantity",void 0),r([i({type:s,json:{write:!0}})],a.prototype,"regularSpacing",void 0),r([i({type:Number,json:{write:!0}})],a.prototype,"size",void 0),r([i({type:String,json:{write:!0}})],a.prototype,"unit",void 0),r([i({type:Boolean,json:{read:!1}})],a.prototype,"isRegular",null),a=r([t("esri.layers.voxel.VoxelDimension")],a);const p=a;export{p as default};
