Custom Gis Application with Arcgis Javascript API with modern layouting
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

// 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/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./VisualVariable ./support/OpacityStop".split(" "),function(c,d,b,m,n,g,h,k){var e;b=e=class extends h{constructor(a){super(a);this.type="opacity";this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(a){a&&Array.isArray(a)&&(a=a.filter(f=>
!!f),a.sort((f,l)=>f.value-l.value));this._set("stops",a)}clone(){return new e({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(a=>a.clone()),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(a=>a.value||0)}};c.__decorate([d.property({readOnly:!0})],
b.prototype,"cache",null);c.__decorate([d.property({type:["opacity"],json:{type:["transparencyInfo"]}})],b.prototype,"type",void 0);c.__decorate([d.property({type:String,json:{write:!0}})],b.prototype,"normalizationField",void 0);c.__decorate([d.property({type:[k],json:{write:!0}})],b.prototype,"stops",null);return b=e=c.__decorate([g.subclass("esri.renderers.visualVariables.OpacityVariable")],b)});