GenerateRendererTask.js 1.2 KB

12345
  1. /*
  2. All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  3. See https://js.arcgis.com/4.25/esri/copyright.txt for details.
  4. */
  5. import{_ as e}from"../chunks/tslib.es6.js";import{property as r}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/accessorSupport/ensureType.js";import{subclass as s}from"../core/accessorSupport/decorators/subclass.js";import{DataLayerSource as o}from"../layers/support/source/DataLayerSource.js";import{generateRenderer as t}from"../rest/generateRenderer.js";import a from"./Task.js";let c=class extends a{constructor(e){super(e),this.checkValueRange=null,this.gdbVersion=null,this.source=null}get parsedUrl(){const e=this._parseUrl(this.url);return e?(e.path+="/generateRenderer",e):null}execute(e,r){const s={checkValueRange:this.checkValueRange,gdbVersion:this.gdbVersion,source:this.source};return t(this.url,s,e,{...this.requestOptions,...r})}};e([r()],c.prototype,"checkValueRange",void 0),e([r()],c.prototype,"gdbVersion",void 0),e([r({type:o})],c.prototype,"source",void 0),e([r({readOnly:!0})],c.prototype,"parsedUrl",null),c=e([s("esri.tasks.GenerateRendererTask")],c);const p=c;export{p as default};