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