UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 1.21 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as e}from"tslib";import{JSONMap as t}from"../../core/jsonMap.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";import{Integer as i}from"../../core/accessorSupport/ensureType.js";var n;const p=new t({slider:"slider",picker:"picker"});let l=n=class extends r{constructor(e){super(e),this.interactionMode=null,this.numStops=null,this.stopInterval=null}clone(){return new n({interactionMode:this.interactionMode,numStops:this.numStops,stopInterval:this.stopInterval})}};e([o({type:p.apiValues,nonNullable:!0,json:{type:p.jsonValues,default:null,read:{reader:p.read},write:{isRequired:!0,writer:p.write}}})],l.prototype,"interactionMode",void 0),e([o({type:i,json:{read:{source:"numberOfStops"},write:{target:"numberOfStops",overridePolicy(){const e=null!=this.stopInterval;return{enabled:!e,isRequired:!e}}}}})],l.prototype,"numStops",void 0),e([o({type:Number,json:{write:{overridePolicy(){return{isRequired:null==this.numStops}}}}})],l.prototype,"stopInterval",void 0),l=n=e([s("esri.webdoc.widgets.Range")],l);const u=l;export{u as default};