1import{eN as m,cm as c,I as g,cE as n,N as l,J as p,_ as o,m as d,e as w}from"./index-CyVzZKgG.js";import{b as u}from"./LayerView2D-Dtnnq7Ok.js";import{i as y}from"./GraphicContainer-BLeZE4EH.js";import{O as V}from"./GraphicsView2D-Co13d62n.js";import{d as f}from"./LayerView-BDFKgFC_.js";import{r as v}from"./highlightOptionsUtils-CTspGx7_.js";import"./Container-DIJ98BLI.js";import"./AGraphicContainer-CYfADnx5.js";import"./TechniqueInstance-BHVdyxQZ.js";import"./UpdateTracking2D-BU7im7tt.js";import"./Utils-B7KDTEFr.js";import"./FramebufferObject-BNdJFBQL.js";import"./BufferObject-BH6QMSVF.js";import"./TileContainer-D-dMRxQl.js";import"./WGLContainer-D8AJ7Lzg.js";import"./ProgramTemplate-DULZpuIR.js";import"./VertexArrayObject-DkbpOVOt.js";import"./VertexBuffer-CLPmkREM.js";import"./vec3f32-WCVSSNPR.js";import"./config-BOD8--da.js";import"./FeatureCommandQueue-DVWi1idW.js";import"./GraphShaderModule-DslPvKFR.js";import"./ShaderBuilder-OAyDLXfD.js";import"./utils-CyWYFr2j.js";import"./constants-BBnGEY1d.js";import"./streamLayerUtils-DFlbJ4P1.js";import"./QueueProcessor-AnzOkreC.js";import"./AttributeStore-DULZvMd7.js";import"./FeatureStoreQueryAdapter-C0ICVdNT.js";import"./queryUtils-BIR2uwrr.js";import"./timeSupport-b5uPa2kt.js";import"./FeatureMetadata-DQ_tU50O.js";import"./normalizeUtilsSync-DKAmWogf.js";import"./densifyCurvedGeometry-UxJMKMfb.js";import"./dehydratedFeatures-BVXI2t9G.js";let a=class extends u(f){attach(){this.graphicsView=new V({requestUpdateCallback:()=>this.requestUpdate(),view:this.view,graphics:this.layer.graphics,container:new y(this.view.featuresTilingScheme),layerId:this.layer.id}),this.container.addChild(this.graphicsView.container),this.addAttachHandles([this.layer.on("graphic-update",this.graphicsView.graphicUpdateHandler),m(()=>{var i;return(i=this.layer)==null?void 0:i.visible},()=>{this.graphicsView.update({state:this.view.state}),this.graphicsView.pushUpdate()})]),this._processHighlight()}detach(){this.container.removeAllChildren(),this.graphicsView=c(this.graphicsView)}async hitTest(i){return this.graphicsView?this.graphicsView.hitTest(i).map(r=>({type:"graphic",graphic:r,mapPoint:i,layer:this.layer})):null}queryGraphics(){return Promise.resolve(this.graphicsView.graphics)}update(i){this.graphicsView.processUpdate(i)}viewChange(){this.graphicsView.viewChange()}moveEnd(){}isUpdating(){return!this.graphicsView||this.graphicsView.updating}highlight(i,r){let t;typeof i=="number"?t=[i]:i instanceof g?t=[i.uid]:Array.isArray(i)&&i.length>0?t=typeof i[0]=="number"?i:i.map(s=>s&&s.uid):n.isCollection(i)&&i.length>0&&(t=i.map(s=>s&&s.uid).toArray());const e=t==null?void 0:t.filter(l);if(!(e!=null&&e.length))return p();const h=v(r);return this._addHighlights(e,h),p(()=>!this.destroyed&&this._removeHighlights(e,h))}_processHighlight(){var r;const i=this._getHighlights();(r=this.graphicsView)==null||r.setHighlight(i)}};o([d()],a.prototype,"graphicsView",void 0),a=o([w("esri.views.2d.layers.GraphicsLayerView2D")],a);const ri=a;export{ri as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.