"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../vc-util/Dom/css.js");function f(t,e,r,i){const o=e+r,n=(r-i)/2;if(r>i){if(e>0)return{[t]:n};if(e<0&&o<i)return{[t]:-n}}else if(e<0||o>i)return{[t]:e<0?n:-n};return{}}function s(t,e,r,i){const{width:o,height:n}=l.getClientSize();let u=null;return t<=o&&e<=n?u={x:0,y:0}:(t>o||e>n)&&(u={...f("x",r,t,o),...f("y",i,e,n)}),u}exports.default=s;
