Module 861094

680 characters · in aa8f8d1dac61a394.js
Dependencies
Required by (1)
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{t:()=>i});function i(e,t,n,i){let l=function(e,t,n){function i(e){let{x:i,y:l}=e;return{x:i/100*t,y:l/100*n}}return{topLeft:i(e.topLeft),topRight:i(e.topRight),bottomRight:i(e.bottomRight),bottomLeft:i(e.bottomLeft)}}(e,t,n),a=t/i;return{originX:e.topLeft.x,originY:e.topLeft.y,matrix:function(e,t,n){let{topLeft:i,topRight:l,bottomRight:a,bottomLeft:s}=e,r=l.x-i.x,o=l.y-i.y,c=a.x-i.x,d=a.y-i.y,u=s.x-i.x,h=s.y-i.y,p=r-c,m=u-c,A=-r+c-u,f=o-d,x=h-d,g=-o+d-h,C=0,y=0;if(0!==A||0!==g){let e=p*x-f*m;C=(A*x-m*g)/e,y=(p*g-f*A)/e}let j=r+C*r,I=u+y*u,N=o+C*o,v=h+y*h,E=C/t,b=y/n;return`matrix3d(${[j/t,N/t,0,E,I/n,v/n,0,b,0,0,1,0,0,0,0,1].join(", ")})`}(l,t,a)}}}