UNPKG

@arcgis/core

Version:

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

1 lines 2.52 kB
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3331,6061],{3331:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>k,executeMany:()=>_,isLoaded:()=>b,load:()=>g,supportsCurves:()=>x});var r=n(76061),o=n(83290);let a,i,s,c,m,l,u,f,h,p,d,G,x;function w(){return!!a&&(0,o.i)()}async function y(){if(!w()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(2189)]).then(n.bind(n,12189)).then((e=>e.aH)),Promise.all([n.e(3661),n.e(1878),n.e(2189)]).then(n.bind(n,12189)).then((e=>e.aG)).then((({injectPe:e})=>e)),(0,o.l)()]);a=new e.OperatorProject,t(o.p)}}function P(){return a.supportsCurves()}function b(){return!!s&&w()}async function g(){if(!b()){const[e,t,r,o]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(8125)]).then(n.bind(n,78125)),Promise.all([n.e(3661),n.e(1878),n.e(2189)]).then(n.bind(n,12189)).then((e=>e.aI)).then((({CompositeGeographicTransformationEditor:e})=>e)),Promise.all([n.e(3661),n.e(1878),n.e(2189)]).then(n.bind(n,12189)).then((e=>e.aJ)).then((({create:e,createFromWKT:t})=>({create:e,createFromWKT:t}))),Promise.all([n.e(3661),n.e(1878),n.e(2189)]).then(n.bind(n,12189)).then((e=>e.aK)).then((({create:e,createEx:t,createFromAoi:n})=>({create:e,createEx:t,createFromAoi:n}))),y()]);i=e.fromExtent,s=e.fromGeometry,c=e.fromSpatialReference,m=e.getSpatialReference,l=e.toGeometry,u=t,f=r.create,h=r.createFromWKT,p=o.createEx,d=o.createFromAoi,G=o.create,x=P()}}function k(e,t,n={}){const r=E(m(e),t,n);return l(function(e,t){return a.execute(e,t,null)}(s(e),r),t)}function _(e,t,n={}){return function(e,t){const n=a.executeMany(new r.S(e),t,null);return Array.from(n)}(e.map(s),E(m(e),t,n)).map((e=>l(e,t)))}function E(e,t,n={}){let r;const o=c(e),a=c(t);if(n?.geographicTransformation){const e=new u;e.setInputSpatialReference(o),e.setOutputSpatialReference(a);for(const t of n.geographicTransformation.steps){let n;n=t.wkid?f(t.wkid,t.isInverse):h(t.wkt,t.isInverse),e.add(n)}r=e.create()}else if(n?.areaOfInterestExtent)return d(o,a,i(n.areaOfInterestExtent).asEnvelope2D());return r?p(o,a,r):G(o,a)}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}}}]);