调整threejs类型
This commit is contained in:
		@@ -17,6 +17,7 @@
 | 
				
			|||||||
  "author": "cx",
 | 
					  "author": "cx",
 | 
				
			||||||
  "license": "ISC",
 | 
					  "license": "ISC",
 | 
				
			||||||
  "devDependencies": {
 | 
					  "devDependencies": {
 | 
				
			||||||
 | 
					    "@types/three": "^0.92.25",
 | 
				
			||||||
    "@types/hard-source-webpack-plugin": "^0.9.0",
 | 
					    "@types/hard-source-webpack-plugin": "^0.9.0",
 | 
				
			||||||
    "@types/node": "^10.11.7",
 | 
					    "@types/node": "^10.11.7",
 | 
				
			||||||
    "@types/uglifyjs-webpack-plugin": "^1.1.0",
 | 
					    "@types/uglifyjs-webpack-plugin": "^1.1.0",
 | 
				
			||||||
@@ -39,7 +40,6 @@
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "three": "^0.95.0",
 | 
					    "three": "^0.95.0",
 | 
				
			||||||
    "@types/three": "^0.92.25",
 | 
					 | 
				
			||||||
    "wolfy87-eventemitter": "^5.2.5"
 | 
					    "wolfy87-eventemitter": "^5.2.5"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,9 +1,9 @@
 | 
				
			|||||||
import * as THREE from 'three';
 | 
					import * as THREE from 'three';
 | 
				
			||||||
import { Vector3, Line3 } from "three";
 | 
					import { Vector3, Line3, Plane } from "three";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class PlaneExt extends THREE.Plane
 | 
					export class PlaneExt extends Plane
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    constructor(normal?: THREE.Vector3, constant?: number)
 | 
					    constructor(normal?: Vector3, constant?: number)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        super(normal, constant);
 | 
					        super(normal, constant);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
import { Font, FontLoader, Mesh, ShapeGeometry, Vector3 } from "three";
 | 
					import { Font, FontLoader, Mesh, ShapeGeometry, Vector3, Shape } from "three";
 | 
				
			||||||
import { ColorMaterial } from "./ColorPalette";
 | 
					import { ColorMaterial } from "./ColorPalette";
 | 
				
			||||||
import { MoveMatrix } from "./GeUtils";
 | 
					import { MoveMatrix } from "./GeUtils";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -30,7 +30,7 @@ export class DbText extends Mesh
 | 
				
			|||||||
  {
 | 
					  {
 | 
				
			||||||
    let font = FontLoaderUtil.Load();
 | 
					    let font = FontLoaderUtil.Load();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let shapes: THREE.Shape[] = font.generateShapes(str, height, 0.1);
 | 
					    let shapes: Shape[] = font.generateShapes(str, height, 0.1);
 | 
				
			||||||
    let geometry = new ShapeGeometry(shapes);
 | 
					    let geometry = new ShapeGeometry(shapes);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    geometry.computeBoundingBox();
 | 
					    geometry.computeBoundingBox();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
import { Object3D } from "three";
 | 
					import { Object3D, Mesh } from "three";
 | 
				
			||||||
import { createTemplateBoard, DrawDimension, Viewer, selectMaterial } from ".";
 | 
					import { createTemplateBoard, DrawDimension, Viewer, selectMaterial } from ".";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function dispose(m: Object3D)
 | 
					function dispose(m: Object3D)
 | 
				
			||||||
@@ -12,7 +12,7 @@ function dispose(m: Object3D)
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let blockMeshs: THREE.Mesh[];
 | 
					let blockMeshs: Mesh[];
 | 
				
			||||||
let dataRelations: {
 | 
					let dataRelations: {
 | 
				
			||||||
    blockMeshMap: Map<number, number>,
 | 
					    blockMeshMap: Map<number, number>,
 | 
				
			||||||
    meshBlockMap: Map<number, number>
 | 
					    meshBlockMap: Map<number, number>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user