/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{d as a,j as n,g as m}from"../../../../chunks/vec32.js";import{ConstraintOptions as t}from"./ConstraintOptions.js";function i(a,n){return 0!==(a&n)}function o(a,n,m,t,i,o){0!==a&&(m?(o.min=Math.min(o.min,n),o.max=Math.max(o.max,n)):null!=t?(o.min-=Math.max(0,(n-o.min)*(1-t)),o.max+=Math.max(0,(n-o.max)*(1-t))):i&&(o.min-=Math.max(0,n-o.min-i),o.max+=Math.max(0,n-o.max-i)))}const r=new t(0);function x(t,i,o,r){return i=i||t.viewForward,a(r,i),n(r,r,Math.sign(m(i,o))),r}export{o as adjustRangeForInteraction,r as defaultConstraintOptions,i as hasConstraintType,x as interactionDirectionTowardsConstraintMinimization};
