Custom Gis Application with Arcgis Javascript API with modern layouting
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.
 
 

8 lines
2.3 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define(["exports","../core/has","../geometry/support/buffer/math/common"],function(x,J,P){function K(b,c,a){if(b.count===c.count){var d=b.count,k=a[0],e=a[1],f=a[2],g=a[3],l=a[4],p=a[5],q=a[6],D=a[7],E=a[8],F=a[9],r=a[10],t=a[11],C=a[12],z=a[13],A=a[14];a=a[15];var m=b.typedBuffer;b=b.typedBufferStride;var y=c.typedBuffer;c=c.typedBufferStride;for(let n=0;n<d;n++){const B=n*b;var h=n*c;const u=y[h],v=y[h+1],w=y[h+2];h=y[h+3];m[B]=k*u+l*v+E*w+C*h;m[B+1]=e*u+p*v+F*w+z*h;m[B+2]=f*u+q*v+r*w+A*h;m[B+3]=
g*u+D*v+t*w+a*h}}}function L(b,c,a,d=4,k=d){if(b.length/d!==c.length/k)P.getMathLogger().error("source and destination buffers need to have the same number of elements");else{var e=b.length/d,f=a[0],g=a[1],l=a[2],p=a[3],q=a[4],D=a[5],E=a[6],F=a[7],r=a[8],t=a[9],C=a[10],z=a[11],A=a[12],m=a[13],y=a[14];a=a[15];var h=0,n=0;for(let B=0;B<e;B++){const u=c[h],v=c[h+1],w=c[h+2],G=c[h+3];b[n]=f*u+q*v+r*w+A*G;b[n+1]=g*u+D*v+t*w+m*G;b[n+2]=l*u+E*v+C*w+y*G;b[n+3]=p*u+F*v+z*w+a*G;h+=k;n+=d}}}function M(b,c,a){H(b.typedBuffer,
c.typedBuffer,a,b.typedBufferStride,c.typedBufferStride)}function H(b,c,a,d=4,k=d){if(b.length/d===c.length/k){var e=b.length/d,f=a[0],g=a[1],l=a[2],p=a[3],q=a[4],D=a[5],E=a[6],F=a[7];a=a[8];var r=0,t=0;for(let C=0;C<e;C++){const z=c[r],A=c[r+1],m=c[r+2],y=c[r+3];b[t]=f*z+p*A+E*m;b[t+1]=g*z+q*A+F*m;b[t+2]=l*z+D*A+a*m;b[t+3]=y;r+=k;t+=d}}}function N(b,c){const a=Math.min(b.count,c.count),d=b.typedBuffer;b=b.typedBufferStride;const k=c.typedBuffer;c=c.typedBufferStride;for(let g=0;g<a;g++){const l=
g*b;var e=g*c;const p=k[e],q=k[e+1];e=k[e+2];var f=p*p+q*q+e*e;0<f&&(f=1/Math.sqrt(f),d[l]=f*p,d[l+1]=f*q,d[l+2]=f*e)}}function O(b,c,a){I(b.typedBuffer,c,a,b.typedBufferStride)}function I(b,c,a,d=4){const k=Math.min(b.length/d,c.count),e=c.typedBuffer;c=c.typedBufferStride;let f=0,g=0;for(let l=0;l<k;l++)b[g]=a*e[f],b[g+1]=a*e[f+1],b[g+2]=a*e[f+2],b[g+3]=a*e[f+3],f+=c,g+=d}J=Object.freeze(Object.defineProperty({__proto__:null,normalize:N,scale:I,scaleView:O,transformMat3:H,transformMat3View:M,transformMat4:L,
transformMat4View:K},Symbol.toStringTag,{value:"Module"}));x.normalize=N;x.scale=I;x.scaleView=O;x.transformMat3=H;x.transformMat3View=M;x.transformMat4=L;x.transformMat4View=K;x.vec4=J});