@eturnity/eturnity_3d 1.0.49 → 1.0.50-EPDM-7622.0

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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_3d",
3
3
  "private": false,
4
- "version": "1.0.49",
4
+ "version": "1.0.50-EPDM-7622.0",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
8
8
  "build": "vue-cli-service build --skip-plugins @vue/cli-plugin-eslint"
9
9
  },
10
10
  "dependencies": {
11
- "@eturnity/eturnity_maths": "^1.0.10",
11
+ "@eturnity/eturnity_maths": "^1.0.12",
12
12
  "axios": "^1.3.2",
13
13
  "cors": "^2.8.5",
14
14
  "core-js": "^2.6.12",
@@ -29,6 +29,7 @@ export default {
29
29
  this.three_map.scale.set(2*20015111.9287618*coef, 1, 2*20015111.9287618*coef);
30
30
  var coords = UnitsUtils.datumsToSpherical(this.layoutSettings.layout_latitude, this.layoutSettings.layout_longitude)
31
31
  this.three_map.position.set(-coords.x*coef,-coords.y*coef,0)
32
+ this.three_map.addEventListener('load',function(){console.log('threeMap loading')})
32
33
  this.scene.add(this.three_map)
33
34
  }else{
34
35
  let googleMapType='satellite'
@@ -139,6 +140,7 @@ export default {
139
140
  this.initSky()
140
141
  if(isInteractive){
141
142
  this.orbitControl=new OrbitControls(this.camera, this.renderer.domElement)
143
+ this.orbitControl.addEventListener( 'change', this.render );
142
144
  this.orbitControl.maxPolarAngle=Math.PI/2
143
145
  }
144
146
  window.addEventListener('resize', this.onWindowResize, false)
@@ -177,5 +179,8 @@ export default {
177
179
  },
178
180
 
179
181
  },
182
+ beforeDestroy(){
183
+ this.orbitControl.removeEventListener( 'change', this.render );
184
+ }
180
185
 
181
186
  }