清理代码格式

This commit is contained in:
ChenX
2018-05-30 18:32:42 +08:00
parent e3c565a83d
commit 2a17e619a2
6 changed files with 20 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
import * as THREE from 'three';
import { Geometry, LineSegments } from 'three';
import { Geometry, LineSegments, Shape, Vector2 } from 'three';
export declare class Arc2d {
m_StartAn: number;
m_EndAn: number;
@@ -9,7 +9,7 @@ export declare class Arc2d {
m_Radius: number;
constructor(p1: THREE.Vector2, p2: THREE.Vector2, bul: number);
}
export declare function createPath(pts: THREE.Vector2[], buls: number[], shapeOut?: THREE.Shape): THREE.Shape;
export declare function createPath(pts: Vector2[], buls: number[], shapeOut?: Shape): Shape;
export declare function getVec(data: object): THREE.Vector3;
export declare function createBoard(boardData: object): {
mesh: THREE.Mesh;

2
dist/createBoard.js vendored
View File

@@ -34,7 +34,7 @@ class Arc2d {
exports.Arc2d = Arc2d;
//创建轮廓 通过点表和凸度
function createPath(pts, buls, shapeOut) {
let shape = shapeOut || new THREE.Shape();
let shape = shapeOut || new three_1.Shape();
if (pts.length === 0)
return shape;
let firstPt = pts[0];

File diff suppressed because one or more lines are too long