@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 625 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 t}from"./support/builderUtils.js";import{pointFromPolygonVertex as e}from"./support/shapeUtils.js";import{isPolygon as r}from"../support/executorUtils.js";function s({templatePart:s,shape:o,edits:i,relationships:p,mode:n}){if(!r(o))return;const{rings:l}=o;for(let r=0;r<l.length;r++){if(l[r].length>0){const l=e(o,r,0);return void t({templatePart:s,shape:l,edits:i,relationships:p,mode:n},"V0")}}}const o=!1;export{s as execute,o as isAsync};