@dp_unity/dpu-gis-viewer
Version:
DPU GIS Viewer version Beta
2 lines • 1.16 kB
JavaScript
/*! For license information please see createVectorTilePoints.js.LICENSE.txt */
import{a as x}from"./chunk-4BYMTYMT.js";import{a as w}from"./chunk-Q5MYX5A2.js";import{h as c}from"./chunk-M3A6SPGI.js";import"./chunk-D5HNP2LB.js";import{a as h,b as l,d as p}from"./chunk-S4VBGY2U.js";import{a as i}from"./chunk-UCTPWOTZ.js";import"./chunk-54PMPXZ4.js";import"./chunk-R62IKKEC.js";import"./chunk-N3A5CZ2S.js";import"./chunk-G75U3WZT.js";import"./chunk-3THTQ4QB.js";var u=32767,F=new l,L=new h,b=new c,y=new p,a={min:void 0,max:void 0};function V(r){r=new Float64Array(r);let n=0;a.min=r[n++],a.max=r[n++],c.unpack(r,n,b),n+=c.packedLength,p.unpack(r,n,y)}function z(r,n){let t=new Uint16Array(r.positions);V(r.packedBuffer);let o=b,e=y,s=a.min,p=a.max,c=t.length/3,m=t.subarray(0,c),f=t.subarray(c,2*c),k=t.subarray(2*c,3*c);w.zigZagDeltaDecode(m,f,k);let j=new Float64Array(t.length);for(let a=0;a<c;++a){let r=m[a],n=f[a],t=k[a],c=i.lerp(o.west,o.east,r/u),w=i.lerp(o.south,o.north,n/u),b=i.lerp(s,p,t/u),y=l.fromRadians(c,w,b,F),d=e.cartographicToCartesian(y,L);h.pack(d,j,3*a)}return n.push(j.buffer),{positions:j.buffer}}var G=x(z);export{G as default};