UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 519 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ let e,n=null;const t=new Map;async function l(l){null==n&&(null==e&&(e=import("../../../layers/VoxelWasmPerSceneView.js")),n=await e);const o=l.view;let i=t.get(o);return i||(i=new n.default({view:o}),t.set(o,i)),i.addVoxelLayer(l)}function o(e){return t.get(e)}function i(l){const o=l.view,i=t.get(o);if(i){i.removeVoxelLayer(l)<1&&(t.delete(o),0===t.size&&(e=null,n=null))}}export{l as addLayerViewToWasm,o as getVoxelWasm,i as removeLayerViewFromWasm};