UNPKG

@arcgis/core

Version:

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

3 lines (2 loc) 726 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{getAssetUrl as e}from"../../../assets.js";import has from"../../../core/has.js";const t="esri/rest/knowledgeGraph/wasmInterface/";let s,r;async function n(){const e=s??r;if(e)return e;const t=!!has("wasm-simd");return r=o(t),r}async function o(s){if(s){const{default:s}=await import("../../../chunks/arcgis-knowledge-client-core-simd.js").then(e=>e.a);return s({locateFile:s=>e(t+s)})}const{default:r}=await import("../../../chunks/arcgis-knowledge-client-core.js").then(e=>e.a);return r({locateFile:s=>e(t+s)})}const a={setWasmInterfacePromise:e=>s=e,restoreWasmInterfacePromise:()=>s=void 0};export{o as getNewInterface,n as getWasmInterface,a as test};