function l(t,n,i){const e=Math.min(t.clientX,n.clientX),c=Math.min(t.clientY,n.clientY);return{x:e,y:c,w:Math.abs(t.clientX-n.clientX),h:Math.abs(t.clientY-n.clientY),dpr:i}}const o=t=>t.w<4||t.h<4;function h(t){return{x:Math.floor(t.x*t.dpr),y:Math.floor(t.y*t.dpr),w:Math.ceil(t.w*t.dpr),h:Math.ceil(t.h*t.dpr),dpr:t.dpr}}export{l as f,o as i,h as n};
