/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import t from"./HighlightGradient.js";class s{constructor(){this.type="multi",this.gradients=[]}setHighlightOptions(s){for(let e=0;e<s.length;e++)this.gradients[e]||(this.gradients[e]=new t),this.gradients[e].setHighlightOptions(s[e]);for(let t=s.length+1;t<this.gradients.length;t++)this.gradients[t].destroy();this.gradients.length=s.length}destroy(){for(const t of this.gradients)t.destroy()}getReasonsWithGradients(){let t=1;const s=[];for(let e=0;e<this.gradients.length;e++){const i=this.gradients[e];s.push({activeReasons:t,activeGradient:i}),t<<=1}return s}}export{s as MultiHighlightGradient};
