@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 878 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{makeFeatureFromGroupPart as s}from"./support/builderUtils.js";import{sameStartEndPoint as t,convertToTwoPoint as e}from"./support/shapeUtils.js";import{isPolygon as o,maxDigitizingDisplayEdits as i}from"../support/executorUtils.js";import r from"../../../../geometry/Polyline.js";function p({templatePart:p,shape:a,edits:n,relationships:l,mode:f}){if(!o(a))return;const h=[];for(const s of a.rings){const e=s.slice();t(s)||e.push(e[0].slice()),h.push(e)}if(h.length>0){const t=new r({paths:h,spatialReference:a.spatialReference,hasZ:a.hasZ,hasM:a.hasM}),o=e(t);for(const e of o){if("digitizing"===f&&n.length>i)break;s({templatePart:p,shape:e,edits:n,relationships:l,mode:f})}}}const a=!1;export{p as execute,a as isAsync};