@aibee/crc-bmap 0.0.110 → 0.0.111
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/lib/bmap.cjs.min.js +1 -1
- package/lib/bmap.cjs.min.js.map +2 -2
- package/lib/bmap.esm.js +1 -1
- package/lib/bmap.esm.js.map +2 -2
- package/lib/bmap.esm.min.js +1 -1
- package/lib/bmap.esm.min.js.map +2 -2
- package/lib/bmap.min.js +1 -1
- package/lib/bmap.min.js.map +2 -2
- package/lib/src/plugins/navigation/navigation.d.ts +2 -7
- package/package.json +1 -1
package/lib/bmap.esm.min.js
CHANGED
|
@@ -3723,5 +3723,5 @@ three/build/three.module.js:
|
|
|
3723
3723
|
*/
|
|
3724
3724
|
`)}import{Mesh as li,Object3D as ui,TextureLoader as hi,Color as ci,Vector2 as Yt,Vector3 as pi,NormalBlending as fi,RepeatWrapping as di}from"three";import{BufferGeometry as ti,Matrix4 as en,Vector3 as W,Ray as ei,Sphere as ni,LineSegments as ri,BufferAttribute as B,ShaderChunk as w,ShaderMaterial as nn,UniformsLib as ii,Color as oi,Vector2 as tn}from"three";var T=class extends ti{constructor(){super(),this.isMeshLine=!0,this.type="MeshLine",this.positions=[],this.previous=[],this.next=[],this.side=[],this.width=[],this.indices_array=[],this.uvs=[],this.counters=[],this._points=[],this._geom=null,this.widthCallback=null,this.matrixWorld=new en,Object.defineProperties(this,{geometry:{enumerable:!0,get:function(){return this}},geom:{enumerable:!0,get:function(){return this._geom},set:function(n){this.setGeometry(n,this.widthCallback)}},points:{enumerable:!0,get:function(){return this._points},set:function(n){this.setPoints(n,this.widthCallback)}}})}};T.prototype.setMatrixWorld=function(i){this.matrixWorld=i};T.prototype.setGeometry=function(i,n){this._geometry=i,this.setPoints(i.getAttribute("position").array,n)};T.prototype.setPoints=function(i,n){if(!(i instanceof Float32Array)&&!(i instanceof Array)){console.error("ERROR: The BufferArray of points is not instancied correctly.");return}if(this._points=i,this.widthCallback=n,this.positions=[],this.counters=[],i.length&&i[0]instanceof W)for(var t=0;t<i.length;t++){var e=i[t],r=t/i.length;this.positions.push(e.x,e.y,e.z),this.positions.push(e.x,e.y,e.z),this.counters.push(r),this.counters.push(r)}else for(var t=0;t<i.length;t+=3){var r=t/i.length;this.positions.push(i[t],i[t+1],i[t+2]),this.positions.push(i[t],i[t+1],i[t+2]),this.counters.push(r),this.counters.push(r)}this.process()};function si(i,n){var t=new en,e=new ei,r=new ni,o=new W,s=this.geometry;if(s.boundingSphere||s.computeBoundingSphere(),r.copy(s.boundingSphere),r.applyMatrix4(this.matrixWorld),i.ray.intersectSphere(r,o)!==!1){t.copy(this.matrixWorld).invert(),e.copy(i.ray).applyMatrix4(t);var l=new W,u=new W,a=new W,h=this instanceof ri?2:1,c=s.index,f=s.attributes;if(c!==null)for(var d=c.array,p=f.position.array,m=f.width.array,g=0,x=d.length-1;g<x;g+=h){var E=d[g],b=d[g+1];l.fromArray(p,E*3),u.fromArray(p,b*3);var v=m[Math.floor(g/3)]!==void 0?m[Math.floor(g/3)]:1,G=i.params.Line.threshold+this.material.lineWidth*v/2,O=G*G,et=e.distanceSqToSegment(l,u,o,a);if(!(et>O)){o.applyMatrix4(this.matrixWorld);var nt=i.ray.origin.distanceTo(o);nt<i.near||nt>i.far||(n.push({distance:nt,point:a.clone().applyMatrix4(this.matrixWorld),index:g,face:null,faceIndex:null,object:this}),g=x)}}}}T.prototype.raycast=si;T.prototype.compareV3=function(i,n){var t=i*6,e=n*6;return this.positions[t]===this.positions[e]&&this.positions[t+1]===this.positions[e+1]&&this.positions[t+2]===this.positions[e+2]};T.prototype.copyV3=function(i){var n=i*6;return[this.positions[n],this.positions[n+1],this.positions[n+2]]};T.prototype.getDistance=function(i){let n=0;for(let t=0;t<i;t++){let e=6*t,r=new W(this.positions[e],this.positions[e+1],this.positions[e+2]),o=new W(this.positions[e+6],this.positions[e+7],this.positions[e+8]),s=r.distanceTo(o);n+=s}return n};T.prototype.process=function(){var i=this.positions.length/6;this.previous=[],this.next=[],this.side=[],this.width=[],this.indices_array=[],this.uvs=[];var n;let t=this.getDistance(i-1);var e;this.compareV3(0,i-1)?e=this.copyV3(i-2):e=this.copyV3(0),this.previous.push(e[0],e[1],e[2]),this.previous.push(e[0],e[1],e[2]);for(var r=0;r<i;r++){if(this.side.push(1),this.side.push(-1),this.widthCallback?n=this.widthCallback(r/(i-1)):n=1,this.width.push(n),this.width.push(n),r===0)this.uvs.push(0,0),this.uvs.push(0,1);else if(r===i-1)this.uvs.push(1,0),this.uvs.push(1,1);else{let s=this.getDistance(r)/t;this.uvs.push(s,0),this.uvs.push(s,1)}if(r<i-1){e=this.copyV3(r),this.previous.push(e[0],e[1],e[2]),this.previous.push(e[0],e[1],e[2]);var o=r*2;this.indices_array.push(o,o+1,o+2),this.indices_array.push(o+2,o+1,o+3)}r>0&&(e=this.copyV3(r),this.next.push(e[0],e[1],e[2]),this.next.push(e[0],e[1],e[2]))}this.compareV3(i-1,0)?e=this.copyV3(1):e=this.copyV3(i-1),this.next.push(e[0],e[1],e[2]),this.next.push(e[0],e[1],e[2]),!this._attributes||this._attributes.position.count!==this.positions.length?this._attributes={position:new B(new Float32Array(this.positions),3),previous:new B(new Float32Array(this.previous),3),next:new B(new Float32Array(this.next),3),side:new B(new Float32Array(this.side),1),width:new B(new Float32Array(this.width),1),uv:new B(new Float32Array(this.uvs),2),index:new B(new Uint16Array(this.indices_array),1),counters:new B(new Float32Array(this.counters),1)}:(this._attributes.position.copyArray(new Float32Array(this.positions)),this._attributes.position.needsUpdate=!0,this._attributes.previous.copyArray(new Float32Array(this.previous)),this._attributes.previous.needsUpdate=!0,this._attributes.next.copyArray(new Float32Array(this.next)),this._attributes.next.needsUpdate=!0,this._attributes.side.copyArray(new Float32Array(this.side)),this._attributes.side.needsUpdate=!0,this._attributes.width.copyArray(new Float32Array(this.width)),this._attributes.width.needsUpdate=!0,this._attributes.uv.copyArray(new Float32Array(this.uvs)),this._attributes.uv.needsUpdate=!0,this._attributes.index.copyArray(new Uint16Array(this.indices_array)),this._attributes.index.needsUpdate=!0),this.setAttribute("position",this._attributes.position),this.setAttribute("previous",this._attributes.previous),this.setAttribute("next",this._attributes.next),this.setAttribute("side",this._attributes.side),this.setAttribute("width",this._attributes.width),this.setAttribute("uv",this._attributes.uv),this.setAttribute("counters",this._attributes.counters),this.setIndex(this._attributes.index),this.computeBoundingSphere(),this.computeBoundingBox()};function jt(i,n,t,e,r){var o;if(i=i.subarray||i.slice?i:i.buffer,t=t.subarray||t.slice?t:t.buffer,i=n?i.subarray?i.subarray(n,r&&n+r):i.slice(n,r&&n+r):i,t.set)t.set(i,e);else for(o=0;o<i.length;o++)t[o+e]=i[o];return t}T.prototype.advance=function(i){var n=this._attributes.position.array,t=this._attributes.previous.array,e=this._attributes.next.array,r=n.length;jt(n,0,t,0,r),jt(n,6,n,0,r-6),n[r-6]=i.x,n[r-5]=i.y,n[r-4]=i.z,n[r-3]=i.x,n[r-2]=i.y,n[r-1]=i.z,jt(n,6,e,0,r-6),e[r-6]=i.x,e[r-5]=i.y,e[r-4]=i.z,e[r-3]=i.x,e[r-2]=i.y,e[r-1]=i.z,this._attributes.position.needsUpdate=!0,this._attributes.previous.needsUpdate=!0,this._attributes.next.needsUpdate=!0};w.meshline_vert=["",w.logdepthbuf_pars_vertex,w.fog_pars_vertex,"","attribute vec3 previous;","attribute vec3 next;","attribute float side;","attribute float width;","attribute float counters;","","uniform vec2 resolution;","uniform float lineWidth;","uniform vec3 color;","uniform float opacity;","uniform float sizeAttenuation;","","varying vec2 vUV;","varying vec4 vColor;","varying float vCounters;","","vec2 fix( vec4 i, float aspect ) {",""," vec2 res = i.xy / i.w;"," res.x *= aspect;"," vCounters = counters;"," return res;","","}","","void main() {",""," float aspect = resolution.x / resolution.y;",""," vColor = vec4( color, opacity );"," vUV = uv;",""," mat4 m = projectionMatrix * modelViewMatrix;"," vec4 finalPosition = m * vec4( position, 1.0 );"," vec4 prevPos = m * vec4( previous, 1.0 );"," vec4 nextPos = m * vec4( next, 1.0 );",""," vec2 currentP = fix( finalPosition, aspect );"," vec2 prevP = fix( prevPos, aspect );"," vec2 nextP = fix( nextPos, aspect );",""," float w = lineWidth * width;",""," vec2 dir;"," if( nextP == currentP ) dir = normalize( currentP - prevP );"," else if( prevP == currentP ) dir = normalize( nextP - currentP );"," else {"," vec2 dir1 = normalize( currentP - prevP );"," vec2 dir2 = normalize( nextP - currentP );"," dir = normalize( dir1 + dir2 );",""," vec2 perp = vec2( -dir1.y, dir1.x );"," vec2 miter = vec2( -dir.y, dir.x );"," //w = clamp( w / dot( miter, perp ), 0., 4. * lineWidth * width );",""," }",""," //vec2 normal = ( cross( vec3( dir, 0. ), vec3( 0., 0., 1. ) ) ).xy;"," vec4 normal = vec4( -dir.y, dir.x, 0., 1. );"," normal.xy *= .5 * w;"," normal *= projectionMatrix;"," if( sizeAttenuation == 0. ) {"," normal.xy *= finalPosition.w;"," normal.xy /= ( vec4( resolution, 0., 1. ) * projectionMatrix ).xy;"," }",""," finalPosition.xy += normal.xy * side;",""," gl_Position = finalPosition;","",w.logdepthbuf_vertex,w.fog_vertex&&" vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );",w.fog_vertex,"}"].join(`
|
|
3725
3725
|
`);w.meshline_frag=["",w.fog_pars_fragment,w.logdepthbuf_pars_fragment,"","uniform sampler2D map;","uniform sampler2D alphaMap;","uniform float useMap;","uniform float useAlphaMap;","uniform float useDash;","uniform float dashArray;","uniform float dashOffset;","uniform float dashRatio;","uniform float visibility;","uniform float alphaTest;","uniform vec2 repeat;","","varying vec2 vUV;","varying vec4 vColor;","varying float vCounters;","","void main() {","",w.logdepthbuf_fragment,""," vec4 c = vColor;"," if( useMap == 1. ) c *= texture2D( map, vUV * repeat );"," if( useAlphaMap == 1. ) c.a *= texture2D( alphaMap, vUV * repeat ).a;"," if( c.a < alphaTest ) discard;"," if( useDash == 1. ){"," c.a *= ceil(mod(vCounters + dashOffset, dashArray) - (dashArray * dashRatio));"," }"," gl_FragColor = c;"," gl_FragColor.a *= step(vCounters, visibility);","",w.fog_fragment,"}"].join(`
|
|
3726
|
-
`);var tt=class extends nn{constructor(n){super({uniforms:Object.assign({},ii.fog,{lineWidth:{value:1},map:{value:null},useMap:{value:0},alphaMap:{value:null},useAlphaMap:{value:0},color:{value:new oi(16777215)},opacity:{value:1},resolution:{value:new tn(1,1)},sizeAttenuation:{value:1},dashArray:{value:0},dashOffset:{value:0},dashRatio:{value:.5},useDash:{value:0},visibility:{value:1},alphaTest:{value:0},repeat:{value:new tn(1,1)}}),vertexShader:w.meshline_vert,fragmentShader:w.meshline_frag}),this.isMeshLineMaterial=!0,this.type="MeshLineMaterial",Object.defineProperties(this,{lineWidth:{enumerable:!0,get:function(){return this.uniforms.lineWidth.value},set:function(t){this.uniforms.lineWidth.value=t}},map:{enumerable:!0,get:function(){return this.uniforms.map.value},set:function(t){this.uniforms.map.value=t}},useMap:{enumerable:!0,get:function(){return this.uniforms.useMap.value},set:function(t){this.uniforms.useMap.value=t}},alphaMap:{enumerable:!0,get:function(){return this.uniforms.alphaMap.value},set:function(t){this.uniforms.alphaMap.value=t}},useAlphaMap:{enumerable:!0,get:function(){return this.uniforms.useAlphaMap.value},set:function(t){this.uniforms.useAlphaMap.value=t}},color:{enumerable:!0,get:function(){return this.uniforms.color.value},set:function(t){this.uniforms.color.value=t}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(t){this.uniforms.opacity.value=t}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(t){this.uniforms.resolution.value.copy(t)}},sizeAttenuation:{enumerable:!0,get:function(){return this.uniforms.sizeAttenuation.value},set:function(t){this.uniforms.sizeAttenuation.value=t}},dashArray:{enumerable:!0,get:function(){return this.uniforms.dashArray.value},set:function(t){this.uniforms.dashArray.value=t,this.useDash=t!==0?1:0}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(t){this.uniforms.dashOffset.value=t}},dashRatio:{enumerable:!0,get:function(){return this.uniforms.dashRatio.value},set:function(t){this.uniforms.dashRatio.value=t}},useDash:{enumerable:!0,get:function(){return this.uniforms.useDash.value},set:function(t){this.uniforms.useDash.value=t}},visibility:{enumerable:!0,get:function(){return this.uniforms.visibility.value},set:function(t){this.uniforms.visibility.value=t}},alphaTest:{enumerable:!0,get:function(){return this.uniforms.alphaTest.value},set:function(t){this.uniforms.alphaTest.value=t}},repeat:{enumerable:!0,get:function(){return this.uniforms.repeat.value},set:function(t){this.uniforms.repeat.value.copy(t)}}}),this.setValues(n)}};tt.prototype.copy=function(i){return nn.prototype.copy.call(this,i),this.lineWidth=i.lineWidth,this.map=i.map,this.useMap=i.useMap,this.alphaMap=i.alphaMap,this.useAlphaMap=i.useAlphaMap,this.color.copy(i.color),this.opacity=i.opacity,this.resolution.copy(i.resolution),this.sizeAttenuation=i.sizeAttenuation,this.dashArray.copy(i.dashArray),this.dashOffset.copy(i.dashOffset),this.dashRatio.copy(i.dashRatio),this.useDash=i.useDash,this.visibility=i.visibility,this.alphaTest=i.alphaTest,this.repeat.copy(i.repeat),this};var rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAQCAMAAACROYkbAAABrVBMVEVsjPdsjPdqi/doifdpivdrjPdsjPdsjPd/m/igtfqTq/lykfdri/dsjPdtjfe/zPv8/f/w8/6zw/p0kvdri/dsjPdtjffU3vz////////3+f62xfpzkfdri/dsjPdsjPeZr/nr8P7////////4+f62xfp0kvdri/dsjPdsjPdujveXrvne5v3////////3+f63x/t2lPdri/dsjPdsjPdsjPdri/eMpfjb4/3+/v/////4+v+7yft1k/dri/dsjPdsjPdri/eJovjl6/3////////3+f6Jo/lqivdsjPdri/dvjveluPry9f7////////i6f2BnPhqi/dsjPdrjPdvjveluPrv8v7////////l6/6Uq/lsjPdsjPdsjPdvjveluPrv8v7////////m6/6Uq/lsjPdsjPdsjPdsjPeZr/nv8v7////////s8f6XrvlsjPdsjPdtjffS2/z////////w9P6bsfltjfdsjPdtjffBz/v7/P/y9f6svvpxkPdrjPdsjPdsjPd+mviftPqVrPlykfdri/dsjPdsjPdri/doifdpifdrjPdsjPclkRlrAAAAx0lEQVQ4y2NgwAsYmZhZWNkYyAfsHJxc3Dy85BvAxy8gKCQsIkq2AWLiEpJS0jKycuQaIK+gqKSsoqqmrkGmAZpa2jq6evoGhkbG5BlgYmpmbmFpZW1ja0emE+wdHJ2cXVzd3D3INMDTy9vH188/IDCIPP3BIaFh4RGRUdExseQZEBefkJiUnJKalp5BngGZWdk5uXn5BemFZAZBUXFJaVl5RSWZ9jMwVFXX1NbVNzSSq5+hqbmlta29g2z9DJ1d3T29ffhUAABKPSh5Xst3GwAAAABJRU5ErkJggg==";var on={texture_url:rn,lineWidth:8,color:16777215},Ft=class extends ui{constructor(t,e){super();this.navigation=t;this.config=Object.assign({},on,e),this.registryEvent()}mesh=null;geometry=null;material=null;texture=null;config=on;points=[];basicRepeat=1;registryEvent(){this.navigation.bmap.context.addEventListener("control-change",this.onControlChange),this.navigation.bmap.context.addEventListener("update",this.onUpdate)}unRegistryEvent(){this.navigation.bmap.context.removeEventListener("control-change",this.onControlChange),this.navigation.bmap.context.removeEventListener("update",this.onUpdate)}onControlChange=()=>{this.changeRepeat()};onUpdate=()=>{this.texture};getRepeat(){let{points:t,navigation:{bmap:{context:{camera:e,clientSize:{width:r,height:o}}}}}=this,s=t.map(([u,a])=>y(new pi(u,a,0),e,r,o)).map(({x:u,y:a})=>[u,a]);return st(s)/32}changeRepeat(){if(!this.material)return;let t=this.getRepeat();this.material.repeat=new Yt(t,1)}loadTexture(t){return new Promise((e,r)=>{new hi().load(t,e,void 0,r)})}transformPoints(t){let e=[];for(let r=0;r<t.length;r++)e.push(...t[r],0);return e}updatePoints(t){this.points=t,this.changeRepeat();let e=this.transformPoints(t);this.geometry&&this.geometry.setPoints(e)}async create(t){let e=this.geometry=new T;if(this.updatePoints(t),!this.texture){let s=this.texture=await this.loadTexture(this.config.texture_url);s.wrapS=s.wrapT=di}let r=this.material=new tt({useMap:!0,color:new ci(this.config.color),transparent:!0,resolution:new Yt(this.navigation.bmap.context.clientSize.width,this.navigation.bmap.context.clientSize.height),depthTest:!0,sizeAttenuation:!1,lineWidth:this.config.lineWidth*2,map:this.texture,blending:fi,repeat:new Yt(this.getRepeat(),1)}),o=this.mesh=new li(e,r);return this.add(o),o}dispose(){this.unRegistryEvent(),this.clear(),this.geometry?.dispose(),this.material?.dispose(),this.texture?.dispose()}};import{Group as gi,Tween as mi}from"@tweenjs/tween.js";var yi={path:{},speed:10,cheapMaximumDistance:20,needStartPoi:!1,startPoi:{},loadRoad:!0},sn=class extends U{path=null;worker=qt();fetchRoadStatus=!1;uniqueKey=new q;paths=[];options;pathTween=new gi;startPoi=null;animationPathOptions={cPathIndex:0};cPath=[];constructor(n,t,e={}){super(n),this.options=Object.assign({},yi,e);let{apiDomain:r,apiPath:{roadNetwork:o},apiInfo:s}=this.bmap.config;this.options.loadRoad&&J(this.worker,"load_road",{url:`${r||location.origin}${o}?project=${t}`,...s}).then(()=>{this.fetchRoadStatus=!0,this.dispatchEvent({type:"fetch-road-status",status:!0})}).catch(l=>{console.log("[\u52A0\u8F7D\u8DEF\u7F51\u5931\u8D25]",l)}),this.registryEvent()}registryEvent(){this.bmap.context.addEventListener("update",this.onUpdate),this.bmap.addEventListener("switch_floor_after",this.onSwitchFloor)}unRegistryEvent(){this.bmap.context.removeEventListener("update",this.onUpdate),this.bmap.removeEventListener("switch_floor_after",this.onSwitchFloor)}onUpdate=()=>{this.pathTween.update()};async setRoadData(n){this.fetchRoadStatus=!1,this.dispatchEvent({type:"fetch-road-status",status:!1}),await J(this.worker,"set_road_data",n),this.fetchRoadStatus=!0,this.dispatchEvent({type:"fetch-road-status",status:!0})}clearPath(){this.path&&(this.bmap.context.scene.remove(this.path),this.path.dispose(),this.path=null,this.pathTween.getAll().forEach(n=>n.stop()),this.pathTween.removeAll())}onSwitchFloor=({data:{curFloor:n}})=>{if(this.paths.length){let t=this.paths.find(e=>e.floor===n.name);t?this.renderPath(this.translatePoints(t.points)):this.clearPath()}else this.clearPath()};getDirectionPath(n){return J(this.worker,"get_direction_path",n)}addPath(n){this.paths=n;let t=this.bmap.context.currentFloor?.name,e=n.find(r=>r.floor===t);if(e)if(this.bmap.currentBuildGround)this.renderPath(this.translatePoints(e.points));else{let r=()=>{this.bmap.removeEventListener("center-change",r),this.renderPath(this.translatePoints(e.points))};this.bmap.addEventListener("center-change",r)}else this.clearPath()}translatePoints(n){let[t,e]=this.bmap.buildingCenter;return n.map(r=>[r[0]-t,r[1]-e])}getPath(n,t,e){return new Promise((r,o)=>{let s=()=>{J(this.worker,"get_path",{start:n,end:t,type:e}).then(l=>{l?typeof l=="string"?o(l):r(l):o("no-path")})};if(this.fetchRoadStatus)s();else{let l=({status:u})=>{u&&(this.removeEventListener("fetch-road-status",l),s())};this.addEventListener("fetch-road-status",l)}})}renderPath(n){let t=this.catmullRomCurve3(n);this.cPath=t,this.animationPathOptions={cPathIndex:0},this.path?this.path.updatePoints(t):(this.path=new Ft(this,this.options.path),this.path.create(t),this.path.position.z=this.bmap.context.currentFloor.groundMaxHeight+1,this.bmap.context.scene.add(this.path)),this.startPoi&&(this.startPoi.dispose(),this.startPoi=null),this.options.needStartPoi&&(this.startPoi=this.bmap.context.currentFloor?.addPoi({...this.options.startPoi,position:{x:t[0][0],y:t[0][1],z:1e-4},collision_enable:!1})||null)}catmullRomCurve3(n){return Me(n,!1,!0,.1,150,2.5)}async animationTo(n,t=this.options.speed){if(n.floor!==this.bmap.context.currentFloor?.name||!this.path)return;let{animationPathOptions:{cPathIndex:e}}=this,r=[this.path.points[0],...this.cPath.slice(e+1)],o=this.translatePoints([n.pos])[0],{distance:s,pos:l,index:u}=r.reduce((p,m,g,x)=>{if(g===x.length-1)return p;let{distance:E,closestPoint:b}=Se(o,m,x[g+1]);return E<p.distance&&(p.distance=E,p.pos=b,p.index=g),p},{distance:Number.MAX_SAFE_INTEGER,pos:n.pos,index:0});if(s>this.options.cheapMaximumDistance||this.path.points[0][0]===l[0]&&this.path.points[0][1]===l[1])return;let a=0,h=[];if(u===0)a=M(r[0],l),h=[a];else{h=[M(r[0],r[1])];for(let p=1;p<u;p++)h.push(M(r[p],r[p+1]));h.push(M(r[u],l)),a=h.reduce((p,m)=>p+m,0)}let c=this.kmPerHourToMetersPerSecond(t),f=a/c;this.pathTween.getAll().forEach(p=>p.stop()),this.pathTween.removeAll();let d={distance:0};return new Promise(p=>{let m=new mi(d,this.pathTween).to({distance:a},f*1e3).onUpdate(()=>{for(let g=0;g<h.length;g++){let x=h.slice(0,g+1).reduce((E,b)=>E+b,0);if(x>=d.distance){let E=x-h[g],b=d.distance-E,v=r[g],G=r[g+1],O=we(v,G,b);this.path?.updatePoints([O,...r.slice(g+1)]),this.animationPathOptions.cPathIndex+=g,this.startPoi&&this.startPoi.position.setX(O[0]).setY(O[1]),this.dispatchEvent({type:"path-animation"});return}}}).onComplete(()=>{this.pathTween.remove(m),this.dispatchEvent({type:"path-animation-end"}),p(!0)}).start()})}kmPerHourToMetersPerSecond(n){return n*1e3/3600}dispose(){this.worker.terminate(),this.unRegistryEvent(),this.path?.dispose(),this.uniqueKey.dispose(),this.startPoi?.dispose()}};var an=class extends U{cacheData=new Map;floorDataLengthMap=new Map;async load(n){let t=A(n);if(this.cacheData.has(t))return this.cacheData.get(t);console.time("floor/get\u8BF7\u6C42"+n.resource_type_list);let[,e]=await Promise.all([this.loadBuildGround(n),Ot(n,this.bmap.config)]);console.timeEnd("floor/get\u8BF7\u6C42"+n.resource_type_list);let r=A({floor:n.floor,ts:n.ts});this.bmap.transformGraphicData(e,this.bmap.buildingCenter,this.floorDataLengthMap.get(r)||0),e.forEach(s=>s.info.transformToBuildingGround=!1),this.cacheData.set(t,e);let o=this.floorDataLengthMap.get(r)||0;return this.floorDataLengthMap.set(r,o+e.length),e}isSameFloor(n){return this.bmap.context.currentFloor?.key===A(n)}switchFloorByData(n,t){if(this.isSameFloor(t)){if(!n.length)return;let e=this.bmap.context.currentFloor,r=e.userData.legacyToGraphicMap,o=e.userData.graphicMap,s=[];for(let l of n){if(l.info.group==="ground")e.createGround(l.info);else{let u=e.addGraphic(l.info);u.userData.data=l,r.set(l.legacy_id,u),s.push(u)}o.set(l.element_uuid,l)}this.bmap.triggerHooks("switch_floor_before",{curFloor:e,graphics:s}),this.bmap.initialFloorCamera(),this.bmap.triggerHooks("switch_floor_after",{curFloor:e,graphics:s})}else{let e=A(t),{curFloor:r,graphics:o}=this.bmap.createFloor(n);r.name=t.floor,r.key=e;let s=new Map;n.forEach(l=>{s.set(l.element_uuid,l)}),r.userData.graphicMap=s,this.bmap.triggerHooks("switch_floor_before",{curFloor:r,graphics:o}),this.bmap.context.switchFloor(r),this.bmap.initialFloorCamera(),this.bmap.triggerHooks("switch_floor_after",{curFloor:r,graphics:o})}}filterData(n,t){if(!this.isSameFloor(t))return n;let e=this.bmap.context.currentFloor.userData.graphicMap;return n.filter(r=>!e.has(r.element_uuid))}async switchFloorByStoreData(n){let t=await this.load({...n,resource_type_list:"6"}),e=this.filterData(t,n);this.switchFloorByData(e,n)}async switchFloorByOtherData(n){let t=await this.load({...n,resource_type_list:"1,2,3,4"}),e=this.filterData(t,n);this.switchFloorByData(e,n)}async loadBuildGround({brand:n,project:t}){let e=A({brand:n,project:t});return await this.bmap.loadBuildingGround({brand:n,project:t}),this.bmap.currentBuildGround=this.bmap.buildingGroundMap.get(e)||null,this.bmap.currentBuildGround}async changeFloor(n){return await Promise.all([this.switchFloorByStoreData(n),this.switchFloorByOtherData(n)]),Array.from(this.bmap.context.currentFloor.userData.graphicMap.values())}};export{Je as BMap,N as BaseSvg,Dt as Context,Qe as Equipment,ge as Events,Mt as Floor,S as Graphic,yt as GraphicLayer,vt as HeatmapElement,K as HooksName,Pt as HoverHelper,j as Layer,Jr as MapTypePolar,xt as Model,sn as Navigation,mt as Overlay,kn as PathDirection,Q as Poi,_t as PoiLayer,ke as RoadNetwork,Ye as SelectBox,Ct as Selection,gt as Shadow,an as SplitLoad,St as SvgLine,wt as SvgPolygon,L as Timer,q as UniqueKey,ki as addAlphaToHexColor,he as calc_angle,Vn as calc_direction,ue as clearCanvas,le as clearTextTexture,Ve as convertToSnakeCase,In as createCanvas,Z as createCircle,ut as createLine,X as createRect,ce as createSvg,lt as createSvgElement,ht as darkenColor,Yr as defaultConfig,D as dispose,de as disposeLoader,Se as distancePointToSegment,A as generatorKeyByObj,Gt as getCenter,Ke as getConfig,oo as getDirectPath,M as getLength,Ni as getLongestSideDir,st as getPathLength,Pi as getTextureByText,se as hasChinese,ee as initCamera,Ln as initCanvas,re as initControl,oe as initDirectionalLight,ne as initLight,te as initRenderer,Qt as initScene,ie as initShape,ot as isContain,zt as isControl,ft as isMac,$e as loadBuildingGround,Ot as loadGraphics,fe as loadModel,we as moveOnRoute,at as proxyOptions,zn as removeWeightPath,H as setCirclePosition,C as setLineStartEnd,P as setRectPosition,Me as simplifyPath,pe as sleepOnePromise,Bi as sleepOneRf,be as smoothPath,zi as strToNumber,V as timeoutPromise,_o as toWebWorker,J as triggerWorker,y as vector3ToDevice,Ji as xhrGet};
|
|
3726
|
+
`);var tt=class extends nn{constructor(n){super({uniforms:Object.assign({},ii.fog,{lineWidth:{value:1},map:{value:null},useMap:{value:0},alphaMap:{value:null},useAlphaMap:{value:0},color:{value:new oi(16777215)},opacity:{value:1},resolution:{value:new tn(1,1)},sizeAttenuation:{value:1},dashArray:{value:0},dashOffset:{value:0},dashRatio:{value:.5},useDash:{value:0},visibility:{value:1},alphaTest:{value:0},repeat:{value:new tn(1,1)}}),vertexShader:w.meshline_vert,fragmentShader:w.meshline_frag}),this.isMeshLineMaterial=!0,this.type="MeshLineMaterial",Object.defineProperties(this,{lineWidth:{enumerable:!0,get:function(){return this.uniforms.lineWidth.value},set:function(t){this.uniforms.lineWidth.value=t}},map:{enumerable:!0,get:function(){return this.uniforms.map.value},set:function(t){this.uniforms.map.value=t}},useMap:{enumerable:!0,get:function(){return this.uniforms.useMap.value},set:function(t){this.uniforms.useMap.value=t}},alphaMap:{enumerable:!0,get:function(){return this.uniforms.alphaMap.value},set:function(t){this.uniforms.alphaMap.value=t}},useAlphaMap:{enumerable:!0,get:function(){return this.uniforms.useAlphaMap.value},set:function(t){this.uniforms.useAlphaMap.value=t}},color:{enumerable:!0,get:function(){return this.uniforms.color.value},set:function(t){this.uniforms.color.value=t}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(t){this.uniforms.opacity.value=t}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(t){this.uniforms.resolution.value.copy(t)}},sizeAttenuation:{enumerable:!0,get:function(){return this.uniforms.sizeAttenuation.value},set:function(t){this.uniforms.sizeAttenuation.value=t}},dashArray:{enumerable:!0,get:function(){return this.uniforms.dashArray.value},set:function(t){this.uniforms.dashArray.value=t,this.useDash=t!==0?1:0}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(t){this.uniforms.dashOffset.value=t}},dashRatio:{enumerable:!0,get:function(){return this.uniforms.dashRatio.value},set:function(t){this.uniforms.dashRatio.value=t}},useDash:{enumerable:!0,get:function(){return this.uniforms.useDash.value},set:function(t){this.uniforms.useDash.value=t}},visibility:{enumerable:!0,get:function(){return this.uniforms.visibility.value},set:function(t){this.uniforms.visibility.value=t}},alphaTest:{enumerable:!0,get:function(){return this.uniforms.alphaTest.value},set:function(t){this.uniforms.alphaTest.value=t}},repeat:{enumerable:!0,get:function(){return this.uniforms.repeat.value},set:function(t){this.uniforms.repeat.value.copy(t)}}}),this.setValues(n)}};tt.prototype.copy=function(i){return nn.prototype.copy.call(this,i),this.lineWidth=i.lineWidth,this.map=i.map,this.useMap=i.useMap,this.alphaMap=i.alphaMap,this.useAlphaMap=i.useAlphaMap,this.color.copy(i.color),this.opacity=i.opacity,this.resolution.copy(i.resolution),this.sizeAttenuation=i.sizeAttenuation,this.dashArray.copy(i.dashArray),this.dashOffset.copy(i.dashOffset),this.dashRatio.copy(i.dashRatio),this.useDash=i.useDash,this.visibility=i.visibility,this.alphaTest=i.alphaTest,this.repeat.copy(i.repeat),this};var rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAQCAMAAACROYkbAAABrVBMVEVsjPdsjPdqi/doifdpivdrjPdsjPdsjPd/m/igtfqTq/lykfdri/dsjPdtjfe/zPv8/f/w8/6zw/p0kvdri/dsjPdtjffU3vz////////3+f62xfpzkfdri/dsjPdsjPeZr/nr8P7////////4+f62xfp0kvdri/dsjPdsjPdujveXrvne5v3////////3+f63x/t2lPdri/dsjPdsjPdsjPdri/eMpfjb4/3+/v/////4+v+7yft1k/dri/dsjPdsjPdri/eJovjl6/3////////3+f6Jo/lqivdsjPdri/dvjveluPry9f7////////i6f2BnPhqi/dsjPdrjPdvjveluPrv8v7////////l6/6Uq/lsjPdsjPdsjPdvjveluPrv8v7////////m6/6Uq/lsjPdsjPdsjPdsjPeZr/nv8v7////////s8f6XrvlsjPdsjPdtjffS2/z////////w9P6bsfltjfdsjPdtjffBz/v7/P/y9f6svvpxkPdrjPdsjPdsjPd+mviftPqVrPlykfdri/dsjPdsjPdri/doifdpifdrjPdsjPclkRlrAAAAx0lEQVQ4y2NgwAsYmZhZWNkYyAfsHJxc3Dy85BvAxy8gKCQsIkq2AWLiEpJS0jKycuQaIK+gqKSsoqqmrkGmAZpa2jq6evoGhkbG5BlgYmpmbmFpZW1ja0emE+wdHJ2cXVzd3D3INMDTy9vH188/IDCIPP3BIaFh4RGRUdExseQZEBefkJiUnJKalp5BngGZWdk5uXn5BemFZAZBUXFJaVl5RSWZ9jMwVFXX1NbVNzSSq5+hqbmlta29g2z9DJ1d3T29ffhUAABKPSh5Xst3GwAAAABJRU5ErkJggg==";var on={texture_url:rn,lineWidth:8,color:16777215},Ft=class extends ui{constructor(t,e){super();this.navigation=t;this.config=Object.assign({},on,e),this.registryEvent()}mesh=null;geometry=null;material=null;texture=null;config=on;points=[];basicRepeat=1;registryEvent(){this.navigation.bmap.context.addEventListener("control-change",this.onControlChange),this.navigation.bmap.context.addEventListener("update",this.onUpdate)}unRegistryEvent(){this.navigation.bmap.context.removeEventListener("control-change",this.onControlChange),this.navigation.bmap.context.removeEventListener("update",this.onUpdate)}onControlChange=()=>{this.changeRepeat()};onUpdate=()=>{this.texture};getRepeat(){let{points:t,navigation:{bmap:{context:{camera:e,clientSize:{width:r,height:o}}}}}=this,s=t.map(([u,a])=>y(new pi(u,a,0),e,r,o)).map(({x:u,y:a})=>[u,a]);return st(s)/32}changeRepeat(){if(!this.material)return;let t=this.getRepeat();this.material.repeat=new Yt(t,1)}loadTexture(t){return new Promise((e,r)=>{new hi().load(t,e,void 0,r)})}transformPoints(t){let e=[];for(let r=0;r<t.length;r++)e.push(...t[r],0);return e}updatePoints(t){this.points=t,this.changeRepeat();let e=this.transformPoints(t);this.geometry&&this.geometry.setPoints(e)}async create(t){let e=this.geometry=new T;if(this.updatePoints(t),!this.texture){let s=this.texture=await this.loadTexture(this.config.texture_url);s.wrapS=s.wrapT=di}let r=this.material=new tt({useMap:!0,color:new ci(this.config.color),transparent:!0,resolution:new Yt(this.navigation.bmap.context.clientSize.width,this.navigation.bmap.context.clientSize.height),depthTest:!0,sizeAttenuation:!1,lineWidth:this.config.lineWidth*2,map:this.texture,blending:fi,repeat:new Yt(this.getRepeat(),1)}),o=this.mesh=new li(e,r);return this.add(o),o}dispose(){this.unRegistryEvent(),this.clear(),this.geometry?.dispose(),this.material?.dispose(),this.texture?.dispose()}};import{Group as gi,Tween as mi}from"@tweenjs/tween.js";var yi={path:{},speed:10,cheapMaximumDistance:20,needStartPoi:!1,startPoi:{},loadRoad:!0},sn=class extends U{path=null;worker=qt();fetchRoadStatus=!1;uniqueKey=new q;paths=[];options;pathTween=new gi;startPoi=null;animationPathOptions={cPathIndex:0};cPath=[];constructor(n,t,e={}){super(n),this.options=Object.assign({},yi,e);let{apiDomain:r,apiPath:{roadNetwork:o},apiInfo:s}=this.bmap.config;this.options.loadRoad&&J(this.worker,"load_road",{url:`${r||location.origin}${o}?project=${t}`,...s}).then(()=>{this.fetchRoadStatus=!0,this.dispatchEvent({type:"fetch-road-status",status:!0})}).catch(l=>{console.log("[\u52A0\u8F7D\u8DEF\u7F51\u5931\u8D25]",l)}),this.registryEvent()}registryEvent(){this.bmap.context.addEventListener("update",this.onUpdate),this.bmap.addEventListener("switch_floor_after",this.onSwitchFloor)}unRegistryEvent(){this.bmap.context.removeEventListener("update",this.onUpdate),this.bmap.removeEventListener("switch_floor_after",this.onSwitchFloor)}onUpdate=()=>{this.pathTween.update()};async setRoadData(n){this.fetchRoadStatus=!1,this.dispatchEvent({type:"fetch-road-status",status:!1}),await J(this.worker,"set_road_data",n),this.fetchRoadStatus=!0,this.dispatchEvent({type:"fetch-road-status",status:!0})}clearPath(){this.path&&(this.bmap.context.scene.remove(this.path),this.path.dispose(),this.path=null,this.pathTween.getAll().forEach(n=>n.stop()),this.pathTween.removeAll())}onSwitchFloor=({data:{curFloor:n}})=>{if(this.paths.length){let t=this.paths.find(e=>e.floor===n.name);t?this.renderPath(this.translatePoints(t.points)):this.clearPath()}else this.clearPath()};getDirectionPath(n){return J(this.worker,"get_direction_path",n)}addPath(n){this.paths=n;let t=this.bmap.context.currentFloor?.name,e=n.find(r=>r.floor===t);if(e)if(this.bmap.currentBuildGround)this.renderPath(this.translatePoints(e.points));else{let r=()=>{this.bmap.removeEventListener("center-change",r),this.renderPath(this.translatePoints(e.points))};this.bmap.addEventListener("center-change",r)}else this.clearPath()}translatePoints(n){let[t,e]=this.bmap.buildingCenter;return n.map(r=>[r[0]-t,r[1]-e])}getPath(n,t,e=""){return new Promise((r,o)=>{let s=()=>{J(this.worker,"get_path",{start:n,end:t,type:e}).then(l=>{l?typeof l=="string"?o(l):r(l):o("no-path")})};if(this.fetchRoadStatus)s();else{let l=({status:u})=>{u&&(this.removeEventListener("fetch-road-status",l),s())};this.addEventListener("fetch-road-status",l)}})}renderPath(n){let t=this.catmullRomCurve3(n);this.cPath=t,this.animationPathOptions={cPathIndex:0},this.path?this.path.updatePoints(t):(this.path=new Ft(this,this.options.path),this.path.create(t),this.path.position.z=this.bmap.context.currentFloor.groundMaxHeight+1,this.bmap.context.scene.add(this.path)),this.startPoi&&(this.startPoi.dispose(),this.startPoi=null),this.options.needStartPoi&&(this.startPoi=this.bmap.context.currentFloor?.addPoi({...this.options.startPoi,position:{x:t[0][0],y:t[0][1],z:1e-4},collision_enable:!1})||null)}catmullRomCurve3(n){return Me(n,!1,!0,.1,150,2.5)}async animationTo(n,t=this.options.speed){if(n.floor!==this.bmap.context.currentFloor?.name||!this.path)return;let{animationPathOptions:{cPathIndex:e}}=this,r=[this.path.points[0],...this.cPath.slice(e+1)],o=this.translatePoints([n.pos])[0],{distance:s,pos:l,index:u}=r.reduce((p,m,g,x)=>{if(g===x.length-1)return p;let{distance:E,closestPoint:b}=Se(o,m,x[g+1]);return E<p.distance&&(p.distance=E,p.pos=b,p.index=g),p},{distance:Number.MAX_SAFE_INTEGER,pos:n.pos,index:0});if(s>this.options.cheapMaximumDistance||this.path.points[0][0]===l[0]&&this.path.points[0][1]===l[1])return;let a=0,h=[];if(u===0)a=M(r[0],l),h=[a];else{h=[M(r[0],r[1])];for(let p=1;p<u;p++)h.push(M(r[p],r[p+1]));h.push(M(r[u],l)),a=h.reduce((p,m)=>p+m,0)}let c=this.kmPerHourToMetersPerSecond(t),f=a/c;this.pathTween.getAll().forEach(p=>p.stop()),this.pathTween.removeAll();let d={distance:0};return new Promise(p=>{let m=new mi(d,this.pathTween).to({distance:a},f*1e3).onUpdate(()=>{for(let g=0;g<h.length;g++){let x=h.slice(0,g+1).reduce((E,b)=>E+b,0);if(x>=d.distance){let E=x-h[g],b=d.distance-E,v=r[g],G=r[g+1],O=we(v,G,b);this.path?.updatePoints([O,...r.slice(g+1)]),this.animationPathOptions.cPathIndex+=g,this.startPoi&&this.startPoi.position.setX(O[0]).setY(O[1]),this.dispatchEvent({type:"path-animation"});return}}}).onComplete(()=>{this.pathTween.remove(m),this.dispatchEvent({type:"path-animation-end"}),p(!0)}).start()})}kmPerHourToMetersPerSecond(n){return n*1e3/3600}dispose(){this.worker.terminate(),this.unRegistryEvent(),this.path?.dispose(),this.uniqueKey.dispose(),this.startPoi?.dispose()}};var an=class extends U{cacheData=new Map;floorDataLengthMap=new Map;async load(n){let t=A(n);if(this.cacheData.has(t))return this.cacheData.get(t);console.time("floor/get\u8BF7\u6C42"+n.resource_type_list);let[,e]=await Promise.all([this.loadBuildGround(n),Ot(n,this.bmap.config)]);console.timeEnd("floor/get\u8BF7\u6C42"+n.resource_type_list);let r=A({floor:n.floor,ts:n.ts});this.bmap.transformGraphicData(e,this.bmap.buildingCenter,this.floorDataLengthMap.get(r)||0),e.forEach(s=>s.info.transformToBuildingGround=!1),this.cacheData.set(t,e);let o=this.floorDataLengthMap.get(r)||0;return this.floorDataLengthMap.set(r,o+e.length),e}isSameFloor(n){return this.bmap.context.currentFloor?.key===A(n)}switchFloorByData(n,t){if(this.isSameFloor(t)){if(!n.length)return;let e=this.bmap.context.currentFloor,r=e.userData.legacyToGraphicMap,o=e.userData.graphicMap,s=[];for(let l of n){if(l.info.group==="ground")e.createGround(l.info);else{let u=e.addGraphic(l.info);u.userData.data=l,r.set(l.legacy_id,u),s.push(u)}o.set(l.element_uuid,l)}this.bmap.triggerHooks("switch_floor_before",{curFloor:e,graphics:s}),this.bmap.initialFloorCamera(),this.bmap.triggerHooks("switch_floor_after",{curFloor:e,graphics:s})}else{let e=A(t),{curFloor:r,graphics:o}=this.bmap.createFloor(n);r.name=t.floor,r.key=e;let s=new Map;n.forEach(l=>{s.set(l.element_uuid,l)}),r.userData.graphicMap=s,this.bmap.triggerHooks("switch_floor_before",{curFloor:r,graphics:o}),this.bmap.context.switchFloor(r),this.bmap.initialFloorCamera(),this.bmap.triggerHooks("switch_floor_after",{curFloor:r,graphics:o})}}filterData(n,t){if(!this.isSameFloor(t))return n;let e=this.bmap.context.currentFloor.userData.graphicMap;return n.filter(r=>!e.has(r.element_uuid))}async switchFloorByStoreData(n){let t=await this.load({...n,resource_type_list:"6"}),e=this.filterData(t,n);this.switchFloorByData(e,n)}async switchFloorByOtherData(n){let t=await this.load({...n,resource_type_list:"1,2,3,4"}),e=this.filterData(t,n);this.switchFloorByData(e,n)}async loadBuildGround({brand:n,project:t}){let e=A({brand:n,project:t});return await this.bmap.loadBuildingGround({brand:n,project:t}),this.bmap.currentBuildGround=this.bmap.buildingGroundMap.get(e)||null,this.bmap.currentBuildGround}async changeFloor(n){return await Promise.all([this.switchFloorByStoreData(n),this.switchFloorByOtherData(n)]),Array.from(this.bmap.context.currentFloor.userData.graphicMap.values())}};export{Je as BMap,N as BaseSvg,Dt as Context,Qe as Equipment,ge as Events,Mt as Floor,S as Graphic,yt as GraphicLayer,vt as HeatmapElement,K as HooksName,Pt as HoverHelper,j as Layer,Jr as MapTypePolar,xt as Model,sn as Navigation,mt as Overlay,kn as PathDirection,Q as Poi,_t as PoiLayer,ke as RoadNetwork,Ye as SelectBox,Ct as Selection,gt as Shadow,an as SplitLoad,St as SvgLine,wt as SvgPolygon,L as Timer,q as UniqueKey,ki as addAlphaToHexColor,he as calc_angle,Vn as calc_direction,ue as clearCanvas,le as clearTextTexture,Ve as convertToSnakeCase,In as createCanvas,Z as createCircle,ut as createLine,X as createRect,ce as createSvg,lt as createSvgElement,ht as darkenColor,Yr as defaultConfig,D as dispose,de as disposeLoader,Se as distancePointToSegment,A as generatorKeyByObj,Gt as getCenter,Ke as getConfig,oo as getDirectPath,M as getLength,Ni as getLongestSideDir,st as getPathLength,Pi as getTextureByText,se as hasChinese,ee as initCamera,Ln as initCanvas,re as initControl,oe as initDirectionalLight,ne as initLight,te as initRenderer,Qt as initScene,ie as initShape,ot as isContain,zt as isControl,ft as isMac,$e as loadBuildingGround,Ot as loadGraphics,fe as loadModel,we as moveOnRoute,at as proxyOptions,zn as removeWeightPath,H as setCirclePosition,C as setLineStartEnd,P as setRectPosition,Me as simplifyPath,pe as sleepOnePromise,Bi as sleepOneRf,be as smoothPath,zi as strToNumber,V as timeoutPromise,_o as toWebWorker,J as triggerWorker,y as vector3ToDevice,Ji as xhrGet};
|
|
3727
3727
|
//# sourceMappingURL=bmap.esm.min.js.map
|