@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.3 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 t}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as r}from"../../core/accessorSupport/decorators/subclass.js";let s=class extends o{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:o}=this;return null!=t&&null!=o?t-o:0}get state(){const{bins:t,range:o}=this;return o>0&&t?.length?"ready":"disabled"}};t([e()],s.prototype,"average",void 0),t([e()],s.prototype,"bins",void 0),t([e({readOnly:!0})],s.prototype,"binRange",null),t([e()],s.prototype,"labelFormatFunction",null),t([e()],s.prototype,"max",void 0),t([e()],s.prototype,"min",void 0),t([e({readOnly:!0})],s.prototype,"range",null),t([e({readOnly:!0})],s.prototype,"state",null),s=t([r("esri.widgets.Histogram.HistogramViewModel")],s);const n=s;export{n as default};