emacroh5lib 1.0.82 → 1.0.83

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emacroh5lib",
3
- "version": "1.0.82",
3
+ "version": "1.0.83",
4
4
  "description": "EMacro前端组件库",
5
5
  "main": "dist/emacroh5lib.min.js",
6
6
  "scripts": {
@@ -401,7 +401,7 @@
401
401
  geometry.position.z += (-centerPoint.z)
402
402
  geometry.position.x += (-centerPoint.x)
403
403
  geometry.position.y += (-centerPoint.y)
404
- this.gl.geometry = pivot
404
+ // this.gl.geometry = pivot
405
405
  scene.add(pivot);
406
406
 
407
407
  this.loading = false
@@ -734,7 +734,7 @@
734
734
 
735
735
  // this.gl.scene.rotateY(45)
736
736
 
737
- let axes = new THREE.AxisHelper(100);
737
+ let axes = new THREE.AxisHelper(20);
738
738
  this.gl.scene.add(axes);
739
739
 
740
740
  //点光源
@@ -750,8 +750,8 @@
750
750
  /**
751
751
  * 相机设置
752
752
  */
753
- let width = window.innerWidth * 0.8; //窗口宽度
754
- let height = window.innerHeight * 0.8; //窗口高度
753
+ let width = window.innerWidth * 0.85; //窗口宽度
754
+ let height = window.innerHeight * 0.85; //窗口高度
755
755
  let k = width / height; //窗口宽高比
756
756
  let s = 300; //三维场景显示范围控制系数,系数越大,显示的范围越大
757
757
  //创建相机对象