@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 817 B
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
*/
import{getAssetUrl as e}from"../../../assets.js";import has from"../../../core/has.js";const t="esri/rest/knowledgeGraph/wasmInterface/";let s,n=null;async function r(){const e=n??s;if(e)return e;const t=!!has("wasm-simd");return s=o(t),s}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:n}=await import("../../../chunks/arcgis-knowledge-client-core.js").then((e=>e.a));return n({locateFile:s=>e(t+s)})}const a={setWasmInterfacePromise:e=>n=e,restoreWasmInterfacePromise:()=>n=null};export{o as getNewInterface,r as getWasmInterface,a as test};