@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 841 B
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{sameStartEndPoint as e,pointFromPolygonVertex as s}from"./support/shapeUtils.js";import{isPolygon as o,maxDigitizingDisplayEdits as i}from"../support/executorUtils.js";import{getPaths as r}from"../../../../geometry/support/curves/curveUtils.js";function p({templatePart:p,shape:a,edits:l,relationships:n,mode:m,xyTolerance:u,associationFeaturesByTemplate:c}){if(!o(a))return;const f=r(a);for(let o=0;o<f.length;o++){const r=f[o],u=r.length,g=e(r)?u-1:u;if("digitizing"===m&&l.length>i)break;for(let e=0;e<g&&!("digitizing"===m&&l.length>i);e++){const i=s(a,o,e);t({templatePart:p,shape:i,edits:l,relationships:n,mode:m,associationFeaturesByTemplate:c})}}}const a=!1;export{p as execute,a as isAsync};