UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.42 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as e}from"../../chunks/tslib.es6.js";import{JSONMap as r}from"../../core/jsonMap.js";import o from"../../core/JSONSupport.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import{Integer as s}from"../../core/accessorSupport/ensureType.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as i}from"../../core/accessorSupport/decorators/subclass.js";var n;const p=new r({slider:"slider",picker:"picker"});let a=n=class extends o{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([t({type:p.apiValues,nonNullable:!0,json:{type:p.jsonValues,default:null,read:{reader:p.read},write:{isRequired:!0,writer:p.write}}})],a.prototype,"interactionMode",void 0),e([t({type:s,json:{read:{source:"numberOfStops"},write:{target:"numberOfStops",overridePolicy(){const e=null!=this.stopInterval;return{enabled:!e,isRequired:!e}}}}})],a.prototype,"numStops",void 0),e([t({type:Number,json:{write:{overridePolicy(){return{isRequired:null==this.numStops}}}}})],a.prototype,"stopInterval",void 0),a=n=e([i("esri.webdoc.widgets.Range")],a);const u=a;export{u as default};