/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as o}from"tslib";import r from"../../Color.js";import{clone as t}from"../../core/lang.js";import{property as e,subclass as i}from"../../core/accessorSupport/decorators.js";import{Integer as s}from"../../core/accessorSupport/ensureType.js";import l from"./ColorRamp.js";import{enumeration as p}from"../../core/accessorSupport/decorators/enumeration.js";var m;let a=m=class extends l{constructor(o){super(o),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new m({fromColor:t(this.fromColor),toColor:t(this.toColor),algorithm:this.algorithm})}};o([p({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],a.prototype,"algorithm",void 0),o([e({type:r,json:{type:[s],write:{isRequired:!0}}})],a.prototype,"fromColor",void 0),o([e({type:r,json:{type:[s],write:{isRequired:!0}}})],a.prototype,"toColor",void 0),o([e({type:["algorithmic"],json:{write:{isRequired:!0}}})],a.prototype,"type",void 0),a=m=o([i("esri.rest.support.AlgorithmicColorRamp")],a);export{a as default};
