UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 584 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{convertFromSpatialReferenceUnit as e}from"../core/unitUtils.js";import{fromGeometry as t,getSpatialReference as o}from"../geometry/operators/support/apiConverter.js";function r(r,s={}){const{unit:n}=s;let u=t(r).calculateLength2D();if(u&&n){const t=o(r);u=e(u,t,n)}return u}const s=!0,n=Object.freeze(Object.defineProperty({__proto__:null,execute:r,supportsCurves:s},Symbol.toStringTag,{value:"Module"}));export{r as e,n as l,s};