/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{normalizeTransform as t}from"../../../../../geometry/support/quantizationUtils.js";import{getAttributeValue as o,parseElement as e,reprojectAndQuantize as r}from"./utils.js";import{featureFields as i}from"./virtualFields.js";function s(s,f,n){const a=n.spatialReference,m=n.outSpatialReference,c=t(f);for(const t of s){const s=o("element",t.attributes),f=e(s),n=f.geometry||f.graphic?.geometry;if(n){const o=r(n,a,m,c);if(o){t.geometry=o;for(const o of i)o.addToFeature(t,f)}}}}export{s as loadAnnotationFeatures};
