You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
1.5 KiB
6 lines
1.5 KiB
// All material copyright Esri, All Rights Reserved, unless otherwise specified. |
|
// See https://js.arcgis.com/4.30/esri/copyright.txt for details. |
|
//>>built |
|
define("../../chunks/tslib.es6 ../../core/arrayUtils ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/has ../../core/accessorSupport/decorators/subclass ./commonProperties ./UniqueValue".split(" "),function(d,k,b,l,g,m,r,n,p,f){b=class extends b.ClonableMixin(l.JSONSupport){constructor(a){super(a);this.values=this.symbol=this.label=this.description=null}castValues(a){if(null==a)return null;a=Array.isArray(a)? |
|
a:[a];const c=typeof a[0];return"string"===c||"number"===c?a.map(e=>new f({value:e})):"object"===c?a[0]instanceof f?a:a.map(e=>new f(e)):null}};d.__decorate([g.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);d.__decorate([g.property({type:String,json:{write:!0}})],b.prototype,"label",void 0);d.__decorate([g.property(p.rendererSymbolProperty)],b.prototype,"symbol",void 0);d.__decorate([g.property({type:[f],json:{type:[[String]],read:{reader:a=>a?a.map(c=>new f({value:c[0], |
|
value2:c[1],value3:c[2]})):null},write:{writer:(a,c)=>{const e=[];for(const h of a)a=[h.value,h.value2,h.value3].filter(k.isSome).map(q=>q.toString()),e.push(a);c.values=e}}}})],b.prototype,"values",void 0);d.__decorate([m.cast("values")],b.prototype,"castValues",null);return b=d.__decorate([n.subclass("esri.renderers.support.UniqueValueClass")],b)}); |