VoxelVariableStyle.js 1.8 KB

12345
  1. /*
  2. All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  3. See https://js.arcgis.com/4.25/esri/copyright.txt for details.
  4. */
  5. import{_ as e}from"../../chunks/tslib.es6.js";import s from"../../core/Collection.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{clone as o}from"../../core/lang.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import{Integer as i}from"../../core/accessorSupport/ensureType.js";import{subclass as u}from"../../core/accessorSupport/decorators/subclass.js";import n from"./VoxelIsosurface.js";import l from"./VoxelTransferFunctionStyle.js";import a from"./VoxelUniqueValue.js";var p;let c=p=class extends r{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(s.ofType(a)),this.isosurfaces=new(s.ofType(n))}clone(){return new p({variableId:this.variableId,label:this.label,transferFunction:o(this.transferFunction),uniqueValues:o(this.uniqueValues),isosurfaces:o(this.isosurfaces)})}};e([t({type:i,json:{write:{enabled:!0,isRequired:!0}}})],c.prototype,"variableId",void 0),e([t({type:String,json:{write:!0}})],c.prototype,"label",void 0),e([t({type:l,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],c.prototype,"transferFunction",void 0),e([t({type:s.ofType(a),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],c.prototype,"uniqueValues",void 0),e([t({type:s.ofType(n),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,s=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&s}}}}})],c.prototype,"isosurfaces",void 0),c=p=e([u("esri.layers.voxel.VoxelVariableStyle")],c);const f=c;export{f as default};