3 Commits
1.0.3 ... 1.0.4

Author SHA1 Message Date
ChenX
2cd7f413da 更新版本号 2018-05-29 10:13:54 +08:00
ChenX
aed2217f2e 修正z轴为空的时候 判断错误的问题. 2018-05-29 10:13:37 +08:00
ChenX
98cd31e18c 保证格式统一. 2018-05-29 09:57:50 +08:00
5 changed files with 18 additions and 5 deletions

15
.vscode/settings.json vendored
View File

@@ -1,3 +1,16 @@
// 将设置放入此文件中以覆盖默认值和用户设置。
{
"editor.formatOnSave": true
"typescript.tsdk": "node_modules\\typescript\\lib",
//格式化设置
"editor.tabSize": 4,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
//格式设置
"typescript.format.placeOpenBraceOnNewLineForFunctions": true,
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": true,
"typescript.referencesCodeLens.enabled": true,
"javascript.format.placeOpenBraceOnNewLineForFunctions": true,
"javascript.format.enable": true,
"files.insertFinalNewline": true,
"editor.detectIndentation": true,
}

2
dist/createBoard.js vendored
View File

@@ -83,7 +83,7 @@ function createBoard(boardData) {
if (boardPts && boardPts.length !== 0)
for (let i = 0; i < boardPts.length; i++) {
let pt = getVec(boardPts[i]);
if (pt.z !== undefined)
if (boardPts[i].z !== undefined)
pt.applyMatrix4(matInv);
pts.push(new THREE.Vector2(pt.x, pt.y));
buls.push(boardBuls[i]);

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "cadview",
"version": "1.0.3",
"version": "1.0.4",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -105,7 +105,7 @@ export function createBoard(boardData: object)
for (let i = 0; i < boardPts.length; i++)
{
let pt = getVec(boardPts[i]);
if (pt.z !== undefined)
if (boardPts[i].z !== undefined)
pt.applyMatrix4(matInv);
pts.push(new THREE.Vector2(pt.x, pt.y));
buls.push(boardBuls[i]);