@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.24 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{G as e,S as r}from"../../../chunks/SimpleGeometryCursor.js";import{P as t}from"../../../chunks/Envelope.js";import{c as n}from"../../../chunks/Geometry.js";import{c as s}from"../../../chunks/MultiPathImpl.js";class u{getOperatorType(){return 10109}supportsCurves(){return!0}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}executeMany(e,r){return new c(e,r)}execute(e,r){return o(e)}}function o(e,r){const n=s(e);return null===n?new t({vd:e.getDescription()}):n}class c extends e{constructor(e,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_bDone=!1,this.m_inputGeometryCursor=e}next(){if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return n(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),o(e);this.m_bDone=!0}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const i=new u;function m(e){return i.execute(e,null)}function p(e){const t=i.executeMany(new r(e),null);return Array.from(t)}function a(){return i.supportsCurves()}export{m as execute,p as executeMany,a as supportsCurves};