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