UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 760 B
/* 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 t}from"./support/builderUtils.js";import{sameStartEndPoint as i,pointFromPolygonVertex as e}from"./support/shapeUtils.js";import{isPolygon as s,maxDigitizingDisplayEdits as o}from"../support/executorUtils.js";function r({templatePart:r,shape:p,edits:n,relationships:l,mode:a}){if(s(p))for(let s=0;s<p.rings.length;s++){const g=p.rings[s],m=g.length,h=i(g)?m-1:m;if("digitizing"===a&&n.length>o)break;for(let i=0;i<h&&!("digitizing"===a&&n.length>o);i++){const o=e(p,s,i);t({templatePart:r,shape:o,edits:n,relationships:l,mode:a})}}}const p=!1;export{r as execute,p as isAsync};