@mappedin/react-sdk 6.0.1-beta.47 → 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 +12048 -1731
- package/lib/esm/GLTFExporter-U7TU265Z.js +1 -0
- package/lib/esm/GLTFLoader-6MJPEGD7.js +1 -0
- package/lib/esm/browser-CR4WWHP7.js +1 -0
- package/lib/esm/chunk-63UMH2J3.js +1 -0
- package/lib/esm/chunk-7JZE7FSJ.js +1 -0
- package/lib/esm/chunk-B3CVW3UU.js +1 -0
- package/lib/esm/chunk-EIMXVMO4.js +1 -0
- package/lib/esm/chunk-JMCXCPZD.js +1 -0
- package/lib/esm/chunk-Z5U7QCEH.js +1 -0
- package/lib/esm/index.d.ts +95 -47
- package/lib/esm/index.js +1 -1
- package/lib/esm/inspector-U6M4QW4R.js +1 -0
- package/lib/esm/internal-ZUMRQSCJ.js +1 -0
- package/lib/esm/outdoor-context-v4-ME4STCCK.js +1 -0
- package/lib/esm/text3d-DNZ77VLG.js +1 -0
- package/package.json +2 -2
- package/lib/esm/GLTFExporter-7OZO7OAN.js +0 -1
- package/lib/esm/GLTFLoader-BTM3ARCC.js +0 -1
- package/lib/esm/browser-RWOI5BLY.js +0 -1
- package/lib/esm/chunk-3DLWMSMA.js +0 -1
- package/lib/esm/chunk-7WCA75NG.js +0 -1
- package/lib/esm/chunk-MH6J7HN7.js +0 -1
- package/lib/esm/chunk-NS37OT4J.js +0 -1
- package/lib/esm/chunk-OEBM7FFM.js +0 -1
- package/lib/esm/chunk-PEDEW3M6.js +0 -1
- package/lib/esm/chunk-SB6JFH4C.js +0 -1
- package/lib/esm/inspector-WRNBK432.js +0 -1
- package/lib/esm/internal-KFN6TGNE.js +0 -1
- package/lib/esm/outdoor-context-v4-T22T5B5J.js +0 -1
- package/lib/esm/roboto-regular-3HSVPIGX.js +0 -1
- package/lib/esm/text3d-LSJE37UM.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Z as y,_ as B,u as w,v as x,w as b}from"./chunk-63UMH2J3.js";import{c as g,q as A}from"./chunk-JMCXCPZD.js";A();function R(o,l=!1){let r=o[0].index!==null,f=new Set(Object.keys(o[0].attributes)),i=new Set(Object.keys(o[0].morphAttributes)),c={},e={},h=o[0].morphTargetsRelative,u=new B,d=0;for(let t=0;t<o.length;++t){let s=o[t],a=0;if(r!==(s.index!==null))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(let n in s.attributes){if(!f.has(n))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+'. All geometries must have compatible attributes; make sure "'+n+'" attribute exists among all geometries, or in none of them.'),null;c[n]===void 0&&(c[n]=[]),c[n].push(s.attributes[n]),a++}if(a!==f.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". Make sure all geometries have the same number of attributes."),null;if(h!==s.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(let n in s.morphAttributes){if(!i.has(n))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". .morphAttributes must be consistent throughout all geometries."),null;e[n]===void 0&&(e[n]=[]),e[n].push(s.morphAttributes[n])}if(l){let n;if(r)n=s.index.count;else if(s.attributes.position!==void 0)n=s.attributes.position.count;else return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". The geometry must have either an index or a position attribute"),null;u.addGroup(d,n,t),d+=n}}if(r){let t=0,s=[];for(let a=0;a<o.length;++a){let n=o[a].index;for(let m=0;m<n.count;++m)s.push(n.getX(m)+t);t+=o[a].attributes.position.count}u.setIndex(s)}for(let t in c){let s=T(c[t]);if(!s)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" attribute."),null;u.setAttribute(t,s)}for(let t in e){let s=e[t][0].length;if(s===0)break;u.morphAttributes=u.morphAttributes||{},u.morphAttributes[t]=[];for(let a=0;a<s;++a){let n=[];for(let p=0;p<e[t].length;++p)n.push(e[t][p][a]);let m=T(n);if(!m)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" morphAttribute."),null;u.morphAttributes[t].push(m)}}return u}g(R,"mergeGeometries");function T(o){let l,r,f,i=-1,c=0;for(let d=0;d<o.length;++d){let t=o[d];if(l===void 0&&(l=t.array.constructor),l!==t.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(r===void 0&&(r=t.itemSize),r!==t.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(f===void 0&&(f=t.normalized),f!==t.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(i===-1&&(i=t.gpuType),i!==t.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;c+=t.count*r}let e=new l(c),h=new y(e,r,f),u=0;for(let d=0;d<o.length;++d){let t=o[d];if(t.isInterleavedBufferAttribute){let s=u/r;for(let a=0,n=t.count;a<n;a++)for(let m=0;m<r;m++){let p=t.getComponent(a,m);h.setComponent(a+s,m,p)}}else e.set(t.array,u);u+=t.count*r}return i!==void 0&&(h.gpuType=i),h}g(T,"mergeAttributes");function X(o,l){if(l===w)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),o;if(l===b||l===x){let r=o.getIndex();if(r===null){let e=[],h=o.getAttribute("position");if(h!==void 0){for(let u=0;u<h.count;u++)e.push(u);o.setIndex(e),r=o.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),o}let f=r.count-2,i=[];if(l===b)for(let e=1;e<=f;e++)i.push(r.getX(0)),i.push(r.getX(e)),i.push(r.getX(e+1));else for(let e=0;e<f;e++)e%2===0?(i.push(r.getX(e)),i.push(r.getX(e+1)),i.push(r.getX(e+2))):(i.push(r.getX(e+2)),i.push(r.getX(e+1)),i.push(r.getX(e)));i.length/3!==f&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");let c=o.clone();return c.setIndex(i),c.clearGroups(),c}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",l),o}g(X,"toTrianglesDrawMode");export{R as a,X as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var h=Object.create,D=Object.freeze,v=Object.defineProperty,j=Object.defineProperties,l=Object.getOwnPropertyDescriptor,q=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,x=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var N=(e,n)=>(n=Symbol[e])?n:Symbol.for("Symbol."+e),k=e=>{throw TypeError(e)};var d=(e,n,a)=>n in e?v(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,C=(e,n)=>{for(var a in n||(n={}))g.call(n,a)&&d(e,a,n[a]);if(b)for(var a of b(n))O.call(n,a)&&d(e,a,n[a]);return e},F=(e,n)=>j(e,q(n)),G=(e,n)=>v(e,"name",{value:n,configurable:!0});var H=e=>typeof e=="symbol"?e:e+"",I=(e,n)=>{var a={};for(var o in e)g.call(e,o)&&n.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&b)for(var o of b(e))n.indexOf(o)<0&&O.call(e,o)&&(a[o]=e[o]);return a};var y=(e,n)=>()=>(e&&(n=e(e=0)),n);var J=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),K=(e,n)=>{for(var a in n)v(e,a,{get:n[a],enumerable:!0})},z=(e,n,a,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let p of w(n))!g.call(e,p)&&p!==a&&v(e,p,{get:()=>n[p],enumerable:!(o=l(n,p))||o.enumerable});return e};var L=(e,n,a)=>(a=e!=null?h(x(e)):{},z(n||!e||!e.__esModule?v(a,"default",{value:e,enumerable:!0}):a,e));var M=(e,n,a)=>d(e,typeof n!="symbol"?n+"":n,a),m=(e,n,a)=>n.has(e)||k("Cannot "+a);var P=(e,n,a)=>(m(e,n,"read from private field"),a?a.call(e):n.get(e)),Q=(e,n,a)=>n.has(e)?k("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),R=(e,n,a,o)=>(m(e,n,"write to private field"),o?o.call(e,a):n.set(e,a),a),S=(e,n,a)=>(m(e,n,"access private method"),a);var T=(e,n)=>D(v(e,"raw",{value:D(n||e.slice())}));var V=function(e,n){this[0]=e,this[1]=n},U=(e,n,a)=>{var o=(c,i,r,E)=>{try{var s=a[c](i),u=(i=s.value)instanceof V,f=s.done;Promise.resolve(u?i[0]:i).then(t=>u?o(c==="return"?c:"next",i[1]?{done:t.done,value:t.value}:t,r,E):r({value:t,done:f})).catch(t=>o("throw",t,r,E))}catch(t){E(t)}},p=c=>_[c]=i=>new Promise((r,E)=>o(c,i,r,E)),_={};return a=a.apply(e,n),_[N("asyncIterator")]=()=>_,p("next"),p("throw"),p("return"),_},W=e=>{var n=e[N("asyncIterator")],a=!1,o,p={};return n==null?(n=e[N("iterator")](),o=_=>p[_]=c=>n[_](c)):(n=n.call(e),o=_=>p[_]=c=>{if(a){if(a=!1,_==="throw")throw c;return c}return a=!0,{done:!1,value:new V(new Promise(i=>{var r=n[_](c);r instanceof Object||k("Object expected"),i(r)}),1)}}),p[N("iterator")]=()=>p,o("next"),"throw"in n?o("throw"):p.throw=_=>{throw _},"return"in n&&o("return"),p};var Z,B=y(()=>{Z={env:{NODE_ENV:"production",npm_package_version:"6.0.1-beta.48"}}});export{C as a,F as b,G as c,H as d,I as e,J as f,K as g,L as h,M as i,P as j,Q as k,R as l,S as m,T as n,U as o,W as p,B as q,Z as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as ue,k as Ge,l as Ne}from"./chunk-B3CVW3UU.js";import{Q as x,R as oe,T as ae,V as O,W as se,db as ke,qa as Ae}from"./chunk-63UMH2J3.js";import{c as i,i as o,j as h,k as S,l as g,q as u,r as d}from"./chunk-JMCXCPZD.js";u();function Lt(r,e,t=!1){let n=null,a=0;return function(...s){a++,a===1&&t===!0&&r(...s);let l=i(()=>{(!t||a>1)&&r(...s),n=null,a=0},"later");clearTimeout(n),n=setTimeout(l,e)}}i(Lt,"debounce");u();u();var tt="[MappedinJS]",rt=(a=>(a[a.LOG=0]="LOG",a[a.WARN=1]="WARN",a[a.ERROR=2]="ERROR",a[a.SILENT=3]="SILENT",a))(rt||{});function nt(r=""){let e="".concat(tt).concat(r?"-".concat(r):"");return{logState:d.env.NODE_ENV==="test"?3:0,log(...t){this.logState<=0&&console.log(e,...t)},warn(...t){this.logState<=1&&console.warn(e,...t)},error(...t){this.logState<=2&&console.error(e,...t)},assert(...t){console.assert(...t)},time(t){console.time(t)},timeEnd(t){console.timeEnd(t)},setLevel(t){0<=t&&t<=3&&(this.logState=t)}}}i(nt,"createLogger");var _e=nt();function Gt(r){0<=r&&r<=3&&(_e.logState=r)}i(Gt,"setLoggerLevel");var le=_e;u();u();var ce=class ce extends Error{};i(ce,"InvalidTokenError");var R=ce;R.prototype.name="InvalidTokenError";function it(r){return decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}i(it,"b64DecodeUnicode");function ot(r){let e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return it(e)}catch(t){return atob(e)}}i(ot,"base64UrlDecode");function Fe(r,e){if(typeof r!="string")throw new R("Invalid token specified: must be a string");e||(e={});let t=e.header===!0?0:1,n=r.split(".")[t];if(typeof n!="string")throw new R("Invalid token specified: missing part #".concat(t+1));let a;try{a=ot(n)}catch(s){throw new R("Invalid token specified: invalid base64 for part #".concat(t+1," (").concat(s.message,")"))}try{return JSON.parse(a)}catch(s){throw new R("Invalid token specified: invalid json for part #".concat(t+1," (").concat(s.message,")"))}}i(Fe,"jwtDecode");u();var B=63710088e-1;function Kt(r){var t,n;let e=Fe(r);if(e.sub==null)throw new Error("Access token is missing sub claim.");return{sub:e.sub,aud:typeof e.aud=="string"?[e.aud]:(t=e.aud)!=null?t:[],capabilities:(n=e.capabilities)!=null?n:{}}}i(Kt,"decodeAccessToken");function A(r){return r*(Math.PI/180)}i(A,"toRadians");function at(r){return r*(180/Math.PI)}i(at,"toDegrees");function Jt(r,e){let t=Math.pow(10,e);return Math.sign(r)*Math.round(Math.abs(r)*t)/t}i(Jt,"round");function Re(r,e){return(r%e+e)%e}i(Re,"euclideanModulo");function $t([r,e],[t,n]){let a=A(n-e),s=A(t-r),l=A(e),c=A(n),m=Math.sin(a/2)*Math.sin(a/2)+Math.sin(s/2)*Math.sin(s/2)*Math.cos(l)*Math.cos(c),p=2*Math.atan2(Math.sqrt(m),Math.sqrt(1-m));return B*p}i($t,"haversineDistance");function qt([r,e],[t,n]){let a=A(e),s=A(r),l=A(n),m=A(t)-s,p=Math.sin(m)*Math.cos(l),y=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(m);return at((Math.atan2(p,y)+Math.PI*2)%(Math.PI*2))}i(qt,"getForwardBearing");function Xt(r,e){let t=Re(r,Math.PI*2),n=Re(e,Math.PI*2),a=n-t,s=n+(a>Math.PI?-Math.PI*2:a<-Math.PI?Math.PI*2:0);return{start:t,end:s}}i(Xt,"shortestTweenRotation");function st(r){return r instanceof ke?Number.isFinite(r.min.x)&&Number.isFinite(r.min.y)&&Number.isFinite(r.max.x)&&Number.isFinite(r.max.y):Number.isFinite(r.min.x)&&Number.isFinite(r.min.y)&&Number.isFinite(r.max.x)&&Number.isFinite(r.max.y)&&Number.isFinite(r.min.z)&&Number.isFinite(r.max.z)}i(st,"isFiniteBox");function Zt(r,e,t,n){return(r<e||r>t)&&le.warn(n),Math.min(t,Math.max(e,r))}i(Zt,"clampWithWarning");function Qt(r,e){if(r==null||e==null)return r===e;if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}i(Qt,"arraysEqual");u();var Z=class Z extends Error{constructor(t){super(t);o(this,"name","AssertionError");Error.captureStackTrace&&Error.captureStackTrace(this,Z)}};i(Z,"AssertionError");var me=Z;function Be(r,e){if(r==null){let t;if(e!=null&&e.customMessage)t=e.customMessage;else{let s=e!=null&&e.valueName?"'".concat(e.valueName,"'"):"value";t="Expected ".concat(s," to be defined, but received ").concat(r)}let n=(e==null?void 0:e.errorClass)||me,a=new n(t);throw(e==null?void 0:e.captureStackTrace)!==!1&&Error.captureStackTrace&&Error.captureStackTrace(a,Be),a}}i(Be,"assertExists");function nr(r,e,t){if(Be(r),(r==null?void 0:r.type)!==e){let n="Expected type ".concat(e," but got ").concat(r==null?void 0:r.type);throw new Error(t!=null?t:n)}}i(nr,"assertType");u();var de=[0,4,6,8,10],D=i(()=>{let r=new Array(16).fill(0),e=Math.random()*4294967296;for(let n=0;n<r.length;n++)n>0&&(n&3)===0&&(e=Math.random()*4294967296),r[n]=e>>>((n&3)<<3)&255;let t=r.map(n=>n.toString(16).padStart(2,"0"));return t[6]="4"+t[6][1],t[8]=["8","9","a","b"].includes(t[7][0])?t[7]:"a"+t[7][1],de.map((n,a)=>t.slice(n,a===de.length-1?void 0:de[a+1]).join("")).join("-")},"randomId");u();var fe=class fe{constructor(){o(this,"_subscribers",{})}publish(e,t){!this._subscribers||!this._subscribers[e]||this._subscribers[e].forEach(function(n){typeof n=="function"&&n(t)})}on(e,t){this._subscribers||(this._subscribers={}),this._subscribers[e]=this._subscribers[e]||[],this._subscribers[e].push(t)}off(e,t){if(!this._subscribers||this._subscribers[e]==null)return;let n=this._subscribers[e].indexOf(t);n!==-1&&this._subscribers[e].splice(n,1)}destroy(){this._subscribers={}}};i(fe,"PubSub");var pe=fe;u();var Ve="mi-session-data",je="mi-local-data",H="id",W="deviceId",V,T,v,z=class z{constructor(){S(this,T);S(this,v);try{let e=sessionStorage.getItem(Ve);e?g(this,T,JSON.parse(e)):g(this,T,{[H]:D()})}catch(e){g(this,T,{[H]:D()})}try{let e=localStorage.getItem(je);e?g(this,v,JSON.parse(e)):g(this,v,{[W]:D()})}catch(e){g(this,v,{[W]:D()})}h(this,T)[H]||(h(this,T)[H]=D()),h(this,v)[W]||(h(this,v)[W]=D())}static getInstance(){return h(this,V)||g(this,V,new z),h(this,V)}static ___clearInstance(){g(this,V,void 0)}saveSessionData(e,t){h(this,T)[e]=t;try{return sessionStorage.setItem(Ve,JSON.stringify(h(this,T))),!0}catch(n){return!1}}loadSessionData(e){let t=h(this,T)[e];if(t!=null)return t}saveLocalData(e,t){h(this,v)[e]=t;try{return localStorage.setItem(je,JSON.stringify(h(this,v))),!0}catch(n){return!1}}loadLocalData(e){let t=h(this,v)[e];if(t!=null)return t}};V=new WeakMap,T=new WeakMap,v=new WeakMap,i(z,"SafeStorage"),S(z,V);var he=z;u();function ut(r){return(r%(2*Math.PI)+2*Math.PI)%(2*Math.PI)}i(ut,"normalizeAngle");u();u();u();u();u();u();u();u();var b=63710088e-1,He={centimeters:b*100,centimetres:b*100,degrees:b/111325,feet:b*3.28084,inches:b*39.37,kilometers:b/1e3,kilometres:b/1e3,meters:b,metres:b,miles:b/1609.344,millimeters:b*1e3,millimetres:b*1e3,nauticalmiles:b/1852,radians:1,yards:b*1.0936},Cr={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/b,yards:1.0936133};function C(r,e,t){t===void 0&&(t={});var n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=e||{},n.geometry=r,n}i(C,"feature");function lt(r,e,t){if(t===void 0&&(t={}),!r)throw new Error("coordinates is required");if(!Array.isArray(r))throw new Error("coordinates must be an Array");if(r.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Ue(r[0])||!Ue(r[1]))throw new Error("coordinates must contain numbers");var n={type:"Point",coordinates:r};return C(n,e,t)}i(lt,"point");function Lr(r,e,t){t===void 0&&(t={});for(var n=0,a=r;n<a.length;n++){var s=a[n];if(s.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var l=0;l<s[s.length-1].length;l++)if(s[s.length-1][l]!==s[0][l])throw new Error("First and last Position are not equivalent.")}var c={type:"Polygon",coordinates:r};return C(c,e,t)}i(Lr,"polygon");function We(r,e,t){if(t===void 0&&(t={}),r.length<2)throw new Error("coordinates must be an array of two or more positions");var n={type:"LineString",coordinates:r};return C(n,e,t)}i(We,"lineString");function Or(r,e){e===void 0&&(e={});var t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=r,t}i(Or,"featureCollection");function Ar(r,e,t){t===void 0&&(t={});var n={type:"MultiLineString",coordinates:r};return C(n,e,t)}i(Ar,"multiLineString");function kr(r,e,t){t===void 0&&(t={});var n={type:"MultiPoint",coordinates:r};return C(n,e,t)}i(kr,"multiPoint");function Gr(r,e,t){t===void 0&&(t={});var n={type:"MultiPolygon",coordinates:r};return C(n,e,t)}i(Gr,"multiPolygon");function Nr(r,e){e===void 0&&(e="kilometers");var t=He[e];if(!t)throw new Error(e+" units is invalid");return r*t}i(Nr,"radiansToLength");function _r(r,e){e===void 0&&(e="kilometers");var t=He[e];if(!t)throw new Error(e+" units is invalid");return r/t}i(_r,"lengthToRadians");function Fr(r){var e=r%(2*Math.PI);return e*180/Math.PI}i(Fr,"radiansToDegrees");function Rr(r){var e=r%360;return e*Math.PI/180}i(Rr,"degreesToRadians");function Ue(r){return!isNaN(r)&&r!==null&&!Array.isArray(r)}i(Ue,"isNumber");function Y(r,e,t){if(r!==null)for(var n,a,s,l,c,m,p,y=0,f=0,w,I=r.type,E=I==="FeatureCollection",N=I==="Feature",ne=E?r.features.length:1,_=0;_<ne;_++){p=E?r.features[_].geometry:N?r.geometry:r,w=p?p.type==="GeometryCollection":!1,c=w?p.geometries.length:1;for(var ie=0;ie<c;ie++){var M=0,F=0;if(l=w?p.geometries[ie]:p,l!==null){m=l.coordinates;var L=l.type;switch(y=t&&(L==="Polygon"||L==="MultiPolygon")?1:0,L){case null:break;case"Point":if(e(m,f,_,M,F)===!1)return!1;f++,M++;break;case"LineString":case"MultiPoint":for(n=0;n<m.length;n++){if(e(m[n],f,_,M,F)===!1)return!1;f++,L==="MultiPoint"&&M++}L==="LineString"&&M++;break;case"Polygon":case"MultiLineString":for(n=0;n<m.length;n++){for(a=0;a<m[n].length-y;a++){if(e(m[n][a],f,_,M,F)===!1)return!1;f++}L==="MultiLineString"&&M++,L==="Polygon"&&F++}L==="Polygon"&&M++;break;case"MultiPolygon":for(n=0;n<m.length;n++){for(F=0,a=0;a<m[n].length;a++){for(s=0;s<m[n][a].length-y;s++){if(e(m[n][a][s],f,_,M,F)===!1)return!1;f++}F++}M++}break;case"GeometryCollection":for(n=0;n<l.geometries.length;n++)if(Y(l.geometries[n],e,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}i(Y,"coordEach");function Wr(r,e,t,n){var a=t;return Y(r,function(s,l,c,m,p){l===0&&t===void 0?a=s:a=e(a,s,l,c,m,p)},n),a}i(Wr,"coordReduce");function zr(r,e){if(r.type==="Feature")e(r,0);else if(r.type==="FeatureCollection")for(var t=0;t<r.features.length&&e(r.features[t],t)!==!1;t++);}i(zr,"featureEach");function ct(r,e){var t,n,a,s,l,c,m,p,y,f,w=0,I=r.type==="FeatureCollection",E=r.type==="Feature",N=I?r.features.length:1;for(t=0;t<N;t++){for(c=I?r.features[t].geometry:E?r.geometry:r,p=I?r.features[t].properties:E?r.properties:{},y=I?r.features[t].bbox:E?r.bbox:void 0,f=I?r.features[t].id:E?r.id:void 0,m=c?c.type==="GeometryCollection":!1,l=m?c.geometries.length:1,a=0;a<l;a++){if(s=m?c.geometries[a]:c,s===null){if(e(null,w,p,y,f)===!1)return!1;continue}switch(s.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(s,w,p,y,f)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<s.geometries.length;n++)if(e(s.geometries[n],w,p,y,f)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}w++}}i(ct,"geomEach");function mt(r,e){ct(r,function(t,n,a,s,l){var c=t===null?null:t.type;switch(c){case null:case"Point":case"LineString":case"Polygon":return e(C(t,a,{bbox:s,id:l}),n,0)===!1?!1:void 0}var m;switch(c){case"MultiPoint":m="Point";break;case"MultiLineString":m="LineString";break;case"MultiPolygon":m="Polygon";break}for(var p=0;p<t.coordinates.length;p++){var y=t.coordinates[p],f={type:m,coordinates:y};if(e(C(f,a),n,p)===!1)return!1}})}i(mt,"flattenEach");function dt(r,e){mt(r,function(t,n,a){var s=0;if(t.geometry){var l=t.geometry.type;if(!(l==="Point"||l==="MultiPoint")){var c,m=0,p=0,y=0;if(Y(t,function(f,w,I,E,N){if(c===void 0||n>m||E>p||N>y){c=f,m=n,p=E,y=N,s=0;return}var ne=We([c,f],t.properties);if(e(ne,n,a,N,s)===!1)return!1;s++,c=f})===!1)return!1}}})}i(dt,"segmentEach");function Yr(r,e,t){var n=t,a=!1;return dt(r,function(s,l,c,m,p){a===!1&&t===void 0?n=s:n=e(n,s,l,c,m,p),a=!0}),n}i(Yr,"segmentReduce");function ye(r){var e=[1/0,1/0,-1/0,-1/0];return Y(r,function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e}i(ye,"bbox");ye.default=ye;var ze=ye;function Ye(r){return ze(r)}i(Ye,"getBoundingBoxFromFeature");u();var ge="#ffffff";var xe=class xe{constructor(e={}){o(this,"initialColor",ge);o(this,"color",ge);o(this,"initialTopColor");o(this,"topColor");o(this,"topTexture");o(this,"texture");o(this,"hoverColor");o(this,"dirty",!0);o(this,"visible",!0);o(this,"opacity",1);o(this,"width",.1);o(this,"height",.1);o(this,"initialHeight",.1);o(this,"altitude",0);o(this,"join","round");o(this,"cap","round");o(this,"showImage",!0);o(this,"flipImageToFaceCamera",!0);o(this,"url");o(this,"side","double");o(this,"renderOrder",0);this.color=(e==null?void 0:e.color)!==void 0?e.color:this.color,this.initialColor=this.color,this.width=(e==null?void 0:e.width)!==void 0?e.width:this.width,this.opacity=(e==null?void 0:e.opacity)!==void 0?e.opacity:this.opacity,this.visible=(e==null?void 0:e.visible)!==void 0?e.visible:this.visible,this.height=(e==null?void 0:e.height)!==void 0?e.height:this.height,this.initialHeight=this.height,this.altitude=(e==null?void 0:e.altitude)!==void 0?e.altitude:this.altitude,this.join=(e==null?void 0:e.join)!==void 0?e.join:this.join,this.cap=(e==null?void 0:e.cap)!==void 0?e.cap:this.cap,this.topColor=e==null?void 0:e.topColor,this.initialTopColor=this.topColor,this.texture=e==null?void 0:e.texture,this.topTexture=e==null?void 0:e.topTexture,this.showImage=(e==null?void 0:e.showImage)!==void 0?e.showImage:this.showImage,this.flipImageToFaceCamera=(e==null?void 0:e.flipImageToFaceCamera)!==void 0?e.flipImageToFaceCamera:this.flipImageToFaceCamera,this.url=e==null?void 0:e.url,this.side=(e==null?void 0:e.side)!==void 0?e.side:this.side,this.renderOrder=(e==null?void 0:e.renderOrder)!==void 0?e.renderOrder:this.renderOrder}};i(xe,"StyleComponent");var be=xe;var De=class De extends Ae{constructor(){super(...arguments);o(this,"type","entityBatchedMesh");o(this,"userData",{entities:{}})}};i(De,"EntityBatchedMesh");var Q=De,K,J,j,Te=class Te{constructor(e){o(this,"mesh");o(this,"focusMesh");o(this,"imageMesh");o(this,"textMesh");o(this,"textEntityId");o(this,"type","geometry");o(this,"dirty",!0);o(this,"detached",!1);o(this,"instanceIndex",-1);o(this,"geometry");o(this,"material");o(this,"feature");o(this,"currentHeight",.1);o(this,"focusable",!1);o(this,"color",new se);o(this,"topColor",new se);o(this,"position",new x);S(this,K,0);S(this,J,1);S(this,j);o(this,"texturesVisible",!1);this.feature=e}get visible(){return this.mesh&&this.instanceIndex!==-1?this.mesh.getVisibleAt(this.instanceIndex):!1}set visible(e){this.mesh&&this.instanceIndex!==-1&&this.mesh.setVisibleAt(this.instanceIndex,e)}get renderOrder(){return this.mesh?this.mesh.renderOrder:0}set renderOrder(e){this.mesh&&(this.mesh.renderOrder=e)}setColor(e,t){this.color.set(e),this.topColor.set(t),this.material&&this.material.setColor(this.instanceIndex,this.color,this.topColor)}getColor(){var e;return(e=this.material)==null?void 0:e.getColor(this.instanceIndex)}get altitude(){return h(this,K)}set altitude(e){this.mesh&&(this.mesh.position.z=e,g(this,K,e))}get opacity(){return h(this,J)}set opacity(e){if(this.material&&(this.material.opacity=e,this.material.transparent=e<1,this.material.needsUpdate=!0),this.imageMesh){let t=Array.isArray(this.imageMesh.material)?this.imageMesh.material:[this.imageMesh.material];for(let n of t)n.opacity=e,n.needsUpdate=!0}g(this,J,e)}get texture(){var e,t;return(t=(e=this.material)==null?void 0:e.texture)==null?void 0:t.image.src}set texture(e){this.material&&(this.material.texture=e)}get textureInstance(){var e;return(e=this.material)==null?void 0:e.texture}set topTexture(e){this.material&&(this.material.topTexture=e)}get topTexture(){var e,t;return(t=(e=this.material)==null?void 0:e.topTexture)==null?void 0:t.image.src}get topTextureInstance(){var e;return(e=this.material)==null?void 0:e.topTexture}set blendTexture(e){this.material&&(this.material.blendTexture=e)}get featureBbox(){return h(this,j)?h(this,j):(g(this,j,Ye(this.feature)),h(this,j))}showTextures(){this.material&&(this.material.showTextures(this.instanceIndex),this.texturesVisible=!0)}hideTextures(){this.material&&(this.material.hideTextures(this.instanceIndex),this.texturesVisible=!1)}removeSideTexture(){this.material&&this.material.removeSideTexture(this.instanceIndex)}removeTopTexture(){this.material&&this.material.removeTopTexture(this.instanceIndex)}};K=new WeakMap,J=new WeakMap,j=new WeakMap,i(Te,"MeshComponent");var Ke=Te;u();var Je="#ffffff",k,ve=class ve{constructor(e={}){o(this,"color",Je);o(this,"initialColor",Je);o(this,"topColor");o(this,"initialTopColor");o(this,"opacity",1);o(this,"height");S(this,k);o(this,"outline",!0);o(this,"texture");o(this,"topTexture");o(this,"dirty",!0);var t,n;this.color=(t=e==null?void 0:e.color)!=null?t:this.color,this.initialColor=this.color,this.topColor=e==null?void 0:e.topColor,this.initialTopColor=this.topColor,this.opacity=(n=e==null?void 0:e.opacity)!=null?n:this.opacity,this.height=e==null?void 0:e.height,this.shading=e==null?void 0:e.shading,this.outline=(e==null?void 0:e.outline)!==void 0?!!e.outline:this.outline}get shading(){return h(this,k)}set shading(e){var t;if(!e){g(this,k,void 0);return}g(this,k,(t=h(this,k))!=null?t:{start:0,end:0,intensity:0}),Object.assign(h(this,k),e)}};k=new WeakMap,i(ve,"GeometryGroupStyleComponent");var ee=ve;var Ee=class Ee extends O{constructor(t,n=new ee){super();o(this,"visible",!0);o(this,"type","geometry-group");o(this,"components");o(this,"userData",{entityId:"",entities3D:new Set,opacity:1,dirty:!0,shadingDirty:!0});this.components=[n],this.userData.entityId=t}setVisible(t){this.visible!==t&&(this.visible=t,this.dispatchEvent({type:"childremoved",child:this}))}getOpacity(){return this.userData.opacity}setOpacity(t){this.userData.opacity=t}removeEntity(){this.dispatchEvent({type:"childremoved",child:this})}getfirstChildEntityId(){let t;for(let a of this.children)if(!a.userData.detached){t=a;break}return t instanceof Q?Object.values(t.userData.entities)[0]:void 0}setAltitude(t){this.position.z!==t&&(this.position.z=t,this.dispatchEvent({type:"childremoved",child:this}))}get altitude(){return this.position.z}};i(Ee,"GeometryGroupObject3D");var P=Ee;u();var Me=class Me extends O{};i(Me,"Geometry2DObject3D");var G=Me,Se=class Se{constructor(e,t,n=0){o(this,"id");o(this,"verticalOffset");o(this,"occluderId");o(this,"object3d",new G);o(this,"components");o(this,"disposed",!1);o(this,"worldPosition",new x);this.id=e.id||D(),this.components=[e],this.verticalOffset=n,this.object3d=new G,this.object3d.position.set(t.x,t.y,t.z+n),this.object3d.userData.entityId=this.id,this.object3d.userData.type=this.type,this.positionDirty=!0}get type(){return this.components[0].type}get parentObject3D(){return this.object3d.parent}get attachedTo(){return this.object3d.userData.attachedEntityId}get position(){return this.positionDirty&&(this.object3d.matrixAutoUpdate=!0,this.object3d.getWorldPosition(this.worldPosition),this.positionDirty=!1,this.object3d.matrixAutoUpdate=!1),this.worldPosition}get positionDirty(){return this.object3d.userData.worldPositionDirty}set positionDirty(e){this.object3d.userData.worldPositionDirty=e}updatePosition(e){this.object3d.position.copy(e),this.positionDirty=!0}setAltitude(e){this.object3d.position.z=e,this.positionDirty=!0}};i(Se,"Geometry2D");var $=Se;u();var Pe=class Pe extends O{constructor(){super(...arguments);o(this,"type","geometry");o(this,"userData",{entityId:"",type:"geometry"})}raycast(t,n){this.userData.type==="model"&&this.children[0]&&t.intersectObject(this.children[0],!0).forEach(a=>{n.push(a)})}};i(Pe,"Geometry3DObject3D");var te=Pe,we=class we{constructor(e,t){o(this,"id",D());o(this,"components");o(this,"entities2D",new Map);this.components=[e,t]}get object3d(){return this.components[0].mesh}get parentObject3D(){var e;return(e=this.components[0].mesh)==null?void 0:e.parent}get type(){return this.components[0].type}attach(e){this.parentObject3D instanceof P?e.object3d.userData.attachedEntityId=this.id:this.entities2D.set(e.id,e)}detach(e){this.parentObject3D instanceof P&&(e.object3d.userData.parentEntityId=void 0),this.entities2D.delete(e.id)}removeAllEntities(){for(let e of this.entities2D.values())this.detach(e)}};i(we,"Geometry3D");var q=we;var U=class U extends O{constructor(t){super();o(this,"childrenIds",new Set);o(this,"children",[]);o(this,"type","group-container");o(this,"userData",{entityId:"",entities2D:new Set,dirty:!0,occluderDirty:!1,opacity:1,computedOpacity:1,preloadGeometry:!1});o(this,"components",[]);this.userData.entityId=t}addOccluderFeature(t,n){this.userData.occluderFeature=t,this.userData.occluderId=n,this.userData.occluderDirty=!0}addEntity(t){t instanceof U?(this.childrenIds.add(t.userData.entityId),this.add(t)):t instanceof $?(this.childrenIds.add(t.id),this.add(t.object3d),this.userData.entities2D.add(t.id),t.positionDirty=!0):t instanceof P?(this.childrenIds.add(t.userData.entityId),this.add(t)):t instanceof q&&t.object3d&&(this.childrenIds.add(t.id),this.add(t.object3d)),this.dispatchEvent({type:"childadded",child:this})}removeEntity(t){t instanceof U?(this.childrenIds.delete(t.userData.entityId),this.remove(t)):t instanceof $?(this.childrenIds.delete(t.id),this.userData.entities2D.delete(t.id),this.remove(t.object3d)):t instanceof P?(this.childrenIds.delete(t.userData.entityId),this.remove(t)):t instanceof q&&t.object3d&&(this.childrenIds.delete(t.id),this.add(t.object3d)),this.dispatchEvent({type:"childremoved",child:this})}setVisible(t){this.visible!==t&&(this.visible=t,this.dispatchEvent({type:"childremoved",child:this}))}setAltitude(t){this.position.z!==t&&(this.position.z=t,this.dispatchEvent({type:"childremoved",child:this}),this.set2DGeometryChildrenPositionDirty())}set2DGeometryChildrenPositionDirty(){this.children.forEach(t=>{t instanceof G?t.userData.worldPositionDirty=!0:t instanceof U&&t.set2DGeometryChildrenPositionDirty()})}get altitude(){return this.position.z}setOpacity(t){this.userData.opacity=t}get opacity(){return this.userData.opacity}};i(U,"GroupContainerObject3D");var X=U;u();var jn={top:0,bottom:0,left:0,right:0,type:"pixel"},$e="mappedin";var Un={ALWAYS_ON_TOP:10},Hn=250;u();function ft(r){let e=r.min,t=r.max,n=new x(e.x,e.y,e.z),a=new x(t.x,e.y,e.z),s=new x(e.x,t.y,e.z),l=new x(t.x,t.y,e.z);return[n,a,s,l]}i(ft,"getCornersOfBoundingBox");u();function qe(r,e){let t;return typeof e=="string"||typeof e=="number"?(t=r.geometry2DMap.get(e),t==null&&(t=r.geometry3DMap.get(e))):typeof(e==null?void 0:e.id)=="string"||typeof(e==null?void 0:e.id)=="number"?(t=r.geometry2DMap.get(e.id),t==null&&(t=r.geometry3DMap.get(e.id))):t=e,t}i(qe,"getGeometryByGeometryId");function Xn(r,e,t=[],n=new oe,a){(r.getSystems().renderSystem.threeDdirty||r.getSystems().renderSystem.twoDdirty)&&r.renderSync();let s=qe(r.getInternalState(),e);return Xe(s,t,n,a),t}i(Xn,"getVerticesOfEntity");var re=new x;function Xe(r,e=[],t=new oe,n){if(r.visible){if(r.isMesh||r.isLine||r.isPoints){let a=r.geometry;if(a.isBufferGeometry){let s=a.attributes.position;for(let l=0;l<s.count;l++)re.fromBufferAttribute(s,l),n!==void 0&&(re.z=n),e.push(re.clone()),t.expandByPoint(re)}}for(let a of r.children)Xe(a,e,t,n)}}i(Xe,"traverse");u();function ht(){return typeof window>"u"?1:Math.min(window.devicePixelRatio,2)}i(ht,"getPixelRatio");u();function yt(r,e,t=!1){let n=null,a=0;return function(...s){a++,a===1&&t===!0&&r(...s);let l=i(()=>{(!t||a>1)&&r(...s),n=null,a=0},"later");clearTimeout(n),n=setTimeout(l,e)}}i(yt,"debounce");u();var gt=(()=>{let r;return{getDeviceType(){if(r)return r;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,a=/(iphone|ipod|ipad)/i.test(e),s=t==="iPad"||t.indexOf("Mac")===0&&n>0&&!window.MSStream,l=/android/i.test(e);return r={isIpad:s,isMobile:l||a||s,isSafari12:/Version\/12.+Safari/.test(e),isFirefox:/Firefox/.test(e),isWindows:/windows/i.test(e)},r},_reset(){r=void 0}}})(),Ze=gt.getDeviceType,Qe=(()=>{let r,e,t;function n(){if(e!==void 0)return e;r||(r=document.createElement("canvas"));let s=r.getContext("webgl")||r.getContext("experimental-webgl");if(!s)return e;try{let l=Ze().isFirefox?null:s.getExtension("WEBGL_debug_renderer_info");return e=l?s.getParameter(l.UNMASKED_RENDERER_WEBGL):s.getParameter(s.RENDERER),e}catch(l){let c=new Error("Failed getting device info");throw c.name="FailedGettingDeviceInfo",c}}i(n,"getInfo");function a(){var l,c;if(!Ze().isWindows)return!1;if(t!==void 0)return t;let s=(c=(l=bt())==null?void 0:l.toLowerCase())!=null?c:"";return t=s.includes("intel")&&(s.includes("uhd")||s.includes("iris")),t}return i(a,"shouldDisableOffscreenCanvas"),{getInfo:n,shouldDisableOffscreenCanvas:a,_setCanvas(s){r=s,e=void 0,t=void 0}}})(),bt=Qe.getInfo,xt=Qe.shouldDisableOffscreenCanvas;u();function Dt(r,e){let t={};for(let n=0;n<e.length;n++){let a=e[n];a in r&&(t[a]=r[a])}return t}i(Dt,"pick");function Tt(r){return Object.keys(r).length===0}i(Tt,"isEmpty");u();var vt=i(r=>e=>{if(!e.includes("mappedin")){let t={};for(let n in r){let a=r[n];e.includes("mappedin")||(r[n]=a)}return{url:e,headers:t}}return{url:e,headers:r}},"transformRequest");function Si(r,e,t,n){let a=r*(Math.PI/180),s=n/B,l=r+s*180/Math.PI,c=t/B/Math.cos(a),m=e+c*180/Math.PI;return{lat:l,lon:m}}i(Si,"cartesianToGeographic");function Pi(r,e,t,n){let a=t*(Math.PI/180),s=n*(Math.PI/180),l=r*(Math.PI/180),c=e*(Math.PI/180),m=a-l,p=s-c,y=B*p*Math.cos(l),f=B*m;return{x:y,y:f}}i(Pi,"geographicToCartesian");var Et=i((r,e)=>{var t;if(r.children&&r.visible)for(let n of r.children){if(n.visible&&n.type)if("entities3D"in n.userData&&((t=n.userData)!=null&&t.entities3D)&&n.type==="geometry-group"){e.add(n.userData.entityId);for(let a of n.userData.entities3D.values())e.add(a)}else(n.type==="group-container"||n.type==="custom-geometry"||n instanceof te)&&e.add(n.userData.entityId);Et(n,e)}return e},"populateGeometry3DIdsInScene"),Mt=i((r,e)=>{var t;if(r.children&&r.visible&&!((t=r.userData)!=null&&t.hidden))for(let n of r.children)n.visible&&n instanceof G&&e.add(n.userData.entityId),Mt(n,e);return e},"populateGeometry2DIdsInScene");function St(r,e){for(let t in e){if(e[t]==null){r[t]=void 0;continue}typeof e[t]=="object"?St(r[t],e[t]):r[t]=e[t]}return r}i(St,"mergeObjects");function wi(r,e,t,n){let a={translateX:r.x,translateY:r.y,translateZ:r.z,scale:r.meterInMercatorCoordinateUnits()},s=new ae,l=new x(a.scale,-a.scale,a.scale),c=new ae().makeTranslation(a.translateX,a.translateY,a.translateZ).scale(l),m=t.elevation;return{id:$e,type:"custom",renderingMode:"3d",render:i((p,y)=>{if(s.fromArray(y),m!==t.elevation){let f=Ne.fromLngLat(r.toLngLat(),t.elevation);c.makeTranslation(a.translateX,a.translateY,-f.z).scale(l)}e.projectionMatrix=s.multiply(c),m=t.elevation,n()},"render")}}i(wi,"createCustomLayer");function Pt(r){return fetch(r,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:"client_credentials"})})}i(Pt,"fetchToken");async function Ii(r){let e=await Pt(r),{access_token:t}=await e.json();return{"x-mappedin-tiles-key":t}}i(Ii,"getRequestHeaders");function Ci(r,e=0){let t=3735928559^e,n=1103547991^e;for(let a=0,s;a<r.length;a++)s=r.charCodeAt(a),t=Math.imul(t^s,2654435761),n=Math.imul(n^s,1597334677);return t=Math.imul(t^t>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(t^t>>>13,3266489909),4294967296*(2097151&n)+(t>>>0)}i(Ci,"cyrb53");var wt=i(r=>r,"linearEase");var Li=i(r=>1-Math.cos(r*Math.PI/2),"easeIn");function Oi(r,e,t,n,a,s=wt){r=Math.max(e,Math.min(r,t));let l=(r-Math.min(e,t))/Math.abs(t-e),c=s(l);return n+c*(a-n)}i(Oi,"interpolate");function Ai(r,e,t){let n=r*(Math.PI/180)/2,a=e/2;return t*Math.tan(n)/a}i(Ai,"getProjectionScaleFactor");function ki(r){return new Ge(new ue(r[0][0],r[0][1]),new ue(r[1][0],r[1][1])).getCenter().toArray()}i(ki,"getBoundingBoxCenter");function Gi(r,e){return r<e||e<=12}i(Gi,"shouldExpandZoomLevel");function Ni(r){let e=1;return r.type==="geometry-group"&&r.parent!=null&&r.parent instanceof X?e=r.parent.userData.computedOpacity:(r.type==="geometry"||r.type==="custom-geometry"||r.type==="model")&&r.parentObject3D!=null&&r.parentObject3D instanceof P&&r.parentObject3D.parent!=null&&r.parentObject3D.parent instanceof X&&(e=r.parentObject3D.parent.userData.computedOpacity),e}i(Ni,"getGroupContainerOpacity");u();var Ce=class Ce{constructor(e){o(this,"visible");o(this,"altitude");o(this,"color");o(this,"dirty",!0);o(this,"maxWidth");o(this,"maxHeight");o(this,"hoverByPolygon");o(this,"flipToFaceCamera",et.flipToFaceCamera);o(this,"font");o(this,"fillOpacity");o(this,"fontSize");o(this,"margin");o(this,"outlineWidth");o(this,"outlineBlur");o(this,"outlineOffsetX");o(this,"strokeColor");o(this,"strokeOpacity");o(this,"strokeWidth");o(this,"hoverColor");o(this,"outlineOffsetY");o(this,"outlineColor");o(this,"outlineOpacity");e&&Object.assign(this,e)}getState(e=!1){let t={};for(let n in this)!e&&n==="dirty"||this[n]!==void 0&&(t[n]=this[n]);return t}};i(Ce,"Text3DStyleComponent");var Ie=Ce,et=Object.freeze({visible:!0,color:"black",flipToFaceCamera:!0,fillOpacity:1,font:void 0,fontSize:2,margin:[.2,1,.2,1.5],outlineColor:"black",outlineOpacity:1,outlineWidth:0,outlineOffsetX:0,outlineOffsetY:0,outlineBlur:0,strokeOpacity:1,strokeWidth:0,maxWidth:void 0,maxHeight:void 0,strokeColor:"black",hoverColor:void 0});u();u();var Oe=class Oe{constructor(e){o(this,"dirty",!0);o(this,"visible",!0);o(this,"opacity",1);o(this,"verticalOffset",0);o(this,"interactive",!1);o(this,"color");o(this,"material");o(this,"rotation");o(this,"scale");e&&Object.assign(this,e)}};i(Oe,"ModelStyleComponnet");var Le=Oe;u();var It=[1,1,1],Ct=[0,0,0];export{tt as a,rt as b,Gt as c,le as d,B as e,Kt as f,A as g,Jt as h,$t as i,qt as j,Xt as k,st as l,Zt as m,Qt as n,Lt as o,nr as p,D as q,pe as r,he as s,C as t,lt as u,Lr as v,We as w,Or as x,Ar as y,kr as z,Gr as A,Nr as B,_r as C,Fr as D,Rr as E,Y as F,Wr as G,zr as H,mt as I,Yr as J,ze as K,ge as L,be as M,Q as N,Ke as O,ee as P,P as Q,G as R,$ as S,te as T,q as U,X as V,jn as W,$e as X,Un as Y,Hn as Z,ft as _,qe as $,Xn as aa,ht as ba,yt as ca,xt as da,Dt as ea,Tt as fa,vt as ga,ut as ha,Si as ia,Pi as ja,Et as ka,Mt as la,St as ma,wi as na,Ii as oa,Ci as pa,wt as qa,Li as ra,Oi as sa,Ai as ta,ki as ua,Gi as va,Ni as wa,Ie as xa,et as ya,Le as za,It as Aa,Ct as Ba};
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
|
|
|
59
59
|
import type { TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, Environment } from '@mappedin/react-sdk/packages/mvf-utils';
|
|
60
60
|
import { parseMVF, unzipMVF } from '@packages/internal/mvf-utils';
|
|
61
61
|
import type { Floor } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
62
|
-
import type { ParsedMVF as TMVF, StyleCollection as TMVFStyleCollection, Style as TMVFStyle, LineStringStyle as TMVFLineStringStyle, PolygonStyle as TMVFPolygonStyle, PointStyle as TMVFPointStyle,
|
|
62
|
+
import type { ParsedMVF as TMVF, StyleCollection as TMVFStyleCollection, Style as TMVFStyle, LineStringStyle as TMVFLineStringStyle, PolygonStyle as TMVFPolygonStyle, PointStyle as TMVFPointStyle, OperationHours, SiblingGroup, LocationState } from '@mappedin/mvf-v2';
|
|
63
63
|
import { MapView } from '@mappedin/react-sdk/mappedin-js/src/map-view';
|
|
64
64
|
export type { Text3D as Text3DApi } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/text3d';
|
|
65
65
|
export { disableText3DWorker } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/text3d';
|
|
@@ -72,6 +72,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
|
|
|
72
72
|
import { MAPPEDIN_COLORS } from '@mappedin/react-sdk/mappedin-js/src/constants';
|
|
73
73
|
import type { TBlueDotEvents, TBlueDotAction, TBlueDotState, GeolocationPositionExtended, TFollowMode, TFollowCameraOptions } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/blue-dot/blue-dot';
|
|
74
74
|
import type { TExpandOptions, TStackedMapsEvents, TStackedMapsState } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/stacked-maps/stacked-maps';
|
|
75
|
+
import { hydrateMapData, type THydrateMapDataBundle } from '@mappedin/react-sdk/mappedin-js/src/hydrate-map-data';
|
|
76
|
+
export { hydrateMapData, type THydrateMapDataBundle };
|
|
75
77
|
export { setLoggerLevel, E_SDK_LOG_LEVEL } from '@packages/internal/common/Mappedin.Logger';
|
|
76
78
|
/**
|
|
77
79
|
* @internal
|
|
@@ -347,39 +349,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
|
|
|
347
349
|
* @deprecated Use {@link getMapData} and enterprise will be inferred from key/secret.
|
|
348
350
|
*/
|
|
349
351
|
export function setUseEnterpriseAPI(value: boolean): void;
|
|
350
|
-
export type THydrateMapDataBundle = {
|
|
351
|
-
type: 'binary';
|
|
352
|
-
options?: {
|
|
353
|
-
version?: '2.0.0' | '3.0.0';
|
|
354
|
-
enterprise?: boolean;
|
|
355
|
-
};
|
|
356
|
-
languagePacks?: {
|
|
357
|
-
language: {
|
|
358
|
-
code: string;
|
|
359
|
-
name: string;
|
|
360
|
-
};
|
|
361
|
-
localePack: Uint8Array;
|
|
362
|
-
}[];
|
|
363
|
-
main: Uint8Array;
|
|
364
|
-
} | {
|
|
365
|
-
type: 'json';
|
|
366
|
-
options?: {
|
|
367
|
-
version?: '2.0.0' | '3.0.0';
|
|
368
|
-
enterprise?: boolean;
|
|
369
|
-
};
|
|
370
|
-
languagePacks?: {
|
|
371
|
-
language: {
|
|
372
|
-
code: string;
|
|
373
|
-
name: string;
|
|
374
|
-
};
|
|
375
|
-
localePack: ParsedMVFLocalePack;
|
|
376
|
-
}[];
|
|
377
|
-
main: TMVF;
|
|
378
|
-
};
|
|
379
|
-
/**
|
|
380
|
-
* Load a MapData instance from a backup including language packs. Pass in userOptions to ensure outdoor view is available.
|
|
381
|
-
*/
|
|
382
|
-
export const hydrateMapData: (backup: THydrateMapDataBundle | TMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
|
|
383
352
|
/**
|
|
384
353
|
* Asynchronously retrieves map data ({@link MapData}) based on user-provided options.
|
|
385
354
|
*
|
|
@@ -1028,10 +997,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
|
|
|
1028
997
|
*/
|
|
1029
998
|
toBinaryBundle({ downloadLanguagePacks }?: {
|
|
1030
999
|
downloadLanguagePacks?: boolean;
|
|
1031
|
-
}): Promise<void | import("
|
|
1000
|
+
}): Promise<void | import("./hydrate-map-data").THydrateMapDataBundle>;
|
|
1032
1001
|
toJSONBundle({ downloadLanguagePacks }?: {
|
|
1033
1002
|
downloadLanguagePacks?: boolean;
|
|
1034
|
-
}): Promise<import("
|
|
1003
|
+
}): Promise<import("./hydrate-map-data").THydrateMapDataBundle>;
|
|
1035
1004
|
}
|
|
1036
1005
|
export default MapData;
|
|
1037
1006
|
/**
|
|
@@ -3658,6 +3627,45 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/stacked-maps/sta
|
|
|
3658
3627
|
export {};
|
|
3659
3628
|
}
|
|
3660
3629
|
|
|
3630
|
+
declare module '@mappedin/react-sdk/mappedin-js/src/hydrate-map-data' {
|
|
3631
|
+
import MapData from '@mappedin/react-sdk/mappedin-js/src/map-data';
|
|
3632
|
+
import type { TGetMapDataOptions } from '@mappedin/react-sdk/packages/mvf-utils';
|
|
3633
|
+
import type { ParsedMVF as TMVF, ParsedMVFLocalePack } from '@mappedin/mvf-v2';
|
|
3634
|
+
export type THydrateMapDataBundle = {
|
|
3635
|
+
type: 'binary';
|
|
3636
|
+
options?: {
|
|
3637
|
+
version?: '2.0.0' | '3.0.0';
|
|
3638
|
+
enterprise?: boolean;
|
|
3639
|
+
};
|
|
3640
|
+
languagePacks?: {
|
|
3641
|
+
language: {
|
|
3642
|
+
code: string;
|
|
3643
|
+
name: string;
|
|
3644
|
+
};
|
|
3645
|
+
localePack: Uint8Array;
|
|
3646
|
+
}[];
|
|
3647
|
+
main: Uint8Array;
|
|
3648
|
+
} | {
|
|
3649
|
+
type: 'json';
|
|
3650
|
+
options?: {
|
|
3651
|
+
version?: '2.0.0' | '3.0.0';
|
|
3652
|
+
enterprise?: boolean;
|
|
3653
|
+
};
|
|
3654
|
+
languagePacks?: {
|
|
3655
|
+
language: {
|
|
3656
|
+
code: string;
|
|
3657
|
+
name: string;
|
|
3658
|
+
};
|
|
3659
|
+
localePack: ParsedMVFLocalePack;
|
|
3660
|
+
}[];
|
|
3661
|
+
main: TMVF;
|
|
3662
|
+
};
|
|
3663
|
+
/**
|
|
3664
|
+
* Load a MapData instance from a backup including language packs. Pass in userOptions to ensure outdoor view is available.
|
|
3665
|
+
*/
|
|
3666
|
+
export const hydrateMapData: (backup: THydrateMapDataBundle | TMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3661
3669
|
declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects' {
|
|
3662
3670
|
export { Label } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/label';
|
|
3663
3671
|
export { Marker } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/marker';
|
|
@@ -5221,9 +5229,11 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node' {
|
|
|
5221
5229
|
* @returns An object representing the node.
|
|
5222
5230
|
*/
|
|
5223
5231
|
toJSON(): {
|
|
5232
|
+
__type: string;
|
|
5224
5233
|
id: string;
|
|
5225
5234
|
floor: string;
|
|
5226
5235
|
coordinate: {
|
|
5236
|
+
__type: string;
|
|
5227
5237
|
latitude: number;
|
|
5228
5238
|
longitude: number;
|
|
5229
5239
|
floor: string | undefined;
|
|
@@ -5310,6 +5320,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/area' {
|
|
|
5310
5320
|
* @returns An object representing the space.
|
|
5311
5321
|
*/
|
|
5312
5322
|
toJSON(): {
|
|
5323
|
+
__type: string;
|
|
5313
5324
|
id: string;
|
|
5314
5325
|
name: string;
|
|
5315
5326
|
floor: string;
|
|
@@ -5419,10 +5430,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door' {
|
|
|
5419
5430
|
* @returns An object representing the door.
|
|
5420
5431
|
*/
|
|
5421
5432
|
toJSON(): {
|
|
5433
|
+
__type: string;
|
|
5422
5434
|
id: string;
|
|
5423
5435
|
name: string;
|
|
5424
5436
|
floor: string;
|
|
5425
5437
|
center: {
|
|
5438
|
+
__type: string;
|
|
5426
5439
|
latitude: number;
|
|
5427
5440
|
longitude: number;
|
|
5428
5441
|
floor: string | undefined;
|
|
@@ -5541,11 +5554,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
|
|
|
5541
5554
|
* @returns An object representing the space.
|
|
5542
5555
|
*/
|
|
5543
5556
|
toJSON(): {
|
|
5557
|
+
__type: string;
|
|
5544
5558
|
id: string;
|
|
5545
5559
|
name: string;
|
|
5546
5560
|
type: TSpaceType;
|
|
5547
5561
|
floor: string;
|
|
5548
5562
|
center: {
|
|
5563
|
+
__type: string;
|
|
5549
5564
|
latitude: number;
|
|
5550
5565
|
longitude: number;
|
|
5551
5566
|
floor: string | undefined;
|
|
@@ -5570,6 +5585,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
|
|
|
5570
5585
|
declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor' {
|
|
5571
5586
|
import type { Feature, FloorCollection, MultiPolygon, Polygon } from '@mappedin/mvf-v2';
|
|
5572
5587
|
import type { Annotation, Connection, Door, MapDataInternal, PointOfInterest, Space, MapObject, FloorStack } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
5588
|
+
import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
|
|
5573
5589
|
import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
|
|
5574
5590
|
import type { IFocusable } from '@mappedin/react-sdk/mappedin-js/src/types';
|
|
5575
5591
|
/**
|
|
@@ -5673,12 +5689,14 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor' {
|
|
|
5673
5689
|
* @returns {FloorStack} The FloorStack that this floor belongs to.
|
|
5674
5690
|
*/
|
|
5675
5691
|
get floorStack(): FloorStack;
|
|
5692
|
+
get center(): Coordinate;
|
|
5676
5693
|
/**
|
|
5677
5694
|
* Serializes the floor data to JSON.
|
|
5678
5695
|
*
|
|
5679
5696
|
* @returns An object representing the floor.
|
|
5680
5697
|
*/
|
|
5681
5698
|
toJSON(): {
|
|
5699
|
+
__type: string;
|
|
5682
5700
|
id: string;
|
|
5683
5701
|
name: string;
|
|
5684
5702
|
shortName: string;
|
|
@@ -5782,11 +5800,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/connection'
|
|
|
5782
5800
|
* @returns An object representing the connection.
|
|
5783
5801
|
*/
|
|
5784
5802
|
toJSON(): {
|
|
5803
|
+
__type: string;
|
|
5785
5804
|
id: string;
|
|
5786
5805
|
name: string;
|
|
5787
5806
|
type: string;
|
|
5788
5807
|
externalId: string;
|
|
5789
5808
|
coordinates: {
|
|
5809
|
+
__type: string;
|
|
5790
5810
|
latitude: number;
|
|
5791
5811
|
longitude: number;
|
|
5792
5812
|
floor: string | undefined;
|
|
@@ -5882,11 +5902,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/object' {
|
|
|
5882
5902
|
* @returns An object representing the MapObject.
|
|
5883
5903
|
*/
|
|
5884
5904
|
toJSON(): {
|
|
5905
|
+
__type: string;
|
|
5885
5906
|
id: string;
|
|
5886
5907
|
name: string;
|
|
5887
5908
|
type: string;
|
|
5888
5909
|
floor: string;
|
|
5889
5910
|
center: {
|
|
5911
|
+
__type: string;
|
|
5890
5912
|
latitude: number;
|
|
5891
5913
|
longitude: number;
|
|
5892
5914
|
floor: string | undefined;
|
|
@@ -6001,6 +6023,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate'
|
|
|
6001
6023
|
* @returns An object representing the coordinate.
|
|
6002
6024
|
*/
|
|
6003
6025
|
toJSON(): {
|
|
6026
|
+
__type: string;
|
|
6004
6027
|
latitude: number;
|
|
6005
6028
|
longitude: number;
|
|
6006
6029
|
floor: string | undefined;
|
|
@@ -6084,10 +6107,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/poi' {
|
|
|
6084
6107
|
* @returns An object representing the POI.
|
|
6085
6108
|
*/
|
|
6086
6109
|
toJSON(): {
|
|
6110
|
+
__type: string;
|
|
6087
6111
|
id: string;
|
|
6088
6112
|
name: string;
|
|
6089
6113
|
floor: string;
|
|
6090
6114
|
coordinate: {
|
|
6115
|
+
__type: string;
|
|
6091
6116
|
latitude: number;
|
|
6092
6117
|
longitude: number;
|
|
6093
6118
|
floor: string | undefined;
|
|
@@ -6185,10 +6210,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/annotation'
|
|
|
6185
6210
|
* @returns An object representing the annotation.
|
|
6186
6211
|
*/
|
|
6187
6212
|
toJSON(): {
|
|
6213
|
+
__type: string;
|
|
6188
6214
|
id: string;
|
|
6189
6215
|
group: string;
|
|
6190
6216
|
type: string;
|
|
6191
6217
|
coordinate: {
|
|
6218
|
+
__type: string;
|
|
6192
6219
|
latitude: number;
|
|
6193
6220
|
longitude: number;
|
|
6194
6221
|
floor: string | undefined;
|
|
@@ -6217,6 +6244,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink'
|
|
|
6217
6244
|
* @internal
|
|
6218
6245
|
*/
|
|
6219
6246
|
static readonly __type = "hyperlink";
|
|
6247
|
+
/**
|
|
6248
|
+
* @internal
|
|
6249
|
+
*/
|
|
6250
|
+
readonly __type = "hyperlink";
|
|
6220
6251
|
/**
|
|
6221
6252
|
* Checks if the provided instance is of type Hyperlink.
|
|
6222
6253
|
*
|
|
@@ -6248,6 +6279,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink'
|
|
|
6248
6279
|
* @returns An object representing the hyperlink.
|
|
6249
6280
|
*/
|
|
6250
6281
|
toJSON(): {
|
|
6282
|
+
__type: string;
|
|
6251
6283
|
id: string;
|
|
6252
6284
|
url: string;
|
|
6253
6285
|
name: string | undefined;
|
|
@@ -6275,6 +6307,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image' {
|
|
|
6275
6307
|
* @internal
|
|
6276
6308
|
*/
|
|
6277
6309
|
static readonly __type = "image";
|
|
6310
|
+
/**
|
|
6311
|
+
* @internal
|
|
6312
|
+
*/
|
|
6313
|
+
readonly __type = "image";
|
|
6278
6314
|
/**
|
|
6279
6315
|
* Checks if the provided instance is of type Image.
|
|
6280
6316
|
*
|
|
@@ -6308,13 +6344,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image' {
|
|
|
6308
6344
|
* @returns {string | undefined } The alt text of the image.
|
|
6309
6345
|
*/
|
|
6310
6346
|
get altText(): string | undefined;
|
|
6311
|
-
/**
|
|
6312
6347
|
/**
|
|
6313
6348
|
* Serializes the image data to JSON.
|
|
6314
6349
|
*
|
|
6315
6350
|
* @returns An object representing the image.
|
|
6316
6351
|
*/
|
|
6317
6352
|
toJSON(): {
|
|
6353
|
+
__type: string;
|
|
6318
6354
|
id: string;
|
|
6319
6355
|
url: string | undefined;
|
|
6320
6356
|
name: string | undefined;
|
|
@@ -6402,6 +6438,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor-stack
|
|
|
6402
6438
|
* @returns An object representing the FloorStack.
|
|
6403
6439
|
*/
|
|
6404
6440
|
toJSON(): {
|
|
6441
|
+
__type: string;
|
|
6405
6442
|
id: string;
|
|
6406
6443
|
name: string;
|
|
6407
6444
|
shortName: string;
|
|
@@ -6759,6 +6796,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
|
|
|
6759
6796
|
* @returns An object representing the EnterpriseLocation.
|
|
6760
6797
|
*/
|
|
6761
6798
|
toJSON(): {
|
|
6799
|
+
__type: string;
|
|
6762
6800
|
id: string;
|
|
6763
6801
|
name: string;
|
|
6764
6802
|
};
|
|
@@ -6855,6 +6893,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category' {
|
|
|
6855
6893
|
* @returns An object representing the EnterpriseCategory.
|
|
6856
6894
|
*/
|
|
6857
6895
|
toJSON(): {
|
|
6896
|
+
__type: string;
|
|
6858
6897
|
id: string;
|
|
6859
6898
|
name: string;
|
|
6860
6899
|
};
|
|
@@ -6969,6 +7008,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue' {
|
|
|
6969
7008
|
* @returns An object representing the EnterpriseVenue.
|
|
6970
7009
|
*/
|
|
6971
7010
|
toJSON(): {
|
|
7011
|
+
__type: string;
|
|
6972
7012
|
id: string;
|
|
6973
7013
|
name: string;
|
|
6974
7014
|
};
|
|
@@ -7109,6 +7149,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location-pr
|
|
|
7109
7149
|
*/
|
|
7110
7150
|
get navigationTarget(): TNavigationTarget[];
|
|
7111
7151
|
toJSON(): {
|
|
7152
|
+
__type: string;
|
|
7112
7153
|
id: string;
|
|
7113
7154
|
name: string;
|
|
7114
7155
|
};
|
|
@@ -7163,6 +7204,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location-ca
|
|
|
7163
7204
|
*/
|
|
7164
7205
|
get locationProfiles(): LocationProfile[];
|
|
7165
7206
|
toJSON(): {
|
|
7207
|
+
__type: string;
|
|
7166
7208
|
id: string;
|
|
7167
7209
|
name: string;
|
|
7168
7210
|
};
|
|
@@ -12965,7 +13007,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
|
|
|
12965
13007
|
sendGetDirectionsEvent: (start: string, end: string) => void;
|
|
12966
13008
|
sendBlueDotEvents(event: BlueDotEvents): void | Promise<Response> | Promise<void>;
|
|
12967
13009
|
}
|
|
12968
|
-
type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken' | 'sessionId'>>;
|
|
13010
|
+
type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken' | 'sessionId' | 'deviceId'>>;
|
|
12969
13011
|
type CaptureEventsPayloadMap = {
|
|
12970
13012
|
'$select-location': {
|
|
12971
13013
|
id: string;
|
|
@@ -13019,10 +13061,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
|
|
|
13019
13061
|
noAuth: boolean;
|
|
13020
13062
|
/** Flag to enable geolocation mode. */
|
|
13021
13063
|
geolocationMode: boolean;
|
|
13022
|
-
/** The device ID to be used for analytics. */
|
|
13023
|
-
deviceId: string;
|
|
13024
|
-
/** The session ID to be used for analytics. */
|
|
13025
|
-
sessionId: string;
|
|
13026
13064
|
/** The context in which the analytics are being used. */
|
|
13027
13065
|
context: ValidContext;
|
|
13028
13066
|
/** The last known user position. */
|
|
@@ -13033,7 +13071,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
|
|
|
13033
13071
|
logEvents: boolean;
|
|
13034
13072
|
/** Flag to enable sending of events. */
|
|
13035
13073
|
sendEvents: boolean;
|
|
13036
|
-
|
|
13074
|
+
/** The API key for authentication. */
|
|
13075
|
+
key?: string;
|
|
13076
|
+
/** The API secret for authentication. */
|
|
13077
|
+
secret?: string;
|
|
13078
|
+
/** The access token for authentication. */
|
|
13079
|
+
accessToken?: string;
|
|
13080
|
+
};
|
|
13037
13081
|
}
|
|
13038
13082
|
type AnalyticsUserPosition = {
|
|
13039
13083
|
bluedotTimestamp: number;
|
|
@@ -13062,9 +13106,9 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
|
|
|
13062
13106
|
noAuth: boolean;
|
|
13063
13107
|
/** Flag to enable geolocation mode. */
|
|
13064
13108
|
geolocationMode: boolean;
|
|
13065
|
-
/** The device ID to be used for analytics. */
|
|
13109
|
+
/** @internal The device ID to be used for analytics. */
|
|
13066
13110
|
deviceId: string;
|
|
13067
|
-
/** The session ID to be used for analytics. */
|
|
13111
|
+
/** @internal The session ID to be used for analytics. */
|
|
13068
13112
|
sessionId: string;
|
|
13069
13113
|
/** The context in which the analytics are being used. */
|
|
13070
13114
|
context: ValidContext;
|
|
@@ -13988,7 +14032,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/2d-draw/system' {
|
|
|
13988
14032
|
cacheImage: (label: LabelComponent) => void;
|
|
13989
14033
|
createPinCanvas: (label: LabelComponent, markerSize: number, backgroundColor: string, foregroundColor: string, maxIconScale?: number) => HTMLCanvasElement | OffscreenCanvas;
|
|
13990
14034
|
prepare: (label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D) => void;
|
|
13991
|
-
draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D
|
|
14035
|
+
draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D): void;
|
|
13992
14036
|
}
|
|
13993
14037
|
export {};
|
|
13994
14038
|
}
|
|
@@ -15060,6 +15104,10 @@ declare module '@mappedin/react-sdk/geojson/src/services/text3d/utils' {
|
|
|
15060
15104
|
size: [width: number, height: number];
|
|
15061
15105
|
}>;
|
|
15062
15106
|
export function syncText(text: Text): Promise<void>;
|
|
15107
|
+
/**
|
|
15108
|
+
* Loads the default font without additional preprocessing
|
|
15109
|
+
*/
|
|
15110
|
+
export function loadDefaultFont(): Promise<string>;
|
|
15063
15111
|
}
|
|
15064
15112
|
|
|
15065
15113
|
declare module '@mappedin/react-sdk/geojson/src/systems/interactions/system' {
|
|
@@ -23668,7 +23716,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/path/system' {
|
|
|
23668
23716
|
getParentContainer: RendererCore['getParentContainer'];
|
|
23669
23717
|
convertZoomLevelToAltitude: CameraSystem['convertZoomLevelToAltitude'];
|
|
23670
23718
|
constructor(rendererState: RendererState, convertTo3DMapPosition: RendererCore['convertTo3DMapPosition'], getParentContainer: RendererCore['getParentContainer'], convertZoomLevelToAltitude: CameraSystem['convertZoomLevelToAltitude']);
|
|
23671
|
-
update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number): void;
|
|
23719
|
+
update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number, orbitZRotation?: number): void;
|
|
23672
23720
|
}
|
|
23673
23721
|
}
|
|
23674
23722
|
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as D,l as O,m as R}from"./chunk-
|
|
1
|
+
import{k as D,l as O,m as R}from"./chunk-7JZE7FSJ.js";import{d as g,q as C}from"./chunk-Z5U7QCEH.js";import"./chunk-B3CVW3UU.js";import"./chunk-EIMXVMO4.js";import"./chunk-63UMH2J3.js";import{a as u,b as w,c as n,e as k,q as a}from"./chunk-JMCXCPZD.js";a();a();import J,{useCallback as K,useMemo as Q}from"react";import{useContext as j,useEffect as N,useRef as b,useState as W}from"react";import{createPortal as X}from"react-dom";a();import{createContext as Y,useContext as $}from"react";a();var S=class S extends Error{constructor(t){super("".concat(t," must be used within a MapView component."))}};n(S,"MapViewNullError");var m=S;var p=Y({mapData:void 0,mapView:void 0});function q(){let{mapData:e,mapView:t}=$(p);if(!e||!t)throw new m("useMap");return{mapData:e,mapView:t}}n(q,"useMap");a();import{useEffect as B}from"react";function s(e,t){B(()=>{t!=null&&typeof e=="function"&&e(t)},[e,t])}n(s,"useOnLoad");function H(e){let{mapView:t}=j(p),r=b(),[o,i]=W(null);return N(()=>{if(t==null)throw new m("Marker");return r.current=t.Markers.add(e.target,"",w(u({},e.options),{dynamicResize:!0})),i(r.current),()=>{t==null||r.current==null||t.Markers.remove(r.current)}},[t,e.target]),N(()=>{o&&(t==null||t.updateState(o,u({},e.options)))},[e.options]),s(e.onLoad,o),t==null||o==null?null:X(e.children,o.contentEl,o.id)}n(H,"Marker");function Z(e){let{mapView:t}=j(p),[r,o]=W(null),i=b(C()),f=b(e.target),c=K(l=>{var P;o(l),(P=e.onLoad)==null||P.call(e,l)},[e.onLoad]);N(()=>{if(t==null)throw new m("Marker");if(r&&r.target!==e.target){let{duration:l=300,easing:P="linear"}=e;t.Markers.animateTo(r,e.target,{duration:l,easing:P})}},[t,e.target,r]);let M=Q(()=>w(u({},e),{duration:void 0,easing:void 0}),[e.duration,e.easing]);return J.createElement(H,w(u({},M),{key:i.current,target:f.current,onLoad:c}))}n(Z,"AnimatedMarker");a();import{useContext as _,useEffect as I,useRef as ee,useState as te}from"react";function re(e){let{mapView:t}=_(p),r=ee(),[o,i]=te(void 0);return I(()=>{if(t==null)throw new m("Label");return r.current=t.Labels.add(e.target,e.text,e.options),i(r.current),()=>{t==null||r.current==null||t.Labels.remove(r.current)}},[t,e.target]),I(()=>{r.current&&(t==null||t.updateState(r.current,u({text:e.text},e.options)))},[e.text,e.options]),s(e.onLoad,o),null}n(re,"Label");a();import{useCallback as ae,useContext as oe,useEffect as ne}from"react";function ie(e,t){let{mapView:r}=oe(p),o=ae(i=>t(i),[t]);ne(()=>{if(r==null)throw new m("useEvent");return r.on(e,o),()=>{r!=null&&r.off(e,o)}},[r,e,t])}n(ie,"useEvent");a();import{useContext as pe,useEffect as me,useRef as ue,useState as se}from"react";function de(e){let{mapView:t}=pe(p),r=ue(),[o,i]=se(void 0);return me(()=>{if(t==null)throw new m("Path");let f=t.Paths.add(e.coordinate,e.options);return f.animation.then(()=>{var c;(c=e.onDrawComplete)==null||c.call(e)}),i(f),r.current=f,()=>{r.current&&t.Paths.remove(r.current)}},[t,e.coordinate,e.options]),s(e.onLoad,o),null}n(de,"Path");a();import L,{useCallback as le,useEffect as fe,useMemo as ce,useRef as z,useState as F}from"react";var Me={width:"100%",height:"100%",position:"relative"};function Pe(e){let V=e,{mapData:t,options:r,style:o,fallback:i,children:f}=V,c=k(V,["mapData","options","style","fallback","children"]),M=z(!1),[l,P]=F(void 0),[x,y]=F(!0),h=z(null),A=ce(()=>r,[]),E=le(()=>{if(t&&(h!=null&&h.current)){if(l)return;O(h.current,t,A).then(T=>{P(T)}).catch(T=>{g.error("Failed to render MapView",T)}).finally(()=>{y(!1)})}},[t,h.current,A]);return fe(()=>{M.current||(M.current=!0,E())},[E]),s(e.onLoad,l),L.createElement(p.Provider,{value:{mapData:t,mapView:l}},L.createElement("div",u({"data-testid":"mappedin-map",ref:h,style:u(u({},Me),o)},c)),x?L.createElement(L.Fragment,null,i):f)}n(Pe,"MapView");a();import{useContext as ye,useEffect as G,useState as he}from"react";function xe(e){let{mapView:t}=ye(p),[r,o]=he(!1);return G(()=>{if(t==null)throw new m("Navigation");return t.Navigation.draw(e.directions,e.options).then(()=>{var i;o(!0),(i=e.onDrawComplete)==null||i.call(e)}),()=>{t.Navigation.clear()}},[t,e.directions,e.options]),G(()=>{r!==!1&&typeof e.onLoad=="function"&&e.onLoad()},[e.onLoad,r]),null}n(xe,"Navigation");a();import{useContext as we,useEffect as ge,useRef as Le,useState as Te}from"react";function Se(e){let{mapView:t}=we(p),r=Le(),[o,i]=Te(void 0);return ge(()=>{if(t==null)throw new Error("MapView not initialized");return r.current=t.Shapes.add(e.geometry,e.style,e.floor),i(r.current),()=>{t==null||r.current==null||t.Shapes.remove(r.current)}},[t,e.geometry,e.style,e.floor]),s(e.onLoad,o),null}n(Se,"Shape");a();import{useContext as Ne,useEffect as U,useRef as be,useState as ve}from"react";function Ae(e){let{mapView:t}=Ne(p),r=be(),[o,i]=ve(void 0);return U(()=>{if(t==null)throw new m("Model");return r.current=t.Models.add(e.target,e.url,e.options),i(r.current),()=>{t==null||r.current==null||t.Models.remove(r.current)}},[t,e.url]),U(()=>{r.current&&(t==null||t.updateState(r.current,u({position:e.target},e.options)))},[e.options,e.target]),s(e.onLoad,o),null}n(Ae,"Model");a();import{useCallback as Ee,useEffect as Ve,useMemo as ke,useRef as Ce,useState as v}from"react";function De(e){let[t,r]=v(void 0),[o,i]=v(!0),[f,c]=v(void 0),M=Ce(0),l=ke(()=>e,[]),P=Ee(()=>{let x=++M.current;i(!0),c(void 0),D(l).then(y=>{M.current===x&&r(y)}).catch(y=>{M.current===x&&(g.error("Failed to fetch MapData",y),c(y))}).finally(()=>{M.current===x&&i(!1)})},[l]);return Ve(()=>{P()},[P]),{mapData:t,isLoading:o,error:f}}n(De,"useMapData");var tr=R;export{Z as AnimatedMarker,re as Label,Pe as MapView,H as Marker,Ae as Model,xe as Navigation,de as Path,Se as Shape,tr as default,ie as useEvent,q as useMap,De as useMapData};
|