@mappedin/mappedin-js 6.0.1-alpha.5 → 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-TS6VC5W4.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.
@@ -4301,8 +4306,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/object' {
4301
4306
  }
4302
4307
 
4303
4308
  declare module '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate' {
4304
- import type { MapDataInternal } from '@mappedin/mappedin-js/maker/src/map-data-objects';
4305
- import type Floor from '@mappedin/mappedin-js/maker/src/map-data-objects/floor';
4306
4309
  /**
4307
4310
  * Class representing a pseudo-mercator coordinate.
4308
4311
  *
@@ -4312,7 +4315,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate' {
4312
4315
  * which is commonly used in marine navigation.
4313
4316
  */
4314
4317
  class Coordinate {
4315
- #private;
4316
4318
  /**
4317
4319
  * @internal
4318
4320
  */
@@ -4332,6 +4334,10 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate' {
4332
4334
  * @type {number}
4333
4335
  */
4334
4336
  readonly longitude: number;
4337
+ /**
4338
+ * The floor ID of the coordinate.
4339
+ */
4340
+ readonly floorId?: string;
4335
4341
  /**
4336
4342
  * Checks if the provided instance is of type Coordinate.
4337
4343
  *
@@ -4342,11 +4348,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate' {
4342
4348
  /**
4343
4349
  * @internal
4344
4350
  */
4345
- constructor(data: MapDataInternal, options: {
4346
- latitude: number;
4347
- longitude: number;
4348
- floorId?: string;
4349
- });
4351
+ constructor(latitude: number, longitude: number, floorId?: string);
4350
4352
  /**
4351
4353
  * Checks if this coordinate is equal to another coordinate.
4352
4354
  *
@@ -4354,13 +4356,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/coordinate' {
4354
4356
  * @returns {boolean} True if coordinates are equal, false otherwise.
4355
4357
  */
4356
4358
  isEqual(coordinate: Coordinate): boolean;
4357
- /**
4358
- * Gets the {@link Floor} associated with the coordinate.
4359
- *
4360
- * @returns {Floor | undefined} The {@link Floor} object if available.
4361
- * @throws Will throw an error if the floor is not found.
4362
- */
4363
- get floor(): Floor | undefined;
4364
4359
  /**
4365
4360
  * Serializes the coordinate data to JSON.
4366
4361
  *
@@ -5870,6 +5865,13 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/MapView.types' {
5870
5865
  outdoorGeometryLayers?: string[];
5871
5866
  /**
5872
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.
5873
5875
  */
5874
5876
  useLivePolygons?: boolean;
5875
5877
  };
@@ -6015,6 +6017,10 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/MapView.types' {
6015
6017
  onWebGLRendererError?: () => void;
6016
6018
  };
6017
6019
  export type TShowVenueOptions = {
6020
+ /**
6021
+ * Enable shading of bottoms of geometry along with outlines to make geometry stand out.
6022
+ */
6023
+ shadingAndOutlines?: boolean;
6018
6024
  /**
6019
6025
  * @experimental
6020
6026
  *
@@ -8665,8 +8671,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
8665
8671
  }
8666
8672
 
8667
8673
  declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controllers/FlatLabelsController' {
8668
- import { TAddFlatLabelOptions, TFlatLabelAllLocationsOptions, TFlatLabelAppearance, ICore } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
8669
- 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';
8670
8675
  import { MappedinPolygon } from '@mappedin/mappedin-js/packages/get-venue';
8671
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";
8672
8677
  export type FlatLabelRenderObject = TAddFlatLabelOptions & {
@@ -11979,6 +11984,7 @@ declare module '@mappedin/mappedin-js/packages/get-venue/MappedinVortex' {
11979
11984
  weight?: number;
11980
11985
  multiplier?: number;
11981
11986
  nodes?: string[];
11987
+ filterFlags?: string[];
11982
11988
  constructor(data: any);
11983
11989
  static hydrate(vortexes: any): MappedinVortex[];
11984
11990
  static fetch(mappedin: Mappedin): Promise<MappedinVortex[]>;