Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.85/designer/js/definition-builder/diagram-builder/util/getBezierEdgeCenter",["module","exports","require"],(function(e,t,r){window;{function o(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function i({c:e,pos:t,x1:r,x2:i,y1:a,y2:n}){let s,u;switch(t){case"left":s=r-o(r-i,e),u=a;break;case"right":s=r+o(i-r,e),u=a;break;case"top":s=r,u=a-o(a-n,e);break;case"bottom":s=r,u=a+o(n-a,e)}return[s,u]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({curvature:e,sourcePosition:t,sourceX:r,sourceY:o,targetPosition:a,targetX:n,targetY:s}){const[u,c]=i({c:e,pos:t,x1:r,x2:n,y1:o,y2:s}),[d,l]=i({c:e,pos:a,x1:n,x2:r,y1:s,y2:o}),f=.125*r+.375*u+.375*d+.125*n,b=.125*o+.375*c+.375*l+.125*s,g=Math.abs(f-r),y=Math.abs(b-o);return[f,b,g,y]}}}));
//# sourceMappingURL=getBezierEdgeCenter.js.map