@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.08 kB
JavaScript
import{_ as o}from"../../chunks/tslib.es6.js";import{JSONSupport as s}from"../../core/JSONSupport.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import"../../core/accessorSupport/ensureType.js";import"../../core/arrayUtils.js";import{subclass as t}from"../../core/accessorSupport/decorators/subclass.js";import{rendererSymbolProperty as e,uniqueValueProperty as i}from"./commonProperties.js";var l;let p=l=class extends s{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&&this.symbol.toJSON());return`${this.value}.${o}`}};o([r({type:String,json:{write:!0}})],p.prototype,"description",void 0),o([r({type:String,json:{write:!0}})],p.prototype,"label",void 0),o([r(e)],p.prototype,"symbol",void 0),o([r(i)],p.prototype,"value",void 0),p=l=o([t("esri.renderers.support.UniqueValueInfo")],p);const n=p;export{n as default};