rt_gis_3d 1.0.0 → 1.0.1
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/README.md +35 -3
- package/index.js +8 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,44 @@
|
|
|
1
1
|
# [rt_gis_3d.js](http://lesscss.org)
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 开始
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
6
|
npm install rt_gis_3d
|
|
7
7
|
```
|
|
8
8
|
初始化场景
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
--图片资源请放在(./src/assets/icon/)目录下
|
|
10
|
+
```typescript
|
|
11
|
+
/**
|
|
12
|
+
* @param {HTMLDivElement} div - 地图div容器
|
|
13
|
+
* @param {object} data - 文件解析后json数据
|
|
14
|
+
*/
|
|
15
|
+
const container = new T.TDScene(div as HTMLDivElement ,data as object);
|
|
11
16
|
```
|
|
12
17
|
|
|
18
|
+
监听事件
|
|
19
|
+
```typescript
|
|
20
|
+
/**
|
|
21
|
+
* @param {String} type - 事件类型: 如 click
|
|
22
|
+
* @param {Function} callback - 回调函数
|
|
23
|
+
*/
|
|
24
|
+
container.on(typs as String, callback as (obj: object) => void)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
切换当前场景
|
|
29
|
+
```typescript
|
|
30
|
+
/**
|
|
31
|
+
* @param {object} data - 文件解析后json数据
|
|
32
|
+
*/
|
|
33
|
+
container.switchBuild(data as object)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
切换图标-使用报警等场景
|
|
38
|
+
```typescript
|
|
39
|
+
/**
|
|
40
|
+
* @param {object} code - 设备编号
|
|
41
|
+
* @param {object} icon - 图标路径
|
|
42
|
+
*/
|
|
43
|
+
container.switchIcon(code, icon)
|
|
44
|
+
```
|
package/index.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _0x56fb29 from 'three';
|
|
2
2
|
import { MapControls } from 'three/addons/controls/MapControls.js';
|
|
3
|
-
import _0x1e1f8c from '@tweenjs/tween.js';
|
|
4
3
|
import { CSS3DRenderer } from 'three/addons/renderers/CSS3DRenderer.js';
|
|
5
|
-
import
|
|
4
|
+
import _0x1dbd44 from '@tweenjs/tween.js';
|
|
5
|
+
import * as _0x13c366 from 'd3';
|
|
6
|
+
import _0x48083f from 'leaflet';
|
|
6
7
|
import { h } from 'vue';
|
|
8
|
+
import _0x1878ab from '@/assets/img/marker.png';
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
(function(_0x34deec,_0x31bd50){const _0x5cd06f=_0x5b2a,_0x58fa38=_0x34deec();while(!![]){try{const _0x346aef=-parseInt(_0x5cd06f(0xcc))/0x1*(parseInt(_0x5cd06f(0xd2))/0x2)+parseInt(_0x5cd06f(0xc0))/0x3*(parseInt(_0x5cd06f(0xed))/0x4)+-parseInt(_0x5cd06f(0xba))/0x5+parseInt(_0x5cd06f(0xb5))/0x6*(parseInt(_0x5cd06f(0xe6))/0x7)+parseInt(_0x5cd06f(0xe2))/0x8+parseInt(_0x5cd06f(0xeb))/0x9*(-parseInt(_0x5cd06f(0xb3))/0xa)+parseInt(_0x5cd06f(0xf0))/0xb*(parseInt(_0x5cd06f(0xd6))/0xc);if(_0x346aef===_0x31bd50)break;else _0x58fa38['push'](_0x58fa38['shift']());}catch(_0x1a5616){_0x58fa38['push'](_0x58fa38['shift']());}}}(_0x5937,0x37931));function raycaster({dom:_0x294b0f,things:_0x171cbb,camera:_0x535fa0},_0x10c691){const _0x1aae7e=_0x5b2a,_0x2d6b9d=0x6;let _0x4c9349=0x1,_0x1e9853;_0x294b0f[_0x1aae7e(0xc2)]('mousedown',_0x41cbb7),_0x294b0f['addEventListener']('mouseup',_0x536697);function _0x41cbb7(_0xb9cec){const _0x1489d1=_0x1aae7e;_0x4c9349=_0xb9cec[_0x1489d1(0xf2)],_0x1e9853=_0xb9cec[_0x1489d1(0xc4)];}function _0x536697(_0x12e03e){const _0x239181=_0x1aae7e,_0x2481bc=Math[_0x239181(0xd8)](_0x12e03e[_0x239181(0xf2)]-_0x4c9349),_0x1b3484=Math[_0x239181(0xd8)](_0x12e03e[_0x239181(0xc4)]-_0x1e9853);if(_0x2481bc<_0x2d6b9d&&_0x1b3484<_0x2d6b9d){const _0x540d7e=_0x12e03e[_0x239181(0xb6)],_0x41d6c4=_0x12e03e['offsetY'],_0x39c17f=_0x540d7e/_0x294b0f['clientWidth']*0x2-0x1,_0x29eb1a=-(_0x41d6c4/_0x294b0f[_0x239181(0xb2)])*0x2+0x1,_0x298169=new _0x56fb29[(_0x239181(0xe5))]();_0x298169['setFromCamera'](new _0x56fb29[(_0x239181(0xd7))](_0x39c17f,_0x29eb1a),_0x535fa0);const _0x328542=_0x298169[_0x239181(0xc6)](_0x171cbb);if(_0x328542[_0x239181(0xf4)]>0x0){const _0x572e8f=_0x328542[0x0][_0x239181(0xf9)];_0x10c691(_0x572e8f);}else _0x10c691();}}return ()=>{const _0x4b9b0f=_0x1aae7e;_0x294b0f[_0x4b9b0f(0xda)]('mousedown',_0x41cbb7),_0x294b0f['removeEventListener'](_0x4b9b0f(0xcf),_0x536697);};}function getGeoJsonCenter(_0x33bb9d){const _0x3f7252=_0x5b2a;try{return _0x48083f[_0x3f7252(0xaf)](_0x33bb9d)[_0x3f7252(0xbf)]()[_0x3f7252(0xf5)]();}catch(_0xf58fc9){throw new Error(_0xf58fc9);}}function createWall(_0x5d24ed,_0x380c7f){const _0x20a70d=_0x5b2a,_0x59b638=new _0x56fb29['Shape']();_0x5d24ed['forEach'](_0x3a31f7=>{const _0x2118f2=_0x5b2a;_0x3a31f7[_0x2118f2(0xb4)]((_0x3827d2,_0x5168b1)=>{const _0x182495=_0x2118f2,[_0x905548,_0x563a76]=_0x380c7f(_0x3827d2);_0x5168b1===0x0?_0x59b638[_0x182495(0xd3)](_0x905548,-_0x563a76):_0x59b638[_0x182495(0xc9)](_0x905548,-_0x563a76);});});const _0x3c6f75=new _0x56fb29[(_0x20a70d(0xef))](_0x59b638,{'depth':2.5}),_0x415477=[new _0x56fb29[(_0x20a70d(0xb9))]({'color':_0x20a70d(0xdb),'side':_0x56fb29[_0x20a70d(0xec)],'transparent':!![]}),new _0x56fb29[(_0x20a70d(0xb9))]({'color':_0x20a70d(0xe8),'side':_0x56fb29[_0x20a70d(0xec)],'transparent':!![]})],_0x58ccc0=new _0x56fb29[(_0x20a70d(0xb8))](_0x3c6f75,_0x415477);_0x58ccc0['rotateX'](-Math['PI']/0x2);const _0x580b68=new _0x56fb29[(_0x20a70d(0xdc))](_0x3c6f75,0x1e),_0x384e98=new _0x56fb29[(_0x20a70d(0xc1))]({'color':0xc6c6c6}),_0xf6abc4=new _0x56fb29[(_0x20a70d(0xd0))](_0x580b68,_0x384e98);return _0x58ccc0[_0x20a70d(0xd1)](_0xf6abc4),_0x58ccc0;}function createArea(_0x268c53,_0x3b0b07,_0x1c2134='#f7f7f7'){const _0x2c6ca7=_0x5b2a,_0x4e65b8=new _0x56fb29[(_0x2c6ca7(0xf7))]();_0x268c53['forEach'](_0x41aa4b=>{const _0x47b5d9=_0x2c6ca7;_0x41aa4b[_0x47b5d9(0xb4)]((_0x168067,_0x5bcab5)=>{const _0x204341=_0x47b5d9,[_0x1fe3dc,_0x3a2daa]=_0x3b0b07(_0x168067);_0x5bcab5===0x0?_0x4e65b8[_0x204341(0xd3)](_0x1fe3dc,-_0x3a2daa):_0x4e65b8[_0x204341(0xc9)](_0x1fe3dc,-_0x3a2daa);});});const _0x84dd91=new _0x56fb29[(_0x2c6ca7(0xef))](_0x4e65b8,{'depth':0.1}),_0x36d65d=new _0x56fb29['MeshBasicMaterial']({'color':_0x1c2134,'side':_0x56fb29[_0x2c6ca7(0xec)],'transparent':!![]}),_0x4bf623=new _0x56fb29[(_0x2c6ca7(0xb8))](_0x84dd91,_0x36d65d);return _0x4bf623[_0x2c6ca7(0xdf)](-Math['PI']/0x2),_0x4bf623;}function createAreaLabel(_0x463e6b,_0x1be06d,_0x4c170a){const _0x3b6502=_0x5b2a,_0x51ad84=_0x48083f[_0x3b6502(0xb7)](_0x1be06d['flat']())[_0x3b6502(0xf5)](),[_0x13f92a,_0x28620b]=_0x4c170a([_0x51ad84['x'],_0x51ad84['y']]),_0xf7a066=_0x5bd38b(_0x463e6b),_0x329c02=new _0x56fb29['CanvasTexture'](_0xf7a066),_0x1f8eb0=new _0x56fb29['SpriteMaterial']({'map':_0x329c02,'transparent':!![],'alphaTest':0.1});_0x1f8eb0[_0x3b6502(0xbd)]['colorSpace']=_0x3b6502(0xe1);const _0x1f609e=new _0x56fb29[(_0x3b6502(0xea))](_0x1f8eb0),_0x2fa271=2.5,_0x5d6916=_0xf7a066[_0x3b6502(0xf1)]/_0xf7a066[_0x3b6502(0xe0)]*_0x2fa271;_0x1f609e[_0x3b6502(0xe3)][_0x3b6502(0xf6)](_0x5d6916,_0x2fa271,0x1),_0x1f609e[_0x3b6502(0xae)][_0x3b6502(0xf6)](_0x13f92a,0x2,_0x28620b);return _0x1f609e;function _0x5bd38b(_0x291ed4){const _0x4c13e1=_0x3b6502,_0x2b7688=document[_0x4c13e1(0xee)](_0x4c13e1(0xb1)),_0x54cefa=_0x291ed4['split']('');let _0x184a8b=0x0;const _0x330e64=/[\u4e00-\u9fa5]/;for(let _0x49549a=0x0;_0x49549a<_0x54cefa[_0x4c13e1(0xf4)];_0x49549a++){_0x330e64[_0x4c13e1(0xf3)](_0x54cefa[_0x49549a])?_0x184a8b+=0x1:_0x184a8b+=0.5;}const _0x304fe4=0x50,_0x19798d=_0x304fe4+_0x184a8b*0x20;_0x2b7688[_0x4c13e1(0xf1)]=_0x19798d,_0x2b7688[_0x4c13e1(0xe0)]=_0x304fe4;const _0x13296f=_0x304fe4*0.8,_0xbdaaff=_0x2b7688[_0x4c13e1(0xce)]('2d');return _0xbdaaff['beginPath'](),_0xbdaaff[_0x4c13e1(0xdd)](_0x19798d/0x2,_0x13296f/0x2),_0xbdaaff['fillStyle']=_0x4c13e1(0xde),_0xbdaaff['font']=_0x4c13e1(0xcb),_0xbdaaff[_0x4c13e1(0xc5)]=_0x4c13e1(0xd5),_0xbdaaff[_0x4c13e1(0xe4)]=_0x4c13e1(0xcd),_0xbdaaff[_0x4c13e1(0xb0)](_0x291ed4,0x0,0x0),_0x2b7688;}}function creatIcon(_0x3b4dad,_0x5bf8bb,_0x254fe7){const _0x59a07b=_0x5b2a,_0x4a44fc=new _0x56fb29['TextureLoader'](),_0x113fe3=_0x4a44fc[_0x59a07b(0xca)](_0x3b4dad),_0x4c3536=new _0x56fb29[(_0x59a07b(0xd9))]({'map':_0x113fe3,'transparent':!![],'alphaTest':0.1});_0x4c3536[_0x59a07b(0xbd)][_0x59a07b(0xe7)]=_0x59a07b(0xe1);const _0x2aca0e=new _0x56fb29[(_0x59a07b(0xea))](_0x4c3536),[_0xfe8cb9,_0xa43381]=_0x254fe7([_0x5bf8bb[_0x59a07b(0xc8)],_0x5bf8bb[_0x59a07b(0xc3)]]);return _0x2aca0e[_0x59a07b(0xae)][_0x59a07b(0xf6)](_0xfe8cb9,0x2,_0xa43381),_0x2aca0e[_0x59a07b(0xe3)]['set'](0x2,0x2,0x2),_0x2aca0e;}function _0x5937(){const _0x2e7b77=['9iBpvcD','DoubleSide','174204JMwAxp','createElement','ExtrudeGeometry','260315jgmvUY','width','pageX','test','length','getCenter','set','Shape','firstElementChild','object','position','geoJSON','fillText','canvas','clientHeight','2668780LsTCbn','forEach','24YDKXdY','offsetX','bounds','Mesh','MeshBasicMaterial','1242450sAFrps','div','target','map','Cubic','getBounds','12XOCeeq','LineBasicMaterial','addEventListener','lat','pageY','textBaseline','intersectObjects','update','lng','lineTo','load','normal\x2032px\x20system-ui','16eWAwLy','center','getContext','mouseup','LineSegments','add','54232Beqtup','moveTo','mount','middle','180DvDIOa','Vector2','abs','SpriteMaterial','removeEventListener','#ffffff','EdgesGeometry','translate','#000000','rotateX','height','srgb','2833136cxlxSu','scale','textAlign','Raycaster','513688grZaDQ','colorSpace','#d6d6d6','Tween','Sprite'];_0x5937=function(){return _0x2e7b77;};return _0x5937();}function _0x5b2a(_0x146b0f,_0x475f7a){_0x146b0f=_0x146b0f-0xae;const _0x593765=_0x5937();let _0x5b2a15=_0x593765[_0x146b0f];return _0x5b2a15;}function createCameraTween(_0x1ef168,_0x2ffd4c,_0x22de33,_0x5845c3){const _0x32ba72=_0x5b2a;new _0x1dbd44[(_0x32ba72(0xe9))]({'x':_0x22de33[_0x32ba72(0xae)]['x'],'y':_0x22de33[_0x32ba72(0xae)]['y'],'z':_0x22de33[_0x32ba72(0xae)]['z'],'tx':_0x5845c3[_0x32ba72(0xbc)]['x'],'ty':_0x5845c3['target']['y'],'tz':_0x5845c3['target']['z']})['to']({'x':_0x1ef168['x'],'y':_0x1ef168['y'],'z':_0x1ef168['z'],'tx':_0x2ffd4c['x'],'ty':_0x2ffd4c['y'],'tz':_0x2ffd4c['z']},0x3e8)['easing'](_0x1dbd44['Easing'][_0x32ba72(0xbe)]['Out'])['onUpdate'](function(_0x49b908){const _0x53dcb1=_0x32ba72;_0x22de33[_0x53dcb1(0xae)][_0x53dcb1(0xf6)](_0x49b908['x'],_0x49b908['y'],_0x49b908['z']),_0x5845c3['target']['set'](_0x49b908['tx'],_0x49b908['ty'],_0x49b908['tz']),_0x5845c3[_0x53dcb1(0xc7)]();})['start']();}function createVueDOMString(_0x4be61e,_0x4a975c={}){const _0x2be414=_0x5b2a,_0x369d84=document[_0x2be414(0xee)](_0x2be414(0xbb)),_0xce542b=createApp({'render'(){return h(_0x4be61e,_0x4a975c);}});return _0xce542b[_0x2be414(0xd4)](_0x369d84),_0x369d84[_0x2be414(0xf8)];}var _0x5cd5a5 = {'raycaster':raycaster,'getGeoJsonCenter':getGeoJsonCenter,'createWall':createWall,'createArea':createArea,'createAreaLabel':createAreaLabel,'creatIcon':creatIcon,'createCameraTween':createCameraTween,'createVueDOMString':createVueDOMString};
|
|
9
11
|
|
|
10
|
-
const
|
|
12
|
+
function _0x47b5(_0x189024,_0x2c1744){_0x189024=_0x189024-0xf2;const _0x3f9732=_0x3f97();let _0x47b596=_0x3f9732[_0x189024];return _0x47b596;}function _0x3f97(){const _0x1b510b=['translate','material','remove','switchBuild','getContext','animationFrameId','maxPolarAngle','update','scene','subVectors','raycaster','animate','none','srgb','href','createAreaLabel','clientHeight','Scene','setSize','traverse','lat','normalize','load','creatIcon','WebGLRenderer','name','set','90RtTfis','position','push','switchIcon','disposeSceneObjects','resize','multiplyScalar','1969040YYgMAY','LineSegments','equipGroup','properties','505252eZhCjC','getExtension','needsUpdate','features','type','maxDistance','aspect','icon','css3Renderer','feature','forEach','isArray','clientWidth','ambient','3hjlBUo','click','renderer','234920USJRQf','AmbientLight','coordinates','top','dispose','scale','center','colorSpace','Vector3','loseContext','7040330xnWRlh','onWindowResize','domElement','9tfxWbf','map','color','1twBPiB','add','updateProjectionMatrix','893598mbPjHU','render','webgl','4490690pfUfxp','Sprite','removeEventListener','children','latlng','geometry','clone','icons','TextureLoader','createArea','init','WEBGL_lose_context','build','pointerEvents','controls','style','appendChild','Mesh','98035NrRzzt','camera','dom','bind','light','parent','0px','/src/assets/icon/'];_0x3f97=function(){return _0x1b510b;};return _0x3f97();}const _0x3263e5=_0x47b5;(function(_0x1863e4,_0x21683b){const _0x5e7320=_0x47b5,_0x1a12e9=_0x1863e4();while(!![]){try{const _0x19d3bf=parseInt(_0x5e7320(0x121))/0x1*(-parseInt(_0x5e7320(0x124))/0x2)+-parseInt(_0x5e7320(0x10e))/0x3*(parseInt(_0x5e7320(0x100))/0x4)+-parseInt(_0x5e7320(0xfc))/0x5+parseInt(_0x5e7320(0xf5))/0x6*(parseInt(_0x5e7320(0x139))/0x7)+-parseInt(_0x5e7320(0x111))/0x8+-parseInt(_0x5e7320(0x11e))/0x9*(-parseInt(_0x5e7320(0x127))/0xa)+parseInt(_0x5e7320(0x11b))/0xb;if(_0x19d3bf===_0x21683b)break;else _0x1a12e9['push'](_0x1a12e9['shift']());}catch(_0x49a1a2){_0x1a12e9['push'](_0x1a12e9['shift']());}}}(_0x3f97,0x49f29));class TDScene{['animationFrameId'];constructor(_0x248584,_0x3d2f96){const _0x324fc8=_0x47b5;try{this[_0x324fc8(0x13b)]=_0x248584,this[_0x324fc8(0x131)](),this[_0x324fc8(0x13d)](),this[_0x324fc8(0x14c)](),this[_0x324fc8(0xfe)]=new _0x56fb29['Group'](),this[_0x324fc8(0x133)](_0x3d2f96),window['addEventListener'](_0x324fc8(0xfa),this[_0x324fc8(0x11c)][_0x324fc8(0x13c)](this));}catch(_0x128db0){return _0x128db0;}}['init'](){const _0x2b2e85=_0x47b5;this[_0x2b2e85(0x149)]=new _0x56fb29[(_0x2b2e85(0x152))](),this[_0x2b2e85(0x13a)]=new _0x56fb29['PerspectiveCamera'](0x4b,this['dom'][_0x2b2e85(0x10c)]/this[_0x2b2e85(0x13b)][_0x2b2e85(0x151)],0.1,0x3e8),this['camera'][_0x2b2e85(0xf6)][_0x2b2e85(0xf4)](0x0,0x1e,0x1e),this[_0x2b2e85(0x110)]=new _0x56fb29[(_0x2b2e85(0xf2))]({'antialias':!![],'logarithmicDepthBuffer':!![]}),this['renderer'][_0x2b2e85(0x153)](this[_0x2b2e85(0x13b)][_0x2b2e85(0x10c)],this['dom'][_0x2b2e85(0x151)]),this[_0x2b2e85(0x110)]['setClearColor'](0xf0f2f5,0x1),this[_0x2b2e85(0x13b)][_0x2b2e85(0x137)](this[_0x2b2e85(0x110)]['domElement']),this[_0x2b2e85(0x135)]=new MapControls(this[_0x2b2e85(0x13a)],this['renderer']['domElement']),this[_0x2b2e85(0x135)]['minDistance']=0x14,this[_0x2b2e85(0x135)][_0x2b2e85(0x105)]=0xc8,this[_0x2b2e85(0x135)][_0x2b2e85(0x147)]=Math['PI']/0x3,this[_0x2b2e85(0x108)]=new CSS3DRenderer(),this[_0x2b2e85(0x108)]['setSize'](this[_0x2b2e85(0x13b)][_0x2b2e85(0x10c)],this[_0x2b2e85(0x13b)][_0x2b2e85(0x151)]),this[_0x2b2e85(0x108)]['domElement']['style'][_0x2b2e85(0xf6)]='absolute',this[_0x2b2e85(0x108)][_0x2b2e85(0x11d)][_0x2b2e85(0x136)][_0x2b2e85(0x114)]=_0x2b2e85(0x13f),this[_0x2b2e85(0x108)][_0x2b2e85(0x11d)][_0x2b2e85(0x136)][_0x2b2e85(0x134)]=_0x2b2e85(0x14d),this['dom'][_0x2b2e85(0x137)](this[_0x2b2e85(0x108)][_0x2b2e85(0x11d)]);}[_0x3263e5(0x13d)](){const _0x394d50=_0x3263e5;this['ambient']=new _0x56fb29[(_0x394d50(0x112))](0xffffff,0x1),this[_0x394d50(0x149)]['add'](this[_0x394d50(0x10d)]);}['animate'](){const _0x4c0389=_0x3263e5;_0x1dbd44[_0x4c0389(0x148)](),this['animationFrameId']=requestAnimationFrame(this[_0x4c0389(0x14c)]['bind'](this)),this[_0x4c0389(0x110)]['render'](this[_0x4c0389(0x149)],this['camera']),this['css3Renderer'][_0x4c0389(0x125)](this[_0x4c0389(0x149)],this[_0x4c0389(0x13a)]);}['onWindowResize'](){const _0x207b60=_0x3263e5;this[_0x207b60(0x13a)][_0x207b60(0x106)]=this[_0x207b60(0x13b)][_0x207b60(0x10c)]/this[_0x207b60(0x13b)]['clientHeight'],this[_0x207b60(0x13a)][_0x207b60(0x123)](),this[_0x207b60(0x110)]['setSize'](this[_0x207b60(0x13b)][_0x207b60(0x10c)],this[_0x207b60(0x13b)]['clientHeight']),this[_0x207b60(0x108)]['setSize'](this['dom']['clientWidth'],this[_0x207b60(0x13b)][_0x207b60(0x151)]);}[_0x3263e5(0x115)](){const _0x2fa746=_0x3263e5;this[_0x2fa746(0xf9)](this[_0x2fa746(0x149)]),this[_0x2fa746(0x149)]['clear'](),this[_0x2fa746(0x110)][_0x2fa746(0x11d)][_0x2fa746(0x143)](),this['renderer']['dispose'](),this['renderer']['forceContextLoss'](),this[_0x2fa746(0x108)][_0x2fa746(0x11d)][_0x2fa746(0x143)]();let _0x4bcf62=this[_0x2fa746(0x110)][_0x2fa746(0x11d)][_0x2fa746(0x145)](_0x2fa746(0x126));_0x4bcf62&&_0x4bcf62[_0x2fa746(0x101)](_0x2fa746(0x132))&&_0x4bcf62[_0x2fa746(0x101)]('WEBGL_lose_context')[_0x2fa746(0x11a)](),this['scene']=null,this[_0x2fa746(0x13a)]=null,this[_0x2fa746(0x110)]=null,cancelAnimationFrame(this[_0x2fa746(0x146)]),this['raycaster']&&this[_0x2fa746(0x14b)](),window[_0x2fa746(0x129)](_0x2fa746(0xfa),this[_0x2fa746(0x11c)][_0x2fa746(0x13c)](this));}[_0x3263e5(0xf9)](_0x34f032){const _0x20cf5f=_0x3263e5,_0x1fa22c=[];_0x34f032[_0x20cf5f(0x154)](_0x5f080a=>{const _0x135615=_0x20cf5f;(_0x5f080a instanceof _0x56fb29[_0x135615(0x138)]||_0x5f080a instanceof _0x56fb29[_0x135615(0xfd)]||_0x5f080a instanceof _0x56fb29[_0x135615(0x128)])&&_0x1fa22c[_0x135615(0xf7)](_0x5f080a);}),_0x1fa22c[_0x20cf5f(0x10a)](_0x5d33e5=>{const _0x5ecec6=_0x20cf5f;_0x5d33e5['parent']&&_0x5d33e5[_0x5ecec6(0x13e)][_0x5ecec6(0x143)](_0x5d33e5);if(_0x5d33e5['geometry'])_0x5d33e5[_0x5ecec6(0x12c)]['dispose']();_0x5d33e5[_0x5ecec6(0x142)]&&(Array[_0x5ecec6(0x10b)](_0x5d33e5[_0x5ecec6(0x142)])?_0x5d33e5[_0x5ecec6(0x142)][_0x5ecec6(0x10a)](_0x33aa0a=>_0x33aa0a[_0x5ecec6(0x115)]()):_0x5d33e5[_0x5ecec6(0x142)][_0x5ecec6(0x115)]());});}[_0x3263e5(0x133)](_0x349014){const _0x58b19b=_0x3263e5,_0x1aac5b=_0x5cd5a5['getGeoJsonCenter']({'features':_0x349014[_0x58b19b(0x103)][_0x58b19b(0x11f)](_0x524bd6=>_0x524bd6[_0x58b19b(0x109)])}),_0x2f1b71=_0x13c366['geoMercator']()[_0x58b19b(0x117)]([_0x1aac5b['lng'],_0x1aac5b[_0x58b19b(0x155)]])[_0x58b19b(0x116)](0x2af8)[_0x58b19b(0x141)]([0x0,0x0]);_0x349014['features']['forEach'](_0x26acc5=>{const _0x12c722=_0x58b19b,{feature:_0x23d05b}=_0x26acc5;if(_0x23d05b['properties'][_0x12c722(0x104)]){const _0x132b47=_0x5cd5a5['createWall'](_0x23d05b[_0x12c722(0x12c)]['coordinates'],_0x2f1b71);this[_0x12c722(0x149)][_0x12c722(0x122)](_0x132b47);}else {const _0x2de30d=_0x5cd5a5[_0x12c722(0x130)](_0x23d05b[_0x12c722(0x12c)][_0x12c722(0x113)],_0x2f1b71,_0x23d05b[_0x12c722(0xff)][_0x12c722(0x120)]);if(_0x23d05b[_0x12c722(0xff)]['name']){const _0x1445af=_0x5cd5a5[_0x12c722(0x150)](_0x23d05b['properties'][_0x12c722(0xf3)],_0x23d05b[_0x12c722(0x12c)][_0x12c722(0x113)],_0x2f1b71);this['scene'][_0x12c722(0x122)](_0x1445af);}this[_0x12c722(0x149)][_0x12c722(0x122)](_0x2de30d);}}),_0x349014[_0x58b19b(0x12e)][_0x58b19b(0x10a)](_0x283460=>{const _0x30157f=_0x58b19b;if(_0x283460[_0x30157f(0xff)][_0x30157f(0x107)]){const _0x2044ee=new URL('/src/assets/icon/'+_0x283460[_0x30157f(0xff)][_0x30157f(0x107)],import.meta.url)[_0x30157f(0x14f)],_0xdb22e9=_0x5cd5a5[_0x30157f(0x158)](_0x2044ee,_0x283460[_0x30157f(0xff)][_0x30157f(0x12b)],_0x2f1b71);this[_0x30157f(0x149)][_0x30157f(0x122)](_0xdb22e9);}}),_0x349014['equips'][_0x58b19b(0x10a)](_0x5d89cf=>{const _0x4b401b=_0x58b19b,_0x501ba4=new URL(_0x4b401b(0x140)+_0x5d89cf[_0x4b401b(0xff)]['icon'],import.meta.url)['href'],_0x4c4cea=_0x5cd5a5[_0x4b401b(0x158)](_0x5d89cf['properties']['icon']?_0x501ba4:_0x1878ab,_0x5d89cf[_0x4b401b(0xff)]['latlng'],_0x2f1b71);_0x4c4cea[_0x4b401b(0xff)]=_0x5d89cf['properties'],_0x4c4cea[_0x4b401b(0xf3)]=_0x5d89cf[_0x4b401b(0xff)]['code'],this[_0x4b401b(0xfe)][_0x4b401b(0x122)](_0x4c4cea);}),this[_0x58b19b(0x149)][_0x58b19b(0x122)](this[_0x58b19b(0xfe)]);}['on'](_0x141ac2,_0x305645){const _0x1e7965=_0x3263e5;switch(_0x141ac2){case _0x1e7965(0x10f):this[_0x1e7965(0x14b)]=_0x5cd5a5['raycaster']({'dom':this[_0x1e7965(0x13b)],'things':this[_0x1e7965(0xfe)][_0x1e7965(0x12a)],'camera':this[_0x1e7965(0x13a)]},_0x427349=>{const _0x2ac183=_0x1e7965;if(_0x427349){const _0x2d906f=new _0x56fb29[(_0x2ac183(0x119))]();_0x427349['getWorldPosition'](_0x2d906f);const _0xa9119e=new _0x56fb29[(_0x2ac183(0x119))]();_0xa9119e[_0x2ac183(0x14a)](this[_0x2ac183(0x13a)][_0x2ac183(0xf6)],_0x2d906f)[_0x2ac183(0x156)]();const _0x1b4e99=_0x2d906f[_0x2ac183(0x12d)]()[_0x2ac183(0x122)](_0xa9119e[_0x2ac183(0xfb)](0x14));_0x5cd5a5['createCameraTween'](_0x1b4e99,_0x2d906f,this[_0x2ac183(0x13a)],this[_0x2ac183(0x135)]);}_0x305645(_0x427349);});break;}}[_0x3263e5(0x144)](_0x1bbc24){const _0x13cfe9=_0x3263e5;this[_0x13cfe9(0xf9)](this[_0x13cfe9(0x149)]),this[_0x13cfe9(0x133)](_0x1bbc24);}[_0x3263e5(0xf8)](_0x2aead6,_0x596010){const _0x126dd5=_0x3263e5,_0x5dc945=this[_0x126dd5(0xfe)]['getObjectByName'](_0x2aead6),_0x44d033=new _0x56fb29[(_0x126dd5(0x12f))](),_0x149195=_0x44d033[_0x126dd5(0x157)](new URL(_0x126dd5(0x140)+_0x596010,import.meta.url)['href']),_0x5f2a37=_0x5dc945[_0x126dd5(0x142)];_0x5f2a37[_0x126dd5(0x11f)]=_0x149195,_0x5f2a37[_0x126dd5(0x11f)][_0x126dd5(0x118)]=_0x126dd5(0x14e),_0x5f2a37[_0x126dd5(0x102)]=!![];}}
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
(function(_0xb1b947,_0x30af4d){var _0x51d640=_0x1451,_0xbd041a=_0xb1b947();while(!![]){try{var _0x40ba41=-parseInt(_0x51d640(0x1b3))/0x1*(parseInt(_0x51d640(0x1aa))/0x2)+-parseInt(_0x51d640(0x1ae))/0x3*(-parseInt(_0x51d640(0x1b0))/0x4)+parseInt(_0x51d640(0x1b1))/0x5*(-parseInt(_0x51d640(0x1ac))/0x6)+-parseInt(_0x51d640(0x1ad))/0x7+parseInt(_0x51d640(0x1a9))/0x8*(parseInt(_0x51d640(0x1a7))/0x9)+-parseInt(_0x51d640(0x1af))/0xa*(parseInt(_0x51d640(0x1a8))/0xb)+-parseInt(_0x51d640(0x1ab))/0xc*(-parseInt(_0x51d640(0x1b2))/0xd);if(_0x40ba41===_0x30af4d)break;else _0xbd041a['push'](_0xbd041a['shift']());}catch(_0x58ef6a){_0xbd041a['push'](_0xbd041a['shift']());}}}(_0x5394,0x3ba97));function _0x5394(){var _0x1aacc5=['7776DerHSM','27687ciZQmV','3176aLizZc','2370NWjVyu','8293764gTEsKM','395526iqwhcQ','3235715KKgtaf','6XfqvRA','1310BOJHHp','769016wndQHQ','5RMWtLg','13zBZYcb','267hJkMpd'];_0x5394=function(){return _0x1aacc5;};return _0x5394();}function _0x1451(_0x9d7a90,_0x38cf72){_0x9d7a90=_0x9d7a90-0x1a7;var _0x53941b=_0x5394();var _0x14518f=_0x53941b[_0x9d7a90];return _0x14518f;}var index = {'TDScene':TDScene,..._0x5cd5a5};
|
|
13
15
|
|
|
14
16
|
export { index as default };
|