@mappedin/mappedin-js 6.0.1-alpha.4 → 6.0.1-alpha.7

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.
@@ -1 +1 @@
1
- import{a as z}from"./chunk-JJHKNDAJ.js";import{a as h,c as J}from"./chunk-J5IUISYU.js";var ue=J((ve,D)=>{"use strict";z();D.exports=C;D.exports.default=C;function C(e,t,n){n=n||2;var r=t&&t.length,x=r?t[0]*n:e.length,i=N(e,0,x,n,!0),u=[];if(!i||i.next===i.prev)return u;var f,o,v,c,l,s,g;if(r&&(i=Y(e,t,i,n)),e.length>80*n){f=v=e[0],o=c=e[1];for(var Z=n;Z<x;Z+=n)l=e[Z],s=e[Z+1],l<f&&(f=l),s<o&&(o=s),l>v&&(v=l),s>c&&(c=s);g=Math.max(v-f,c-o),g=g!==0?32767/g:0}return L(i,u,n,f,o,g,0),u}h(C,"earcut");function N(e,t,n,r,x){var i,u;if(x===B(e,t,n,r)>0)for(i=t;i<n;i+=r)u=K(i,e[i],e[i+1],u);else for(i=n-r;i>=t;i-=r)u=K(i,e[i],e[i+1],u);return u&&E(u,u.next)&&(H(u),u=u.next),u}h(N,"linkedList");function a(e,t){if(!e)return e;t||(t=e);var n=e,r;do if(r=!1,!n.steiner&&(E(n,n.next)||w(n.prev,n,n.next)===0)){if(H(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}h(a,"filterPoints");function L(e,t,n,r,x,i,u){if(e){!u&&i&&ee(e,r,x,i);for(var f=e,o,v;e.prev!==e.next;){if(o=e.prev,v=e.next,i?I(e,r,x,i):j(e)){t.push(o.i/n|0),t.push(e.i/n|0),t.push(v.i/n|0),H(e),e=v.next,f=v.next;continue}if(e=v,e===f){u?u===1?(e=S(a(e),t,n),L(e,t,n,r,x,i,2)):u===2&&X(e,t,n,r,x,i):L(a(e),t,n,r,x,i,1);break}}}}h(L,"earcutLinked");function j(e){var t=e.prev,n=e,r=e.next;if(w(t,n,r)>=0)return!1;for(var x=t.x,i=n.x,u=r.x,f=t.y,o=n.y,v=r.y,c=x<i?x<u?x:u:i<u?i:u,l=f<o?f<v?f:v:o<v?o:v,s=x>i?x>u?x:u:i>u?i:u,g=f>o?f>v?f:v:o>v?o:v,Z=r.next;Z!==t;){if(Z.x>=c&&Z.x<=s&&Z.y>=l&&Z.y<=g&&F(x,f,i,o,u,v,Z.x,Z.y)&&w(Z.prev,Z,Z.next)>=0)return!1;Z=Z.next}return!0}h(j,"isEar");function I(e,t,n,r){var x=e.prev,i=e,u=e.next;if(w(x,i,u)>=0)return!1;for(var f=x.x,o=i.x,v=u.x,c=x.y,l=i.y,s=u.y,g=f<o?f<v?f:v:o<v?o:v,Z=c<l?c<s?c:s:l<s?l:s,M=f>o?f>v?f:v:o>v?o:v,k=c>l?c>s?c:s:l>s?l:s,V=P(g,Z,t,n,r),G=P(M,k,t,n,r),p=e.prevZ,y=e.nextZ;p&&p.z>=V&&y&&y.z<=G;){if(p.x>=g&&p.x<=M&&p.y>=Z&&p.y<=k&&p!==x&&p!==u&&F(f,c,o,l,v,s,p.x,p.y)&&w(p.prev,p,p.next)>=0||(p=p.prevZ,y.x>=g&&y.x<=M&&y.y>=Z&&y.y<=k&&y!==x&&y!==u&&F(f,c,o,l,v,s,y.x,y.y)&&w(y.prev,y,y.next)>=0))return!1;y=y.nextZ}for(;p&&p.z>=V;){if(p.x>=g&&p.x<=M&&p.y>=Z&&p.y<=k&&p!==x&&p!==u&&F(f,c,o,l,v,s,p.x,p.y)&&w(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;y&&y.z<=G;){if(y.x>=g&&y.x<=M&&y.y>=Z&&y.y<=k&&y!==x&&y!==u&&F(f,c,o,l,v,s,y.x,y.y)&&w(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}h(I,"isEarHashed");function S(e,t,n){var r=e;do{var x=r.prev,i=r.next.next;!E(x,i)&&U(x,r,r.next,i)&&_(x,i)&&_(i,x)&&(t.push(x.i/n|0),t.push(r.i/n|0),t.push(i.i/n|0),H(r),H(r.next),r=e=i),r=r.next}while(r!==e);return a(r)}h(S,"cureLocalIntersections");function X(e,t,n,r,x,i){var u=e;do{for(var f=u.next.next;f!==u.prev;){if(u.i!==f.i&&re(u,f)){var o=W(u,f);u=a(u,u.next),o=a(o,o.next),L(u,t,n,r,x,i,0),L(o,t,n,r,x,i,0);return}f=f.next}u=u.next}while(u!==e)}h(X,"splitEarcut");function Y(e,t,n,r){var x=[],i,u,f,o,v;for(i=0,u=t.length;i<u;i++)f=t[i]*r,o=i<u-1?t[i+1]*r:e.length,v=N(e,f,o,r,!1),v===v.next&&(v.steiner=!0),x.push(te(v));for(x.sort(q),i=0;i<x.length;i++)n=m(x[i],n);return n}h(Y,"eliminateHoles");function q(e,t){return e.x-t.x}h(q,"compareX");function m(e,t){var n=b(e,t);if(!n)return t;var r=W(n,e);return a(r,r.next),a(n,n.next)}h(m,"eliminateHole");function b(e,t){var n=t,r=e.x,x=e.y,i=-1/0,u;do{if(x<=n.y&&x>=n.next.y&&n.next.y!==n.y){var f=n.x+(x-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(f<=r&&f>i&&(i=f,u=n.x<n.next.x?n:n.next,f===r))return u}n=n.next}while(n!==t);if(!u)return null;var o=u,v=u.x,c=u.y,l=1/0,s;n=u;do r>=n.x&&n.x>=v&&r!==n.x&&F(x<c?r:i,x,v,c,x<c?i:r,x,n.x,n.y)&&(s=Math.abs(x-n.y)/(r-n.x),_(n,e)&&(s<l||s===l&&(n.x>u.x||n.x===u.x&&d(u,n)))&&(u=n,l=s)),n=n.next;while(n!==o);return u}h(b,"findHoleBridge");function d(e,t){return w(e.prev,e,t.prev)<0&&w(t.next,e,e.next)<0}h(d,"sectorContainsSector");function ee(e,t,n,r){var x=e;do x.z===0&&(x.z=P(x.x,x.y,t,n,r)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==e);x.prevZ.nextZ=null,x.prevZ=null,ne(x)}h(ee,"indexCurve");function ne(e){var t,n,r,x,i,u,f,o,v=1;do{for(n=e,e=null,i=null,u=0;n;){for(u++,r=n,f=0,t=0;t<v&&(f++,r=r.nextZ,!!r);t++);for(o=v;f>0||o>0&&r;)f!==0&&(o===0||!r||n.z<=r.z)?(x=n,n=n.nextZ,f--):(x=r,r=r.nextZ,o--),i?i.nextZ=x:e=x,x.prevZ=i,i=x;n=r}i.nextZ=null,v*=2}while(u>1);return e}h(ne,"sortLinked");function P(e,t,n,r,x){return e=(e-n)*x|0,t=(t-r)*x|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}h(P,"zOrder");function te(e){var t=e,n=e;do(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next;while(t!==e);return n}h(te,"getLeftmost");function F(e,t,n,r,x,i,u,f){return(x-u)*(t-f)>=(e-u)*(i-f)&&(e-u)*(r-f)>=(n-u)*(t-f)&&(n-u)*(i-f)>=(x-u)*(r-f)}h(F,"pointInTriangle");function re(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!xe(e,t)&&(_(e,t)&&_(t,e)&&ie(e,t)&&(w(e.prev,e,t.prev)||w(e,t.prev,t))||E(e,t)&&w(e.prev,e,e.next)>0&&w(t.prev,t,t.next)>0)}h(re,"isValidDiagonal");function w(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}h(w,"area");function E(e,t){return e.x===t.x&&e.y===t.y}h(E,"equals");function U(e,t,n,r){var x=A(w(e,t,n)),i=A(w(e,t,r)),u=A(w(n,r,e)),f=A(w(n,r,t));return!!(x!==i&&u!==f||x===0&&T(e,n,t)||i===0&&T(e,r,t)||u===0&&T(n,e,r)||f===0&&T(n,t,r))}h(U,"intersects");function T(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}h(T,"onSegment");function A(e){return e>0?1:e<0?-1:0}h(A,"sign");function xe(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&U(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}h(xe,"intersectsPolygon");function _(e,t){return w(e.prev,e,e.next)<0?w(e,t,e.next)>=0&&w(e,e.prev,t)>=0:w(e,t,e.prev)<0||w(e,e.next,t)<0}h(_,"locallyInside");function ie(e,t){var n=e,r=!1,x=(e.x+t.x)/2,i=(e.y+t.y)/2;do n.y>i!=n.next.y>i&&n.next.y!==n.y&&x<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}h(ie,"middleInside");function W(e,t){var n=new Q(e.i,e.x,e.y),r=new Q(t.i,t.x,t.y),x=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=x,x.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}h(W,"splitPolygon");function K(e,t,n,r){var x=new Q(e,t,n);return r?(x.next=r.next,x.prev=r,r.next.prev=x,r.next=x):(x.prev=x,x.next=x),x}h(K,"insertNode");function H(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}h(H,"removeNode");function Q(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}h(Q,"Node");C.deviation=function(e,t,n,r){var x=t&&t.length,i=x?t[0]*n:e.length,u=Math.abs(B(e,0,i,n));if(x)for(var f=0,o=t.length;f<o;f++){var v=t[f]*n,c=f<o-1?t[f+1]*n:e.length;u-=Math.abs(B(e,v,c,n))}var l=0;for(f=0;f<r.length;f+=3){var s=r[f]*n,g=r[f+1]*n,Z=r[f+2]*n;l+=Math.abs((e[s]-e[Z])*(e[g+1]-e[s+1])-(e[s]-e[g])*(e[Z+1]-e[s+1]))}return u===0&&l===0?0:Math.abs((l-u)/u)};function B(e,t,n,r){for(var x=0,i=t,u=n-r;i<n;i+=r)x+=(e[u]-e[i])*(e[i+1]+e[u+1]),u=i;return x}h(B,"signedArea");C.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,x=0;x<e.length;x++){for(var i=0;i<e[x].length;i++)for(var u=0;u<t;u++)n.vertices.push(e[x][i][u]);x>0&&(r+=e[x-1].length,n.holes.push(r))}return n}});var fe=J((O,R)=>{z();(function(e,t){typeof O=="object"&&typeof R<"u"?R.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.TinyQueue=t())})(O,function(){"use strict";var e=h(function(r,x){if(r===void 0&&(r=[]),x===void 0&&(x=t),this.data=r,this.length=this.data.length,this.compare=x,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)},"TinyQueue");e.prototype.push=h(function(r){this.data.push(r),this.length++,this._up(this.length-1)},"push"),e.prototype.pop=h(function(){if(this.length!==0){var r=this.data[0],x=this.data.pop();return this.length--,this.length>0&&(this.data[0]=x,this._down(0)),r}},"pop"),e.prototype.peek=h(function(){return this.data[0]},"peek"),e.prototype._up=h(function(r){for(var x=this,i=x.data,u=x.compare,f=i[r];r>0;){var o=r-1>>1,v=i[o];if(u(f,v)>=0)break;i[r]=v,r=o}i[r]=f},"_up"),e.prototype._down=h(function(r){for(var x=this,i=x.data,u=x.compare,f=this.length>>1,o=i[r];r<f;){var v=(r<<1)+1,c=i[v],l=v+1;if(l<this.length&&u(i[l],c)<0&&(v=l,c=i[l]),u(c,o)>=0)break;i[r]=c,r=v}i[r]=o},"_down");function t(n,r){return n<r?-1:n>r?1:0}return h(t,"defaultCompare"),e})});export{fe as a,ue as b};
1
+ import{a as z}from"./chunk-FQ7CR75M.js";import{a as h,c as J}from"./chunk-J5IUISYU.js";var ue=J((ve,D)=>{"use strict";z();D.exports=C;D.exports.default=C;function C(e,t,n){n=n||2;var r=t&&t.length,x=r?t[0]*n:e.length,i=N(e,0,x,n,!0),u=[];if(!i||i.next===i.prev)return u;var f,o,v,c,l,s,g;if(r&&(i=Y(e,t,i,n)),e.length>80*n){f=v=e[0],o=c=e[1];for(var Z=n;Z<x;Z+=n)l=e[Z],s=e[Z+1],l<f&&(f=l),s<o&&(o=s),l>v&&(v=l),s>c&&(c=s);g=Math.max(v-f,c-o),g=g!==0?32767/g:0}return L(i,u,n,f,o,g,0),u}h(C,"earcut");function N(e,t,n,r,x){var i,u;if(x===B(e,t,n,r)>0)for(i=t;i<n;i+=r)u=K(i,e[i],e[i+1],u);else for(i=n-r;i>=t;i-=r)u=K(i,e[i],e[i+1],u);return u&&E(u,u.next)&&(H(u),u=u.next),u}h(N,"linkedList");function a(e,t){if(!e)return e;t||(t=e);var n=e,r;do if(r=!1,!n.steiner&&(E(n,n.next)||w(n.prev,n,n.next)===0)){if(H(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}h(a,"filterPoints");function L(e,t,n,r,x,i,u){if(e){!u&&i&&ee(e,r,x,i);for(var f=e,o,v;e.prev!==e.next;){if(o=e.prev,v=e.next,i?I(e,r,x,i):j(e)){t.push(o.i/n|0),t.push(e.i/n|0),t.push(v.i/n|0),H(e),e=v.next,f=v.next;continue}if(e=v,e===f){u?u===1?(e=S(a(e),t,n),L(e,t,n,r,x,i,2)):u===2&&X(e,t,n,r,x,i):L(a(e),t,n,r,x,i,1);break}}}}h(L,"earcutLinked");function j(e){var t=e.prev,n=e,r=e.next;if(w(t,n,r)>=0)return!1;for(var x=t.x,i=n.x,u=r.x,f=t.y,o=n.y,v=r.y,c=x<i?x<u?x:u:i<u?i:u,l=f<o?f<v?f:v:o<v?o:v,s=x>i?x>u?x:u:i>u?i:u,g=f>o?f>v?f:v:o>v?o:v,Z=r.next;Z!==t;){if(Z.x>=c&&Z.x<=s&&Z.y>=l&&Z.y<=g&&F(x,f,i,o,u,v,Z.x,Z.y)&&w(Z.prev,Z,Z.next)>=0)return!1;Z=Z.next}return!0}h(j,"isEar");function I(e,t,n,r){var x=e.prev,i=e,u=e.next;if(w(x,i,u)>=0)return!1;for(var f=x.x,o=i.x,v=u.x,c=x.y,l=i.y,s=u.y,g=f<o?f<v?f:v:o<v?o:v,Z=c<l?c<s?c:s:l<s?l:s,M=f>o?f>v?f:v:o>v?o:v,k=c>l?c>s?c:s:l>s?l:s,V=P(g,Z,t,n,r),G=P(M,k,t,n,r),p=e.prevZ,y=e.nextZ;p&&p.z>=V&&y&&y.z<=G;){if(p.x>=g&&p.x<=M&&p.y>=Z&&p.y<=k&&p!==x&&p!==u&&F(f,c,o,l,v,s,p.x,p.y)&&w(p.prev,p,p.next)>=0||(p=p.prevZ,y.x>=g&&y.x<=M&&y.y>=Z&&y.y<=k&&y!==x&&y!==u&&F(f,c,o,l,v,s,y.x,y.y)&&w(y.prev,y,y.next)>=0))return!1;y=y.nextZ}for(;p&&p.z>=V;){if(p.x>=g&&p.x<=M&&p.y>=Z&&p.y<=k&&p!==x&&p!==u&&F(f,c,o,l,v,s,p.x,p.y)&&w(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;y&&y.z<=G;){if(y.x>=g&&y.x<=M&&y.y>=Z&&y.y<=k&&y!==x&&y!==u&&F(f,c,o,l,v,s,y.x,y.y)&&w(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}h(I,"isEarHashed");function S(e,t,n){var r=e;do{var x=r.prev,i=r.next.next;!E(x,i)&&U(x,r,r.next,i)&&_(x,i)&&_(i,x)&&(t.push(x.i/n|0),t.push(r.i/n|0),t.push(i.i/n|0),H(r),H(r.next),r=e=i),r=r.next}while(r!==e);return a(r)}h(S,"cureLocalIntersections");function X(e,t,n,r,x,i){var u=e;do{for(var f=u.next.next;f!==u.prev;){if(u.i!==f.i&&re(u,f)){var o=W(u,f);u=a(u,u.next),o=a(o,o.next),L(u,t,n,r,x,i,0),L(o,t,n,r,x,i,0);return}f=f.next}u=u.next}while(u!==e)}h(X,"splitEarcut");function Y(e,t,n,r){var x=[],i,u,f,o,v;for(i=0,u=t.length;i<u;i++)f=t[i]*r,o=i<u-1?t[i+1]*r:e.length,v=N(e,f,o,r,!1),v===v.next&&(v.steiner=!0),x.push(te(v));for(x.sort(q),i=0;i<x.length;i++)n=m(x[i],n);return n}h(Y,"eliminateHoles");function q(e,t){return e.x-t.x}h(q,"compareX");function m(e,t){var n=b(e,t);if(!n)return t;var r=W(n,e);return a(r,r.next),a(n,n.next)}h(m,"eliminateHole");function b(e,t){var n=t,r=e.x,x=e.y,i=-1/0,u;do{if(x<=n.y&&x>=n.next.y&&n.next.y!==n.y){var f=n.x+(x-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(f<=r&&f>i&&(i=f,u=n.x<n.next.x?n:n.next,f===r))return u}n=n.next}while(n!==t);if(!u)return null;var o=u,v=u.x,c=u.y,l=1/0,s;n=u;do r>=n.x&&n.x>=v&&r!==n.x&&F(x<c?r:i,x,v,c,x<c?i:r,x,n.x,n.y)&&(s=Math.abs(x-n.y)/(r-n.x),_(n,e)&&(s<l||s===l&&(n.x>u.x||n.x===u.x&&d(u,n)))&&(u=n,l=s)),n=n.next;while(n!==o);return u}h(b,"findHoleBridge");function d(e,t){return w(e.prev,e,t.prev)<0&&w(t.next,e,e.next)<0}h(d,"sectorContainsSector");function ee(e,t,n,r){var x=e;do x.z===0&&(x.z=P(x.x,x.y,t,n,r)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==e);x.prevZ.nextZ=null,x.prevZ=null,ne(x)}h(ee,"indexCurve");function ne(e){var t,n,r,x,i,u,f,o,v=1;do{for(n=e,e=null,i=null,u=0;n;){for(u++,r=n,f=0,t=0;t<v&&(f++,r=r.nextZ,!!r);t++);for(o=v;f>0||o>0&&r;)f!==0&&(o===0||!r||n.z<=r.z)?(x=n,n=n.nextZ,f--):(x=r,r=r.nextZ,o--),i?i.nextZ=x:e=x,x.prevZ=i,i=x;n=r}i.nextZ=null,v*=2}while(u>1);return e}h(ne,"sortLinked");function P(e,t,n,r,x){return e=(e-n)*x|0,t=(t-r)*x|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}h(P,"zOrder");function te(e){var t=e,n=e;do(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next;while(t!==e);return n}h(te,"getLeftmost");function F(e,t,n,r,x,i,u,f){return(x-u)*(t-f)>=(e-u)*(i-f)&&(e-u)*(r-f)>=(n-u)*(t-f)&&(n-u)*(i-f)>=(x-u)*(r-f)}h(F,"pointInTriangle");function re(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!xe(e,t)&&(_(e,t)&&_(t,e)&&ie(e,t)&&(w(e.prev,e,t.prev)||w(e,t.prev,t))||E(e,t)&&w(e.prev,e,e.next)>0&&w(t.prev,t,t.next)>0)}h(re,"isValidDiagonal");function w(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}h(w,"area");function E(e,t){return e.x===t.x&&e.y===t.y}h(E,"equals");function U(e,t,n,r){var x=A(w(e,t,n)),i=A(w(e,t,r)),u=A(w(n,r,e)),f=A(w(n,r,t));return!!(x!==i&&u!==f||x===0&&T(e,n,t)||i===0&&T(e,r,t)||u===0&&T(n,e,r)||f===0&&T(n,t,r))}h(U,"intersects");function T(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}h(T,"onSegment");function A(e){return e>0?1:e<0?-1:0}h(A,"sign");function xe(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&U(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}h(xe,"intersectsPolygon");function _(e,t){return w(e.prev,e,e.next)<0?w(e,t,e.next)>=0&&w(e,e.prev,t)>=0:w(e,t,e.prev)<0||w(e,e.next,t)<0}h(_,"locallyInside");function ie(e,t){var n=e,r=!1,x=(e.x+t.x)/2,i=(e.y+t.y)/2;do n.y>i!=n.next.y>i&&n.next.y!==n.y&&x<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}h(ie,"middleInside");function W(e,t){var n=new Q(e.i,e.x,e.y),r=new Q(t.i,t.x,t.y),x=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=x,x.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}h(W,"splitPolygon");function K(e,t,n,r){var x=new Q(e,t,n);return r?(x.next=r.next,x.prev=r,r.next.prev=x,r.next=x):(x.prev=x,x.next=x),x}h(K,"insertNode");function H(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}h(H,"removeNode");function Q(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}h(Q,"Node");C.deviation=function(e,t,n,r){var x=t&&t.length,i=x?t[0]*n:e.length,u=Math.abs(B(e,0,i,n));if(x)for(var f=0,o=t.length;f<o;f++){var v=t[f]*n,c=f<o-1?t[f+1]*n:e.length;u-=Math.abs(B(e,v,c,n))}var l=0;for(f=0;f<r.length;f+=3){var s=r[f]*n,g=r[f+1]*n,Z=r[f+2]*n;l+=Math.abs((e[s]-e[Z])*(e[g+1]-e[s+1])-(e[s]-e[g])*(e[Z+1]-e[s+1]))}return u===0&&l===0?0:Math.abs((l-u)/u)};function B(e,t,n,r){for(var x=0,i=t,u=n-r;i<n;i+=r)x+=(e[u]-e[i])*(e[i+1]+e[u+1]),u=i;return x}h(B,"signedArea");C.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,x=0;x<e.length;x++){for(var i=0;i<e[x].length;i++)for(var u=0;u<t;u++)n.vertices.push(e[x][i][u]);x>0&&(r+=e[x-1].length,n.holes.push(r))}return n}});var fe=J((O,R)=>{z();(function(e,t){typeof O=="object"&&typeof R<"u"?R.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.TinyQueue=t())})(O,function(){"use strict";var e=h(function(r,x){if(r===void 0&&(r=[]),x===void 0&&(x=t),this.data=r,this.length=this.data.length,this.compare=x,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)},"TinyQueue");e.prototype.push=h(function(r){this.data.push(r),this.length++,this._up(this.length-1)},"push"),e.prototype.pop=h(function(){if(this.length!==0){var r=this.data[0],x=this.data.pop();return this.length--,this.length>0&&(this.data[0]=x,this._down(0)),r}},"pop"),e.prototype.peek=h(function(){return this.data[0]},"peek"),e.prototype._up=h(function(r){for(var x=this,i=x.data,u=x.compare,f=i[r];r>0;){var o=r-1>>1,v=i[o];if(u(f,v)>=0)break;i[r]=v,r=o}i[r]=f},"_up"),e.prototype._down=h(function(r){for(var x=this,i=x.data,u=x.compare,f=this.length>>1,o=i[r];r<f;){var v=(r<<1)+1,c=i[v],l=v+1;if(l<this.length&&u(i[l],c)<0&&(v=l,c=i[l]),u(c,o)>=0)break;i[r]=c,r=v}i[r]=o},"_down");function t(n,r){return n<r?-1:n>r?1:0}return h(t,"defaultCompare"),e})});export{fe as a,ue as b};
@@ -326,6 +326,9 @@ declare module '@mappedin/mappedin-js/maker/src/map-view' {
326
326
  * const floor = map.currentFloor;
327
327
  */
328
328
  get currentFloor(): Floor;
329
+ get mapData(): {
330
+ [key: string]: MapData;
331
+ };
329
332
  /**
330
333
  * Sets the current floor of the map.
331
334
  */
@@ -1750,6 +1753,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-objects' {
1750
1753
 
1751
1754
  declare module '@mappedin/mappedin-js/maker/src/navigation' {
1752
1755
  import type { MapView, Directions } from '@mappedin/mappedin-js/maker/src';
1756
+ import { INavigation } from '@mappedin/mappedin-js/maker/src/map-view-interface';
1753
1757
  const defaultOptions: {
1754
1758
  createMarkers: {
1755
1759
  departure: boolean;
@@ -1791,7 +1795,7 @@ declare module '@mappedin/mappedin-js/maker/src/navigation' {
1791
1795
  };
1792
1796
  };
1793
1797
  constructor(mapView: MapView);
1794
- draw: (directions: Directions, options?: TNavigationOptions) => Promise<void>;
1798
+ draw: INavigation['draw'];
1795
1799
  clear: () => void;
1796
1800
  }
1797
1801
  export {};
@@ -2946,6 +2950,7 @@ declare module '@mappedin/mappedin-js/packages/get-venue/MappedinLocation' {
2946
2950
  siblingGroups?: TSiblingGroup[] | undefined;
2947
2951
  gallery?: TGalleryImage[] | undefined;
2948
2952
  amenity?: string | undefined;
2953
+ filterFlags?: string[];
2949
2954
  constructor(mappedin: Mappedin, data: any);
2950
2955
  /**
2951
2956
  * Polygons this Location is attached to.
@@ -3833,7 +3838,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/node' {
3833
3838
  }
3834
3839
 
3835
3840
  declare module '@mappedin/mappedin-js/maker/src/map-data-objects/door' {
3836
- import { EntranceCollection, Hyperlink, Image } from '@mappedin/mvf';
3841
+ import { EntranceCollection, Image } from '@mappedin/mvf';
3837
3842
  import Coordinate from '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate';
3838
3843
  import type Floor from '@mappedin/mappedin-js/maker/src/map-data-objects/floor';
3839
3844
  import type { MapDataInternal } from '@mappedin/mappedin-js/maker/src/map-data-objects';
@@ -3874,7 +3879,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/door' {
3874
3879
  */
3875
3880
  get name(): string;
3876
3881
  get description(): string;
3877
- get links(): Hyperlink[];
3878
3882
  get images(): Image[];
3879
3883
  /**
3880
3884
  * Gets the {@link Floor} object associated with the door.
@@ -3919,7 +3923,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/door' {
3919
3923
  }
3920
3924
 
3921
3925
  declare module '@mappedin/mappedin-js/maker/src/map-data-objects/space' {
3922
- import { Hyperlink, Image, SpaceCollection } from '@mappedin/mvf';
3926
+ import { Image, SpaceCollection } from '@mappedin/mvf';
3923
3927
  import Coordinate from '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate';
3924
3928
  import type { MapDataInternal } from '@mappedin/mappedin-js/maker/src/map-data-objects';
3925
3929
  import type Floor from '@mappedin/mappedin-js/maker/src/map-data-objects/floor';
@@ -3977,7 +3981,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/space' {
3977
3981
  */
3978
3982
  get type(): TSpaceType;
3979
3983
  get description(): string;
3980
- get links(): Hyperlink[];
3981
3984
  get images(): Image[];
3982
3985
  /**
3983
3986
  * Gets the {@link Floor} object associated with the space.
@@ -4130,9 +4133,9 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/floor' {
4130
4133
  }
4131
4134
 
4132
4135
  declare module '@mappedin/mappedin-js/maker/src/map-data-objects/connection' {
4133
- import { FeatureCollection, Hyperlink, Image, Point, SpaceProperties } from '@mappedin/mvf';
4136
+ import { FeatureCollection, Image, Point, SpaceProperties } from '@mappedin/mvf';
4134
4137
  import Coordinate from '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate';
4135
- import type { MapDataInternal } from '@mappedin/mappedin-js/maker/src/map-data-objects';
4138
+ import type { Floor, MapDataInternal } from '@mappedin/mappedin-js/maker/src/map-data-objects';
4136
4139
  import BaseMapData from '@mappedin/mappedin-js/maker/src/map-data-objects/base-object';
4137
4140
  /**
4138
4141
  * A class representing connection data within the map.
@@ -4169,7 +4172,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/connection' {
4169
4172
  */
4170
4173
  get name(): string;
4171
4174
  get description(): string;
4172
- get links(): Hyperlink[];
4173
4175
  get images(): Image[];
4174
4176
  /**
4175
4177
  * Gets the type of the connection.
@@ -4188,7 +4190,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/connection' {
4188
4190
  *
4189
4191
  * @returns {Floor[]} An array of floors for the connection.
4190
4192
  */
4191
- get floors(): import("./floor").default[];
4193
+ get floors(): Floor[];
4192
4194
  /**
4193
4195
  * Serializes the connection data to JSON.
4194
4196
  *
@@ -4216,7 +4218,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/connection' {
4216
4218
  }
4217
4219
 
4218
4220
  declare module '@mappedin/mappedin-js/maker/src/map-data-objects/object' {
4219
- import { Hyperlink, Image, ObstructionCollection } from '@mappedin/mvf';
4221
+ import { Image, ObstructionCollection } from '@mappedin/mvf';
4220
4222
  import Coordinate from '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate';
4221
4223
  import type { MapDataInternal } from '@mappedin/mappedin-js/maker/src/map-data-objects';
4222
4224
  import type Floor from '@mappedin/mappedin-js/maker/src/map-data-objects/floor';
@@ -4257,7 +4259,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/object' {
4257
4259
  */
4258
4260
  get name(): string;
4259
4261
  get description(): string;
4260
- get links(): Hyperlink[];
4261
4262
  get images(): Image[];
4262
4263
  /**
4263
4264
  * Gets the type of the MapObject.
@@ -4305,8 +4306,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/object' {
4305
4306
  }
4306
4307
 
4307
4308
  declare module '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate' {
4308
- import type { MapDataInternal } from '@mappedin/mappedin-js/maker/src/map-data-objects';
4309
- import type Floor from '@mappedin/mappedin-js/maker/src/map-data-objects/floor';
4310
4309
  /**
4311
4310
  * Class representing a pseudo-mercator coordinate.
4312
4311
  *
@@ -4316,7 +4315,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate' {
4316
4315
  * which is commonly used in marine navigation.
4317
4316
  */
4318
4317
  class Coordinate {
4319
- #private;
4320
4318
  /**
4321
4319
  * @internal
4322
4320
  */
@@ -4336,6 +4334,10 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate' {
4336
4334
  * @type {number}
4337
4335
  */
4338
4336
  readonly longitude: number;
4337
+ /**
4338
+ * The floor ID of the coordinate.
4339
+ */
4340
+ readonly floorId?: string;
4339
4341
  /**
4340
4342
  * Checks if the provided instance is of type Coordinate.
4341
4343
  *
@@ -4346,11 +4348,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate' {
4346
4348
  /**
4347
4349
  * @internal
4348
4350
  */
4349
- constructor(data: MapDataInternal, options: {
4350
- latitude: number;
4351
- longitude: number;
4352
- floorId?: string;
4353
- });
4351
+ constructor(latitude: number, longitude: number, floorId?: string);
4354
4352
  /**
4355
4353
  * Checks if this coordinate is equal to another coordinate.
4356
4354
  *
@@ -4358,13 +4356,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate' {
4358
4356
  * @returns {boolean} True if coordinates are equal, false otherwise.
4359
4357
  */
4360
4358
  isEqual(coordinate: Coordinate): boolean;
4361
- /**
4362
- * Gets the {@link Floor} associated with the coordinate.
4363
- *
4364
- * @returns {Floor | undefined} The {@link Floor} object if available.
4365
- * @throws Will throw an error if the floor is not found.
4366
- */
4367
- get floor(): Floor | undefined;
4368
4359
  /**
4369
4360
  * Serializes the coordinate data to JSON.
4370
4361
  *
@@ -4390,7 +4381,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/poi' {
4390
4381
  import type { Floor, MapDataInternal } from '@mappedin/mappedin-js/maker/src/map-data-objects';
4391
4382
  import Coordinate from '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate';
4392
4383
  import BaseMapData from '@mappedin/mappedin-js/maker/src/map-data-objects/base-object';
4393
- import Hyperlink from '@mappedin/mappedin-js/maker/src/map-data-objects/hyperlink';
4394
4384
  import Image from '@mappedin/mappedin-js/maker/src/map-data-objects/image';
4395
4385
  /**
4396
4386
  * A class representing point of interest data within the map.
@@ -4434,12 +4424,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/poi' {
4434
4424
  * @returns {string} The description of the POI.
4435
4425
  */
4436
4426
  get description(): string;
4437
- /**
4438
- * Gets the links associated with the POI.
4439
- *
4440
- * @returns {Hyperlink[]} The links associated with the POI.
4441
- */
4442
- get links(): Hyperlink[];
4443
4427
  /**
4444
4428
  * Gets the images associated with the POI.
4445
4429
  *
@@ -4571,11 +4555,11 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/annotation' {
4571
4555
 
4572
4556
  declare module '@mappedin/mappedin-js/maker/src/map-data-objects/hyperlink' {
4573
4557
  import { Hyperlink as MVFHyperlink } from '@mappedin/mvf';
4574
- import BaseMapData from '@mappedin/mappedin-js/maker/src/map-data-objects/base-object';
4558
+ import BaseMetaData from '@mappedin/mappedin-js/maker/src/map-data-objects/base-metadata-object';
4575
4559
  /**
4576
4560
  * A class representing hyperlink link data within the map.
4577
4561
  */
4578
- class Hyperlink extends BaseMapData {
4562
+ class Hyperlink extends BaseMetaData {
4579
4563
  #private;
4580
4564
  /**
4581
4565
  * @internal
@@ -4628,11 +4612,11 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/hyperlink' {
4628
4612
 
4629
4613
  declare module '@mappedin/mappedin-js/maker/src/map-data-objects/image' {
4630
4614
  import { Image as MVFImage } from '@mappedin/mvf';
4631
- import BaseMapData from '@mappedin/mappedin-js/maker/src/map-data-objects/base-object';
4615
+ import BaseMetaData from '@mappedin/mappedin-js/maker/src/map-data-objects/base-metadata-object';
4632
4616
  /**
4633
4617
  * A class representing image link data within the map.
4634
4618
  */
4635
- class Image extends BaseMapData {
4619
+ class Image extends BaseMetaData {
4636
4620
  #private;
4637
4621
  /**
4638
4622
  * @internal
@@ -5881,6 +5865,13 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/MapView.types' {
5881
5865
  outdoorGeometryLayers?: string[];
5882
5866
  /**
5883
5867
  * Use the current polygon objects directly rather than what is stored when rendering the map in CMS.
5868
+ *
5869
+ * Important Considerations:
5870
+ * - When this flag is set to true, the application will use live polygon data, which might not include certain enhancements such as 3D text annotations or automatically generated infill patterns. These features typically depend on the CMS's Render capabilities.
5871
+ * - Opting for live polygons means the system will not utilize the pre-processed optimized polygon data that is available through the CMS's rendering pipeline.
5872
+ * - This option is useful for applications requiring the most up-to-date representation of polygon data but may result in a less detailed visual representation due to the absence of certain rendered features.
5873
+ *
5874
+ * Use this option with caution, understanding the trade-offs between real-time update and visual detail.
5884
5875
  */
5885
5876
  useLivePolygons?: boolean;
5886
5877
  };
@@ -6026,6 +6017,10 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/MapView.types' {
6026
6017
  onWebGLRendererError?: () => void;
6027
6018
  };
6028
6019
  export type TShowVenueOptions = {
6020
+ /**
6021
+ * Enable shading of bottoms of geometry along with outlines to make geometry stand out.
6022
+ */
6023
+ shadingAndOutlines?: boolean;
6029
6024
  /**
6030
6025
  * @experimental
6031
6026
  *
@@ -8676,8 +8671,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
8676
8671
  }
8677
8672
 
8678
8673
  declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controllers/FlatLabelsController' {
8679
- import { TAddFlatLabelOptions, TFlatLabelAllLocationsOptions, TFlatLabelAppearance, ICore } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
8680
- import { FlatLabel } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
8674
+ import { TAddFlatLabelOptions, TFlatLabelAllLocationsOptions, TFlatLabelAppearance, ICore, FlatLabel } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
8681
8675
  import { MappedinPolygon } from '@mappedin/mappedin-js/packages/get-venue';
8682
8676
  export const LABEL_ALL_LOCATIONS_WARNING = "Adding or removing individual labels after calling labelAllLocations() may cause unexpected behaviour. We recommend adding all labels individually if more specific control is desired. https://developer.mappedin.com/web-sdk-api/v5/latest/classes/flatlabels#add";
8683
8677
  export type FlatLabelRenderObject = TAddFlatLabelOptions & {
@@ -11990,6 +11984,7 @@ declare module '@mappedin/mappedin-js/packages/get-venue/MappedinVortex' {
11990
11984
  weight?: number;
11991
11985
  multiplier?: number;
11992
11986
  nodes?: string[];
11987
+ filterFlags?: string[];
11993
11988
  constructor(data: any);
11994
11989
  static hydrate(vortexes: any): MappedinVortex[];
11995
11990
  static fetch(mappedin: Mappedin): Promise<MappedinVortex[]>;
@@ -12641,7 +12636,25 @@ declare module '@mappedin/mappedin-js/packages/navigator/Navigator' {
12641
12636
  }
12642
12637
 
12643
12638
  declare module '@mappedin/mappedin-js/maker/src/map-data-objects/base-object' {
12639
+ import Hyperlink from '@mappedin/mappedin-js/maker/src/map-data-objects/hyperlink';
12640
+ import { Details } from '@mappedin/mvf';
12644
12641
  export default abstract class BaseMapData {
12642
+ /**
12643
+ * identity of the map object
12644
+ */
12645
+ readonly id: string;
12646
+ constructor(id: string, details?: Details);
12647
+ /**
12648
+ * Gets the links associated with this data type.
12649
+ *
12650
+ * @returns {Hyperlink[]} The links associated with this data type
12651
+ */
12652
+ links: Hyperlink[];
12653
+ }
12654
+ }
12655
+
12656
+ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/base-metadata-object' {
12657
+ export default abstract class BaseMetaData {
12645
12658
  /**
12646
12659
  * identity of the map object
12647
12660
  */