@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.2 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 o}from"../../chunks/tslib.es6.js";import r from"../../core/JSONSupport.js";import{property as s}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as t}from"../../core/accessorSupport/decorators/subclass.js";import{requiredRendererSymbolProperty as e,uniqueValueProperty as i}from"./commonProperties.js";var l;let p=l=class extends r{constructor(o){super(o),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new l({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const o=JSON.stringify(this.symbol?.toJSON());return`${this.value}.${o}`}};o([s({type:String,json:{write:!0}})],p.prototype,"description",void 0),o([s({type:String,json:{write:!0}})],p.prototype,"label",void 0),o([s(e)],p.prototype,"symbol",void 0),o([s(i)],p.prototype,"value",void 0),p=l=o([t("esri.renderers.support.UniqueValueInfo")],p);export{p as default};