@eturnity/eturnity_3d 6.29.3 → 6.29.5

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_3d",
3
3
  "private": false,
4
- "version": "6.29.3",
4
+ "version": "6.29.5",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
@@ -77,7 +77,8 @@ export default {
77
77
  .to({ x: target[0], y: target[1], z: target[2] }, 2000)
78
78
  .easing(TWEEN.Easing.Sinusoidal.Out)
79
79
  .onUpdate(() => {
80
- this.orbitControl.update()
80
+ if(this.orbitControl && this.orbitControl.update)
81
+ this.orbitControl.update()
81
82
  })
82
83
  .start()
83
84
  }
@@ -86,7 +87,8 @@ export default {
86
87
  .to({ x: position[0], y: position[1], z: position[2] }, 2000)
87
88
  .easing(TWEEN.Easing.Sinusoidal.Out)
88
89
  .onUpdate(() => {
89
- this.orbitControl.update()
90
+ if(this.orbitControl && this.orbitControl.update)
91
+ this.orbitControl.update()
90
92
  })
91
93
  .start()
92
94
  }
@@ -138,7 +138,7 @@ export default {
138
138
  this.initSky()
139
139
  if(isInteractive){
140
140
  this.orbitControl=new OrbitControls(this.camera, this.renderer.domElement)
141
- this.orbitControl.maxPolarAngle=(Math.PI/2)*(80/90)
141
+ this.orbitControl.maxPolarAngle=(Math.PI/2)*(87/90)
142
142
  }
143
143
  window.addEventListener('resize', this.onWindowResize, false)
144
144