You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
760 B
1 lines
760 B
const d=480;function _(o,n,H){return Math.min(Math.max(o,n),H)}function u({point:o,rowCount:n=0,loading:H=!1,empty:c=!1,safeLeft:N=448,safeRight:h=1472,preferredTop:s=196,safeTop:L=94}){if(!o)return{width:480,height:176,style:{}};const P=_(Number(n)||0,0,10),i=H||c?176:58+Math.max(P,1)*27,e=_(i,176,272),E=_(o.y-18,72,1080-28),T=E-s,a=E-L;let t=e,A=E-e;T>=112?(t=Math.min(e,T),A=E-t):a>=112?(t=Math.min(e,a),A=E-t):(t=Math.max(112,Math.min(e,E-72)),A=E-t);const r=_(N,24,1920-480-24),R=_(h,r+480,1920-24),I=_(o.x-480/2,r,R-480),D=_(o.x-I,28,480-28);return{width:480,height:Math.round(t),style:{left:`${Math.round(I)}px`,top:`${Math.round(A)}px`,right:"auto",bottom:"auto",width:"480px","--feature-panel-anchor-x":`${Math.round(D)}px`}}}export{d as F,u as c};
|
|
|