@mappedin/mappedin-js 6.0.1-beta.46 → 6.0.1-beta.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/THIRD_PARTY_LICENSES.txt +9289 -24606
  2. package/lib/esm/GLTFExporter-E2W4AY7T.js +2 -0
  3. package/lib/esm/GLTFExporter-E2W4AY7T.js.map +7 -0
  4. package/lib/esm/GLTFLoader-5VLIZ4BL.js +2 -0
  5. package/lib/esm/GLTFLoader-5VLIZ4BL.js.map +7 -0
  6. package/lib/esm/{browser-OJQDECWL.js → browser-RLBZMV2G.js} +2 -1
  7. package/lib/esm/browser-RLBZMV2G.js.map +7 -0
  8. package/lib/esm/chunk-AHC6OWNT.js +2 -0
  9. package/lib/esm/chunk-AHC6OWNT.js.map +7 -0
  10. package/lib/esm/chunk-F7Z3R7GK.js +3820 -0
  11. package/lib/esm/chunk-F7Z3R7GK.js.map +7 -0
  12. package/lib/esm/chunk-KDY73CVP.js +2 -0
  13. package/lib/esm/chunk-KDY73CVP.js.map +7 -0
  14. package/lib/esm/chunk-KTTWH67L.js +2229 -0
  15. package/lib/esm/chunk-KTTWH67L.js.map +7 -0
  16. package/lib/esm/chunk-QSFIJRMY.js +2 -0
  17. package/lib/esm/chunk-QSFIJRMY.js.map +7 -0
  18. package/lib/esm/{chunk-XIVNHXXU.js → chunk-SBJEVJF3.js} +2 -1
  19. package/lib/esm/chunk-SBJEVJF3.js.map +7 -0
  20. package/lib/esm/chunk-XFQBHAWO.js +578 -0
  21. package/lib/esm/chunk-XFQBHAWO.js.map +7 -0
  22. package/lib/esm/fonts/roboto-regular.ttf +0 -0
  23. package/lib/esm/index.css +2 -1
  24. package/lib/esm/index.css.map +7 -0
  25. package/lib/esm/index.d.ts +369 -153
  26. package/lib/esm/index.js +2 -1
  27. package/lib/esm/index.js.map +7 -0
  28. package/lib/esm/inspector-PKJEJRJY.js +483 -0
  29. package/lib/esm/inspector-PKJEJRJY.js.map +7 -0
  30. package/lib/esm/inspector-S63NMDZZ.css +2 -0
  31. package/lib/esm/inspector-S63NMDZZ.css.map +7 -0
  32. package/lib/esm/internal-DKUILLGA.js +2 -0
  33. package/lib/esm/internal-DKUILLGA.js.map +7 -0
  34. package/lib/esm/internal-WH523TQS.css +2 -0
  35. package/lib/esm/internal-WH523TQS.css.map +7 -0
  36. package/lib/esm/outdoor-context-v4-4RHE5GJB.js +2 -0
  37. package/lib/esm/outdoor-context-v4-4RHE5GJB.js.map +7 -0
  38. package/lib/esm/{roboto-regular-PKVZDOB2.js → roboto-regular-25PMWR2T.js} +2 -1
  39. package/lib/esm/roboto-regular-25PMWR2T.js.map +7 -0
  40. package/lib/esm/text3d-FHQNCDB4.js +253 -0
  41. package/lib/esm/text3d-FHQNCDB4.js.map +7 -0
  42. package/lib/esm/workers/collision-worker.csp.js +1 -1
  43. package/lib/esm/workers/maplibre-worker.csp.js +2 -1
  44. package/lib/index-rn.js +649 -0
  45. package/lib/index.css +2 -1
  46. package/package.json +12 -12
  47. package/lib/esm/GLTFExporter-AXJXTFZG.js +0 -1
  48. package/lib/esm/GLTFLoader-V2T33J7P.js +0 -1
  49. package/lib/esm/chunk-5XSHJ3NY.js +0 -1
  50. package/lib/esm/chunk-A6HW5N6M.js +0 -1
  51. package/lib/esm/chunk-GVMLK6WZ.js +0 -1
  52. package/lib/esm/chunk-MV2IWNRC.js +0 -1
  53. package/lib/esm/chunk-Q2KR5YO7.js +0 -1
  54. package/lib/esm/chunk-SRZSNPKD.js +0 -1
  55. package/lib/esm/inspector-4UPV6G6H.js +0 -1
  56. package/lib/esm/inspector-GOK26VAV.css +0 -1
  57. package/lib/esm/internal-7A3UJNAV.css +0 -1
  58. package/lib/esm/internal-NKXX4DDI.js +0 -1
  59. package/lib/esm/outdoor-context-v4-DTIGSNLG.js +0 -1
  60. package/lib/esm/text3d-Z4HFM4UG.js +0 -1
