@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 710 B
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{createResolver as e}from"../../../../../../core/promiseUtils.js";import{Container as s}from"../../../Container.js";import{TestDisplayObject as r}from"./TestDisplayObject.js";class t extends s{constructor(e,s){super(),this.store=e,this.meshData=s}whenRender(){return null==this._resolver&&(this._resolver=e(),this.requestRender()),this._resolver.promise}doRender(e){const s=this._stage?.bufferPool,t=r.fromMeshData(this.meshData,s,this.store);for(const[r,o]of this.store.entries())t.setActiveMesh(r),o.techniqueRef.render(e,t);t.destroy(),this._resolver&&(this._resolver.resolve(),this._resolver=null)}}export{t as TechniqueDebugContainer};