/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{throwIfAborted as n}from"../../core/promiseUtils.js";import{toUnit as e}from"../../core/quantity.js";import{setTestConfig as i}from"../../views/analysis/ElevationProfile/constants.js";import{geodeticDistanceThresholdMeters as r}from"../../views/support/measurementWorkerUtils.js";function o(n){return n.forceInteractive()}function t(n){return e(n,"meters").value>r}function s(n){return null!=n.measurementData?.measurements}function a(){return i()}async function m(e){const{ElevationProfileChart:i}=await import("../../views/analysis/ElevationProfile/ElevationProfileChart.js");return n(e.signal),new i({analysisView:e.analysisView,container:e.container,messages:e.messages,onCursorPositionChange:e.onCursorPositionChange,onRangeChange:e.onRangeChange,uniformScaling:e.uniformScaling??!1,view:e.view})}export{m as createChart,o as forceInteractive,s as hasValidAreaResult,t as isAboveGeodesicDistanceThreshold,a as setElevationProfileTestConfig};
