@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.
- package/THIRD_PARTY_LICENSES.txt +9289 -24606
- package/lib/esm/GLTFExporter-E2W4AY7T.js +2 -0
- package/lib/esm/GLTFExporter-E2W4AY7T.js.map +7 -0
- package/lib/esm/GLTFLoader-5VLIZ4BL.js +2 -0
- package/lib/esm/GLTFLoader-5VLIZ4BL.js.map +7 -0
- package/lib/esm/{browser-OJQDECWL.js → browser-RLBZMV2G.js} +2 -1
- package/lib/esm/browser-RLBZMV2G.js.map +7 -0
- package/lib/esm/chunk-AHC6OWNT.js +2 -0
- package/lib/esm/chunk-AHC6OWNT.js.map +7 -0
- package/lib/esm/chunk-F7Z3R7GK.js +3820 -0
- package/lib/esm/chunk-F7Z3R7GK.js.map +7 -0
- package/lib/esm/chunk-KDY73CVP.js +2 -0
- package/lib/esm/chunk-KDY73CVP.js.map +7 -0
- package/lib/esm/chunk-KTTWH67L.js +2229 -0
- package/lib/esm/chunk-KTTWH67L.js.map +7 -0
- package/lib/esm/chunk-QSFIJRMY.js +2 -0
- package/lib/esm/chunk-QSFIJRMY.js.map +7 -0
- package/lib/esm/{chunk-XIVNHXXU.js → chunk-SBJEVJF3.js} +2 -1
- package/lib/esm/chunk-SBJEVJF3.js.map +7 -0
- package/lib/esm/chunk-XFQBHAWO.js +578 -0
- package/lib/esm/chunk-XFQBHAWO.js.map +7 -0
- package/lib/esm/fonts/roboto-regular.ttf +0 -0
- package/lib/esm/index.css +2 -1
- package/lib/esm/index.css.map +7 -0
- package/lib/esm/index.d.ts +369 -153
- package/lib/esm/index.js +2 -1
- package/lib/esm/index.js.map +7 -0
- package/lib/esm/inspector-PKJEJRJY.js +483 -0
- package/lib/esm/inspector-PKJEJRJY.js.map +7 -0
- package/lib/esm/inspector-S63NMDZZ.css +2 -0
- package/lib/esm/inspector-S63NMDZZ.css.map +7 -0
- package/lib/esm/internal-DKUILLGA.js +2 -0
- package/lib/esm/internal-DKUILLGA.js.map +7 -0
- package/lib/esm/internal-WH523TQS.css +2 -0
- package/lib/esm/internal-WH523TQS.css.map +7 -0
- package/lib/esm/outdoor-context-v4-4RHE5GJB.js +2 -0
- package/lib/esm/outdoor-context-v4-4RHE5GJB.js.map +7 -0
- package/lib/esm/{roboto-regular-PKVZDOB2.js → roboto-regular-25PMWR2T.js} +2 -1
- package/lib/esm/roboto-regular-25PMWR2T.js.map +7 -0
- package/lib/esm/text3d-FHQNCDB4.js +253 -0
- package/lib/esm/text3d-FHQNCDB4.js.map +7 -0
- package/lib/esm/workers/collision-worker.csp.js +1 -1
- package/lib/esm/workers/maplibre-worker.csp.js +2 -1
- package/lib/index-rn.js +649 -0
- package/lib/index.css +2 -1
- package/package.json +12 -12
- package/lib/esm/GLTFExporter-AXJXTFZG.js +0 -1
- package/lib/esm/GLTFLoader-V2T33J7P.js +0 -1
- package/lib/esm/chunk-5XSHJ3NY.js +0 -1
- package/lib/esm/chunk-A6HW5N6M.js +0 -1
- package/lib/esm/chunk-GVMLK6WZ.js +0 -1
- package/lib/esm/chunk-MV2IWNRC.js +0 -1
- package/lib/esm/chunk-Q2KR5YO7.js +0 -1
- package/lib/esm/chunk-SRZSNPKD.js +0 -1
- package/lib/esm/inspector-4UPV6G6H.js +0 -1
- package/lib/esm/inspector-GOK26VAV.css +0 -1
- package/lib/esm/internal-7A3UJNAV.css +0 -1
- package/lib/esm/internal-NKXX4DDI.js +0 -1
- package/lib/esm/outdoor-context-v4-DTIGSNLG.js +0 -1
- package/lib/esm/text3d-Z4HFM4UG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
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))};})();
|