import{TOOLTIP_MARGIN as t}from"./constants.js";var o=function(t,o,r){return 100*(t-o)/(r-o)},r=function(t,o,r){return o+t*(r-o)/100},n=function(t,o,r,n,i){return t<n?{from:n,to:r}:t>r-i?{from:r-i,to:r}:{from:t,to:r}},i=function(t,o,r,n,i){return t>n?{from:o,to:n}:t<o+i?{from:o,to:o+i}:{from:o,to:t}},f=function(o){var r=o.isHorizontalOrientation,n=o.railPosition,i=o.tooltipPosition;return{top:r?n.y-t:i.y,left:r?i.x:n.x-t,right:r?i.x:n.x+t,bottom:r?n.y:i.y,width:0,height:0}};export{o as calculatePercentForValue,r as calculateValueFromPercent,f as getToolipBoundingClientRect,n as updateFromValue,i as updateToValue};
