package.dist.prod.util.dragAndDrop.findClosestPosition.js Maven / Gradle / Ivy
"use strict";import s from"../../types/MovePlacement.js";import M from"../../types/Orientation.js";const P=(t,r,l,i)=>{const e=Math.abs(t-r),c=Math.abs(t-l),o=Math.abs(t-i),a=Math.min(e,c,o);let n=[];switch(a){case e:n=[s.Before];break;case c:n=[s.On,e{let i=Number.POSITIVE_INFINITY,e=null;for(let f=0;f