/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{BufferRange as t}from"./BufferRange.js";class e{constructor(e,i,h,s,g,l){this.geometry=e,this._highlightName=null,this.vertexBufferRange=new t(i,h),this.textureBufferRange=new t(s,g),this.updateHighlightOptions(l)}updateHighlightOptions(t){const{geometry:e}=this;if(!e.hasHighlights)return void(this._highlightName=null);let i=-1,h=null;e.foreachHighlightOptions(e=>{const s=t.get(e)??-1;s>i&&(i=s,h=e)}),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}}export{e as Instance};
