/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
class t{constructor(t,i,e,h){this.geometry=t,this.targetRanges=i,this.drawRangeTarget=h,this._highlightName=null,this.updateHighlightOptions(e)}updateHighlightOptions(t){const{geometry:i}=this;if(!i.hasHighlights)return void(this._highlightName=null);let e=-1,h=null;i.foreachHighlightOptions(i=>{const g=t.get(i)??-1;g>e&&(e=g,h=i)}),this._highlightName=h}get highlightName(){return this._highlightName}get isVisible(){return this.geometry.visible}get hasHighlights(){return this.isVisible&&this.geometry.hasHighlights}get hasOccludees(){return null!=this.geometry.occludees}get drawRange(){return this.targetRanges[this.drawRangeTarget]}}export{t as Instance};