@@ -1 +1 @@
1
- "use strict";(()=>{var X=Object.defineProperty;var ee=(n,e,t)=>e in n?X(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var l=(n,e)=>X(n,"name",{value:e,configurable:!0});var u=(n,e,t)=>ee(n,typeof e!="symbol"?e+"":e,t);function O(n,e){return e.x+e.w<n.x+n.w&&e.x>n.x&&e.y>n.y&&e.y+e.h<n.y+n.h}l(O,"contains");function K(n,e){let[t,i]=e;return t>=n.x&&t<=n.x+n.w&&i>=n.y&&i<=n.y+n.h}l(K,"intersectPoint");function W(n,e){let t=e.x,i=e.y,o=e.x+e.w,y=e.y+e.h,B=n.x,g=n.y,x=n.x+n.w,T=n.y+n.h;return t<x&&B<o&&i<T&&g<y}l(W,"intersects");function b(n,e){for(let t=0;t<e.length;t++)n.push(e[t])}l(b,"appendItems");var D=class D{constructor(e,t,i,o,y){u(this,"x");u(this,"y");u(this,"w");u(this,"h");u(this,"userData");this.userData=typeof y>"u"?null:y,this.x=e,this.y=t,this.w=i,this.h=o}contains(e){return e===this?!1:O(this,e)}intersects(e){return W(this,e)}intersectsPoint(e){return K(this,e)}draw(e){e.fillStyle="rgba(123,222,26, 0.8)",e.fillRect(this.x,this.y,this.w,this.h)}};l(D,"Rectangle");var s=D;var f=class f{constructor(e,t){u(this,"topLeft");u(this,"topRight");u(this,"bottomLeft");u(this,"bottomRight");u(this,"divided",!1);u(this,"boundary");u(this,"capacity",16);u(this,"objects",[]);u(this,"parent");this.parent=t,this.boundary=e}getSize(){return this.divided?this.objects.length+this.topLeft.getSize()+this.topRight.getSize()+this.bottomLeft.getSize()+this.bottomRight.getSize():this.objects.length}subdivide(){let{x:e,y:t,w:i,h:o}=this.boundary;this.topLeft=new f(new s(e,t,i/2,o/2),this),this.topRight=new f(new s(e+i/2,t,i/2,o/2),this),this.bottomLeft=new f(new s(e,t+o/2,i/2,o/2),this),this.bottomRight=new f(new s(e+i/2,t+o/2,i/2,o/2),this),this.divided=!0}queryRect(e){let t=[];if(this.boundary.intersects(e))t.push(...this.objects);else return[];return this.divided&&(b(t,this.topLeft.queryRect(e)),b(t,this.topRight.queryRect(e)),b(t,this.bottomLeft.queryRect(e)),b(t,this.bottomRight.queryRect(e))),t}queryPoint(e){let t=[];if(this.boundary.intersectsPoint(e))t.push(...this.objects);else return[];return this.divided&&(b(t,this.topLeft.queryPoint(e)),b(t,this.topRight.queryPoint(e)),b(t,this.bottomLeft.queryPoint(e)),b(t,this.bottomRight.queryPoint(e))),t}insert(e){return(this.parent?!this.boundary.contains(e):!this.boundary.intersects(e))?!1:this.objects.length<this.capacity?(this.objects.push(e),!0):(this.divided||this.subdivide(),(this.topLeft.insert(e)||this.topRight.insert(e)||this.bottomLeft.insert(e)||this.bottomRight.insert(e))===!1&&this.objects.push(e),!0)}drawObjects(e){this.objects.forEach(t=>t.draw(e)),this.divided&&(this.topLeft.drawObjects(e),this.topRight.drawObjects(e),this.bottomLeft.drawObjects(e),this.bottomRight.drawObjects(e))}draw(e){e.rect(this.boundary.x,this.boundary.y,this.boundary.w,this.boundary.h),this.divided&&(this.topLeft.draw(e),this.topRight.draw(e),this.bottomLeft.draw(e),this.bottomRight.draw(e)),e.strokeStyle="black",e.lineWidth=4,e.stroke()}};l(f,"QuadTree");var k=f;var m=200,C=10;function V(n,e,t,i,o,y,B="-1"){let g=1/0,x=1/0,T=-1/0,L=-1/0,Y=new s(-C,0,5,t),F=new s(-C,0,e,5),U=new s(e-5,0,e+C,t),G=new s(0,t-5,e,t+C),J=te(e,t,i,o,y),Z=[Y,F,U,G],_=new s(-m,-m,e+m*2,t+m*2);for(let r of n){let I,S;for(let a=0;a<r.bboxes.length;a++){if(r.bboxes[a]==null||(I=r.bboxes[a].boundingBox,S=r.bboxes[a].index,r.lockedToStrategyIndex!==-1&&S!==r.lockedToStrategyIndex))continue;let[P,c,h,M]=I,[p,$,j,H]=[r.y-P,r.y+c,r.x-h,r.x+M],E=j,N=p,q=H-j,z=$-p;g=Math.min(g,E)-m,x=Math.min(x,N)-m,T=Math.max(T,E+q)+m,L=Math.max(L,N+z)+m,r.bboxes[a].boundingRect=new s(E,N,q,z)}}let R={msgId:B,colliders:new Array(n.length),debug:[]},v=new k(new s(g,x,T-g,L-x)),w;for(let r=0;r<n.length;r++)if(w=n[r],R.colliders[r]=[-1,0],w.enabledAndVisible){let[I,S,a]=[1/0,-1,void 0];for(let{index:P,boundingRect:c}of w.bboxes){if(c==null)continue;let h=[];if(h=v.queryRect(c).filter(p=>c.intersects(p)),w.shouldCollideWithScreenEdges&&Z.forEach(p=>{c.intersects(p)&&h.push(p)}),c.intersects(J)){R.colliders[r]=[-1,0,c];break}if(h.length<=I&&(a=c,S=P,I=h.length),h.length===0){v.insert(c),R.colliders[r]=[P,_.contains(c)?0:1,c];break}}w.rank===5&&a!=null&&(v.insert(a),R.colliders[r]=[S,_.contains(a)?0:1,a])}else R.colliders[r]=[-1,0];return R}l(V,"processColliders");function te(n,e,t,i,o){switch(o){case"top-right":return new s(n-t,0,t,i);case"bottom-left":return new s(0,e-i,t,i);case"bottom-right":return new s(n-t,e-i,t,i);case"top-left":return new s(0,0,t,i)}}l(te,"getWatermarkBoundary");function Q(n){let e=n[0].map(t=>{let i=t[0].map(o=>({index:o[4],boundingBox:[o[0],o[1],o[2],o[3]]}));return{enabledAndVisible:t[1]===1,rank:t[2]===1?5:0,x:t[3],y:t[4],shouldCollideWithScreenEdges:t[5]===1,bboxes:i,lockedToStrategyIndex:t[6]}});return{msgId:"-1",totalWidth:n[3],totalHeight:n[2],watermarkWidth:n[4],watermarkHeight:n[5],watermarkPosition:n[6],colliders:e,devicePixelRatio:n[1]}}l(Q,"unpackMessage");self.onmessage=n=>{let e=Q(n.data);self.postMessage(V(e.colliders,e.totalWidth,e.totalHeight,e.watermarkWidth,e.watermarkHeight,e.watermarkPosition,e.msgId))};})();
1
+ "use strict";(()=>{var J=Object.defineProperty;var l=(n,e)=>J(n,"name",{value:e,configurable:!0});function j(n,e){return e.x+e.w<n.x+n.w&&e.x>n.x&&e.y>n.y&&e.y+e.h<n.y+n.h}l(j,"contains");function q(n,e){let[t,i]=e;return t>=n.x&&t<=n.x+n.w&&i>=n.y&&i<=n.y+n.h}l(q,"intersectPoint");function z(n,e){let t=e.x,i=e.y,o=e.x+e.w,p=e.y+e.h,P=n.x,f=n.y,y=n.x+n.w,x=n.y+n.h;return t<y&&P<o&&i<x&&f<p}l(z,"intersects");function d(n,e){for(let t=0;t<e.length;t++)n.push(e[t])}l(d,"appendItems");var s=class{static{l(this,"Rectangle")}x;y;w;h;userData;constructor(e,t,i,o,p){this.userData=typeof p>"u"?null:p,this.x=e,this.y=t,this.w=i,this.h=o}contains(e){return e===this?!1:j(this,e)}intersects(e){return z(this,e)}intersectsPoint(e){return q(this,e)}draw(e){e.fillStyle="rgba(123,222,26, 0.8)",e.fillRect(this.x,this.y,this.w,this.h)}};var I=class n{static{l(this,"QuadTree")}topLeft;topRight;bottomLeft;bottomRight;divided=!1;boundary;capacity=16;objects=[];parent;constructor(e,t){this.parent=t,this.boundary=e}getSize(){return this.divided?this.objects.length+this.topLeft.getSize()+this.topRight.getSize()+this.bottomLeft.getSize()+this.bottomRight.getSize():this.objects.length}subdivide(){let{x:e,y:t,w:i,h:o}=this.boundary;this.topLeft=new n(new s(e,t,i/2,o/2),this),this.topRight=new n(new s(e+i/2,t,i/2,o/2),this),this.bottomLeft=new n(new s(e,t+o/2,i/2,o/2),this),this.bottomRight=new n(new s(e+i/2,t+o/2,i/2,o/2),this),this.divided=!0}queryRect(e){let t=[];if(this.boundary.intersects(e))t.push(...this.objects);else return[];return this.divided&&(d(t,this.topLeft.queryRect(e)),d(t,this.topRight.queryRect(e)),d(t,this.bottomLeft.queryRect(e)),d(t,this.bottomRight.queryRect(e))),t}queryPoint(e){let t=[];if(this.boundary.intersectsPoint(e))t.push(...this.objects);else return[];return this.divided&&(d(t,this.topLeft.queryPoint(e)),d(t,this.topRight.queryPoint(e)),d(t,this.bottomLeft.queryPoint(e)),d(t,this.bottomRight.queryPoint(e))),t}insert(e){return(this.parent?!this.boundary.contains(e):!this.boundary.intersects(e))?!1:this.objects.length<this.capacity?(this.objects.push(e),!0):(this.divided||this.subdivide(),(this.topLeft.insert(e)||this.topRight.insert(e)||this.bottomLeft.insert(e)||this.bottomRight.insert(e))===!1&&this.objects.push(e),!0)}drawObjects(e){this.objects.forEach(t=>t.draw(e)),this.divided&&(this.topLeft.drawObjects(e),this.topRight.drawObjects(e),this.bottomLeft.drawObjects(e),this.bottomRight.drawObjects(e))}draw(e){e.rect(this.boundary.x,this.boundary.y,this.boundary.w,this.boundary.h),this.divided&&(this.topLeft.draw(e),this.topRight.draw(e),this.bottomLeft.draw(e),this.bottomRight.draw(e)),e.strokeStyle="black",e.lineWidth=4,e.stroke()}};var b=200,k=10;function X(n,e,t,i,o,p,P="-1"){let f=1/0,y=1/0,x=-1/0,C=-1/0,K=new s(-k,0,5,t),W=new s(-k,0,e,5),V=new s(e-5,0,e+k,t),Q=new s(0,t-5,e,t+k),Y=Z(e,t,i,o,p),F=[K,W,V,Q],N=new s(-b,-b,e+b*2,t+b*2);for(let r of n){let T,w;for(let u=0;u<r.bboxes.length;u++){if(r.bboxes[u]==null||(T=r.bboxes[u].boundingBox,w=r.bboxes[u].index,r.lockedToStrategyIndex!==-1&&w!==r.lockedToStrategyIndex))continue;let[S,a,m,D]=T,[h,U,A,G]=[r.y-S,r.y+a,r.x-m,r.x+D],L=A,v=h,_=G-A,M=U-h;f=Math.min(f,L)-b,y=Math.min(y,v)-b,x=Math.max(x,L+_)+b,C=Math.max(C,v+M)+b,r.bboxes[u].boundingRect=new s(L,v,_,M)}}let g={msgId:P,colliders:new Array(n.length),debug:[]},B=new I(new s(f,y,x-f,C-y)),R;for(let r=0;r<n.length;r++)if(R=n[r],g.colliders[r]=[-1,0],R.enabledAndVisible){let[T,w,u]=[1/0,-1,void 0];for(let{index:S,boundingRect:a}of R.bboxes){if(a==null)continue;let m=[];if(m=B.queryRect(a).filter(h=>a.intersects(h)),R.shouldCollideWithScreenEdges&&F.forEach(h=>{a.intersects(h)&&m.push(h)}),a.intersects(Y)){g.colliders[r]=[-1,0,a];break}if(m.length<=T&&(u=a,w=S,T=m.length),m.length===0){B.insert(a),g.colliders[r]=[S,N.contains(a)?0:1,a];break}}R.rank===5&&u!=null&&(B.insert(u),g.colliders[r]=[w,N.contains(u)?0:1,u])}else g.colliders[r]=[-1,0];return g}l(X,"processColliders");function Z(n,e,t,i,o){switch(o){case"top-right":return new s(n-t,0,t,i);case"bottom-left":return new s(0,e-i,t,i);case"bottom-right":return new s(n-t,e-i,t,i);case"top-left":return new s(0,0,t,i)}}l(Z,"getWatermarkBoundary");function O(n){let e=n[0].map(t=>{let i=t[0].map(o=>({index:o[4],boundingBox:[o[0],o[1],o[2],o[3]]}));return{enabledAndVisible:t[1]===1,rank:t[2]===1?5:0,x:t[3],y:t[4],shouldCollideWithScreenEdges:t[5]===1,bboxes:i,lockedToStrategyIndex:t[6]}});return{msgId:"-1",totalWidth:n[3],totalHeight:n[2],watermarkWidth:n[4],watermarkHeight:n[5],watermarkPosition:n[6],colliders:e,devicePixelRatio:n[1]}}l(O,"unpackMessage");self.onmessage=n=>{let e=O(n.data);self.postMessage(X(e.colliders,e.totalWidth,e.totalHeight,e.watermarkWidth,e.watermarkHeight,e.watermarkPosition,e.msgId))};})();