UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 991 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{l as n,i as r,p as t}from"../../../chunks/pe.js";let o,s;function u(){return!!o&&r()}async function c(){if(!u()){const[e,r,u]=await Promise.all([import("../../../chunks/OperatorShapePreservingProject.js"),import("../../../chunks/Envelope.js").then((e=>e.a7)).then((({Envelope:e})=>e)),import("../../../chunks/ProjectionTransformation.js").then((e=>e.aG)).then((({injectPe:e})=>e)),n()]);o=new e.OperatorShapePreservingProject,s=r,u(t)}}function i(e,n,r,t){return o.execute(e,n,r,t,null)}function a(n,r,t,u){let c=null,i=new s;for(const e of n)e.queryEnvelope(i),c?c.merge(i):(c=i,i=new s);const a=o.executeMany(new e(n),c,r,t,u,null);return Array.from(a)}function p(){return o.supportsCurves()}export{i as execute,a as executeMany,u as isLoaded,c as load,p as supportsCurves};