@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.05 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as t}from"tslib";import e from"../../core/Accessor.js";import{property as o,subclass as n}from"../../core/accessorSupport/decorators.js";let r=class extends e{constructor(t){super(t),this.average=null,this.bins=null,this.max=null,this.min=null}get binRange(){const{bins:t}=this;return t&&t.length>1?t[t.length-1].maxValue-t[0].minValue:0}set labelFormatFunction(t){this._set("labelFormatFunction",t)}get range(){const{max:t,min:e}=this;return null!=t&&null!=e?t-e:0}get state(){const{bins:t,range:e}=this;return e>0&&t?.length?"ready":"disabled"}};t([o()],r.prototype,"average",void 0),t([o()],r.prototype,"bins",void 0),t([o({readOnly:!0})],r.prototype,"binRange",null),t([o()],r.prototype,"labelFormatFunction",null),t([o()],r.prototype,"max",void 0),t([o()],r.prototype,"min",void 0),t([o({readOnly:!0})],r.prototype,"range",null),t([o({readOnly:!0})],r.prototype,"state",null),r=t([n("esri.widgets.Histogram.HistogramViewModel")],r);const l=r;export{l as default};