@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.85 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{_ as e}from"../../chunks/tslib.es6.js";import s from"../../core/Collection.js";import 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 l from"./VoxelIsosurface.js";import n 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(l))}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:n,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(l),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);export{c as default};