@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.6 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
*/
import{isSome as e}from"../../core/arrayUtils.js";import{load as r,supportsCurves as t,execute as o,executeMany as a,isLoaded as n}from"./gx/operatorProject.js";let s,i,c,m,f,p,u,l,h,j,x,T;function g(){return!!i&&n()}async function E(){if(!g()){const[e,o,a,n]=await Promise.all([import("./support/apiConverter.js"),import("../../chunks/ProjectionTransformation.js").then((e=>e.aI)).then((({CompositeGeographicTransformation:e})=>e)),import("../../chunks/ProjectionTransformation.js").then((e=>e.aJ)).then((({create:e,createFromWKT:r})=>({create:e,createFromWKT:r}))),import("../../chunks/ProjectionTransformation.js").then((e=>e.aK)).then((({create:e,createEx:r,createFromAoi:t})=>({create:e,createEx:r,createFromAoi:t}))),r()]);s=e.fromExtent,i=e.fromGeometry,c=e.fromSpatialReference,m=e.getSpatialReference,f=e.toGeometry,p=o,u=a.create,l=a.createFromWKT,h=n.createEx,j=n.createFromAoi,x=n.create,T=t()}}function k(e,r,t={}){const a=d(m(e),r,t);return f(o(i(e),a),r)}function F(r,t,o={}){const n=r.map(i),s=d(m(r),t,o);return a(n,s).map((e=>f(e,t))).filter(e)}function d(e,r,t={}){let o;const a=c(e),n=c(r);if(t?.geographicTransformation){const e=t.geographicTransformation.steps.map((e=>e.wkid?u(e.wkid,e.isInverse):l(e.wkt,e.isInverse)));o=new p(e,null,a,n)}else if(t?.areaOfInterestExtent)return j(a,n,s(t.areaOfInterestExtent).asEnvelope2D());return o?h(a,n,o):x(a,n)}export{k as execute,F as executeMany,g as isLoaded,E as load,T as supportsCurves};